/* =============================================================
   SOUTHERN AUTOMATION SERVICES — Design System
   Dark high-tech, warmed by a Southern serif. Handcrafted, no deps.
   ============================================================= */

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* Surfaces */
  --bg:          #080B12;
  --bg-2:        #0B0F19;
  --surface:     #10172499;   /* translucent for glass over aurora */
  --surface-1:   #121A2A;
  --surface-2:   #161F31;
  --surface-3:   #1C2740;
  --border:      rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  /* Text */
  --text:        #EEF2F8;
  --text-muted:  #9DAAC0;
  --text-faint:  #6E7A90;

  /* Brand — dark / white / blue, matched to the logo.
     Legacy --gold and --teal names are kept as aliases so existing
     var(--gold)/var(--teal)/.gold/.teal usages re-theme automatically.
     (Note: avoid a literal star-slash in this comment — it would close
     the comment early and eat the --blue declaration below.) */
  --blue:        #4F9CFF;   /* accent for text & icons on dark */
  --blue-strong: #2A6BE6;   /* solid strong blue (white text) */
  --blue-deep:   #1A4FCC;   /* deep blue — gradient end / shadows */
  --blue-soft:   #BFE0FF;   /* pale blue */
  --cyan:        #38CFEC;   /* logo circuit accent */
  --cyan-2:      #18A8C6;
  --silver:      #D4DEEA;

  --gold:        var(--blue);        /* alias (legacy name) */
  --gold-2:      var(--blue-deep);   /* alias */
  --gold-soft:   var(--blue-soft);   /* alias */
  --teal:        var(--cyan);        /* alias */
  --teal-2:      var(--cyan-2);      /* alias */
  --danger:      #F87171;

  /* Effects */
  --grad-blue:  linear-gradient(135deg, #2A6BE6 0%, #2059D6 55%, #1A4FCC 100%);
  --grad-gold:  var(--grad-blue);    /* alias — deep blue fill, white text */
  --grad-brand: linear-gradient(120deg, #5AD7F2 0%, #28B4DA 100%); /* bright cyan, dark text */
  --grad-text:  linear-gradient(120deg, #FFFFFF 0%, #9AD8FF 50%, #38CFEC 125%);
  --ring:        0 0 0 3px rgba(59,130,246,.5);
  --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
  --shadow-md:   0 14px 40px -18px rgba(0,0,0,.7);
  --shadow-lg:   0 40px 90px -40px rgba(0,0,0,.85);
  --glow-blue:   0 0 60px -10px rgba(59,130,246,.45);
  --glow-gold:   var(--glow-blue);   /* alias */
  --glow-teal:   0 0 60px -10px rgba(56,207,236,.4);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Metrics */
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --radius:   16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --nav-h: 72px;

  /* Z-scale */
  --z-aurora: 0;
  --z-base:   10;
  --z-sticky: 30;
  --z-nav:    50;
  --z-overlay:60;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ----------------------------- Typography ----------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text);
}
.h-display { font-family: var(--font-display); font-optical-sizing: auto; font-size: clamp(2.6rem, 6.4vw, 4.7rem); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; }
h2.section-title, .section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { color: var(--text-muted); }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.3rem); color: var(--text-muted); line-height: 1.6; }
.text-balance { text-wrap: balance; }
.measure { max-width: 62ch; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.serif-italic { font-style: italic; font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--teal { color: var(--teal); }
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow.no-rule::before { display: none; }

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.divider { height: 1px; background: var(--border); border: 0; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .2s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
  background: var(--grad-gold);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(59,130,246,.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(59,130,246,.85); }

.btn--teal { background: var(--teal); color: #042521; box-shadow: 0 10px 30px -12px rgba(56,207,236,.7); }
.btn--teal:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(56,207,236,.85); }

.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.32); transform: translateY(-2px); }

.btn--quiet { padding-inline: .4rem; color: var(--text-muted); }
.btn--quiet:hover { color: var(--text); }

.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.04rem; }
.btn--block { display: flex; width: 100%; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Link with animated underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--gold);
  cursor: pointer;
}
.link-arrow svg { transition: transform .25s ease; width: 1.05em; height: 1.05em; }
.link-arrow:hover svg { transform: translateX(4px); }

/* "Not you? Change" — a <button> wearing link styling. Reset the native button
   chrome so the browser default background can't show through and swallow the
   text on the dark card; it should read as a plain, legible text link. */
