/* ============ MindState AI — site styles ============ */

:root {
  /* Dark is default — matches current brand */
  --bg: #0C0C0A;
  --bg-elev: #151513;
  --bg-deep: #050504;
  --ink: #F4F2EC;
  --ink-2: #D7D4CC;
  --ink-3: #9A968C;
  --ink-4: #6A665D;
  --line: #25241F;
  --line-2: #363530;
  --accent-1: #F5822E; /* orange */
  --accent-2: #EF4D7A; /* pink */
  --accent-3: #C43A92; /* magenta */
  --serif: "GT Sectra", "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

[data-theme="light"] {
  --bg: #F6F4F0;
  --bg-elev: #FFFFFF;
  --bg-deep: #0E0E0C;
  --ink: #0E0E0C;
  --ink-2: #2B2A27;
  --ink-3: #56544F;
  --ink-4: #8A877F;
  --line: #E2DFD8;
  --line-2: #D4D0C7;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.mono { font-family: var(--mono); font-variant-ligatures: none; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-4);
  display: inline-block;
}

.hero-display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.hero-display em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section { position: relative; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 18px;
  color: var(--ink);
}
.nav-logo .nav-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.nav-logo .nav-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.nav-logo .nav-wordmark b {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-logo .nav-wordmark i {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2), var(--accent-3));
  color: #fff;
  position: relative;
  top: -2px;
}
.nav-links {
  display: flex; gap: 2px; align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px rgba(0,0,0,.3);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn .arrow {
  transition: transform .2s;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Lang toggle ---------- */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang-toggle button {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: background .2s, color .2s;
  font-family: var(--mono);
  font-size: 11px;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(60px, 8vw, 120px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; align-items: stretch; }
}
.hero-left { display: flex; flex-direction: column; gap: 40px; }
.hero-bottom-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-sub { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.hero-sub .dot { width: 6px; height: 6px; border-radius: 50%; background: #35B26A; box-shadow: 0 0 0 4px color-mix(in oklab, #35B26A 22%, transparent); }

/* hero demo panel */
.hero-demo {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 80px -40px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  min-height: 440px;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-bar .pulse {
  display: inline-flex; align-items: center; gap: 8px;
}
.demo-bar .pulse::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.demo-body {
  flex: 1;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 0;
}
.demo-msg {
  display: flex; gap: 10px;
  opacity: 0;
  animation: fadeSlide .5s forwards;
}
.demo-msg .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--ink-2);
  font-weight: 600;
}
.demo-msg.agent .avatar {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: white;
}
.demo-msg .bubble {
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 82%;
  color: var(--ink-2);
}
.demo-msg.agent .bubble {
  background: color-mix(in oklab, var(--accent-2) 6%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--accent-2) 18%, var(--line));
  color: var(--ink);
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-action-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  align-self: flex-start;
}
.demo-action-chip::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-2);
}
.demo-typing {
  display: inline-flex; gap: 3px;
  padding: 12px 14px;
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  border-radius: 10px;
  width: fit-content;
}
.demo-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3);
  animation: dot 1.2s infinite;
}
.demo-typing span:nth-child(2) { animation-delay: .15s; }
.demo-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.demo-footer {
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero orbit / mark */
.hero-mark-bg {
  position: absolute;
  top: -80px;
  right: -140px;
  width: 640px;
  height: 640px;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  filter: blur(.5px);
}
.hero-mark-bg img { width: 100%; height: 100%; object-fit: contain; }
.hero-mark-bg { opacity: 0.12; }
[data-theme="light"] .hero-mark-bg { opacity: 0.06; }

/* ---------- Section bar ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}
.section-head-left { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.section-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Logos ---------- */
.logos {
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logos-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-3);
  max-width: 200px;
}
.logos-row {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.logo-item {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: opacity .2s, color .2s;
  display: flex; align-items: center; gap: 8px;
}
.logo-item:hover { opacity: 1; color: var(--ink); }
.logo-item .logo-mark {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Agents / capabilities grid ---------- */
.agents {
  padding: clamp(72px, 10vw, 140px) 0;
}
.agents-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.agent-card {
  grid-column: span 2;
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  background: var(--bg);
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.agent-card.wide { grid-column: span 3; }
.agent-card.full { grid-column: span 6; min-height: 420px; background: var(--bg-deep); color: var(--bg); }

.agent-card:hover { background: color-mix(in oklab, var(--ink) 3%, var(--bg)); }
.agent-card.full:hover { background: var(--bg-deep); }

@media (max-width: 900px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-card { grid-column: span 2; }
  .agent-card.wide { grid-column: span 2; }
  .agent-card.full { grid-column: span 2; }
}

.agent-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-3);
  text-transform: uppercase;
}
.agent-card.full .agent-num { color: var(--ink-4); }
.agent-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.agent-desc { color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.agent-card.full .agent-desc { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.agent-stats {
  margin-top: auto;
  display: flex; gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.agent-card.full .agent-stats { border-top-color: color-mix(in oklab, var(--bg) 15%, transparent); }
.agent-stat { display: flex; flex-direction: column; gap: 4px; }
.agent-stat .val {
  font-family: var(--serif); font-size: 32px; line-height: 1;
  letter-spacing: -0.02em;
}
.agent-stat .lab {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4);
}

/* Interactive agent demo inside a full-width card */
.agent-demo-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .agent-demo-row { grid-template-columns: 1fr; } }
.agent-demo-left { display: flex; flex-direction: column; gap: 20px; }
.agent-demo-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.agent-demo-tabs button {
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  transition: all .2s;
}
.agent-demo-tabs button.active {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.agent-demo-tabs button:not(.active):hover {
  color: var(--bg);
  border-color: color-mix(in oklab, var(--bg) 40%, transparent);
}

.agent-workflow {
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  min-height: 280px;
}
.agent-workflow .step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in oklab, var(--bg) 5%, transparent);
  border-radius: 8px;
  border-left: 2px solid transparent;
  opacity: 0.4;
  transition: all .3s;
}
.agent-workflow .step.done { opacity: 0.7; border-left-color: #3FB86E; }
.agent-workflow .step.active {
  opacity: 1;
  border-left-color: var(--accent-2);
  background: color-mix(in oklab, var(--accent-2) 12%, transparent);
}
.agent-workflow .step .idx {
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  min-width: 22px;
}
.agent-workflow .step.done .idx::before { content: "✓ "; color: #3FB86E; }
.agent-workflow .step .txt { flex: 1; color: var(--bg); }
.agent-workflow .step .meta { color: color-mix(in oklab, var(--bg) 50%, transparent); font-size: 10px; margin-top: 2px; }

/* ---------- Comparison table ---------- */
.compare {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr repeat(2, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: none; }
.compare-row.head {
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare-cell {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.compare-cell:last-child { border-right: none; }
.compare-cell.highlight {
  background: color-mix(in oklab, var(--accent-2) 6%, var(--bg));
  position: relative;
}
.compare-cell.highlight::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid color-mix(in oklab, var(--accent-2) 30%, transparent);
  pointer-events: none;
}
.compare-row.head .compare-cell.highlight {
  background: color-mix(in oklab, var(--accent-2) 10%, color-mix(in oklab, var(--ink) 4%, transparent));
  color: var(--ink);
  font-weight: 600;
}
.compare-dim-label {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.compare-dim-sub {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0;
}
.compare-value {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.compare-value.strong { color: var(--ink); font-weight: 500; }
.compare-check {
  display: inline-flex;
  width: 20px; height: 20px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 11px;
}
.compare-check.yes { background: color-mix(in oklab, #3FB86E 18%, transparent); color: #2A8A50; }
.compare-check.no  { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink-3); }
.compare-check.yes { color: #7BD79D; }
[data-theme="light"] .compare-check.yes { color: #2A8A50; }

@media (max-width: 800px) {
  .compare-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 13px; }
  .compare-cell { padding: 14px 12px; }
}

/* ---------- Team / About ---------- */
.about {
  padding: clamp(72px, 10vw, 140px) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.about-stat {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.about-stat:nth-child(2n) { border-right: none; padding-left: 20px; padding-right: 0; }
.about-stat .val {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.about-stat .lab {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 10px;
}

.team-list { display: flex; flex-direction: column; gap: 0; }
.team-member {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .2s;
}
.team-member:hover { padding-left: 8px; }
.team-member:last-child { border-bottom: none; }
.team-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.team-info { display: flex; flex-direction: column; gap: 2px; }
.team-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.team-role { font-size: 13px; color: var(--ink-3); }
.team-member .prev {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-4); letter-spacing: 0.06em;
  text-align: right;
}

/* ---------- Final CTA ---------- */
.cta {
  /* CTA is an intentional dark band with light text in BOTH color modes.
     Lock --bg/--ink to the light-theme tokens so the whole subtree (heading,
     lead, button, contact bar) stays light-on-dark even in dark mode. */
  --bg: #F6F4F0;
  --ink: #0E0E0C;
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--bg-deep);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .cta { background: var(--bg-deep); }
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }
.cta .h2 { color: var(--bg); max-width: 14ch; }
.cta-side {
  display: flex; flex-direction: column; gap: 20px;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  font-size: 15px; line-height: 1.55;
}
.cta-side .btn-primary {
  background: var(--bg);
  color: var(--ink);
  align-self: flex-start;
}
.cta-bg-mark {
  position: absolute;
  right: -120px; bottom: -160px;
  width: 720px; height: 720px;
  opacity: 0.12;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-2) 50%, transparent), transparent 70%);
  filter: blur(60px);
}
.cta-rings {
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 800px; height: 800px;
  pointer-events: none;
  opacity: 0.3;
}
.cta-rings circle { fill: none; stroke: color-mix(in oklab, var(--bg) 20%, transparent); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: var(--ink-3); transition: color .2s ease; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 200;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px color-mix(in oklab, var(--bg-deep) 35%, transparent);
}
.cookie-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.cookie-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 520px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; } }
.footer-wordmark {
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: color-mix(in oklab, var(--ink) 8%, transparent);
  text-align: center;
  margin: 48px 0 32px;
  user-select: none;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Tweaks panel ---------- */
#tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.25);
  z-index: 200;
  display: none;
  font-size: 13px;
}
#tweaks-panel.open { display: block; }
#tweaks-panel h5 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#tweaks-panel h5 span { font-weight: 400; }
#tweaks-panel label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
}
#tweaks-panel label:first-of-type { border-top: none; }
#tweaks-panel select, #tweaks-panel input[type="range"] {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--ink);
  max-width: 140px;
}
#tweaks-panel .swatch-row { display: flex; gap: 6px; }
#tweaks-panel .swatch {
  width: 22px; height: 22px; border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s;
}
#tweaks-panel .swatch.active { border-color: var(--ink); }
#tweaks-panel .swatch:hover { transform: scale(1.08); }

/* marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  animation: scroll 30s linear infinite;
  width: max-content;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Utility ---------- */
.hide-mobile { }
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}


/* ============ Services grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
  background: var(--bg);
  transition: background .3s;
  position: relative;
}
.service-card:hover { background: color-mix(in oklab, var(--ink) 3%, var(--bg)); }
.service-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-3);
  text-transform: uppercase;
}
.service-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.service-desc { color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.service-tag {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  align-self: flex-start;
}

/* ============ Intelligo catalogue ============ */
.intelligo {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-bar .chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  transition: all .15s;
}
.filter-bar .chip:hover { color: var(--ink); border-color: var(--ink); }
.filter-bar .chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.intelligo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .intelligo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .intelligo-grid { grid-template-columns: 1fr; } }
.intelligo-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: border-color .2s, transform .2s;
}
.intelligo-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.intelligo-card-head { display: flex; gap: 14px; align-items: center; }
.intelligo-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; color: white;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.intelligo-title {
  font-family: var(--serif); font-size: 22px;
  letter-spacing: -0.01em; margin: 0; line-height: 1.1;
}
.intelligo-sub {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}
.intelligo-desc { font-size: 14px; line-height: 1.5; color: var(--ink-3); flex: 1; }
.intelligo-actions { display: flex; justify-content: flex-end; }
.intelligo-actions .btn {
  width: 36px; height: 36px; padding: 0;
  font-size: 18px;
  border-radius: 50%;
}

