/* ─────────────────────────────────────────────────────────────────
   Base — reset, scroll container, snap sections, design primitives
   (themes, decor, dots, eyebrows, tags, points, buttons, pills,
    section headings, split layout, footer)
   ─────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { background: var(--dark-body); }

::selection { background: rgba(16, 185, 129, 0.30); }

/* ─── Snap container ─────────────────────────────────────────── */
#scrollContainer {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#scrollContainer::-webkit-scrollbar { display: none; }

/* ─── Section base ────────────────────────────────────────────── */
/* min-height (not fixed height) so content-heavy sections grow and
   the relocated footer fits inside the last section. */
.snap-section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.theme-light { background: var(--bg-paper); }
.theme-gray  { background: var(--bg-body); }
.theme-dark  { background: var(--dark-paper); }
.theme-deep  { background: var(--dark-body); }

/* Content section frame: horizontal padding + max-width container. */
.section-frame { padding: 110px 80px 90px; }

/* ─── Hero / CTA banner (full-bleed dark, centered) ──────────── */
.banner {
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 48px;
}

.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Decor (grid + aurora glows), used inside .banner ───────── */
.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.decor-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
}

.decor-circle {
  position: absolute;
  border-radius: 50%;
}
.decor-circle--tr {
  width: 760px; height: 760px;
  top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(16,185,129,0.14) 0%, transparent 65%);
}
.decor-circle--bl {
  width: 560px; height: 560px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 65%);
}
.decor-circle--c {
  width: 900px; height: 480px;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34,211,238,0.05) 0%, transparent 65%);
}

/* Canvas layer for the animated edge-network (hero) */
.net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ─── Scroll dots (right-side rail) ──────────────────────────── */
#scrollDots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.s-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.30);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.s-dot.active                 { background: var(--primary-light); transform: scale(1.4); }
.s-dot.on-light               { background: rgba(19,28,46,0.22); }
.s-dot.on-light.active        { background: var(--primary); }

/* ─── Eyebrow (small uppercase label) ────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 24px;
}

/* ─── Tag (rounded chip with primary accent) ─────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-a8);
  border: 1px solid rgba(16,185,129,0.18);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.theme-dark .tag,
.theme-deep .tag {
  color: var(--primary-light);
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.28);
}

/* ─── Section headings & body copy ───────────────────────────── */
.banner-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.9rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.banner-h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  max-width: 680px;
  margin: 0 auto 20px;
  overflow-wrap: break-word;
}
.banner-h2 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-sub {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.theme-light .section-h2,
.theme-gray  .section-h2 { color: var(--text-primary); }
.theme-dark  .section-h2,
.theme-deep  .section-h2 { color: var(--text-on-dark); }

.section-h2 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.theme-light .section-desc,
.theme-gray  .section-desc { color: var(--text-secondary); }
.theme-dark  .section-desc,
.theme-deep  .section-desc { color: rgba(255,255,255,0.52); }

/* ─── Points (icon-bullet list) ──────────────────────────────── */
.points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.point {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 500;
}
.theme-light .point,
.theme-gray  .point { color: var(--text-primary); }
.theme-dark  .point,
.theme-deep  .point { color: var(--text-on-dark-soft); }

.point-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-a16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-dark .point-icon,
.theme-deep .point-icon { background: rgba(16,185,129,0.18); }
.point-icon iconify-icon { color: var(--primary); font-size: 12px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #04110C;
  padding: 15px 36px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-cta);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(16, 185, 129, 0.65);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text-on-dark-soft);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: #fff;
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Pills (decorative or clickable chips) ─────────────────── */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pill iconify-icon { font-size: 15px; color: var(--primary-light); }

a.pill { cursor: pointer; }
a.pill:hover,
.pill.active {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.40);
  color: var(--primary-light);
}

/* ─── Split layout (2-col grid that stacks on mobile) ───────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
.split-layout--reverse { direction: rtl; }
.split-layout--reverse > * { direction: ltr; }


/* ───────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────── */

/* Full-width dark footer. On snap pages it's relocated by JS into the
   last snap-section (normal flow, at the end); on doc pages it renders
   inline after the content. */
.snap-section > site-footer {
  display: block;
  width: 100%;
  margin-top: auto;
}
/* Keep banner content vertically centered whether or not the footer
   lives in the same section (auto margins share the free space). */
.banner .banner-content {
  margin-top: auto;
  margin-bottom: auto;
}

