/* =========================================================================
   Martian Wealth — marketing site styles  ·  dark-first premium redesign
   A single shared stylesheet for every page. Organized as:
   1. Design tokens (CSS variables)   6. Page sections (hero, studio, widgets…)
   2. Reset & base                    7. Device & dashboard mockups
   3. Typography                      8. Legal / article / contact pages
   4. Layout primitives               9. Footer
   5. Components (buttons, cards…)    10. Motion · utilities · responsive
   ========================================================================= */

/* ============================== 1. TOKENS =============================== */
:root {
  /* Deep-space backgrounds */
  --bg:          #060912; /* page base — near-black space navy            */
  --bg-1:        #080c18; /* alternating section                          */
  --bg-2:        #0b1020; /* raised section / muted                       */
  --bg-3:        #0e1426; /* solid card / input                           */

  /* Brand */
  --navy:        #021236;
  --indigo:      #6366f1; /* primary action / focus                       */
  --indigo-600:  #4f46e5;
  --indigo-300:  #a5b4fc;
  --mars-red:    #ff5e3a;
  --mars-orange: #ff9a3c;
  --cyan:        #22d3ee;
  --violet:      #8b7cff;
  --emerald:     #34d399;
  --success:     #34d399;
  --danger:      #fb7185;

  /* Text */
  --ink:        #f3f6ff; /* headings / primary                            */
  --ink-2:      #c4ccea; /* body                                          */
  --muted:      #97a0c4; /* secondary                                     */
  --muted-2:    #6e779b; /* metadata / faint                              */

  /* Lines & glass surfaces */
  --line:       rgba(255,255,255,.08);
  --line-2:     rgba(255,255,255,.14);
  --line-soft:  rgba(255,255,255,.05);
  --glass:      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  --glass-2:    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));

  /* Gradients */
  --grad-mars:  linear-gradient(120deg, #ff5e3a 0%, #ff9a3c 100%);
  --grad-text:  linear-gradient(100deg, #ffd0a8 0%, #ff9a5a 45%, #ff5e6b 100%);
  --grad-cosmos: radial-gradient(120% 130% at 75% -20%, #18204a 0%, #0a0f24 48%, var(--bg) 100%);
  --grad-iris:  linear-gradient(120deg, var(--violet), var(--cyan));

  /* Effects */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 18px 40px -18px rgba(0,0,0,.7);
  --shadow-lg:  0 40px 80px -28px rgba(0,0,0,.8);
  --shadow-mars: 0 16px 40px -14px rgba(255,94,58,.5);
  --ring-inset: inset 0 1px 0 rgba(255,255,255,.07);

  /* Geometry */
  --radius:    18px;
  --radius-sm: 13px;
  --radius-lg: 26px;
  --container: 1180px;
  --gutter:    clamp(20px, 5vw, 40px);

  /* Type */
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --mono:         ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 70px;

  /* Legacy aliases kept so older inline styles on sub-pages still resolve */
  --bg-muted:  var(--bg-2);
  --bg-tint:   var(--bg-1);
  --indigo-050: rgba(99,102,241,.14);
}

/* ============================ 2. RESET & BASE =========================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
/* Soft grain so dark surfaces never feel flat */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .035; mix-blend-mode: screen;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255,154,60,.32); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--mars-red); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ============================= 3. TYPOGRAPHY ============================ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.015em; }
p  { color: var(--ink-2); }
strong { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mars-orange);
}
.eyebrow svg { color: var(--mars-orange); }
.eyebrow.on-dark { color: var(--mars-orange); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-iris { background: var(--grad-iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ============================== 4. LAYOUT ============================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
section { position: relative; }
.section { padding-block: clamp(66px, 9vw, 130px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }

.section-head { max-width: 740px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* let grid items shrink below their content's min-content width (prevents
   nowrap labels from forcing columns wider than the viewport on mobile) */
.grid > *, .feature-grid > *, .trust-grid > *, .journey > * { min-width: 0; }

.bg-muted { background: var(--bg-2); position: relative; }
.bg-tint  { background: var(--bg-1); }
/* faint top hairline to separate stacked dark sections */
.bg-muted::before { content:""; position:absolute; inset:0 0 auto 0; height:1px; background: var(--line-soft); }

/* ============================ 5. COMPONENTS ============================ */
/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-mars); color: #fff; box-shadow: var(--shadow-mars); }
.btn-primary:hover { box-shadow: 0 22px 50px -12px rgba(255,94,58,.62); }
.btn-dark { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line-2); }
.btn-dark:hover { background: rgba(255,255,255,.1); }
.btn-ghost, .btn-glass {
  background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover, .btn-glass:hover { background: rgba(255,255,255,.09); border-color: var(--line-2); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---- App store badges ---- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--line-2);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--ring-inset);
}
.store-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); box-shadow: var(--shadow); }
.store-badge svg { flex: none; }
.store-badge .sb-small { display: block; font-size: .66rem; letter-spacing: .04em; opacity: .82; }
.store-badge .sb-big { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.1; }
.store-badge.is-soon::after {
  content: "Soon"; margin-left: 4px; font-size: .58rem; font-weight: 700; letter-spacing: .06em;
  background: var(--grad-mars); color:#fff; padding: 3px 7px; border-radius: 999px; align-self: flex-start;
}

