/* ============================================================
   GIZMO — Design System v2 · "Deep Space"
   Dark futuristic: glass surfaces, indigo/yellow energy accents
   Type: Space Grotesk (display) · Inter (body)
   ============================================================ */
:root {
  --indigo: #4a4fd8;
  --indigo-bright: #6a6ffb;
  --indigo-deep: #2b2e8c;
  --yellow: #ffd200;
  --yellow-glow: rgba(255, 210, 0, 0.28);
  --bg: #06070f;
  --bg-2: #0a0c1a;
  --panel: #0d1020;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.09);
  --ink: #f2f4fb;
  --body: #9aa1b8;
  --muted: #6a7089;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --glow: 0 0 40px rgba(106, 111, 251, 0.25);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 700; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--yellow); color: #06070f; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 40px; width: auto; filter: drop-shadow(0 0 8px rgba(106,111,251,.5)); }
.nav-brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.16em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--body); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: linear-gradient(90deg, var(--yellow), transparent); }
.nav-cta {
  background: linear-gradient(120deg, var(--indigo), var(--indigo-bright));
  color: var(--white) !important;
  padding: 10px 22px; border-radius: 100px; font-weight: 600;
  box-shadow: 0 0 24px rgba(106,111,251,.35);
  transition: box-shadow .25s, transform .2s;
}
.nav-cta:hover { box-shadow: 0 0 40px rgba(106,111,251,.6); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 100px; font-weight: 600; font-size: 0.95rem; transition: all .25s; cursor: pointer; border: none; font-family: var(--font-body); }
.btn-primary { background: linear-gradient(120deg, var(--indigo), var(--indigo-bright)); color: var(--white); box-shadow: 0 0 26px rgba(106,111,251,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(106,111,251,.55); }
.btn-accent { background: var(--yellow); color: #14163f; box-shadow: 0 0 26px var(--yellow-glow); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--yellow-glow), 0 8px 24px rgba(0,0,0,.4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 24px var(--yellow-glow); }
.btn-outline { background: transparent; color: var(--indigo-bright); border: 1.5px solid var(--indigo-bright); }
.btn-outline:hover { background: var(--indigo-bright); color: var(--white); box-shadow: var(--glow); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); padding: 130px 0 140px; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,79,216,.38), transparent 65%);
  top: -260px; right: -160px; filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 56px 56px;
  mask-image: radial-gradient(900px 560px at 55% 35%, #000 25%, transparent 78%);
}
.hero .orb2 { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,0,.14), transparent 62%); bottom: -220px; left: -120px; filter: blur(16px); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px, 40px) scale(1.12); } }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow); margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--yellow), transparent); }
.hero h1 { color: var(--ink); font-size: clamp(2.5rem, 5.6vw, 4.3rem); letter-spacing: -0.025em; margin-bottom: 26px; }
.hero h1 .accent { background: linear-gradient(100deg, var(--yellow), #ffe670 55%, var(--indigo-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.16rem; color: var(--body); max-width: 640px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section.tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.section-head { max-width: 660px; margin-bottom: 58px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }
.kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; display: block; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 34px 30px;
  backdrop-filter: blur(6px);
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,210,0,.55), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(106,111,251,.5); box-shadow: 0 20px 50px rgba(0,0,0,.5), var(--glow); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo));
  color: var(--yellow); display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 22px;
  box-shadow: inset 0 0 18px rgba(255,255,255,.08), 0 0 20px rgba(74,79,216,.35);
}
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { font-size: 0.93rem; }
.card .tag { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid; }
.tag-live { color: #4ade80; border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); }
.tag-dev { color: var(--yellow); border-color: rgba(255,210,0,.4); background: rgba(255,210,0,.07); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--indigo-bright); transition: gap .2s, color .2s; }
.card-link:hover { gap: 10px; color: var(--yellow); }

