/* ============================================================================
   ATLADEUS — marketing site design system
   Mirrors the app's palette: ink-navy + brass + cyan (dark) · cream + bronze (light)
   Tokens, theme switch via <html data-theme="light">. Zero build, vanilla CSS.
   ========================================================================== */

/* ---- Self-hosted fonts (latin, variable woff2) — no third-party request, OFL ---- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 520; font-display: swap; src: url('../fonts/fraunces.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/jetbrainsmono.woff2') format('woff2'); }

/* ---- Tokens — DARK (default) ------------------------------------------- */
:root {
  --app-bg:      #0a0e14;
  --bg-1:        #0c1119;          /* raised surface */
  --bg-2:        #11161f;          /* card */
  --panel:       rgba(14, 18, 26, 0.72);
  --panel-solid: #0e131c;

  --tx-1:        #e6edf3;          /* primary */
  --tx-2:        #9fc0cd;          /* secondary */
  --tx-3:        #6f95a5;          /* tertiary / labels */

  --brass:       #c2a06a;
  --brass-soft:  rgba(194,160,106,0.14);
  --brass-line:  rgba(194,160,106,0.34);
  --gold-1:      #f7e7b6;          /* brass gradient (logo + headline accent) */
  --gold-2:      #e2c270;
  --gold-3:      #c69a30;

  --ac:          #38d2e6;          /* cyan tech accent */
  --ac-bright:   #6fe9f7;
  --ac-rgb:      56, 210, 230;
  --ac-2:        #2aa7d4;
  --ac-3:        #1d8bb5;

  --line:        rgba(255,255,255,0.08);
  --line-2:      rgba(255,255,255,0.14);
  --glow:        rgba(56,210,230,0.12);

  --shadow-1: 0 1px 2px rgba(0,0,0,0.30), 0 6px 18px rgba(0,0,0,0.34);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.40), 0 32px 70px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px var(--brass-line), 0 18px 50px rgba(0,0,0,0.5);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: 0.035;
  color-scheme: dark;
}

/* ---- Tokens — LIGHT ----------------------------------------------------- */
html[data-theme="light"] {
  --app-bg:      #e8dfce;
  --bg-1:        #f3ecde;
  --bg-2:        #f9f4ea;
  --panel:       rgba(249, 244, 234, 0.82);
  --panel-solid: #f6efe2;

  --tx-1:        #332b1f;
  --tx-2:        #54462f;
  --tx-3:        #6a5838;

  --brass:       #9a743e;
  --brass-soft:  rgba(154,116,62,0.14);
  --brass-line:  rgba(154,116,62,0.36);
  --gold-1:      #b9924e;
  --gold-2:      #9a743e;
  --gold-3:      #7a5a2c;

  --ac:          #b8925a;
  --ac-bright:   #caa566;
  --ac-rgb:      184, 146, 88;
  --ac-2:        #b08a4e;
  --ac-3:        #8f6f3a;

  --line:        rgba(96,74,42,0.14);
  --line-2:      rgba(96,74,42,0.24);
  --glow:        rgba(184,146,88,0.16);

  --shadow-1: 0 1px 2px rgba(120,96,56,0.10), 0 6px 18px rgba(120,96,56,0.12);
  --shadow-2: 0 10px 30px rgba(120,96,56,0.16), 0 32px 70px rgba(120,96,56,0.18);
  --shadow-glow: 0 0 0 1px var(--brass-line), 0 18px 50px rgba(120,96,56,0.18);

  --grain: 0.02;
  color-scheme: light;
}

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

body {
  font-family: var(--font-body);
  background: var(--app-bg);
  color: var(--tx-1);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 600ms var(--ease), color 600ms var(--ease);
  min-height: 100vh;
}