/* ---- Pills / chips ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; background: rgba(99,102,241,.12); color: var(--indigo-300);
  border: 1px solid rgba(99,102,241,.28);
}
.pill svg { color: var(--indigo-300); }
.pill.on-dark { background: rgba(255,255,255,.06); color: #dfe4ff; border-color: rgba(255,255,255,.16); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  color: var(--ink-2); transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.chip .q { color: var(--mars-orange); }
.chip:hover { border-color: var(--mars-orange); color: var(--ink); background: rgba(255,94,58,.08); transform: translateY(-1px); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Cards (glass) ---- */
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-sm), var(--ring-inset);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  position: relative;
}
.card.hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), var(--ring-inset); border-color: var(--line-2); background: var(--glass-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(99,102,241,.14); color: var(--indigo-300); margin-bottom: 18px;
  border: 1px solid rgba(99,102,241,.2);
}
.icon-tile.mars { background: rgba(255,94,58,.14); color: var(--mars-orange); border-color: rgba(255,94,58,.24); }
.icon-tile.cyan { background: rgba(34,211,238,.13); color: var(--cyan); border-color: rgba(34,211,238,.24); }
.icon-tile.emerald { background: rgba(52,211,153,.13); color: var(--emerald); border-color: rgba(52,211,153,.24); }
.icon-tile.violet { background: rgba(139,124,255,.14); color: var(--violet); border-color: rgba(139,124,255,.26); }
.icon-tile svg { width: 26px; height: 26px; }