.change-choice { -webkit-appearance: none; appearance: none; background: transparent; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--gold); }
.change-choice:hover, .change-choice:focus-visible { text-decoration: underline; }

/* ----------------------------- Badges / pills ----------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem;
  font-size: .82rem; font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(56,207,236,.55); }
.pill--live .dot { animation: pulse-dot 2s ease-out infinite; }
.tag {
  display: inline-block; padding: .25rem .65rem; border-radius: 7px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  background: rgba(56,207,236,.1); color: var(--teal); border: 1px solid rgba(56,207,236,.22);
}
.tag--gold { background: rgba(59,130,246,.12); color: var(--gold-soft); border-color: rgba(59,130,246,.28); }

/* ----------------------------- Cards ----------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.card--hover { cursor: pointer; }
.card--hover:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card--glow:hover { box-shadow: var(--shadow-md), var(--glow-gold); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--teal { background: rgba(56,207,236,.12); border-color: rgba(56,207,236,.28); color: var(--teal); }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .98rem; }

/* Bundle card with gradient hairline on top */
.bundle {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.bundle::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-gold); opacity: .8;
}
.bundle .bundle__num { font-family: var(--font-mono); font-size: .8rem; color: var(--text-faint); letter-spacing: .1em; }
.bundle ul { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.bundle li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--text-muted); }
.bundle li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: .18rem; }
.bundle .bundle__foot { margin-top: auto; padding-top: 1.3rem; }

/* Industry card */
.industry-card {
  display: flex; flex-direction: column; gap: .8rem;
  min-height: 220px;
}
.industry-card .industry-card__top { display:flex; align-items:center; justify-content: space-between; }
.industry-card .arrowbox {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted); transition: all .25s ease;
}
.industry-card:hover .arrowbox { background: var(--blue-strong); color: #ffffff; border-color: transparent; transform: rotate(-45deg); }
.industry-card .pattern { position:absolute; inset: 0; opacity: .5; pointer-events: none; }

/* Step */
.step { position: relative; padding-left: 0; }
.step__n {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: .8rem; display: block;
}
.step h3 { margin-bottom: .4rem; }

/* Stat */
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--text); }
.stat__num .grad-text, .stat__num.grad-text { display: inline-block; }
.stat__label { color: var(--text-muted); font-size: .95rem; margin-top: .5rem; }

/* Founder */
.founder { text-align: left; }
.founder__avatar {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: #fff;
  background: var(--grad-gold); margin-bottom: 1rem; box-shadow: var(--glow-gold);
}
.founder__avatar--teal { background: var(--grad-brand); color: #06222E; }
.founder__role { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }

/* ----------------------------- FAQ ----------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem .25rem;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; color: var(--text);
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary .chev { flex: none; width: 22px; height: 22px; color: var(--text-faint); transition: transform .3s ease, color .2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--gold); }
.faq .faq__body { padding: 0 .25rem 1.4rem; }
.faq .faq__body p { font-size: 1rem; max-width: 70ch; }

/* ----------------------------- Navbar ----------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,11,18,.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }
.brand .brand__logo { width: 40px; height: 40px; flex: none; }
.brand small { display:block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .22em; color: var(--text-faint); text-transform: uppercase; font-weight: 500; margin-top: 2px; }
.brand__name { line-height: 1; }
.brand__lockup { height: clamp(30px, 6vw, 40px); width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a, .nav__links .navlink {
  position: relative; padding: .55rem .8rem; border-radius: 10px;
  font-size: .95rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: color .2s ease, background-color .2s ease;
  background: none; border: 0;
}
.nav__links a:hover, .nav__links .navlink:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content:""; position:absolute; left:.8rem; right:.8rem; bottom:.3rem; height:2px; border-radius:2px; background: var(--gold);
}
.nav__actions { display: flex; align-items: center; gap: .6rem; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__btn { display: inline-flex; align-items: center; gap: .35rem; }
.dropdown__btn .chev { width: 15px; height: 15px; transition: transform .25s ease; }
.dropdown.is-open .dropdown__btn .chev { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; padding: .6rem;
  background: rgba(14,20,32,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: var(--z-overlay);
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* Hover bridge — fills the 10px gap between the button and the menu so the cursor
   never leaves the .dropdown while traveling down to the items. Without it, crossing
   the gap fired mouseleave and closed the menu before you could click an item. */
.dropdown__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dropdown__menu a {
  display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 11px;
  color: var(--text); transition: background-color .2s ease;
}
.dropdown__menu a:hover { background: rgba(255,255,255,.06); }
.dropdown__menu .di { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(59,130,246,.12); color: var(--gold); border: 1px solid rgba(59,130,246,.2); }
.dropdown__menu .di svg { width: 20px; height: 20px; }
.dropdown__menu .dt { display: block; font-size: .95rem; font-weight: 600; line-height: 1.2; }
.dropdown__menu .dd { display: block; margin-top: 3px; font-size: .82rem; line-height: 1.35; color: var(--text-faint); }
.dropdown__menu .di--soon { background: rgba(56,207,236,.1); color: var(--teal); border-color: rgba(56,207,236,.22); }

/* Mobile nav */
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.mobile-menu { display: none; }

@media (max-width: 940px) {
  .nav__links, .nav__actions .btn--primary.desktop-cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-overlay);
    background: rgba(8,11,18,.97); backdrop-filter: blur(10px);
    padding: 1.5rem clamp(1.1rem,4vw,2rem) 2.5rem; overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav__toggle .icon-open { display: none; }
  body.menu-open .nav__toggle .icon-close { display: block; }
  .mobile-menu a, .mobile-menu .m-section-title { display: block; }
  .mobile-menu .m-link { padding: .95rem .25rem; font-size: 1.15rem; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid var(--border); color: var(--text); }
  .mobile-menu .m-section-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); padding: 1.4rem .25rem .4rem; }
  .mobile-menu .m-sub { padding: .7rem .25rem .7rem 1rem; color: var(--text-muted); display: flex; align-items:center; gap:.6rem; }
  .mobile-menu .m-sub svg { width: 18px; height: 18px; color: var(--gold); }
  .mobile-menu .btn { margin-top: 1.6rem; }
}