/* page-wide atmospheric wash + film grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, var(--glow) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 88% 8%, rgba(var(--ac-rgb),0.06) 0%, transparent 50%);
  transition: opacity 600ms var(--ease);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--brass); color: var(--app-bg); }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 15px;
  border-radius: 999px; background: var(--tx-1); color: var(--app-bg); font-weight: 600;
  transform: translateY(-160%); transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); position: relative; z-index: 1; }
.section { padding: clamp(72px, 11vw, 160px) 0; position: relative; z-index: 1; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }
main { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass-line); }

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 380; line-height: 1.04; letter-spacing: -0.012em; color: var(--tx-1); }
.display { font-size: clamp(2.8rem, 7.4vw, 6rem); font-weight: 360; line-height: 0.98; }
h2.title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 380; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 420; line-height: 1.12; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: var(--tx-2); line-height: 1.62; max-width: 60ch; font-weight: 350; }
.italic { font-style: italic; }
.gold {
  background: linear-gradient(105deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--tx-2); }
.faint { color: var(--tx-3); }
.mono { font-family: var(--font-mono); }

.section-head { max-width: 760px; margin: 0 auto clamp(44px, 6vw, 80px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .lead { margin: 22px auto 0; }
.section-head.left .lead { margin-left: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius-full, 999px); border-radius: 999px;
  font-weight: 540; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  white-space: nowrap; position: relative; will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: #1a130a; box-shadow: 0 6px 24px rgba(198,154,48,0.30), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(198,154,48,0.42), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn--ghost { border: 1px solid var(--brass-line); color: var(--tx-1); background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brass); box-shadow: var(--shadow-1); }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brass); font-weight: 520; font-size: 15px; transition: gap 220ms var(--ease); }
.link-arrow:hover { gap: 14px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---- Header / nav ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 5vw, 40px);
  border-bottom: 1px solid transparent;
  transition: background 400ms var(--ease), border-color 400ms var(--ease), padding 400ms var(--ease);
}
.nav.scrolled {
  background: var(--panel); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: var(--line); padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; box-shadow: 0 0 18px rgba(214,175,90,0.28); flex: 0 0 auto; }
.brand-mark svg { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-body); font-size: 15px; letter-spacing: 0.2em; font-weight: 600; }
.brand-sub { font-size: 9px; letter-spacing: 0.34em; color: var(--tx-3); display: block; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 480; color: var(--tx-2);
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.nav-links a:hover { color: var(--tx-1); background: var(--brass-soft); }
.nav-links a.active { color: var(--brass); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--brass-line);
  display: grid; place-items: center; color: var(--brass); background: var(--panel);
  transition: transform 400ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.theme-toggle:hover { border-color: var(--brass); background: var(--brass-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .moon { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: block; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-scrim { display: none; }
.nav-drawer-head, .nav-mobile-cta { display: none; }

/* mobile menu */
@media (max-width: 880px) {
  .nav { gap: 10px; padding-inline: clamp(14px, 4vw, 24px); }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 390px); min-height: 100vh; min-height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    background: var(--panel-solid); background: color-mix(in srgb, var(--panel-solid) 96%, transparent); border-left: 1px solid var(--line);
    transform: translateX(104%); visibility: hidden; pointer-events: none;
    transition: transform 420ms var(--ease), visibility 420ms; z-index: 121;
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
    box-shadow: var(--shadow-2); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav-links > a { padding: 14px 16px; min-height: 52px; display: flex; align-items: center; font-size: 17px; border-radius: 12px; }
  .nav-links > a.active { background: var(--brass-soft); }
  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 0 4px 18px; border-bottom: 1px solid var(--line); }
  .nav-drawer-title { font-family: var(--font-mono); color: var(--tx-3); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
  .nav-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 12px; color: var(--tx-1); }
  .nav-close:hover { border-color: var(--brass); background: var(--brass-soft); }
  .nav-close svg { width: 20px; height: 20px; }
  .nav-mobile-cta { display: inline-flex; margin-top: auto; min-height: 50px; }
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 99; background: rgba(2, 5, 10, .66);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 300ms var(--ease), visibility 300ms;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .nav-scrim.open { opacity: 1; visibility: visible; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 128px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 9px; border-radius: 999px;
  border: 1px solid var(--brass-line); background: var(--panel); font-size: 12.5px; color: var(--tx-2);
  letter-spacing: 0.02em; margin-bottom: 26px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ac); box-shadow: 0 0 10px var(--ac); animation: pulse 2.4s var(--ease) infinite; }
.hero-badge b { color: var(--brass); font-weight: 600; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 420; line-height: 1; color: var(--tx-1); }
.stat .l { font-size: 13px; color: var(--tx-3); margin-top: 7px; letter-spacing: 0.02em; }