/* ---- Logo mark ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
footer .logo-text, .on-dark .logo-text { color: #fff; }

/* ---- Header / nav (glass) ---- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(8,12,24,.55); backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease, height .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { height: 60px; border-bottom-color: var(--line); background: rgba(6,9,18,.86); box-shadow: 0 8px 30px -20px rgba(0,0,0,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: .96rem; color: var(--muted);
  white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,.06); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 20px; }
.nav-toggle { display: none; padding: 8px; color: var(--ink); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(6,9,18,.97); backdrop-filter: blur(22px);
  padding: 24px var(--gutter); display: none; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a { padding: 16px 12px; border-radius: 12px; font-weight: 600; font-size: 1.12rem; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-menu a:hover { background: rgba(255,255,255,.05); }
.mobile-menu .btn { margin-top: 16px; }
body.menu-open { overflow: hidden; }

/* ============================ 6. SECTIONS ============================= */
/* ---- Cosmos background (hero, CTA, footer, page heroes) ---- */
.cosmos { position: relative; background: var(--grad-cosmos); color: #fff; overflow: hidden; }
.cosmos h1, .cosmos h2, .cosmos h3 { color: #fff; }
.cosmos p { color: #c4ccea; }
.stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cosmos > .container { position: relative; z-index: 1; }
.orbit-deco {
  position: absolute; width: 820px; height: 820px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06); top: -300px; right: -220px; pointer-events: none;
}
.orbit-deco::after { content: ""; position: absolute; inset: 150px; border-radius: 50%; border: 1px solid rgba(255,154,60,.12); }
.glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px); opacity: .5;
  background: radial-gradient(circle, rgba(255,94,58,.55), transparent 70%); pointer-events: none; z-index: 0;
}
.glow.cyan { background: radial-gradient(circle, rgba(34,211,238,.4), transparent 70%); }
.glow.violet { background: radial-gradient(circle, rgba(139,124,255,.45), transparent 70%); }
/* very slow drift for the big ambient glows (motion-safe) */
@media (prefers-reduced-motion: no-preference) {
  .glow.drift { animation: drift 22s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.12); } }
}

/* ---- Hero ---- */
.hero { padding-top: clamp(48px, 7vw, 86px); padding-bottom: clamp(70px, 9vw, 124px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hero h1 { margin: 22px 0 0; }
.hero .lead { margin-top: 22px; color: #c4ccea; max-width: 560px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--success); flex: none; }

/* ---- Trust strip ---- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.trust-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--ring-inset); overflow: hidden; position: relative;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.trust-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--glass-2); }
.trust-card .ti { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.trust-card .tv { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.trust-card .tl { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.trust-card::after { content:""; position:absolute; right:-30px; top:-30px; width:120px; height:120px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,154,60,.16), transparent 70%); opacity:0; transition: opacity .25s ease; }
.trust-card:hover::after { opacity:1; }
.trust-card.c-cyan:hover::after { background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); }
.trust-card.c-violet:hover::after { background: radial-gradient(circle, rgba(139,124,255,.2), transparent 70%); }
.trust-card.c-emerald:hover::after { background: radial-gradient(circle, rgba(52,211,153,.18), transparent 70%); }

/* ---- Journey (how it works) ---- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); position: relative; }
.journey-step { position: relative; }
.journey-step .step-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; width: 42px; height: 42px;
  border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad-mars);
  box-shadow: var(--shadow-mars); flex: none;
}
.journey-step .step-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.journey-step h3 { margin-bottom: 8px; }
.journey-step p { color: var(--muted); }
.journey-step .scene { margin-top: 22px; }
/* connectors between steps on desktop */
.journey-step:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; right: -16px; width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--mars-orange), transparent); opacity: .5;
}

/* ---- Interactive studio (prompt -> dashboard) ---- */
.studio-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 3.4vw, 48px); align-items: stretch; }
.studio-panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--ring-inset); display: flex; flex-direction: column; }
.studio-input {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--ring-inset);
}
.studio-input .si-text { flex: 1; color: var(--ink); font-weight: 500; min-width: 0; }
.studio-input .si-caret { width: 2px; height: 18px; background: var(--mars-orange); display: inline-block; vertical-align: middle; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .studio-input .si-caret { animation: none; } }
.studio-input .si-send { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-mars); color: #fff; display: grid; place-items: center; flex: none; }
.studio-chips { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.studio-chip {
  text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--ink-2); font-weight: 500; font-size: .96rem;
  display: flex; align-items: center; gap: 12px; transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.studio-chip .ci { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line); transition: inherit; }