/* ----------------------------- Aurora / background fx ----------------------------- */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: var(--z-aurora); pointer-events: none; }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.aurora__blob--gold { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.55), transparent 65%); top: -18%; right: -8%; animation: drift1 22s ease-in-out infinite alternate; }
.aurora__blob--teal { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; background: radial-gradient(circle at 60% 40%, rgba(56,207,236,.42), transparent 65%); bottom: -20%; left: -10%; animation: drift2 26s ease-in-out infinite alternate; }
.aurora__grid {
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
}
.noise { position: absolute; inset: 0; opacity: .035; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin: 1.3rem 0; }
.hero .lead { max-width: 36ch; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero__trust { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--text-faint); font-size: .9rem; }
.hero__trust .avatars { display: flex; }
.hero__trust .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; background: var(--surface-3); display:grid; place-items:center; font-size:.7rem; font-weight:600; color: var(--text-muted); }

/* ----------------------------- Demo chat widget ----------------------------- */
.chat {
  position: relative;
  background: linear-gradient(180deg, rgba(20,28,44,.9), rgba(12,17,28,.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(56,207,236,.4);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: 600px;
}
.chat__bar { display:flex; align-items:center; gap:.7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-brand); display:grid; place-items:center; color:#04201c; flex:none; }
.chat__avatar svg { width: 20px; height: 20px; }
.chat__who { line-height: 1.2; }
.chat__who strong { font-size: .95rem; }
.chat__who span { font-size: .76rem; color: var(--teal); display:flex; align-items:center; gap:.35rem; }
.chat__who .dot { width:7px; height:7px; border-radius:50%; background: var(--teal); animation: pulse-dot 2s infinite; }
.chat__phone { margin-left:auto; display:flex; gap:.4rem; }
.chat__phone span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }

.chat__body { padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; overflow-y: auto; flex: 1; min-height: 300px; scroll-behavior: smooth; }
.msg { max-width: 84%; padding: .7rem 1rem; border-radius: 16px; font-size: .94rem; line-height: 1.5; animation: msg-in .35s cubic-bezier(.2,.7,.3,1) both; }
.msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.msg--user { align-self: flex-end; background: var(--grad-gold); color: #fff; border-bottom-right-radius: 5px; font-weight: 500; }
.msg--system { align-self: center; max-width: 92%; background: rgba(56,207,236,.08); border: 1px solid rgba(56,207,236,.25); color: var(--text); font-size: .86rem; border-radius: 12px; }
.msg--system .sys-row { display:flex; gap:.6rem; align-items:flex-start; }
.msg--system svg { width: 18px; height:18px; color: var(--teal); flex:none; margin-top:.1rem; }
.msg strong.label { color: var(--teal); font-family: var(--font-mono); font-size: .72rem; letter-spacing:.05em; display:block; margin-bottom:.2rem; text-transform:uppercase;}

.typing { align-self: flex-start; display:flex; gap:5px; padding: .85rem 1rem; background: var(--surface-2); border:1px solid var(--border); border-radius: 16px; border-bottom-left-radius:5px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); animation: typing 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.18s; } .typing span:nth-child(3){ animation-delay:.36s; }

.chat__foot { border-top: 1px solid var(--border); padding: .85rem; background: rgba(255,255,255,.02); }
.quick { display:flex; flex-wrap: wrap; gap:.5rem; }
.quick button {
  padding:.5rem .85rem; border-radius: 999px; border:1px solid var(--border-strong);
  background: rgba(255,255,255,.04); color: var(--text); font-size:.85rem; cursor:pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.quick button:hover { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.4); }
.quick button:active { transform: scale(.97); }
.chat__form { display:flex; gap:.5rem; align-items:center; }
.chat__form input { flex:1; padding:.7rem .9rem; border-radius: 999px; border:1px solid var(--border-strong); background: rgba(255,255,255,.04); color: var(--text); font-size:.92rem; }
.chat__form input::placeholder { color: var(--text-faint); }
.chat__form button { width: 44px; height:44px; border-radius:50%; border:0; background: var(--grad-gold); color:#fff; cursor:pointer; display:grid; place-items:center; flex:none; transition: transform .15s ease; }
.chat__form button:hover { transform: scale(1.06); }
.chat__form button svg { width:20px; height:20px; }
.chat__note { text-align:center; font-size:.72rem; color: var(--text-faint); margin-top:.6rem; font-family: var(--font-mono); letter-spacing:.03em; }

/* ----------------------------- Forms ----------------------------- */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .9rem; font-weight: 500; color: var(--text); }
.field label .req { color: var(--gold); }
.field input, .field textarea, .field select {
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03); color: var(--text); font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(59,130,246,.18); background: rgba(255,255,255,.05); }
.field textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; align-items: flex-start; gap: .8rem;
  padding: 1.1rem 1.2rem; border-radius: 14px; background: rgba(56,207,236,.1); border: 1px solid rgba(56,207,236,.3); color: var(--text);
}
.form-success.show { display: flex; }
.form-success svg { width: 24px; height: 24px; color: var(--teal); flex: none; }