/* ---------- Dark band ---------- */
.band { background: radial-gradient(900px 480px at 50% 0%, rgba(74,79,216,.22), transparent 65%), var(--bg-2); color: var(--ink); padding: 100px 0; position: relative; overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.band .card { background: rgba(255,255,255,.04); }
.band .kicker { color: var(--yellow); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 30px 16px; border: 1px solid var(--glass-border); border-radius: var(--radius); background: var(--glass); }
.stat .num { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; background: linear-gradient(120deg, var(--yellow), var(--indigo-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 30px 26px 26px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); transition: border-color .3s; }
.step:hover { border-color: rgba(255,210,0,.45); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--yellow);
  display: block; margin-bottom: 14px; opacity: .9;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding: 60px 0; }
.feature-row.reverse > .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, #12143a, var(--indigo-deep) 60%, #3d41b5);
  min-height: 330px; display: grid; place-items: center;
  color: var(--yellow); font-size: 4rem;
  border: 1px solid rgba(106,111,251,.35);
  box-shadow: 0 24px 70px rgba(0,0,0,.55), inset 0 0 80px rgba(106,111,251,.15);
  position: relative;
}
.feature-media::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; }
.feature-copy .kicker { margin-bottom: 10px; }
.feature-copy h3 { font-size: 1.7rem; margin-bottom: 16px; }
.feature-copy ul { list-style: none; margin: 20px 0 26px; }
.feature-copy li { padding-left: 28px; position: relative; margin-bottom: 12px; font-size: 0.96rem; }
.feature-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow); font-weight: 800; }