.studio-chip:hover { border-color: var(--line-2); background: rgba(255,255,255,.06); transform: translateX(3px); }
.studio-chip[aria-pressed="true"] { border-color: rgba(255,94,58,.5); background: rgba(255,94,58,.1); color: var(--ink); }
.studio-chip[aria-pressed="true"] .ci { background: var(--grad-mars); color: #fff; border-color: transparent; }
.studio-note { margin-top: auto; padding-top: 20px; color: var(--muted-2); font-size: .85rem; display: flex; align-items: center; gap: 8px; }

.studio-stage { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 26px); box-shadow: var(--shadow), var(--ring-inset); overflow: hidden; min-height: 460px; }
.studio-stage .stage-glow { position: absolute; inset: auto -10% -40% auto; width: 60%; height: 60%; filter: blur(90px); opacity: .35;
  background: radial-gradient(circle, rgba(99,102,241,.5), transparent 70%); pointer-events: none; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; position: relative; }
.stage-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.stage-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(52,211,153,.16); }
.stage-tag { font-size: .76rem; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); display:inline-flex; gap:6px; align-items:center; }

/* dashboard panels swap in/out */
.dash-state { display: none; }
.dash-state.active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .dash-state.active { animation: stagein .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes stagein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---- Widget gallery ---- */
.widget-card { display: flex; flex-direction: column; gap: 14px; }
.widget-card .icon-tile { margin-bottom: 2px; width: 44px; height: 44px; }
.widget-card .icon-tile svg { width: 22px; height: 22px; }
.widget-card .wc-demo { margin-top: auto; padding-top: 6px; }

/* ---- Feature highlight cards ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 26px); }
.feat-card { display: flex; flex-direction: column; gap: 16px; }
.feat-card .feat-vis { margin-top: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-3); padding: 14px; box-shadow: var(--ring-inset); }

/* ---- Feature rows (alternating) — used on features/about/security ---- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 110px); }
.feature-row.reverse .feature-media { order: -1; }
.feature-copy .pill { margin-bottom: 18px; }
.feature-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feature-copy p { margin-top: 16px; color: var(--muted); }
.feature-list { margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; }
.feature-list svg { color: var(--success); flex: none; margin-top: 3px; }

/* ---- Security / trust architecture ---- */
.trust-arch { display: grid; gap: 12px; }
.arch-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--ring-inset); transition: border-color .2s, transform .2s, background .2s; }
.arch-card:hover { border-color: var(--line-2); transform: translateX(4px); background: var(--glass-2); }
.arch-card .ai { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: rgba(52,211,153,.12); color: var(--emerald); border: 1px solid rgba(52,211,153,.26); }
.arch-card h3 { font-size: 1.06rem; margin-bottom: 4px; }
.arch-card p { color: var(--muted); font-size: .94rem; }

/* pipeline diagram (privacy-first AI) */
.pipeline { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.pipe-node { flex: 1; min-width: 116px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 13px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ring-inset); }
.pipe-node .pn-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--indigo-300); }
.pipe-node b { font-size: .9rem; color: var(--ink); }
.pipe-node span { font-size: .76rem; color: var(--muted-2); }
.pipe-node.secure .pn-ic { color: var(--emerald); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.24); }
.pipe-arrow { align-self: center; color: var(--muted-2); flex: none; }

/* ---- Stats band (about) ---- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band .s b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-band .s span { color: var(--muted); font-size: .95rem; }

/* ---- Persona cards (replaces sample testimonials) ---- */
.persona-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.persona-card .pc-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--mars-orange); }
.persona-card h3 { font-size: 1.1rem; }
.persona-card p { color: var(--muted); }
.persona-card .pc-quote { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2);
  font-size: 1rem; line-height: 1.5; font-style: italic; }

/* legacy testimonial classes (other pages may not use, kept for safety) */
.quote-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--ring-inset); display: flex; flex-direction: column; gap: 16px; }
.quote-card .stars-row { color: var(--mars-orange); letter-spacing: 2px; }
.quote-card blockquote { font-size: 1.05rem; color: var(--ink-2); line-height: 1.55; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-mars); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.quote-who .n { font-weight: 700; font-size: .95rem; color: var(--ink); }
.quote-who .r { color: var(--muted); font-size: .85rem; }