/* Stepper — two-phase booking flow (details → pick a time) on schedule.html */
.stepper { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stepper__step { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-faint); transition: color .3s ease; white-space: nowrap; }
.stepper__num { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; color: var(--text-faint); background: rgba(255,255,255,.03); border: 1px solid var(--border-strong); transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.stepper__step.is-active { color: var(--text); }
.stepper__step.is-active .stepper__num { background: var(--grad-gold); color: #fff; border-color: transparent; box-shadow: 0 0 0 4px rgba(59,130,246,.16); }
.stepper__step.is-done { color: var(--teal); }
.stepper__step.is-done .stepper__num { background: rgba(56,207,236,.14); color: var(--teal); border-color: rgba(56,207,236,.4); }
.stepper__line { flex: 1; min-width: 16px; height: 1px; background: var(--border); }

/* ----------------------------- Marquee ----------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .08em; color: var(--text-faint); text-transform: uppercase; display:flex; align-items:center; gap: 3.5rem; }
.marquee__track span::after { content: "✦"; color: var(--gold); opacity:.6; }

/* ----------------------------- CTA band ----------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(56,207,236,.08));
  padding: clamp(2.4rem, 5vw, 4.2rem);
  text-align: center;
}
.cta-band .aurora__blob--gold { opacity: .35; }

/* ----------------------------- Footer ----------------------------- */
.footer { border-top: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer ul a { color: var(--text-muted); font-size: .95rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--gold); }
.footer__brand p { font-size: .95rem; max-width: 32ch; margin-top: 1rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }

/* ----------------------------- Sticky mobile CTA ----------------------------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(120%);
  z-index: var(--z-sticky); width: calc(100% - 2rem); max-width: 420px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
  box-shadow: var(--shadow-lg);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
@media (min-width: 941px) { .sticky-cta { display: none; } }

/* ----------------------------- Scroll reveal ----------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ----------------------------- Keyframes ----------------------------- */
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-6%, 7%) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(8%, -6%) scale(1.15); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(56,207,236,.55); } 70% { box-shadow: 0 0 0 8px rgba(56,207,236,0); } 100% { box-shadow: 0 0 0 0 rgba(56,207,236,0); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes float-y { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin-slow 18s linear infinite; }
.float { animation: float-y 5s ease-in-out infinite alternate; }

/* ----------------------------- Utilities ----------------------------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; }
.gap-sm { gap: .6rem; }
.relative { position: relative; }
.z-base { position: relative; z-index: var(--z-base); }
.full-w { width: 100%; }
.hide { display: none !important; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.gold { color: var(--gold); }
.teal { color: var(--teal); }
.nowrap { white-space: nowrap; }
.list-check { list-style: none; padding: 0; display: grid; gap: .8rem; }
.list-check li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-muted); }
.list-check li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: .15rem; }

/* ----------------------------- Pricing ----------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card--featured { border-color: rgba(59,130,246,.5); box-shadow: var(--shadow-md), var(--glow-gold); }
.price-card--featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-gold); }
.price__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-gold); color: #fff; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; }
.price__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.price__tagline { color: var(--text-muted); font-size: .92rem; min-height: 2.6em; margin-top: .3rem; }
.price__amount { display: flex; align-items: flex-end; gap: .3rem; margin: 1.2rem 0 .2rem; }
.price__amount .num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--text); }
.price__amount .per { color: var(--text-faint); font-size: .9rem; padding-bottom: .35rem; }
.price__setup { font-size: .9rem; color: var(--text-muted); }
.price__setup b { color: var(--gold); }
.price__roi { margin: 1.1rem 0; padding: .8rem 1rem; border-radius: 12px; background: rgba(56,207,236,.08); border: 1px solid rgba(56,207,236,.2); font-size: .88rem; color: var(--text); }
.price-card .list-check { margin: .4rem 0 1.6rem; }
.price-card .list-check li { font-size: .94rem; }
.price-card .price__foot { margin-top: auto; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .price-card--featured { order: -1; } }

/* ----------------------------- Timeline ----------------------------- */
.timeline { position: relative; display: grid; gap: 1.4rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--teal)); opacity: .4; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -2rem; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.timeline__item h3 { font-size: 1.2rem; margin-bottom: .3rem; }