/* command-bar typewriter */
.cmdbar {
  margin-top: 2px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--brass-line); background: var(--panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 14px; color: var(--tx-1); box-shadow: var(--shadow-1); max-width: 460px;
}
.cmdbar .k { color: var(--brass); font-size: 12px; border: 1px solid var(--brass-line); border-radius: 6px; padding: 2px 7px; }
.cmdbar .typed { color: var(--tx-1); }
.cmdbar .caret { width: 2px; height: 18px; background: var(--ac); display: inline-block; animation: blink 1s steps(2) infinite; }

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Cards / bento ------------------------------------------------------ */
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden;
  transition: transform 360ms var(--ease), border-color 360ms var(--ease), box-shadow 360ms var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--brass-line); box-shadow: var(--shadow-2); }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(150deg, var(--brass-soft), rgba(var(--ac-rgb),0.06)); border: 1px solid var(--brass-line); color: var(--brass);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--tx-2); font-size: 15.5px; }
.card .corner { position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle at top right, var(--glow), transparent 70%); opacity: 0; transition: opacity 360ms var(--ease); }
.card:hover .corner { opacity: 1; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento .card, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .card { grid-column: 1; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---- Split feature rows ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.split.flip .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip .split-media { order: 0; } }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--tx-2); margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--tx-1); font-size: 15.5px; }
.checklist svg { width: 20px; height: 20px; color: var(--brass); flex: 0 0 auto; margin-top: 2px; }
.split-media {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--brass-line);
  background: linear-gradient(160deg, var(--bg-1), var(--app-bg)); box-shadow: var(--shadow-glow); aspect-ratio: 4 / 3;
}

/* ---- Mode tabs (Design/Build/Automate/Walk) ----------------------------- */
.modes { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }
.mode-list { display: flex; flex-direction: column; gap: 10px; }
.mode-tab {
  text-align: left; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color 280ms var(--ease), background 280ms var(--ease), transform 280ms var(--ease); position: relative;
}
.mode-tab:hover { border-color: var(--brass-line); }
.mode-tab.active { border-color: var(--brass); background: linear-gradient(150deg, var(--brass-soft), transparent); }
.mode-tab .mt-top { display: flex; align-items: center; gap: 12px; }
.mode-tab .num { font-family: var(--font-mono); font-size: 12px; color: var(--brass); }
.mode-tab h3 { font-size: 1.25rem; }
.mode-tab p { color: var(--tx-2); font-size: 14.5px; margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 360ms var(--ease), opacity 360ms var(--ease), margin 360ms var(--ease); }
.mode-tab.active p { max-height: 120px; opacity: 1; margin-top: 12px; }
.mode-stage {
  border-radius: var(--radius); border: 1px solid var(--brass-line); background: radial-gradient(120% 120% at 50% 0%, var(--bg-1), var(--app-bg));
  box-shadow: var(--shadow-glow); position: relative; overflow: hidden; min-height: 420px; display: grid; place-items: center;
}
.mode-panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: scale(0.98); transition: opacity 500ms var(--ease), transform 500ms var(--ease); pointer-events: none; }
.mode-panel.active { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Interactive routine player (the "what it solves" demo) ------------- */
.demo { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 880px) { .demo { grid-template-columns: 1fr; } }
.scene-btns { display: flex; flex-direction: column; gap: 11px; }
.scene-btn {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-2); transition: all 260ms var(--ease); text-align: left;
}
.scene-btn:hover { border-color: var(--brass-line); transform: translateX(4px); }
.scene-btn.active { border-color: var(--brass); background: linear-gradient(120deg, var(--brass-soft), transparent); box-shadow: var(--shadow-1); }
.scene-btn .si { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brass-soft); border: 1px solid var(--brass-line); color: var(--brass); flex: 0 0 auto; }
.scene-btn .si svg { width: 19px; height: 19px; }
.scene-btn b { display: block; font-weight: 560; font-size: 15.5px; }
.scene-btn span { font-size: 13px; color: var(--tx-3); }
.scene-stage { border-radius: var(--radius); border: 1px solid var(--brass-line); background: linear-gradient(160deg, var(--bg-1), var(--app-bg)); box-shadow: var(--shadow-glow); padding: 8px; overflow: hidden; }
.scene-stage svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.scene-caption { margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--tx-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 20px; }
.scene-caption .tag { color: var(--brass); }