/* ============ Sovereignty ============ */
.sovereignty {
  padding: clamp(72px, 10vw, 140px) 0;
}
.sov-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .sov-grid { grid-template-columns: 1fr; } }
.sov-points { display: flex; flex-direction: column; gap: 0; }
.sov-point {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.sov-point:last-child { border-bottom: 1px solid var(--line); }
.sov-num-dot {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-3);
  padding-top: 4px;
}
.sov-point h4 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.15;
  font-weight: 400;
}
.sov-point p { color: var(--ink-3); font-size: 14px; line-height: 1.55; margin: 0; }

.sov-visual {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.sov-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.sov-models { display: flex; flex-wrap: wrap; gap: 8px; }
.llm-badge {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.sov-diagram {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--mono); font-size: 11px;
}
.sov-diagram-box {
  border: 1.5px dashed var(--ink-3);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}
.sov-box-label {
  position: absolute; top: -8px; left: 16px;
  background: var(--bg-elev);
  padding: 0 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.sov-box-inner { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sov-box-chip {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.sov-line {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-size: 10px;
  position: relative;
}
.sov-line::before, .sov-line::after {
  content: ""; height: 1px; background: var(--line-2);
  flex: 1; margin: 0 12px;
}
.sov-diagram-outside {
  text-align: center;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  background: var(--bg);
}

/* ============ Company / stats / process ============ */
.company-lead-row { padding: 0 0 48px; }
.about-stats {
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 64px;
}
@media (max-width: 800px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.process-step:last-child { border-right: none; }
.process-step:not(:first-child) { padding-left: 24px; }
.step-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-3);
}
.process-step h3 {
  font-family: var(--serif);
  font-size: 22px; letter-spacing: -0.01em;
  margin: 0; font-weight: 400; line-height: 1.15;
}
.process-step p { color: var(--ink-3); font-size: 13px; line-height: 1.55; margin: 0; }

/* ============ Contact bar inside CTA ============ */
.contact-bar {
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  padding-top: 32px;
  position: relative;
  z-index: 1;
}
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
}
@media (max-width: 800px) { .contact-row { grid-template-columns: 1fr; gap: 20px; } }
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.contact-val { font-size: 14px; line-height: 1.4; color: var(--bg); }

/* ============ ICON LIBRARY STYLING ============ */
.ms-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.btn .ms-icon { transition: transform .2s ease; }
.btn:hover .ms-icon { transform: translateX(3px); }
.btn-ghost:has(.ms-icon:first-child) .ms-icon:first-child { transform: none; }
.btn-ghost:hover:has(.ms-icon:first-child) .ms-icon:first-child { transform: scale(1.1); }

/* ============ TYPOGRAPHY POLISH — sans-display system ============ */
/* When --serif resolves to a sans (Geist), tune weights tighter */
.h2, .h3,
.service-title, .intelligo-title, .agent-title,
.sov-point h4, .process-step h3, .team-name,
.compare-dim-label, .footer-wordmark,
.about-stat .val, .agent-stat .val, .logo-item {
  font-weight: 500;
  letter-spacing: -0.025em;
}
.footer-wordmark {
  font-weight: 600;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in oklab, var(--ink) 8%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.service-title { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; }
.intelligo-title { font-size: 18px; letter-spacing: -0.015em; }
.sov-point h4 { font-size: 22px; }
.process-step h3 { font-size: 20px; }
.compare-dim-label { font-size: 15px; letter-spacing: -0.01em; font-weight: 500; }
.about-stat .val { font-weight: 500; letter-spacing: -0.035em; }
.logo-item { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.agent-title { font-weight: 500; letter-spacing: -0.025em; }

/* ============ SERVICE CARD — icon head ============ */
.service-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.service-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--ink);
  transition: all .2s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: #fff;
  transform: scale(1.05);
}

/* ============ INTELLIGO CARDS — icon mark override ============ */
.intelligo-mark {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
}
.intelligo-card:hover .intelligo-mark {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: #fff;
  border-color: transparent;
}

/* ============ INTELLIGO FILTER CHIPS — with icons ============ */
.filter-bar .chip {
  display: inline-flex; align-items: center; gap: 7px;
}
.filter-bar .chip .ms-icon { opacity: 0.7; }
.filter-bar .chip.active .ms-icon { opacity: 1; }

/* ============ INTELLIGO ACTION BTN — wider for "Explore →" ============ */
.intelligo-actions .btn {
  width: auto; height: 32px;
  padding: 0 12px;
  font-size: 12px;
  gap: 5px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============ SOVEREIGNTY — icon + num layout ============ */
.sov-point {
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  align-items: start;
}
.sov-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent-1) 14%, transparent),
    color-mix(in oklab, var(--accent-3) 14%, transparent));
  color: var(--accent-2);
  border: 1px solid color-mix(in oklab, var(--accent-2) 22%, transparent);
}
.sov-point .sov-num-dot {
  display: inline-block;
  margin-bottom: 6px;
  padding-top: 0;
}