/* ---------- Spec tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--glass-border); }
.spec-table th { font-family: var(--font-display); color: var(--ink); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.spec-table td strong { color: var(--ink); }
.spec-table tr:hover td { background: rgba(106,111,251,.07); }
.price { font-family: var(--font-display); font-weight: 700; color: var(--yellow); white-space: nowrap; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--glass); border: 1px solid var(--glass-border); border-left: 3px solid var(--yellow); border-radius: var(--radius-sm); padding: 30px; }
.quote-card p { font-size: 0.95rem; font-style: italic; margin-bottom: 18px; }
.quote-card .who { font-weight: 700; color: var(--ink); font-size: 0.9rem; font-style: normal; }
.quote-card .who span { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #14163f, var(--indigo-deep) 45%, #3d41b5);
  border: 1px solid rgba(106,111,251,.4);
  border-radius: 24px; padding: 70px 60px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.cta-banner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, var(--yellow-glow), transparent 65%); }
.cta-banner::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; position: relative; z-index: 1; }
.cta-banner p { color: #b9bdd6; max-width: 500px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-size: 0.8rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; letter-spacing: .04em; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem;
  background: rgba(255,255,255,.04); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--indigo-bright); box-shadow: 0 0 0 3px rgba(106,111,251,.18); }
.form select option { background: var(--panel); }
.form textarea { min-height: 130px; resize: vertical; }

/* ---------- Enquiry wizard ---------- */
.wizard { max-width: 880px; margin: 0 auto; }
.wiz-progress { display: flex; gap: 8px; margin-bottom: 44px; }
.wiz-progress .seg { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.wiz-progress .seg.done::after, .wiz-progress .seg.now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--yellow), var(--indigo-bright)); }
.wiz-progress .seg.now::after { animation: pulseSeg 1.6s ease-in-out infinite; }
@keyframes pulseSeg { 50% { opacity: .55; } }
.wiz-step-label { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: 12px; }
.wizard h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.wizard .sub { color: var(--body); margin-bottom: 34px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choice {
  background: var(--glass); border: 1.5px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 22px 20px; cursor: pointer; transition: all .22s; position: relative;
}
.choice:hover { border-color: var(--indigo-bright); transform: translateY(-3px); box-shadow: var(--glow); }
.choice.sel { border-color: var(--yellow); background: rgba(255,210,0,.06); box-shadow: 0 0 30px var(--yellow-glow); }
.choice .c-ico { font-size: 1.5rem; margin-bottom: 10px; color: var(--yellow); }
.choice h4 { font-size: .98rem; margin-bottom: 5px; }
.choice p { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.choice .check { position: absolute; top: 12px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--glass-border); display: grid; place-items: center; font-size: .7rem; color: transparent; transition: all .2s; }
.choice.sel .check { background: var(--yellow); border-color: var(--yellow); color: #14163f; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
.wiz-back { background: none; border: none; color: var(--muted); font-size: .92rem; cursor: pointer; font-family: var(--font-body); }
.wiz-back:hover { color: var(--ink); }
.wiz-summary { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 30px; margin-bottom: 26px; }
.wiz-summary .row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.09); font-size: .92rem; }
.wiz-summary .row:last-child { border: none; }
.wiz-summary .k { color: var(--muted); }
.wiz-summary .v { color: var(--ink); font-weight: 600; text-align: right; }
.wiz-done { text-align: center; padding: 40px 0; }
.wiz-done .big { font-size: 3.4rem; margin-bottom: 18px; }
.typing-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--yellow); margin: 0 2px; animation: pulseSeg 1s infinite; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); color: var(--body); padding: 70px 0 30px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 50px; }
.site-footer h4 { color: var(--ink); font-size: 0.92rem; margin-bottom: 18px; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { font-size: 0.9rem; transition: color .2s; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; font-size: 0.82rem; color: var(--muted); flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--bg); color: var(--ink); padding: 90px 0 76px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(74,79,216,.3), transparent 65%); top: -240px; right: -120px; filter: blur(18px); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(700px 400px at 50% 30%, #000 30%, transparent 80%); }
.page-hero h1 { color: var(--ink); font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 16px; position: relative; z-index: 1; letter-spacing: -0.02em; }
.page-hero p { color: var(--body); max-width: 640px; font-size: 1.08rem; position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .feature-row.reverse > .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 50px 34px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--glass-border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 90px 0 100px; }
  .footer-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   THEMES — "space" (dark, default vars above), "slate" (hybrid),
   "arctic" (light). Switch via html[data-theme].
   ============================================================ */
html[data-theme="arctic"], html[data-theme="slate"] {
  --bg: #f6f7fb; --bg-2: #eef0f7;
  --panel: #ffffff;
  --glass: #ffffff; --glass-border: #e3e6ef;
  --ink: #181a26; --body: #4a5065; --muted: #858b9e;
  --glow: 0 0 34px rgba(74, 79, 216, 0.14);
}
html[data-theme="arctic"] body, html[data-theme="slate"] body { background: var(--bg); }
html[data-theme="arctic"] .card:hover, html[data-theme="slate"] .card:hover { box-shadow: 0 18px 44px rgba(20,22,63,.12), var(--glow); }
html[data-theme="arctic"] .spec-table tr:hover td, html[data-theme="slate"] .spec-table tr:hover td { background: rgba(74,79,216,.05); }
html[data-theme="arctic"] ::selection, html[data-theme="slate"] ::selection { background: #2b2e8c; color: #fff; }

/* ---- ARCTIC: fully light ---- */
html[data-theme="arctic"] .site-header { background: rgba(255,255,255,.85); border-bottom-color: #e3e6ef; }
html[data-theme="arctic"] .nav-brand img { filter: none; }
html[data-theme="arctic"] .hero, html[data-theme="arctic"] .page-hero {
  background: radial-gradient(900px 480px at 85% -10%, rgba(74,79,216,.14), transparent 60%),
              radial-gradient(700px 420px at 5% 110%, rgba(255,210,0,.12), transparent 55%), #f6f7fb;
}
html[data-theme="arctic"] .hero::after, html[data-theme="arctic"] .page-hero::after {
  background-image: linear-gradient(rgba(43,46,140,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(43,46,140,.06) 1px, transparent 1px);
}
html[data-theme="arctic"] .hero::before, html[data-theme="arctic"] .page-hero::before { opacity: .5; }
html[data-theme="arctic"] .hero h1 .accent { background: linear-gradient(100deg, #d29c12, #b98a00 45%, var(--indigo)); -webkit-background-clip: text; background-clip: text; }
html[data-theme="arctic"] .band { background: radial-gradient(900px 480px at 50% 0%, rgba(74,79,216,.10), transparent 65%), #eef0f7; }
html[data-theme="arctic"] .site-footer { background: #eef0f7; }
html[data-theme="arctic"] .footer-brand img { filter: none; }
html[data-theme="arctic"] .kicker { color: #b98a00; }
html[data-theme="arctic"] .step::before { -webkit-text-stroke-color: #d29c12; }
html[data-theme="arctic"] .quote-card { border-left-color: #edb124; }
html[data-theme="arctic"] .btn-ghost { color: var(--ink); border-color: #c9cddc; }
html[data-theme="arctic"] .btn-accent { box-shadow: 0 8px 22px rgba(237,177,36,.35); }
html[data-theme="arctic"] .price { color: #b98a00; }

/* ---- SLATE: light body, dark hero/band/footer ---- */
html[data-theme="slate"] .site-header { background: rgba(10,12,26,.85); border-bottom-color: rgba(255,255,255,.09); }
html[data-theme="slate"] .site-header .nav-links a { color: #9aa1b8; }
html[data-theme="slate"] .site-header .nav-links a:hover, html[data-theme="slate"] .site-header .nav-links a.active { color: #fff; }
html[data-theme="slate"] .nav-brand .wordmark { color: #fff; }
html[data-theme="slate"] .hero, html[data-theme="slate"] .page-hero { background: radial-gradient(1100px 560px at 80% -10%, rgba(74,79,216,.5), transparent 62%), #0a0c1a; }
html[data-theme="slate"] .hero h1, html[data-theme="slate"] .page-hero h1 { color: #f2f4fb; }
html[data-theme="slate"] .hero p.lead, html[data-theme="slate"] .page-hero p { color: #9aa1b8; }
html[data-theme="slate"] .hero .btn-ghost { color: #f2f4fb; border-color: rgba(255,255,255,.3); }
html[data-theme="slate"] .band { background: radial-gradient(900px 480px at 50% 0%, rgba(74,79,216,.25), transparent 65%), #0a0c1a; border-color: rgba(255,255,255,.09); }
html[data-theme="slate"] .band .section-head h2, html[data-theme="slate"] .band h3 { color: #f2f4fb; }
html[data-theme="slate"] .band .section-head p, html[data-theme="slate"] .band .card p { color: #9aa1b8; }
html[data-theme="slate"] .band .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
html[data-theme="slate"] .band .card h3 { color: #f2f4fb; }
html[data-theme="slate"] .band .stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
html[data-theme="slate"] .band .stat .label { color: #9aa1b8; }
html[data-theme="slate"] .site-footer { background: #0a0c1a; border-top-color: rgba(255,255,255,.09); color: #9aa1b8; }
html[data-theme="slate"] .site-footer h4 { color: #f2f4fb; }
html[data-theme="slate"] .kicker { color: #b98a00; }
html[data-theme="slate"] .band .kicker, html[data-theme="slate"] .hero .eyebrow, html[data-theme="slate"] .page-hero .eyebrow { color: var(--yellow); }
html[data-theme="slate"] .step::before { -webkit-text-stroke-color: #d29c12; }
html[data-theme="slate"] .price { color: #b98a00; }

/* ---- Theme switcher widget ---- */
.theme-dock {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; gap: 6px; align-items: center;
  background: rgba(18,20,40,.9); border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 7px 10px; backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.theme-dock span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa1b8; margin-right: 2px; font-weight: 700; }
.theme-dock button {
  border: 1.5px solid rgba(255,255,255,.25); background: transparent; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; transition: transform .15s, border-color .15s;
}
.theme-dock button:hover { transform: scale(1.15); }
.theme-dock button.on { border-color: #ffd200; box-shadow: 0 0 10px rgba(255,210,0,.5); }
.theme-dock .t-space { background: linear-gradient(135deg, #06070f 50%, #4a4fd8); }
.theme-dock .t-slate { background: linear-gradient(135deg, #0a0c1a 50%, #f6f7fb 50%); }
.theme-dock .t-arctic { background: linear-gradient(135deg, #ffffff 50%, #dfe3f0); border-color: rgba(255,255,255,.5); }

/* ============================================================
   ARCTIC MOTION PACK — aurora background, springy reveals,
   word-rise hero, header shadow. (Arctic is the locked theme.)
   ============================================================ */
/* Aurora — soft drifting colour fields behind all content */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora .a1 { width: 62vw; height: 62vw; background: radial-gradient(circle, rgba(106,111,251,.20), transparent 65%); top: -24vw; right: -18vw; animation: aur1 26s ease-in-out infinite alternate; }
.aurora .a2 { width: 48vw; height: 48vw; background: radial-gradient(circle, rgba(255,210,0,.14), transparent 62%); bottom: -18vw; left: -14vw; animation: aur2 32s ease-in-out infinite alternate; }
.aurora .a3 { width: 34vw; height: 34vw; background: radial-gradient(circle, rgba(43,46,140,.10), transparent 60%); top: 40%; left: 55%; animation: aur3 38s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(-9vw, 7vw) scale(1.18); } }
@keyframes aur2 { to { transform: translate(7vw, -8vw) scale(1.12); } }
@keyframes aur3 { to { transform: translate(-6vw, -6vw) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* Arctic surfaces let the aurora glow through */
html[data-theme="arctic"] body { background: transparent; }
html[data-theme="arctic"] .hero, html[data-theme="arctic"] .page-hero { background: transparent; }
html[data-theme="arctic"] .section.tint { background: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
html[data-theme="arctic"] .band { background: rgba(238,240,247,.6); backdrop-filter: blur(8px); }
html[data-theme="arctic"] .card, html[data-theme="arctic"] .choice, html[data-theme="arctic"] .q-opt,
html[data-theme="arctic"] .stat, html[data-theme="arctic"] .step, html[data-theme="arctic"] .concept-panel,
html[data-theme="arctic"] .idea-box, html[data-theme="arctic"] .wiz-summary, html[data-theme="arctic"] .quote-card {
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px);
}
html[data-theme="arctic"] .site-footer { background: rgba(238,240,247,.85); backdrop-filter: blur(8px); }

/* Springy reveal (Framer-style overshoot) */
.reveal { opacity: 0; transform: translateY(34px) scale(.97); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.22,1.2,.36,1), transform .8s cubic-bezier(.22,1.2,.36,1), filter .8s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Hero word-rise */
.hero h1 .w, .page-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .wi, .page-hero h1 .wi { display: inline-block; transform: translateY(110%);
  transition: transform .75s cubic-bezier(.22,1.2,.36,1); }
.h1-in .wi { transform: translateY(0) !important; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1.2,.36,1); }
.fade-up.in { opacity: 1; transform: none; }

/* Header shadow after scroll */
.site-header.scrolled { box-shadow: 0 8px 30px rgba(20,22,63,.10); }

/* Card springier hover (JS tilt composes with this) */
.card { transition: transform .35s cubic-bezier(.22,1.2,.36,1), border-color .3s, box-shadow .35s; }

/* Accent button shimmer sweep */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46%; left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg); transition: left .6s ease; }
.btn-accent:hover::after { left: 115%; }

/* ============================================================
   ARCTIC CONTRAST REPAIR — yellow is never text on white.
   Yellow = surfaces & accents only. Text accents = amber/indigo.
   ============================================================ */
html[data-theme="arctic"] {
  --amber: #a97e00; /* WCAG-safe text amber on white */
}
/* Hero accent: solid deep indigo (word-split-safe — no background-clip) */
html[data-theme="arctic"] .hero h1 .accent,
html[data-theme="arctic"] .hero h1 .accent .wi {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: #2f33a8; -webkit-text-fill-color: #2f33a8;
}
/* Eyebrows & kickers: amber text, amber rule */
html[data-theme="arctic"] .eyebrow,
html[data-theme="arctic"] .hero .eyebrow,
html[data-theme="arctic"] .page-hero .eyebrow { color: var(--amber); }
html[data-theme="arctic"] .eyebrow::before { background: linear-gradient(90deg, #d29c12, transparent); }
html[data-theme="arctic"] .kicker { color: var(--amber); }
/* Tags */
html[data-theme="arctic"] .tag-dev { color: #8a6d00; border-color: rgba(210,156,18,.5); background: rgba(255,210,0,.10); }
/* Interactive text hovers: indigo, never yellow */
html[data-theme="arctic"] .card-link:hover { color: var(--indigo-deep); }
html[data-theme="arctic"] .btn-ghost { color: #23264d; border-color: #c3c8da; }
html[data-theme="arctic"] .btn-ghost:hover { color: var(--indigo-deep); border-color: var(--indigo); box-shadow: 0 6px 20px rgba(43,46,140,.15); }
html[data-theme="arctic"] .nav-links a.active:not(.nav-cta)::after { background: linear-gradient(90deg, #d29c12, transparent); }
/* Buttons keep true brand yellow as SURFACE (dark text on yellow = 10.4:1) */
html[data-theme="arctic"] .btn-accent { background: #ffd200; color: #14163f; box-shadow: 0 10px 26px rgba(210,156,18,.35); }
/* Wizard / studio yellow-text instances */
html[data-theme="arctic"] .wiz-step-label { color: var(--amber); }
html[data-theme="arctic"] .choice .c-ico { color: var(--amber); }
html[data-theme="arctic"] .step::before { -webkit-text-stroke-color: #b98a00; }
/* Feature-media panels stay dark — yellow glyph there is correct */

/* ============================================================
   AI DESIGN STUDIO — refinement pack
   ============================================================ */
/* Stepper rail */
.stepper { display:flex; align-items:center; gap:0; margin-bottom:38px; flex-wrap:wrap; }
.stepper .sd { display:flex; align-items:center; gap:9px; cursor:pointer; padding:6px 2px; }
.stepper .sd .dot {
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  font-size:.72rem; font-weight:700; font-family:var(--font-display);
  border:1.5px solid var(--glass-border); color:var(--muted); background:var(--glass);
  transition:all .25s;
}
.stepper .sd .lbl { font-size:.76rem; color:var(--muted); font-weight:600; letter-spacing:.02em; }
.stepper .sd.done .dot { background:#2f33a8; border-color:#2f33a8; color:#fff; }
.stepper .sd.done .lbl { color:var(--body); }
.stepper .sd.now .dot { border-color:#d29c12; color:#a97e00; background:rgba(255,210,0,.12); box-shadow:0 0 0 4px rgba(255,210,0,.14); }
.stepper .sd.now .lbl { color:var(--ink); }
.stepper .sd.locked { cursor:default; opacity:.55; }
.stepper .bar { flex:1; height:2px; background:var(--glass-border); margin:0 10px; min-width:14px; border-radius:2px; }
.stepper .bar.on { background:linear-gradient(90deg,#2f33a8,#d29c12); }
@media (max-width:760px){ .stepper .lbl { display:none; } .stepper .bar { margin:0 6px; } }

/* Answer chips — edit any prior answer */
.answer-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px; }
.achip {
  display:inline-flex; align-items:center; gap:7px; font-size:.78rem;
  padding:6px 12px; border-radius:100px; border:1px solid var(--glass-border);
  background:var(--glass); color:var(--body); cursor:pointer; transition:all .18s;
  font-family:var(--font-body);
}
.achip:hover { border-color:#2f33a8; color:var(--ink); }
.achip b { color:var(--ink); font-weight:600; }
.achip .x { color:var(--muted); font-size:.9rem; line-height:1; }

/* Studio result: two-column summary + sticky action bar */
.result-head { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap; margin-bottom:8px; }
.concept-badge {
  display:inline-flex; align-items:center; gap:8px; padding:7px 15px; border-radius:100px;
  background:rgba(47,51,168,.08); border:1px solid rgba(47,51,168,.25);
  font-size:.75rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#2f33a8;
}
.spec-list { list-style:none; margin:0; }
.spec-list li { display:flex; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px dashed var(--glass-border); font-size:.9rem; }
.spec-list li:last-child { border:none; }
.spec-list .k { color:var(--muted); }
.spec-list .v { color:var(--ink); font-weight:600; text-align:right; }

/* Autosave note */
.autosave { font-size:.74rem; color:var(--muted); display:flex; align-items:center; gap:6px; }
.autosave::before { content:""; width:6px; height:6px; border-radius:50%; background:#4ade80; }

/* Sticky bottom action bar on the studio */
.studio-bar {
  position:sticky; bottom:0; z-index:20; margin-top:34px;
  background:rgba(255,255,255,.92); backdrop-filter:blur(12px);
  border-top:1px solid var(--glass-border);
  padding:16px 0; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
}
.studio-bar .actions { display:flex; gap:10px; flex-wrap:wrap; }

/* Print / PDF: clean spec sheet */
@media print {
  .site-header, .site-footer, .aurora, .studio-bar, .stepper, .answer-chips,
  .section.tint, .cta-banner, .btn { display:none !important; }
  body { background:#fff !important; }
  .card, .concept-panel { break-inside:avoid; border:1px solid #ccc !important; box-shadow:none !important; background:#fff !important; }
  .section { padding:0 !important; }
  a[href]::after { content:""; }
}
