/* ============================================================
   SynerCore Technologies — design tokens
   ============================================================ */
:root {
  --ink:        #0B1220;
  --ink-line:   #16233B;
  --paper:      #F7F9FC;
  --paper-line: #E3E8F0;
  --steel:      #64748B;
  --steel-dim:  #94A3B8;
  --teal:       #2DD4BF;
  --teal-dim:   #0F766E;
  --amber:      #F2A93B;
  --white:      #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius: 10px;
  --container: 1140px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--steel); }

a { color: var(--teal-dim); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--teal-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--teal);
  display: inline-block;
}
section.on-dark .eyebrow { color: var(--teal); }
section.on-dark .eyebrow::before { background: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,252,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink);
}
.brand .mark {
  width: 30px; height: 30px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--ink); font-size: 0.94rem; font-weight: 500;
}
.nav-links a:hover { color: var(--teal-dim); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { transform: translateY(-1px); background: #eb9d24; }
.btn-ghost-dark { border-color: var(--ink-line); color: var(--white); }
.btn-ghost-dark:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost-light { border-color: var(--paper-line); color: var(--ink); }
.btn-ghost-light:hover { border-color: var(--teal-dim); color: var(--teal-dim); }

/* ---------- Section bands ---------- */
section { padding: 96px 0; }
section.on-dark { background: var(--ink); color: var(--white); }
section.on-dark p { color: var(--steel-dim); }
section.on-dark h1, section.on-dark h2, section.on-dark h3 { color: var(--white); }
section.tight { padding: 64px 0; }

/* ---------- Hero ---------- */
.hero { padding-top: 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero p.lead { font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats .stat b {
  display: block; font-family: var(--font-mono); font-size: 1.6rem; color: var(--teal);
}
.hero-stats .stat span { font-size: 0.8rem; color: var(--steel-dim); }

/* signature diagram */
.core-diagram { width: 100%; height: auto; }
.core-diagram .line {
  stroke: var(--teal-dim); stroke-width: 1.4; fill: none;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw 1.1s ease forwards;
}
.core-diagram .line:nth-child(2) { animation-delay: 0.1s; }
.core-diagram .line:nth-child(3) { animation-delay: 0.2s; }
.core-diagram .line:nth-child(4) { animation-delay: 0.3s; }
.core-diagram .line:nth-child(5) { animation-delay: 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.core-diagram .node-core { fill: var(--teal); }
.core-diagram .node-sat { fill: var(--ink); stroke: var(--teal-dim); stroke-width: 1.2; }
.core-diagram text { font-family: var(--font-mono); font-size: 10px; fill: var(--steel-dim); }

/* ---------- Grid layouts ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.card {
  background: var(--white); border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 32px;
}
section.on-dark .card {
  background: #0F1B30; border-color: var(--ink-line);
}
.card .icon {
  width: 40px; height: 40px; margin-bottom: 18px;
  color: var(--teal);
}

/* process steps */
.process-list { counter-reset: step; }
.process-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--ink-line);
}
.process-step:last-child { border-bottom: 1px solid var(--ink-line); }
.process-step .num {
  font-family: var(--font-mono); color: var(--teal); font-size: 1.3rem;
}

.section-head { max-width: 640px; margin-bottom: 56px; }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band b { display: block; font-family: var(--font-mono); font-size: 2.1rem; color: var(--teal); }
.stat-band span { color: var(--steel-dim); font-size: 0.85rem; }

/* testimonial */
.testimonial {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  margin: 0 0 24px; color: var(--ink);
}
.testimonial cite {
  font-style: normal; font-family: var(--font-mono); font-size: 0.82rem; color: var(--steel);
}

/* CTA band */
.cta-band {
  background: var(--ink); border-radius: 16px; padding: 64px; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--steel-dim); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* footer */
.site-footer { background: var(--ink); color: var(--steel-dim); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid a { color: var(--steel-dim); display: block; margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--ink-line); padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 0.82rem; font-family: var(--font-mono);
}

/* forms */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--paper-line); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white); color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* responsive */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }

@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }

  .site-header .container { position: relative; }
  .mobile-menu-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; gap: 0; padding: 8px 24px 16px;
    border-bottom: 1px solid var(--paper-line); max-height: calc(100vh - 76px);
    overflow-y: auto; z-index: 100;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links > a, .nav-links > .nav-item-wrap { padding: 12px 0; border-bottom: 1px solid var(--paper-line); width: 100%; }
  .nav-item-wrap .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    margin-top: 8px; border: none; padding-left: 16px; box-shadow: none;
  }
  .nav-item-wrap.mobile-expanded .nav-dropdown { display: block; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Long emails/URLs in the footer shouldn't overflow their column on narrow screens */
.footer-grid, .footer-grid a, .footer-bottom { overflow-wrap: break-word; word-break: break-word; }

/* ---------- Dropdown submenus ---------- */
.nav-links { position: relative; }
.nav-item-wrap { position: relative; }
.nav-item-wrap > .dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; background: none; border: none; font: inherit; color: inherit; padding: 0; }
.nav-item-wrap > .dropdown-toggle::after { content: "▾"; font-size: 0.7em; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 8px; margin-top: 12px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease; z-index: 60;
}
.nav-item-wrap:hover .nav-dropdown,
.nav-item-wrap:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 0.9rem; }
.nav-dropdown a:hover { background: var(--paper-line); }
.nav-dropdown .nav-dropdown { top: 0; left: 100%; margin-top: -8px; margin-left: 8px; }