/* ============ PROCESS STEPS — icon head ============ */
.step-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.step-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ink) 5%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ============ COMPARE — refined check cells ============ */
.compare-check {
  width: 28px; height: 28px;
  border-radius: 8px;
}
.compare-check.yes {
  background: color-mix(in oklab, #3FB86E 14%, transparent);
  color: #2A8A50;
}
.compare-check.no {
  background: color-mix(in oklab, var(--ink) 5%, transparent);
  color: var(--ink-4);
}
.compare-check.partial {
  background: color-mix(in oklab, var(--accent-1) 14%, transparent);
  color: var(--accent-1);
}
[data-theme="dark"] .compare-check.yes { color: #7BD79D; }

/* ============ CONTACT BAR — with icons ============ */
.contact-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--bg) 15%, transparent);
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  flex-shrink: 0;
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
}

/* ============ FOOTER — social icons ============ */
.footer-social {
  display: flex; gap: 8px; margin-top: 16px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  border: 1px solid var(--line);
  transition: all .15s;
}
.footer-social a:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: color-mix(in oklab, var(--ink) 4%, transparent);
}

/* ============ CTA secondary mail link ============ */
.cta-mail { display: inline-flex; align-items: center; gap: 6px; }

/* ============ Intelligo mark — center icon properly ============ */
.intelligo-mark .ms-icon { width: 20px; height: 20px; }