/* ---- FAQ accordion ---- */
.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); overflow: hidden; transition: border-color .2s ease, background .2s ease; }
.faq-item[open] { border-color: var(--line-2); background: var(--glass-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,94,58,.14); color: var(--mars-orange); transition: transform .25s ease; }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 22px; color: var(--muted); }
.faq-item .faq-body a { color: var(--cyan); font-weight: 600; }
.faq-item .faq-body p + p { margin-top: 12px; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.cta-band p { margin: 16px auto 30px; max-width: 580px; }
.cta-band .store-badges { justify-content: center; }
.cta-prompt { max-width: 560px; margin: 0 auto; }

/* ============================ 7. DEVICE & DASH MOCKUPS ================= */
/* ---- Phone frame ---- */
.phone {
  position: relative; width: 100%; max-width: 320px; margin-inline: auto;
  aspect-ratio: 9 / 19; border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg,#2a3354,#0a1024);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.07);
}
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #05070f; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative;
  background: var(--bg); display: flex; flex-direction: column; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone-float.delay { animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) { .phone-float { animation: none; } }

/* light-mode phone (used in gallery to show light theme) */
.phone.light { background: linear-gradient(160deg,#e9edf7,#cbd3e6); }
.phone.light .phone-screen { background: #f6f8fe; color: #0c1124; }
.phone.light .ui-card { background:#fff; border-color:#e7ebf5; box-shadow: 0 8px 22px -16px rgba(20,30,60,.35); }
.phone.light .ui-row { background:#f0f3fb; border-color:#e7ebf5; }
.phone.light .ui-top .ui-h, .phone.light .uc-v, .phone.light .rn b, .phone.light .ra { color:#0c1124; }
.phone.light .ui-muted, .phone.light .uc-l, .phone.light .rn span, .phone.light .ui-tab { color:#6b7390; }
.phone.light .ui-tab { background:#eef1f9; border-color:#e2e7f3; }
.phone.light .donut::after { background:#fff; }

/* ---- App UI primitives (used inside phone screens & dashboards) ---- */
.ui { display: flex; flex-direction: column; gap: 10px; padding: 14px; height: 100%; overflow: hidden; }
.ui-top { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
.ui-top .ui-h { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--ink); }
.ui-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-iris); display:grid; place-items:center; color:#fff; font-size:.6rem; font-weight:700; }
.ui-tabs { display: flex; gap: 6px; overflow: hidden; }
.ui-tab { font-size: .64rem; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.ui-tab.on { background: var(--grad-mars); color: #fff; border-color: transparent; }
.ui-card { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--ring-inset); }
.ui-card .uc-l { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ui-card .uc-v { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin-top: 3px; }
.ui-muted { color: var(--muted); }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); }
.ui-row .ri { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: .62rem; font-weight: 700; color: #fff; }
.ui-row .rn { flex: 1; min-width: 0; }
.ui-row .rn b { display: block; font-size: .76rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row .rn span { font-size: .64rem; color: var(--muted-2); }
.ui-row .ra { font-size: .8rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* change indicators — never colour alone, always a sign/arrow too */
.delta { font-variant-numeric: tabular-nums; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.delta.up { color: var(--emerald); }
.delta.down { color: var(--danger); }

/* chat bubbles inside phone */
.chat { display: flex; flex-direction: column; gap: 9px; }
.chat-row { max-width: 86%; padding: 10px 13px; font-size: .78rem; line-height: 1.4; border-radius: 15px; }
.chat-row.user { align-self: flex-end; background: var(--grad-mars); color: #fff; border-bottom-right-radius: 5px; }
.chat-row.ai { align-self: flex-start; background: rgba(255,255,255,.06); color: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; display: flex; gap: 8px; align-items: flex-start; }
.chat-row.ai svg { color: var(--mars-orange); flex: none; margin-top: 1px; }

/* ---- Mini charts (CSS/SVG) ---- */
.donut { --p: 60; width: 92px; height: 92px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--mars-red) 0 38%, var(--mars-orange) 38% 60%, var(--cyan) 60% 80%, var(--violet) 80% 100%); }
.donut::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: var(--bg-3); box-shadow: var(--ring-inset); }
.donut.small { width: 66px; height: 66px; }
.donut-wrap { display: flex; align-items: center; gap: 14px; }
.legend { display: grid; gap: 6px; }
.legend .lg { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: var(--ink-2); }
.legend .sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }
.bars .b { flex: 1; border-radius: 5px 5px 0 0; background: rgba(255,255,255,.1); position: relative; overflow: hidden; min-height: 4px; }
.bars .b > i { position: absolute; inset: auto 0 0 0; border-radius: 5px 5px 0 0; background: var(--grad-mars); height: var(--h,50%); }
.bars .b.alt > i { background: linear-gradient(180deg, var(--cyan), var(--indigo)); }

.spark { width: 100%; height: 84px; display: block; }
.spark .area { fill: url(#sparkfill); opacity: .9; }
.spark .ln { fill: none; stroke: var(--mars-orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spark.cyan .ln { stroke: var(--cyan); }
.spark.cyan .area { fill: url(#sparkfill-cyan); }
.spark.emerald .ln { stroke: var(--emerald); }
.spark.emerald .area { fill: url(#sparkfill-em); }
/* draw-on animation */
@media (prefers-reduced-motion: no-preference) {
  .draw .ln { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.4s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .draw .area { opacity: 0; animation: fadein 1s ease .5s forwards; }
  @keyframes fadein { to { opacity: .9; } }
}

.allocbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.allocbar > i { height: 100%; }

/* floating cards around hero device */
.hero-stage { position: relative; }
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px; background: rgba(10,14,28,.78); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); white-space: nowrap;
}
.float-card .fi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-card .fl { font-size: .68rem; color: var(--muted); display: block; }
.float-card .fv { font-size: .92rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fc-1 { top: 6%; left: -6%; }
.fc-2 { top: 30%; right: -9%; }
.fc-3 { bottom: 20%; left: -9%; }
.fc-4 { bottom: 3%; right: -4%; }
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: floaty 8s ease-in-out infinite; }
  .fc-2 { animation-delay: -2s; } .fc-3 { animation-delay: -4s; } .fc-4 { animation-delay: -6s; }
}

/* connection beam from prompt to dashboard (decorative) */
.beam { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* ---- legacy screenshot placeholders (kept tasteful in dark) ---- */
.shot { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.tall { aspect-ratio: 9 / 16; }
.shot-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: inherit;
  background: var(--glass); }
.shot-ph svg { width: 34px; height: 34px; color: var(--muted-2); }
.shot-ph .ph-title { font-weight: 700; color: var(--ink-2); font-size: .98rem; }
.shot-ph .ph-file { font-family: var(--mono); font-size: .76rem; color: var(--muted-2); background: rgba(255,255,255,.04); padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); }
.phone-screen .shot-ph { border-radius: 0; border: none; background: linear-gradient(180deg,#0e1430,#080d1e); }

/* ============================ 8. LEGAL / CONTACT ====================== */
.page-hero { padding-block: clamp(54px, 7vw, 92px) clamp(32px, 4vw, 48px); }
.page-hero h1 { margin-top: 14px; }
.page-hero p { margin-top: 16px; max-width: 700px; }

.article { padding-bottom: clamp(64px, 9vw, 110px); }
.article .container { max-width: 820px; }
.article h2 { font-size: 1.5rem; margin-top: 46px; margin-bottom: 14px; padding-top: 8px; }
.article h3 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 10px; }
.article p, .article li { color: var(--ink-2); font-size: 1.02rem; }
.article p { margin-bottom: 14px; }
.article ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; display: grid; gap: 8px; }
.article ul li { padding-left: 4px; }
.article ul li::marker { color: var(--mars-orange); }
.article a { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.article .meta { color: var(--muted); font-size: .92rem; }
.article table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.article th { background: var(--bg-3); font-weight: 700; color: var(--ink); }
.toc { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 28px; box-shadow: var(--ring-inset); }
.toc strong { display: block; margin-bottom: 10px; font-family: var(--font-display); color: var(--ink); }
.toc ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--cyan); font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-3); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select option { background: var(--bg-3); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.18); }
.field textarea { resize: vertical; min-height: 140px; }
.field .err { color: var(--danger); font-size: .82rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-note a, .field .err + a { color: var(--cyan); }
.form-success { display: none; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #b7f3d8; font-weight: 500; margin-bottom: 18px; }
.form-success.show { display: flex; }
.form-success svg { flex: none; color: var(--success); }
.form-success a { color: var(--cyan); }

.contact-aside .contact-method { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-aside .contact-method:last-child { border-bottom: 0; }
.contact-method .icon-tile { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-method h3 { font-size: 1.05rem; margin-bottom: 3px; }
.contact-method p { color: var(--muted); font-size: .96rem; }
.contact-method a { color: var(--cyan); font-weight: 600; font-size: .96rem; }

/* team (about) */
.team-card { text-align: center; }
.team-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--indigo-600)); color: #fff; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.team-avatar .shot-ph { border-radius: 50%; }
.team-card h3 { font-size: 1.1rem; }
.team-card .role { color: var(--mars-orange); font-weight: 600; font-size: .9rem; }
.team-card p { color: var(--muted); font-size: .92rem; margin-top: 8px; }

.value-card { padding: 26px; }
.value-card .num { font-family: var(--font-display); font-weight: 700; color: var(--mars-orange); font-size: 1rem; }

/* ============================== 9. FOOTER ============================= */
.site-footer { background: #04060e; color: var(--muted); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: clamp(48px, 7vw, 80px); position: relative; z-index: 1; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: .96rem; }
.footer-brand .store-badges { margin-top: 22px; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .96rem; }
.footer-disclosure { position: relative; z-index: 1; padding: 18px 0 4px; color: var(--muted-2); font-size: .82rem; max-width: 720px; border-top: 1px solid var(--line-soft); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-bottom p { color: var(--muted-2); font-size: .9rem; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: background .18s ease, transform .18s ease, border-color .18s; }
.social-row a:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); border-color: var(--line-2); }
.social-row svg { width: 18px; height: 18px; }

/* =========================== 10. MOTION / UTIL ========================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { flex: none; vertical-align: middle; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--mars-orange); }
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================== 11. RESPONSIVE =========================== */
@media (max-width: 1000px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-stage { min-height: 0; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .trust-grid, .journey { grid-template-columns: 1fr 1fr; }
  .hero-grid, .showcase-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-bottom: 8px; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .journey-step:not(:last-child)::after { display: none; }
  /* float cards pull inward so they don't overflow on tablet */
  .fc-1, .fc-3 { left: 0; } .fc-2, .fc-4 { right: 0; }
}
/* switch to the hamburger before the desktop nav gets cramped */
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2, .feature-grid, .trust-grid, .journey { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  /* horizontal-scroll chip rows on phones */
  .scroll-x { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .scroll-x > * { scroll-snap-align: start; flex: 0 0 auto; }
  .hero-stage { padding-inline: 6%; }
  .float-card { display: none; }
  .float-card.keep { display: flex; position: static; margin: 8px auto 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
  .nav-cta .btn { padding: 10px 16px; font-size: .94rem; }
  .logo-text { font-size: 1.06rem; }
  .logo-mark { width: 34px; height: 34px; }
}
