/* =============================================================================
   Cloudinero — marketing site styles (v2, static)
   Hand-written CSS. Design tokens in :root. See DESIGN_REF.md.
   ========================================================================== */

/* ----- Tokens ------------------------------------------------------------ */
:root {
  /* color — aligned with the dashboard's locked palette (apps/dashboard):
     neutral = Tailwind slate ramp, accent = brand sky-blue (#0EA5E9),
     semantics = emerald / rose. Dark theme = slate ramp read top-down. */
  --bg: #020617;        /* slate-950 */
  --surface: #0F172A;   /* slate-900 */
  --surface-2: #1E293B; /* slate-800 */
  --line: #273449;      /* slate-800/700 hairline */
  --line-2: #3A475F;    /* slate-700 hover/focus border */

  --text: #E2E8F0;      /* slate-200 */
  --text-muted: #94A3B8;/* slate-400 */
  --text-faint: #64748B;/* slate-500 */

  --brand: #0EA5E9;       /* brand-500 — dashboard anchor */
  --brand-bright: #38BDF8;/* brand-400 — links / hover on dark */
  --brand-dim: #0369A1;   /* brand-700 — pressed / gradient end */
  --on-brand: #04121C;

  --pos: #34D399;       /* emerald-400 — savings / positive */
  --neg: #FB7185;       /* rose-400 — overspend / error */

  /* data-encoding series — the dashboard's real provider colors
     (out of the UI palette cap; data encoding only). AWS / GCP / Azure. */
  --s1: #FF9900;
  --s2: #4285F4;
  --s3: #0078D4;

  /* type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.25rem;
  --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
  --fs-display: clamp(2.25rem, 6vw, 4rem);

  /* layout */
  --container: 1120px;
  --gutter: 20px;
  --radius: 8px;
  --radius-card: 12px;
  --radius-lg: 16px;

  /* motion */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 64px;
}

/* ----- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }

/* ----- Utilities --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

.skip-link {
  position: absolute; left: 12px; top: -56px;
  background: var(--brand); color: var(--on-brand);
  padding: 12px 16px; border-radius: var(--radius); font-weight: 600;
  z-index: 100; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: var(--fs-xs); font-weight: 700; color: var(--brand);
  margin-bottom: 12px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: var(--fs-h2); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-sm);
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 12px 24px; min-height: 44px; white-space: nowrap;
  transition: transform 0.12s var(--ease-out), background 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out);
}
.btn-sm { padding: 8px 16px; min-height: 40px; }
.btn-lg { padding: 16px 32px; min-height: 52px; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand); color: var(--on-brand); font-weight: 700;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
}
.btn-primary:hover {
  background: var(--brand-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -8px rgba(14, 165, 233, 0.6);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-bright); background: rgba(14, 165, 233, 0.06); }
.btn-ghost:active { transform: scale(0.98); }

.icon-arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }

/* ----- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.site-header.scrolled { background: var(--bg); border-bottom-color: var(--line); }
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); }
.brand-name { color: var(--text); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-mark { flex: none; }

.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; transition: color 0.18s var(--ease-out); }
.nav-links > a:not(.btn):hover { color: var(--text); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
}
.menu-toggle:hover { border-color: var(--line-2); }

.mobile-drawer {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px var(--gutter) 20px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.mobile-drawer[hidden] { display: none; }
.site-header.menu-open .mobile-drawer { opacity: 1; transform: none; }
.mobile-drawer > a:not(.btn) {
  padding: 12px 8px; color: var(--text-muted); font-weight: 500;
  border-radius: var(--radius); border-bottom: 1px solid var(--line);
}
.mobile-drawer > a:not(.btn):hover { color: var(--text); background: var(--surface); }
.mobile-drawer .btn { margin-top: 12px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-drawer { display: none; }
}

/* ----- Section rhythm ---------------------------------------------------- */
section { position: relative; }
.stat-section, .features-section, .faq-section { background: var(--surface); border-block: 1px solid var(--line); }
.how-section, .showcase, .ea-section { background: var(--bg); }
.how-section, .features-section, .stat-section, .faq-section,
.showcase, .ea-section { padding-block: clamp(64px, 9vw, 112px); }

