/* ============================================================
   MyLeadWave — Design System
   Aesthetic: dark "performance-signal" with a fluid wave motif
   Display: Bricolage Grotesque · Body: Hanken Grotesk
   ============================================================ */

:root {
  /* Core palette */
  --ink: #060B14;          /* deepest background */
  --ink-2: #0A111E;        /* section background */
  --surface: #0F1826;      /* cards */
  --surface-2: #142133;    /* raised cards */
  --line: #1E2C40;         /* hairlines/borders */
  --line-soft: #18243650;

  --text: #EAF1F8;         /* primary text */
  --text-dim: #9DB0C6;     /* secondary text */
  --text-faint: #61748C;   /* tertiary */

  /* Signal accents */
  --aqua: #20E5C4;         /* primary — the "wave/signal" */
  --aqua-deep: #0FB39A;
  --blue: #3A8DFF;         /* electric blue */
  --coral: #FF6B4A;        /* heat / CTA energy */
  --coral-deep: #F2502B;

  /* Gradients */
  --grad-wave: linear-gradient(120deg, #20E5C4 0%, #3A8DFF 55%, #6E7BFF 100%);
  --grad-heat: linear-gradient(120deg, #FF8A4A 0%, #FF6B4A 60%, #F2502B 100%);
  --grad-ink: linear-gradient(180deg, #0A111E 0%, #060B14 100%);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Spacing / shape */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 60px -10px rgba(32,229,196,0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.01em; }

p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

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

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aqua);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--aqua); opacity: 0.7; }
.text-grad { background: var(--grad-wave); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.18rem; color: var(--text-dim); }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  font-family: var(--font-body); cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-heat); color: #fff; box-shadow: 0 12px 30px -10px rgba(242,80,43,0.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(242,80,43,0.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); transform: translateY(-3px); }
.btn-aqua { background: var(--aqua); color: #04201B; }
.btn-aqua:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6,11,20,0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--aqua); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li > a {
  display: inline-block; padding: 10px 15px; border-radius: 999px; font-weight: 500; font-size: 0.97rem;
  color: var(--text-dim); transition: color .25s, background .25s;
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* dropdown */
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; min-width: 280px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 10px 13px; border-radius: var(--radius-sm); color: var(--text-dim); font-size: 0.94rem; transition: background .2s, color .2s; }
.dropdown a:hover { background: var(--surface-2); color: var(--aqua); }
.dropdown a span { display: block; font-size: 0.78rem; color: var(--text-faint); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .3s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%; filter: blur(120px); opacity: 0.22; z-index: -1;
  background: var(--grad-wave); top: -380px; right: -200px;
}
.hero-glow.two { background: var(--grad-heat); opacity: 0.14; top: 120px; left: -340px; }
.hero h1 { max-width: 16ch; margin-bottom: 24px; }
.hero .lead { max-width: 60ch; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.fade-up { opacity: 0; transform: translateY(26px); animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .31s; } .d4 { animation-delay: .44s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* credibility strip */
.cred { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 26px 0; margin-top: 64px; }
.cred-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; justify-content: space-between; }
.cred-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); }
.cred-logos { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.cred-logos span { color: var(--text-dim); font-weight: 600; font-size: 0.96rem; opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 700px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 14px 0 18px; }

/* card grid */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5 { grid-template-columns: repeat(5,1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .4s var(--ease), border-color .4s, background .4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: #2C405C; background: var(--surface-2); }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(32,229,196,0.1); border: 1px solid rgba(32,229,196,0.25); margin-bottom: 20px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--aqua); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--aqua); font-weight: 600; font-size: 0.92rem; }
.card .more svg { width: 15px; height: 15px; transition: transform .3s; }
.card:hover .more svg { transform: translateX(4px); }
a.card { display: block; }

/* feature split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split.flip > *:first-child { order: 2; }
.feature-list { margin-top: 24px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .check { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(32,229,196,0.12); display: flex; align-items: center; justify-content: center; }
.feature-list .check svg { width: 15px; height: 15px; stroke: var(--aqua); }
.feature-list strong { display: block; }
.feature-list span { color: var(--text-dim); font-size: 0.96rem; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,4vw,3.4rem); background: var(--grad-wave); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat .lab { color: var(--text-dim); font-size: 0.95rem; margin-top: 10px; }

/* highlight / callout */
.callout {
  background: linear-gradient(135deg, rgba(32,229,196,0.08), rgba(58,141,255,0.06));
  border: 1px solid rgba(32,229,196,0.22); border-radius: 24px; padding: 56px;
  position: relative; overflow: hidden;
}
.callout::after { content: ""; position: absolute; width: 360px; height: 360px; background: var(--grad-wave); filter: blur(110px); opacity: 0.14; top: -120px; right: -80px; }
.callout h2 { margin-bottom: 18px; }

/* CTA band */
.cta-band { background: var(--grad-ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band .glow { position: absolute; inset: 0; z-index: 0; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 20px; }
.cta-band p { max-width: 52ch; margin: 0 auto 34px; }

/* page hero (inner) */
.page-hero { padding: 72px 0 30px; position: relative; overflow: hidden; }
.page-hero .glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; filter: blur(120px); opacity: 0.16; background: var(--grad-wave); top: -340px; right: -120px; z-index: -1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.84rem; color: var(--text-faint); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--aqua); }
.breadcrumb span { color: var(--line); }
.page-hero h1 { max-width: 20ch; margin-bottom: 20px; }
.page-hero .lead { max-width: 62ch; }

/* prose */
.prose h2 { margin: 48px 0 18px; }
.prose h3 { margin: 32px 0 12px; color: var(--text); }
.prose p { margin-bottom: 18px; }
.prose ul.bullets { margin: 0 0 22px; display: grid; gap: 12px; }
.prose ul.bullets li { display: flex; gap: 12px; color: var(--text-dim); }
.prose ul.bullets li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 10px; background: var(--grad-wave); }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 24px; transition: border-color .3s; }
.faq details[open] { border-color: #2C405C; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--aqua); font-size: 1.5rem; font-weight: 400; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); font-size: 0.88rem; font-weight: 500; transition: .25s; }
.chip:hover { border-color: var(--aqua); color: var(--aqua); }

/* ---------- Contact form ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(32,229,196,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field .req { color: var(--coral); }
.form-note { font-size: 0.85rem; color: var(--text-faint); margin-top: 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.footer-contact { font-size: 0.95rem; margin: 14px 0 18px; }
.footer-contact a { color: var(--aqua); }
.footer-contact a:hover { color: var(--text); }
#form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.95rem; display: none; }
#form-status.ok { display: block; background: rgba(32,229,196,0.1); border: 1px solid rgba(32,229,196,0.3); color: var(--aqua); }
#form-status.err { display: block; background: rgba(255,107,74,0.1); border: 1px solid rgba(255,107,74,0.3); color: var(--coral); }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 26px; }
.contact-info .item .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.contact-info .item .ico svg { width: 20px; height: 20px; stroke: var(--aqua); }
.contact-info .item h4 { font-size: 1.05rem; margin-bottom: 3px; }
.contact-info .item p { font-size: 0.95rem; }

/* ---------- Wave divider ---------- */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 90px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 0.95rem; margin: 18px 0; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 0.95rem; transition: color .2s; }
.footer-col a:hover { color: var(--aqua); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 0.88rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-5 { grid-template-columns: repeat(3,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > *:first-child { order: 0; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .callout { padding: 40px 28px; }
}
@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 18px 20px 26px;
    transform: translateY(-130%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li > a { padding: 14px 12px; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; border: none; padding: 4px 0 4px 14px; min-width: 0; }
  .has-menu:hover .dropdown { transform: none; }
  .nav-cta .btn-ghost { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .callout { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-up, .reveal { opacity: 1; transform: none; }
}