/* ============ Keep existing --serif references looking good as Geist ============ */
.compare-dim-sub { font-size: 12px; }

.contact-val a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Download desktop app announcement ===== */
.downloadapp { padding: clamp(56px, 8vw, 100px) 0; }
.downloadapp-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 40px;
  padding: clamp(32px, 4.5vw, 56px);
  border-radius: var(--radius-xl, 28px);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--accent-2) 14%, transparent), transparent 55%),
    color-mix(in oklab, var(--accent-2) 5%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--accent-2) 16%, var(--line));
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 90px -50px rgba(0,0,0,.6);
}
.downloadapp-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2), var(--accent-3));
  opacity: .9;
}
.downloadapp-glow { display: none; }
.downloadapp-content { flex: 1; position: relative; z-index: 1; min-width: 0; }
.downloadapp-visual {
  position: relative; z-index: 1; flex-shrink: 0;
  display: grid; place-items: center; width: 280px; height: 240px;
}
.downloadapp-visual::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-1) 32%, transparent), transparent 62%);
  filter: blur(6px);
}
.downloadapp-visual img { position: relative; width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 18px 42px rgba(245,130,46,.35)); }
.downloadapp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent-2) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent-2) 22%, transparent);
  color: var(--accent-2); font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #35B26A; animation: ddpulse 2s infinite; }