/* ----- Hero -------------------------------------------------------------- */
.hero { overflow: hidden; padding: 88px 0 64px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(14, 165, 233, 0.22), transparent 70%),
    radial-gradient(50% 50% at 8% 0%, rgba(2, 132, 199, 0.12), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero-copy h1 {
  font-size: var(--fs-display); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.025em; text-wrap: balance; max-width: 16ch;
}
.hero-copy .lead {
  margin-top: 20px; font-size: var(--fs-lg); color: var(--text-muted);
  max-width: 46ch; line-height: 1.55;
}
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.integrations { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.integrations-label { font-size: var(--fs-xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.integrations-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.integrations-list li { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.integrations-list li + li { position: relative; padding-left: 20px; }
.integrations-list li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 999px; background: var(--line-2); transform: translateY(-50%); }

@media (min-width: 900px) {
  .hero { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding-top: 96px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

/* overflow safety: no grid child may force the page sideways on mobile */
.hero-grid > *, .stat-grid > *, .showcase-grid > *,
.ea-grid > *, .faq-grid > *, .bento > *, .steps > * { min-width: 0; }

/* ----- Product mockup panel --------------------------------------------- */
.panel {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; min-width: 0;
}
.hero-mockup { animation: float 7s var(--ease-out) infinite; will-change: transform; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); }
.panel-sub { font-size: var(--fs-xs); color: var(--text-faint); }

.panel-figure { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.figure-main { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.figure-delta { font-size: var(--fs-xs); font-weight: 600; }

.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 16px 0 12px; background: var(--surface); }
.seg { height: 100%; }
.seg-1 { background: var(--s1); } .seg-2 { background: var(--s2); } .seg-3 { background: var(--s3); }

.legend { list-style: none; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); }
.legend b { margin-left: auto; color: var(--text); font-weight: 600; font-size: var(--fs-sm); }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.swatch.s1 { background: var(--s1); } .swatch.s2 { background: var(--s2); } .swatch.s3 { background: var(--s3); }

.panel-rows { margin-top: 16px; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.row-label { color: var(--text-muted); min-width: 0; }
.row-val { margin-left: auto; font-weight: 700; }

.dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.dot-live { background: var(--brand); box-shadow: 0 0 0 0 rgba(39,184,242,0.6); animation: pulse 2.4s var(--ease-out) infinite; }
.dot-neg { background: var(--neg); }
.dot-pos { background: var(--pos); }

/* ----- Stat section ------------------------------------------------------ */
.stat-grid { display: grid; gap: 32px; align-items: center; }
.stat-big {
  font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-copy h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.stat-copy p { color: var(--text-muted); max-width: 52ch; }
.stat-copy .cite { margin-top: 16px; font-size: var(--fs-sm); color: var(--text-faint); }
.stat-copy .cite a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.stat-copy .cite a:hover { color: var(--brand-bright); }
@media (min-width: 760px) { .stat-grid { grid-template-columns: auto 1fr; gap: 56px; } }

/* ----- How it works ------------------------------------------------------ */
.steps { list-style: none; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 28px 24px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.step-num {
  position: absolute; top: 20px; right: 24px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.step-icon {
  display: inline-flex; width: 48px; height: 48px; border-radius: 12px;
  align-items: center; justify-content: center; color: var(--brand);
  background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.2);
  margin-bottom: 16px;
}
.step h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--text-muted); font-size: var(--fs-base); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ----- Features bento ---------------------------------------------------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  min-width: 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tile-icon { display: inline-flex; color: var(--brand); flex: none; }
.tile h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
.tile p { color: var(--text-muted); font-size: var(--fs-base); }

.tile-lg { display: flex; flex-direction: column; }
.tile-visual { margin-top: auto; padding-top: 24px; }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.mini-bars span {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand), rgba(14, 165, 233, 0.15));
}

@media (min-width: 680px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-lg { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .tile-lg { grid-column: span 2; grid-row: span 2; }
}

/* ----- Showcase ---------------------------------------------------------- */
.showcase { overflow: hidden; }
.showcase-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(45% 60% at 85% 50%, rgba(52, 211, 153, 0.09), transparent 70%);
}
.showcase-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.showcase-copy h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.showcase-copy > p { color: var(--text-muted); max-width: 46ch; margin-bottom: 24px; }

.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 28px; color: var(--text); font-weight: 500;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230EA5E9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.rec-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 8px; }
.rec-list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.18s var(--ease-out);
}
.rec-list li:hover { border-color: var(--line-2); }
.rec-name { font-weight: 600; font-size: var(--fs-sm); min-width: 0; }
.rec-meta { grid-row: 2; font-size: var(--fs-xs); color: var(--text-faint); }
.rec-save { grid-row: 1 / span 2; font-weight: 700; font-size: var(--fs-base); }

@media (min-width: 900px) { .showcase-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ----- FAQ --------------------------------------------------------------- */
.faq-grid { display: grid; gap: 32px; }
.faq-head { margin-bottom: 0; }
.faq-aside { margin-top: 16px; color: var(--text-muted); font-size: var(--fs-sm); }
.faq-aside a { color: var(--brand-bright); text-decoration: underline; text-underline-offset: 2px; }

.faq-list { display: grid; gap: 0; align-content: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-weight: 600; font-size: var(--fs-lg); list-style: none;
  cursor: pointer; transition: color 0.18s var(--ease-out);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand-bright); }
.chev { position: relative; flex: none; width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.chev::before, .chev::after {
  content: ""; position: absolute; top: 8px; width: 11px; height: 2px; border-radius: 2px; background: currentColor;
}
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
.faq-list details[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 4px 24px; }
.faq-body p { color: var(--text-muted); max-width: 60ch; }
.faq-list details[open] .faq-body { animation: fade-in 0.3s var(--ease-out); }

@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ----- Early access ------------------------------------------------------ */
.ea-section { overflow: hidden; }
.ea-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 60% at 50% 0%, rgba(14, 165, 233, 0.14), transparent 70%);
}
.ea-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: start; }
.ea-copy h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.ea-copy > p { color: var(--text-muted); max-width: 44ch; margin-bottom: 24px; }
.ea-trust {
  margin-top: 24px; display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--text-faint);
}
.ea-trust svg { color: var(--brand); flex: none; }