/* ---- Integrations ------------------------------------------------------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.logos .logo { background: var(--bg-1); padding: 28px 20px; display: grid; place-items: center; gap: 10px; transition: background 300ms var(--ease); }
.logos .logo:hover { background: var(--bg-2); }
.logos .logo svg { width: 34px; height: 34px; color: var(--tx-2); }
.logos .logo span { font-size: 13px; color: var(--tx-3); letter-spacing: 0.04em; }

/* ---- Spec strip --------------------------------------------------------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 740px) { .specs { grid-template-columns: 1fr 1fr; } }
.spec { background: var(--bg-1); padding: clamp(24px, 3vw, 40px); }
.spec .n { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 400; line-height: 1; }
.spec .n .gold, .spec .n { background: linear-gradient(120deg, var(--gold-1), var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec .l { color: var(--tx-2); font-size: 14px; margin-top: 12px; }

/* ---- Pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; min-width: 0; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; position: relative; transition: transform 360ms var(--ease), border-color 360ms var(--ease); }
.plan:hover { transform: translateY(-5px); }
.plan.featured { border-color: var(--brass); background: linear-gradient(170deg, var(--brass-soft), var(--bg-2) 40%); box-shadow: var(--shadow-2); }
.plan .ribbon { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass-line); padding: 5px 11px; border-radius: 999px; }
.plan .pname { font-family: var(--font-display); font-size: 1.5rem; }
.plan .ptag { color: var(--tx-3); font-size: 14px; margin-top: 4px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 26px 0 6px; }
.plan .price .amt { font-family: var(--font-display); font-size: 3.2rem; font-weight: 400; line-height: 1; }
.plan .price .per { color: var(--tx-3); font-size: 14px; }
.plan .pfeat { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 13px; border-top: 1px solid var(--line); padding-top: 26px; }
.plan .pfeat li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--tx-2); }
.plan .pfeat svg { width: 18px; height: 18px; color: var(--brass); flex: 0 0 auto; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* billing toggle */
.bill-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); margin: 0 auto; }
.bill-toggle button { padding: 9px 20px; border-radius: 999px; font-size: 14px; color: var(--tx-2); font-weight: 500; transition: all 240ms var(--ease); }
.bill-toggle button.active { background: var(--brass); color: var(--app-bg); }
.bill-toggle .save { color: var(--brass); font-size: 12px; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; text-align: left; font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 420; }
.faq-q .pm { width: 26px; height: 26px; flex: 0 0 auto; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--brass); transition: transform 320ms var(--ease); }
.faq-q .pm::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .pm::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 420ms var(--ease); }
.faq-a p { color: var(--tx-2); padding: 0 4px 26px; max-width: 68ch; }

/* ---- Testimonial -------------------------------------------------------- */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 360; line-height: 1.25; letter-spacing: -0.01em; }
.quote .by { margin-top: 30px; color: var(--tx-3); font-size: 14px; letter-spacing: 0.04em; }
.quote .by b { color: var(--brass); font-weight: 600; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { position: relative; border-radius: clamp(20px, 3vw, 32px); overflow: hidden; padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 72px); text-align: center; border: 1px solid var(--brass-line); background: radial-gradient(120% 140% at 50% -20%, rgba(var(--ac-rgb),0.10), transparent 55%), linear-gradient(160deg, var(--bg-1), var(--app-bg)); box-shadow: var(--shadow-glow); }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.cta-band .hero-cta { justify-content: center; }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 36px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { margin-bottom: 18px; }
.footer-about { color: var(--tx-3); font-size: 14.5px; max-width: 36ch; }
.footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--tx-2); font-size: 15px; transition: color 200ms var(--ease); }
.footer ul a:hover { color: var(--brass); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(44px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--tx-3); font-size: 13.5px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--tx-2); transition: all 220ms var(--ease); }
.footer-social a:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-social a[href="#"] { display: none; }

