:root {
  color-scheme: light;
  --navy: #121d32;
  --blue: #3264c0;
  --blue-strong: #2c60bf;
  --blue-bright: #4374c8;
  --ice: #c4e2f1;
  --bg: #f7fafc;
  --surface: #ffffff;
  --soft: #eff4f8;
  --border: #d6e0ea;
  --text-soft: #52627a;
  --success: #2f7a5d;
  --radius-card: 20px;
  --radius-hero: 24px;
  --radius-button: 14px;
  --shadow-soft: 0 20px 60px rgba(18, 29, 50, 0.08);
  --shell: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #ffffff;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-180%);
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.narrow { max-width: 880px; }

.section { padding: 96px 0; }

h1, h2, .brand {
  font-family: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.035em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  max-width: 780px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.04;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

p { color: var(--text-soft); }

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow-light { color: #cfe2ff; }

.section-lead {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(214, 224, 234, 0.75);
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a,
.login-link {
  color: #435168;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover,
.login-link:hover { color: var(--blue); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 28px rgba(50, 100, 192, 0.22);
}

.button-primary:hover { background: var(--blue-strong); }

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.mobile-menu { display: none; }

.hero {
  overflow: hidden;
  padding-top: 72px;
}

.hero-grid {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 56px;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 30px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.problem-section { background: var(--navy); color: white; }
.problem-section h2 { max-width: 800px; }
.problem-section p { color: #c7d1df; }

.change-grid {
  margin: 36px 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.12);
}

.change-grid span {
  padding: 24px;
  background: #17243b;
  color: #f7fafc;
  font-size: 1.1rem;
  font-weight: 650;
}

.section-heading {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: end;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 4px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(18, 29, 50, 0.04);
}

.product-tag {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confidence-section { background: var(--soft); }

.confidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 72px;
  align-items: center;
}

.confidence-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--surface);
}

.confidence-steps li {
  min-height: 104px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.confidence-steps li:last-child { border-bottom: 0; }

.confidence-steps > li > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.confidence-steps div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.confidence-steps small { color: var(--text-soft); }

.product-grid {
  grid-template-columns: repeat(2, 1fr);
}

.product-card {
  min-height: 260px;
  padding: 30px;
}

.product-card-wide {
  grid-column: 1 / -1;
  min-height: 210px;
  background: linear-gradient(135deg, #ffffff 35%, #eef5fb 100%);
}

.product-card .product-tag { margin-bottom: 52px; }

.section-action {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
}
.product-proof-note {
  max-width: 760px;
  margin: 22px 0 0;
  color: #617087;
  font-size: 0.86rem;
}

.physiology-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 64px;
  align-items: center;
}

.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.context-chips span {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #42516a;
  font-weight: 650;
}

.access-card {
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 44px;
  align-items: center;
  border-radius: 28px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow-soft);
}

.access-card h2 { margin-bottom: 14px; }
.access-card p { margin-bottom: 0; color: #c7d1df; }

.access-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.button-light {
  background: white;
  color: var(--navy);
}

.button-disabled {
  cursor: default;
  opacity: 0.72;
}

.button-disabled:hover { transform: none; }

.text-link-light {
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.site-footer {
  padding: 36px 0 46px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.footer-inner p {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.footer-meta {
  display: flex;
  gap: 18px;
  color: #617087;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .desktop-nav,
  .desktop-cta { display: none; }

  .header-actions { margin-left: auto; }
  .mobile-menu { display: block; }

  .mobile-menu summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--navy);
    font-weight: 700;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }

  .mobile-menu[open] nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 68px;
    padding: 18px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-soft);
  }

  .mobile-menu nav a {
    padding: 10px 8px;
    text-decoration: none;
    font-weight: 650;
  }

  .hero-grid,
  .confidence-grid,
  .physiology-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { min-height: 0; }

}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 68px; gap: 16px; }
  .login-link { display: none; }

  h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.8rem);
    line-height: 1.01;
  }

  .hero { padding-top: 46px; }
  .hero-grid { gap: 38px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }

  .change-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .change-grid span { padding: 20px; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-card-wide { grid-column: auto; }
  .confidence-grid,
  .physiology-grid { gap: 36px; }

  .access-card {
    padding: 30px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Product education layer */
.product-hero {
  padding-top: 76px;
  padding-bottom: 72px;
}

.product-hero-copy {
  max-width: 900px;
}

.product-hero h1 {
  max-width: 920px;
}

.product-anchor-nav {
  position: sticky;
  top: 78px;
  z-index: 35;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(247, 250, 252, 0.95);
  backdrop-filter: blur(16px);
}

.product-anchor-inner {
  min-height: 58px;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-anchor-inner::-webkit-scrollbar { display: none; }

.product-anchor-inner a {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  color: #435168;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.product-anchor-inner a:hover,
.product-anchor-inner a:focus-visible {
  background: #eaf1fa;
  color: var(--blue);
}

.product-close-card {
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
}

.product-close-card h2 { margin-bottom: 12px; }
.product-close-card p { margin-bottom: 0; }

@media (max-width: 960px) {
  .product-anchor-nav { top: 68px; }
  .product-close-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .product-hero {
    padding-top: 52px;
    padding-bottom: 54px;
  }

  .product-anchor-inner {
    width: calc(100% - 16px);
    margin-right: 0;
  }

  .product-close-card { padding: 28px 22px; }
}


/* WEB3 lead capture */
.lead-access-card {
  align-items: start;
}

.lead-intro {
  align-self: center;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-field {
  display: grid;
  gap: 8px;
}

.lead-field label {
  color: #edf3fb;
  font-size: 0.82rem;
  font-weight: 700;
}

.lead-field label span {
  margin-left: 5px;
  color: #9eacc1;
  font-weight: 500;
}

.lead-field input,
.lead-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(214, 224, 234, 0.34);
  border-radius: 14px;
  background: rgba(255,255,255,0.98);
  color: var(--navy);
  font: inherit;
}

.lead-field input:focus,
.lead-field select:focus {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-color: var(--blue-bright);
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  color: #c7d1df;
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue-bright);
}

.turnstile-slot:empty {
  display: none;
}

.lead-form .button[disabled] {
  cursor: not-allowed;
  opacity: 0.66;
  transform: none;
}

.lead-status {
  margin: 0;
  color: #b8c5d7;
  font-size: 0.82rem;
}

.lead-status[data-state="success"] { color: #bfe6d3; }
.lead-status[data-state="error"] { color: #ffd0d0; }

.lead-login {
  margin: 2px 0 0;
  color: #aebbd0;
  font-size: 0.86rem;
  text-align: center;
}

.lead-login a { margin-left: 4px; }

@media (max-width: 720px) {
  .lead-access-card { gap: 34px; }
}


/* WEB4 legal/support */
.legal-page {
  min-height: 70vh;
  padding: 72px 0 96px;
}

.legal-page article {
  max-width: 820px;
}

.legal-page h1 {
  max-width: 820px;
  margin-bottom: 32px;
}

.legal-page h2 {
  margin-top: 42px;
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page a {
  color: var(--blue);
}

.legal-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: #eef4fa;
}

.legal-contact-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.82rem;
}

.legal-links a {
  color: #65748a;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--blue);
}

.consent-row a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .legal-page {
    padding: 54px 0 72px;
  }

  .legal-page h2 {
    margin-top: 34px;
  }
}