.site-footer {
  width: 100%;
  background: var(--dark-body);
  border-top: 1px solid var(--line-on-dark);
  margin-top: 72px;
  position: relative;
  z-index: 3;
}

.site-footer-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.site-footer-brand { max-width: 340px; }

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}
.site-footer-logo svg { height: 26px; width: auto; }
.site-footer-logo .nav-logo-word { font-size: 19px; }

.site-footer-blurb {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

.site-footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-bottom: 16px;
}

.site-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-col a {
  font-size: 13.5px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer-col a:hover { color: var(--primary-light); }

.site-footer-bottom {
  border-top: 1px solid var(--line-on-dark);
}
.site-footer-bottom-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-on-dark-faint);
}
.site-footer-bottom-inner a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}
.site-footer-bottom-inner a:hover { color: var(--primary-light); }

@media (max-width: 900px) {
  .site-footer { margin-top: 48px; }
  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 28px;
  }
  .site-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 20px;
  }
}


/* ───────────────────────────────────────────────────────────────
   CONTACT FORM (dark card) — shared by index + contact page
   ─────────────────────────────────────────────────────────── */

.contact-form {
  background: var(--dark-paper);
  border: 1px solid var(--line-on-dark);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color-scheme: dark;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-btn);
  padding: 11px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-on-dark-faint); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 4px;
  cursor: pointer;
  border: 0;
  font-family: var(--font);
}

.contact-form-note {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-top: -4px;
  line-height: 1.6;
}
.contact-form-note a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Honeypot — visually hidden but reachable to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact-form { padding: 24px; }
  .contact-form-row { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────
   PAGE-DOC: long-form pages (privacy policy, etc.) override the
   snap-scroll architecture so the body scrolls normally.
   Apply class on the <html> element: <html class="page-doc">.
   ─────────────────────────────────────────────────────────── */

html.page-doc,
html.page-doc body { height: auto; overflow: auto; }

html.page-doc body {
  background: var(--bg-body);
  color: var(--text-primary);
}

.doc-content {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 56px) 24px 80px;
  line-height: 1.7;
}
.doc-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.doc-content .doc-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 40px;
}
.doc-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 36px 0 12px;
  color: var(--text-primary);
}
.doc-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.doc-content p { margin-bottom: 14px; color: var(--text-primary); }
.doc-content ul {
  margin: 8px 0 16px 0;
  padding-left: 22px;
}
.doc-content li { margin-bottom: 6px; }
.doc-content a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-content a:hover { color: var(--primary); }


/* ───────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .section-frame { padding: 0 40px; }
  .banner        { padding-left: 32px; padding-right: 32px; }
  .split-layout  { gap: 48px; }
}

@media (max-width: 900px) {
  html, body { height: auto; overflow: auto; }

  #scrollContainer {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .snap-section {
    height: auto;
    min-height: 0;
    scroll-snap-align: none;
    padding-top: 104px;
    padding-bottom: 72px;
  }

  .section-frame { padding-left: 20px; padding-right: 20px; }
  .banner        { padding: 104px 20px 72px; }

  #scrollDots { display: none; }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split-layout--reverse { direction: ltr; }

  .banner-h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.7rem);
    letter-spacing: -1px;
    margin-bottom: 18px;
  }
  .banner-h2 {
    font-size: clamp(1.7rem, 6.5vw, 2.4rem);
    margin-bottom: 18px;
  }
  .banner-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .section-h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  }
  .section-h2 br { display: none; }
  .section-desc {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .pill-row { gap: 8px; }
  .pill     { padding: 7px 14px; font-size: 12px; }

  .btn-primary { padding: 13px 28px; font-size: 15px; }
  .btn-ghost   { padding: 12px 24px; font-size: 15px; }

  .decor-circle--tr {
    width: 400px; height: 400px;
    top: -170px; right: -130px;
  }
  .decor-circle--bl {
    width: 320px; height: 320px;
    bottom: -130px; left: -110px;
  }
  .decor-grid { background-size: 44px 44px; }
}

@media (max-width: 420px) {
  .snap-section  { padding-top: 96px; padding-bottom: 56px; }
  .section-frame { padding-left: 16px; padding-right: 16px; }
  .banner        { padding: 96px 16px 56px; }

  .banner-h1  { font-size: 1.75rem; }
  .section-h2 { font-size: 1.4rem; }
}

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