.ea-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.ea-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-size: var(--fs-sm); font-weight: 600; color: var(--text); padding: 0; }

.ea-form input[type="email"], .ea-form input[type="text"], .ea-form select {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: var(--fs-base);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.ea-form input::placeholder { color: var(--text-faint); }
.ea-form input:focus, .ea-form select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}
.ea-form .field.invalid input, .ea-form .field.invalid select { border-color: var(--neg); }
.ea-form .field.invalid input:focus, .ea-form .field.invalid select:focus { box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.25); }
.shake { animation: shake 0.4s ease-in-out; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); font-size: var(--fs-sm); font-weight: 500;
  cursor: pointer; transition: border-color 0.16s var(--ease-out), background 0.16s var(--ease-out);
}
.check:hover { border-color: var(--line-2); }
.check:has(input:checked) { border-color: var(--brand); background: rgba(14, 165, 233, 0.08); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

.field-error { color: var(--neg); font-size: var(--fs-xs); font-weight: 500; }
.form-note { font-size: var(--fs-xs); color: var(--text-faint); text-align: center; }
.form-alert {
  font-size: var(--fs-sm); color: var(--neg); font-weight: 500; text-align: center;
  background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: var(--radius); padding: 12px 16px;
}

/* submit button states */
#ea-submit .spinner { display: none; }
#ea-submit.loading { pointer-events: none; opacity: 0.85; }
#ea-submit.loading .btn-label, #ea-submit.loading .icon-arrow { display: none; }
#ea-submit.loading .spinner { display: block; animation: spin 0.7s linear infinite; }

.ea-success { text-align: center; padding: 24px 8px; animation: fade-in 0.4s var(--ease-out); }
.success-mark {
  display: inline-flex; width: 56px; height: 56px; border-radius: 999px;
  align-items: center; justify-content: center; color: var(--pos);
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 16px;
}
.ea-success h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 8px; }
.ea-success p { color: var(--text-muted); max-width: 36ch; margin-inline: auto; }

@media (min-width: 900px) { .ea-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-tag { color: var(--text-muted); font-size: var(--fs-sm); max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); font-weight: 700; }
.footer-col a { color: var(--text-muted); font-size: var(--fs-sm); transition: color 0.16s var(--ease-out); width: max-content; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 24px; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-faint);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }

/* ----- Reveal on scroll -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* staggered cascade when a group enters together */
.steps .step:nth-child(2), .bento .tile:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3), .bento .tile:nth-child(3) { transition-delay: 0.16s; }
.bento .tile:nth-child(4) { transition-delay: 0.24s; }
.bento .tile:nth-child(5) { transition-delay: 0.32s; }
.bento .tile:nth-child(6) { transition-delay: 0.40s; }

/* ----- Keyframes --------------------------------------------------------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* pause looping animations when tab is hidden (JS toggles body.paused) */
body.paused .hero-mockup, body.paused .dot-live { animation-play-state: paused; }

/* ----- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-mockup { animation: none; }
}