/* ----------------------------- Demo page ----------------------------- */
.demo-stage { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: calc(var(--nav-h) + 2rem) 0 4rem; position: relative; }
.demo-stage .chat { width: 100%; max-width: 480px; max-height: 660px; }
.demo-layout { display: grid; grid-template-columns: 1fr 480px; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 980px) { .demo-layout { grid-template-columns: 1fr; } .demo-layout .demo-copy { text-align: center; } .demo-stage .chat { margin-inline: auto; } }

/* ----------------------------- Call-the-demo card ----------------------------- */
.call-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .85rem;
  text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,28,44,.9), rgba(12,17,28,.92));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(56,207,236,.4);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.call-card .pill { margin-bottom: .2rem; }
.call-card__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(56,207,236,.12); border: 1px solid rgba(56,207,236,.28); color: var(--teal); }
.call-card__icon svg { width: 30px; height: 30px; }
.call-card__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.call-card__number {
  display: inline-block; padding: .35rem .7rem; margin: -.1rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1; letter-spacing: -.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .2s ease;
}
.call-card__number:hover { filter: brightness(1.12); }
.call-card__copy { font-size: .98rem; color: var(--text-muted); max-width: 36ch; }
.call-card .btn { margin-top: .3rem; }
.call-card__note { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; color: var(--text-faint); margin-top: .2rem; }
.call-card--lg .call-card__number { font-size: clamp(2.4rem, 8vw, 4rem); }

/* ----------------------------- FAQ + compact assistant ----------------------------- */
.faq-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }
.faq-aside__head { margin-bottom: 1rem; }
.faq-aside__head h3 { font-size: 1.15rem; }
.faq-aside__head p { font-size: .92rem; margin-top: .3rem; }
.chat--compact { max-height: 470px; }
.chat--compact .chat__body { min-height: 200px; max-height: 300px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: 52ch; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1; }
  .section { padding-block: clamp(3.5rem, 12vw, 5rem); }
}

/* ----------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .aurora__blob, .marquee__track, .spin-slow, .float { animation: none !important; }
}