/* ---- Contact form ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--tx-3); letter-spacing: 0.04em; margin-bottom: 8px; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--tx-1); font: inherit; font-size: 15px; transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-side { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); }
.contact-side .row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-side .row:last-child { border-bottom: none; }
.contact-side .row svg { width: 22px; height: 22px; color: var(--brass); flex: 0 0 auto; margin-top: 2px; }
.contact-side .row b { display: block; font-weight: 560; }
.contact-side .row span { color: var(--tx-3); font-size: 14px; }
.form-note { font-size: 13px; color: var(--tx-3); margin-top: 6px; }
.form-ok { display: none; padding: 16px; border-radius: 12px; border: 1px solid var(--brass-line); background: var(--brass-soft); color: var(--brass); margin-bottom: 18px; font-size: 14.5px; }
.form-ok.show { display: block; }

/* ---- Page hero (interior pages) ----------------------------------------- */
.phead { padding: clamp(70px, 10vw, 130px) 0 clamp(24px, 4vw, 56px); text-align: center; }
.phead h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 22px; }
.phead .lead { margin: 0 auto; }

/* ---- Misc --------------------------------------------------------------- */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--brass-line); font-size: 12px; color: var(--brass); font-family: var(--font-mono); letter-spacing: 0.04em; }
.center { text-align: center; }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }
.flow > * + * { margin-top: 1rem; }

/* ---- Legal pages (privacy / terms / cookies) ---------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding-bottom: clamp(40px, 6vw, 80px); }
.legal .updated { font-family: var(--font-mono); font-size: 12px; color: var(--tx-3); letter-spacing: 0.04em; }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 2.6rem 0 0.7rem; }
.legal h3 { font-size: 1.12rem; font-weight: 460; margin: 1.7rem 0 0.5rem; }
.legal p { color: var(--tx-2); font-size: 16px; line-height: 1.72; margin: 0.7rem 0; }
.legal ul { padding-left: 1.2rem; margin: 0.6rem 0 1rem; display: grid; gap: 0.45rem; }
.legal li { color: var(--tx-2); font-size: 16px; line-height: 1.65; }
.legal a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ac-bright); }
.legal strong { color: var(--tx-1); font-weight: 540; }
.legal .ph { font-family: var(--font-mono); font-size: 0.92em; color: var(--brass); background: var(--brass-soft); padding: 1px 6px; border-radius: 5px; }
.legal-note { border: 1px solid var(--brass-line); background: var(--brass-soft); border-radius: 14px; padding: 16px 20px; margin: 0 0 2.4rem; font-size: 14.5px; line-height: 1.6; color: var(--tx-1); }
.legal-note b { color: var(--brass); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 1.5rem; font-size: 14px; }
.legal-toc a { color: var(--tx-2); text-decoration: none; }
.legal-toc a:hover { color: var(--brass); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--tx-3); font-size: 13.5px; transition: color 200ms var(--ease); }
.footer-legal a:hover { color: var(--brass); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .section { padding-block: 64px; }
  .section--tight { padding-block: 44px; }
  .brand { gap: 9px; }
  .brand-mark, .brand-mark svg { width: 36px; height: 36px; }
  .brand-name { font-size: 13px; }
  .brand-sub { display: none; }
  .theme-toggle, .nav-toggle { width: 44px; height: 44px; }
  .display { font-size: clamp(2.55rem, 14vw, 3.8rem); overflow-wrap: anywhere; }
  h2.title { font-size: clamp(2rem, 10.5vw, 2.75rem); }
  .hero { padding-top: 34px; }
  .hero-badge { max-width: 100%; flex-wrap: wrap; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; margin-top: 38px; padding-top: 26px; }
  .cmdbar { min-width: 0; padding: 12px 14px; gap: 9px; }
  .cmdbar .typed { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mode-stage { min-height: 330px; }
  .mode-panel { padding: 18px; }
  .specs { grid-template-columns: 1fr; }
  .spec { min-height: 126px; }
  .plan { padding: 24px 20px; }
  .plan .ribbon { position: static; align-self: flex-start; margin-bottom: 16px; }
  .plan .price { flex-wrap: wrap; }
  .plan .price .amt { font-size: 2.65rem; overflow-wrap: anywhere; }
  .plan .btn { white-space: normal; }
  .bill-toggle { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 18px; }
  .bill-toggle button { padding-inline: 12px; }
  .bill-toggle .save { grid-column: 1 / -1; text-align: center; padding-bottom: 4px; }
  .footer-bottom { align-items: flex-start; }
  .footer-legal { gap: 10px 14px; }
  .legal { overflow-wrap: anywhere; }
}

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

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