.downloadapp h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; margin: 0 0 16px; color: var(--ink); letter-spacing: -.01em; }
.downloadapp-content > p { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 540px; margin: 0 0 30px; }
.downloadapp-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px; border-radius: var(--radius-md, 14px); text-decoration: none; color: #fff;
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  box-shadow: 0 14px 36px -8px color-mix(in oklab, var(--accent-2) 60%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.downloadapp-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 22px 50px -10px color-mix(in oklab, var(--accent-2) 70%, transparent); }
.downloadapp-btn img { display: block; }
.downloadapp-btn-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.downloadapp-btn-text strong { font-size: 16px; font-weight: 700; }
.downloadapp-btn-text small { font-size: 12px; opacity: .9; }
.downloadapp-note { display: flex; gap: 22px; margin-top: 20px; color: var(--ink-3); font-size: 13px; flex-wrap: wrap; }
.downloadapp-note span { display: inline-flex; align-items: center; gap: 6px; }
@keyframes ddpulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, #35B26A 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 820px) {
  .downloadapp-card { flex-direction: column-reverse; text-align: center; gap: 24px; padding: 32px 22px; }
  .downloadapp-visual { width: 100%; height: 180px; }
  .downloadapp-visual img { width: 130px; height: 130px; }
  .downloadapp-content > p { margin-inline: auto; }
  .downloadapp-note { justify-content: center; }
}
