@font-face {
  font-family: "SF Arabic";
  /* Commercial-safe: SF-Arabic removed */
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.042);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --surface-elevated: rgba(14, 15, 18, 0.72);
  --fg: #ffffff;
  --fg-soft: #d4d4d8;
  --muted: #98989f;
  --border: rgba(255, 255, 255, 0.12);
  --border-hi: rgba(255, 255, 255, 0.24);
  --accent: #ffffff;
  --accent-fg: #000000;
  --shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.9);
  --font-apple: "Inter", "Vazirmatn", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-elevated: rgba(244, 245, 248, 0.86);
  --fg: #090b10;
  --fg-soft: #27272a;
  --muted: #5b5d66;
  --border: rgba(12, 14, 20, 0.11);
  --border-hi: rgba(12, 14, 20, 0.22);
  --accent: #090b10;
  --accent-fg: #ffffff;
  --shadow: 0 20px 52px -20px rgba(15, 23, 42, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: clip;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-apple);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: auto;
  transition: background-color 0.28s ease, color 0.28s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: 0;
}
p, li { text-wrap: pretty; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.tabular-nums, .step-val, .price-tag span { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Restrained Monochrome Studio Backdrop for Genuine Glass Refraction */
.ambient-stage {
  position: fixed;
  inset: -6%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(640px circle at 24% 18%, rgba(255, 255, 255, 0.09), transparent 64%),
    radial-gradient(540px circle at 80% 42%, rgba(205, 205, 205, 0.06), transparent 68%),
    radial-gradient(560px circle at 32% 80%, rgba(255, 255, 255, 0.055), transparent 70%);
}
html[data-theme="light"] .ambient-stage {
  background-image:
    radial-gradient(640px circle at 24% 18%, rgba(15, 23, 42, 0.065), transparent 64%),
    radial-gradient(540px circle at 80% 42%, rgba(15, 23, 42, 0.045), transparent 68%),
    radial-gradient(560px circle at 32% 80%, rgba(15, 23, 42, 0.045), transparent 70%);
}

.svg-ico { width: 18px; height: 18px; flex-shrink: 0; }
.svg-ico-sm { width: 15px; height: 15px; flex-shrink: 0; }
.svg-ico-xs { width: 14px; height: 14px; flex-shrink: 0; }

/* Genuine Apple Liquid Glass Surfaces (Single 1px Masked Specular Rim, Zero Double Border) */
.glass-pill {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border-radius: 9999px;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.24),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px -14px rgba(0, 0, 0, 0.8);
}

.glass-card {
  position: relative;
  background: linear-gradient(155deg, var(--surface-strong) 0%, var(--surface) 100%);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.05),
    var(--shadow);
}

.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--fg);
  border: none;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-radius: 9999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.22), 0 8px 20px -12px rgba(0, 0, 0, 0.7);
  transition: background-color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card::before,
.glass-pill::before,
.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(142deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.015) 65%, rgba(255, 255, 255, 0.14) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

html[data-theme="light"] .glass-pill,
html[data-theme="light"] .glass-btn {
  background: rgba(12, 14, 20, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 24px -14px rgba(15, 23, 42, 0.14);
}
html[data-theme="light"] .glass-btn:hover {
  background: rgba(12, 14, 20, 0.085);
}
html[data-theme="light"] .key-box,
html[data-theme="light"] .bot-type-input {
  background: rgba(12, 14, 20, 0.04);
}
html[data-theme="light"] .glass-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -0.5px 0 rgba(15, 23, 42, 0.05), var(--shadow);
}
html[data-theme="light"] .glass-card::before,
html[data-theme="light"] .glass-pill::before,
html[data-theme="light"] .glass-btn::before {
  background: linear-gradient(142deg, rgba(255, 255, 255, 0.95) 0%, rgba(15, 23, 42, 0.1) 34%, rgba(15, 23, 42, 0.04) 68%, rgba(255, 255, 255, 0.75) 100%);
}

.glass-btn:hover { background: var(--surface-strong); transform: translateY(-1px); }
.glass-btn:active { transform: scale(0.97); }
.glass-btn.big { padding: 14px 24px; font-size: 15px; }
.icon-btn { width: 40px; height: 40px; padding: 0; }
.lang-btn { min-width: 44px; height: 40px; padding: 0 12px; font-size: 12.5px; font-weight: 700; }
.trial-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trial-actions-row .solid-btn, .trial-actions-row .glass-btn { flex: 1 1 180px; }
.features-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.features-pills span { padding: 5px 11px; border-radius: 9999px; font-size: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-soft); }
.prorate-note { font-size: 12.5px; color: var(--muted); border-radius: 14px; border: 1px dashed var(--border); padding: 10px 13px; background: var(--surface); line-height: 1.65; }

.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.85), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
html[data-theme="light"] .solid-btn {
  box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.solid-btn:hover { transform: translateY(-1px); opacity: 0.94; }
.solid-btn:active { transform: scale(0.97); }
.solid-btn.big { padding: 14px 24px; font-size: 15px; }
.solid-btn.full { width: 100%; }

/* Floating Sticky Navigation — Balanced Apple Liquid Glass Capsule */
.top-nav {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: calc(100% - 24px);
  max-width: 1260px;
  margin: 14px auto 0;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  background: rgba(12, 12, 15, 0.56);
}
html[data-theme="light"] .top-nav { background: rgba(255, 255, 255, 0.84); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.brand-logo { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; }

.nav-links {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-soft);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: grab;
}
.nav-links.is-dragging { cursor: grabbing; }
html[data-theme="light"] .nav-links { background: rgba(12, 14, 20, 0.04); }
.nav-links .nav-item {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 7px 15px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.22s ease;
}
.nav-links .nav-item.is-active { color: var(--fg); }
.nav-lens {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 9999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, box-shadow 0.2s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.nav-links.is-dragging .nav-lens {
  transition: width 0.16s ease, box-shadow 0.16s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 12px 28px -8px rgba(0, 0, 0, 0.85);
}
html[data-theme="light"] .nav-lens {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(12, 14, 20, 0.07));
  border-color: rgba(12, 14, 20, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 8px 18px -10px rgba(15, 23, 42, 0.25);
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(96vw, 1780px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 28px) 76px;
  display: flex;
  flex-direction: column;
  gap: clamp(52px, 7.5vw, 96px);
}

/* 1. Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.16fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-soft);
  max-width: 100%;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--fg);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.24;
  margin: 16px 0 14px;
  font-weight: 700;
}
.hero-muted { color: var(--muted); font-weight: 600; font-size: 0.88em; }
.lead {
  color: var(--fg-soft);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  margin: 0 0 24px;
  max-width: 640px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 18px; }
.trust-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

/* Hero Real App Proof Frame */
.hero-proof {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.frame-window {
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
}
.hero-shot {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

/* Section Headers */
.section { display: flex; flex-direction: column; gap: 22px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
.section-head p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 760px; }

/* 2. Full App Capabilities Asymmetric Bento */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cap-card {
  padding: clamp(18px, 2.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cap-wide { grid-column: span 2; }
.cap-full { grid-column: 1 / -1; }
.cap-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-card h3 { margin: 0; font-size: 16.5px; font-weight: 600; }
.cap-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.72; }

/* 3. Before / After Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.compare-col { padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.compare-before { opacity: 0.88; }
.compare-head { display: flex; align-items: center; gap: 10px; }
.compare-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.compare-list { margin: 0; padding: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--fg-soft); line-height: 1.7; }
.compare-before .compare-list { color: var(--muted); }

/* 3. Interactive Real Screenshots Showcase */
.showcase-shell { padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 18px; }
.showcase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, color 0.18s ease;
}
.sc-tab:active { transform: scale(0.97); }
.sc-tab.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.sc-counter { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.showcase-stage {
  border-radius: 18px;
  background: var(--surface-elevated);
  padding: clamp(16px, 3vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}
.sc-shot-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000000;
}
.sc-shot {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.sc-info h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.sc-info p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.sc-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--fg-soft); }
.sc-bullets li { display: flex; align-items: flex-start; gap: 8px; }

/* 4. Interactive Companion Studio */
.companion-studio {
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3.5vw, 34px);
  align-items: center;
}
.studio-preview { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.studio-controls { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stage-chip { font-size: 13px; font-weight: 700; color: var(--fg); }
.status-pill { padding: 5px 12px; font-size: 12px; color: var(--fg-soft); }

.companion-wrap {
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.4));
  overflow: hidden;
}
html[data-theme="light"] .companion-wrap {
  background: radial-gradient(circle at 50% 45%, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.01));
}
.bot-canvas { width: 142px; height: 142px; display: flex; align-items: center; justify-content: center; }
.mx-gb-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mx-gb-body { transform-origin: 100px 100px; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.mx-gb-eyes { transform-origin: 100px 94px; transition: transform 0.14s ease-out; }
.mx-gb-pill { transform-box: fill-box; transform-origin: center center; animation: gbBlink 5.2s ease-in-out infinite; }
.companion-wrap[data-state="idle"] .mx-gb-body { animation: gbFloat 4.8s ease-in-out infinite; }
.companion-wrap[data-state="speaking"] .mx-gb-body { animation: gbSpeak 0.72s ease-in-out infinite; }
.companion-wrap[data-state="searching"] .mx-gb-body { animation: gbSearch 1.1s ease-in-out infinite; }
.companion-wrap[data-state="searching"] .mx-gb-eyes { animation: gbScan 1.3s ease-in-out infinite; }
.companion-wrap[data-state="working"] .mx-gb-body { animation: gbWork 1.5s ease-in-out infinite; }
.companion-wrap[data-state="thinking"] .mx-gb-body { animation: gbThink 2s ease-in-out infinite; }
.companion-wrap[data-state="celebrate"] .mx-gb-body { animation: gbCelebrate 1.15s ease-in-out infinite; }
.companion-wrap[data-state="user_typing"] .mx-gb-body { animation: gbListen 1.8s ease-in-out infinite; }

@keyframes gbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes gbBlink { 0%,46%,49%,93%,100% { transform: scaleY(1); } 47.5%,94.5% { transform: scaleY(0.12); } }
@keyframes gbSpeak { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.025); } }
@keyframes gbSearch { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(-2deg) translateY(-3px); } }
@keyframes gbScan { 0%,100% { transform: translate(-8px, 0); } 50% { transform: translate(8px, 0); } }
@keyframes gbWork { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(-1deg) translateY(-2.5px); } }
@keyframes gbThink { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(4deg) translateY(-3px); } }
@keyframes gbCelebrate { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes gbListen { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(-1deg) translateY(-2px); } }

.bot-type-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--fg);
  text-align: center;
  transition: border-color 0.2s ease;
}
.bot-type-input:focus { border-color: var(--border-hi); outline: none; }
.bot-type-input::placeholder { color: var(--muted); }

.bot-controls-group { display: flex; flex-direction: column; gap: 8px; }
.ctrl-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.shape-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.shape-btn {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}
.shape-btn:hover { transform: translateY(-1px); border-color: var(--border-hi); }
.shape-btn:active { transform: scale(0.95); }
.shape-btn.active { border-color: var(--fg); background: var(--surface-strong); }

.color-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.color-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-origin: border-box;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-dot:hover { transform: scale(1.1); }
.color-dot.active { border-color: var(--fg); box-shadow: 0 0 0 2px var(--bg); }
.c-black { background: linear-gradient(135deg, #ffffff, #d8d8df); }
html[data-theme="light"] .c-black { background: linear-gradient(135deg, #000000, #232328); }
.c-liquid_glass {
  border: none !important;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #c8d0dc 40%, #4b5565 74%, #181c24 100%) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.92), inset 0 -1px 2px rgba(0, 0, 0, 0.55) !important;
}
.c-liquid_glass.active {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg) !important;
}
.c-blue { background: linear-gradient(135deg, #2A92FE, #0E74E0); }
.c-cyan { background: linear-gradient(135deg, #1CC3B0, #00A592); }
.c-green { background: linear-gradient(135deg, #00C972, #009957); }
.c-violet { background: linear-gradient(135deg, #A97EFE, #804EE0); }
.c-magenta { background: linear-gradient(135deg, #FF5EB1, #E02A88); }
.c-orange { background: linear-gradient(135deg, #FF781C, #FF6700); }
.c-yellow { background: linear-gradient(135deg, #FFAF38, #FF9800); }
.c-red { background: linear-gradient(135deg, #FF3E51, #E02135); }
.c-brown { background: linear-gradient(135deg, #A27952, #855C36); }
.c-gray { background: linear-gradient(135deg, #959595, #777777); }

.custom-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 4px;
  padding-inline: 12px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-soft);
  cursor: pointer;
}
.custom-color-wrap input[type="color"] {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--border-hi);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.state-switcher { display: flex; flex-wrap: wrap; gap: 7px; }
.state-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 9999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, color 0.18s ease;
}
.state-btn:active { transform: scale(0.96); }
.state-btn.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* 5. How It Works (3 Steps) */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card { padding: clamp(20px, 3vw, 26px); display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.step-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.step-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* 6 & 7. Trial & Pricing */
.trial-box {
  padding: clamp(22px, 3.5vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}
.badge { display: inline-block; padding: 6px 14px; font-size: 12px; color: var(--fg-soft); }
.trial-copy h2 { margin: 12px 0 8px; font-size: clamp(22px, 3vw, 28px); }
.trial-copy p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.trial-action { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.key-box {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.key-label { font-size: 12.5px; color: var(--muted); }
.key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key-row code {
  flex: 1 1 160px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.key-meta { font-size: 12px; color: var(--muted); }

.calc-card {
  padding: clamp(22px, 3.5vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 32px);
  align-items: start;
}
.calc-controls { display: flex; flex-direction: column; gap: 14px; }
.stepper-box {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.st-title { font-size: 15.5px; font-weight: 700; }
.st-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.step-btn { width: 40px; height: 40px; padding: 0; font-size: 18px; }
.step-val { font-size: 20px; font-weight: 700; min-width: 28px; text-align: center; }

.calc-summary { display: flex; flex-direction: column; gap: 14px; }
.price-tag { display: flex; align-items: baseline; gap: 8px; }
.price-tag span { font-size: clamp(34px, 5vw, 44px); font-weight: 700; line-height: 1; }
.price-tag small { font-size: 14.5px; color: var(--muted); }
.plan-desc { font-size: 14px; font-weight: 600; color: var(--fg-soft); }
.clarity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.clarity-list li { display: flex; align-items: flex-start; gap: 8px; }

/* 8. FAQ Accordion */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-item { padding: 18px 20px; border-radius: 22px; }
.faq-item summary {
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; font-weight: 500; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; color: var(--fg); }
.faq-item p { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* 9. Privacy & Final CTA */
.privacy-card {
  padding: clamp(22px, 3.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.privacy-copy { flex: 1 1 420px; min-width: 0; }
.privacy-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.privacy-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }

.footer {
  max-width: min(96vw, 1780px);
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 24px) 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--fg); }

.doc-card { padding: clamp(24px, 4vw, 38px); display: flex; flex-direction: column; gap: 16px; }
.doc-card h1 { margin: 0; font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; }
.doc-card h2 { margin: 12px 0 4px; font-size: 18px; font-weight: 600; }
.doc-card p, .doc-card li { margin: 0; font-size: 14.5px; color: var(--fg-soft); line-height: 1.85; }
.doc-card ul { margin: 0; padding: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 980px) {
  .hero, .showcase-stage, .companion-studio { grid-template-columns: minmax(0, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-wide { grid-column: span 2; }
.cap-full { grid-column: 1 / -1; }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .compare-grid, .trial-box, .calc-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .cap-wide { grid-column: span 1; }
  .shape-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .top-nav { padding: 8px 12px; gap: 8px; }
  .nav-cta { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  .icon-btn { width: 36px; height: 36px; }
  .hero-cta .solid-btn, .hero-cta .glass-btn { width: 100%; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .glass-pill, .glass-card, .glass-btn, .top-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #141416 !important;
  }
  html[data-theme="light"] .glass-pill,
  html[data-theme="light"] .glass-card,
  html[data-theme="light"] .glass-btn,
  html[data-theme="light"] .top-nav {
    background: #f5f6f8 !important;
  }
}

@media (prefers-contrast: more) {
  :root { --border: rgba(255, 255, 255, 0.45); --muted: #d4d4d8; }
  html[data-theme="light"] { --border: rgba(12, 14, 20, 0.45); --muted: #27272a; }
  .glass-card::before, .glass-pill::before, .glass-btn::before { display: none; }
  .glass-card, .glass-pill, .glass-btn { border: 1px solid var(--border); }
}

/* Cinematic Apple-grade Scroll & Liquid Specular Motion */
@keyframes ambientDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -14px, 0) scale(1.03); }
}
@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.28); }
}

.ambient-stage {
  animation: ambientDrift 18s ease-in-out infinite;
  will-change: transform;
}
.status-dot {
  animation: badgePulse 2.6s ease-in-out infinite;
}
.hero-preview {
  animation: heroFloat 7s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  transform-style: preserve-3d;
}
.top-nav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.top-nav.is-scrolled {
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.28), 0 18px 42px -12px rgba(0, 0, 0, 0.92);
}

.glass-card {
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 15%), rgba(255, 255, 255, 0.085), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
html[data-theme="light"] .glass-card::after {
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 15%), rgba(12, 14, 20, 0.055), transparent 62%);
}
.glass-card:hover::after { opacity: 1; }
.cap-card:hover, .step-card:hover, .faq-item:hover {
  transform: translate3d(0, -4px, 0);
}
.solid-btn, .glass-btn {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, box-shadow 0.28s ease;
}
.solid-btn:hover { transform: translate3d(0, -2px, 0) scale(1.015); }
.solid-btn:active, .glass-btn:active { transform: scale(0.97); }

.reveal-el {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-el.is-visible {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
}

/* =========================================================
   MOHIVX AI OS — Cinematic Motion v25 + Auth Portal Styles
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #ffffff);
  transform-origin: right center;
  transform: scaleX(0);
  pointer-events: none;
}
html[dir="ltr"] .scroll-progress { transform-origin: left center; }
html[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, rgba(9, 11, 16, 0.22), #090b10);
}

.nav-auth-btn {
  padding: 9px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Hero Split-Line Kinetic Reveal & Monochrome Shimmer */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line-inner {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-brand-shimmer {
  background: linear-gradient(110deg, #ffffff 32%, #a1a1aa 50%, #ffffff 68%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandShimmer 6.5s ease-in-out infinite;
}
html[data-theme="light"] .hero-brand-shimmer {
  background: linear-gradient(110deg, #090b10 32%, #5b5d66 50%, #090b10 68%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes brandShimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

.kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.kpi-pill strong {
  color: var(--fg);
  font-weight: 700;
  font-size: 13.5px;
}

/* 3D Hero Stage + Live Dark/Light Curtain Switcher + Floating Parallax Chips */
.hero-stage-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  perspective: 1200px;
}
.hero-proof {
  transform-style: preserve-3d;
  will-change: transform;
}
.proof-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px;
}
.proof-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proof-dots span {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: var(--border-hi);
}
.proof-mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 2px;
}
.pm-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease;
}
.pm-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
}
.frame-window {
  position: relative;
  aspect-ratio: 16 / 10;
}
.frame-window .hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.frame-window .hero-shot.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-float-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-soft);
  z-index: 6;
  will-change: transform;
}
.hero-float-chip.chip-bottom {
  align-self: flex-end;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-soft);
  margin-bottom: 10px;
}

/* Sliding Liquid Glass Lens inside Showcase Tabs */
.showcase-tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sc-lens {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 9999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.showcase-tabs .sc-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
}
.showcase-tabs .sc-tab.active {
  background: transparent;
  color: var(--fg);
  font-weight: 700;
}
.showcase-tabs.no-lens .sc-tab.active {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: var(--fg);
}

/* Live Dynamic App Icon Sync Bar in Companion Studio */
.live-icon-sync-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 20px;
}
.live-icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.85);
  transition: background-color 0.28s ease, border-color 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="light"] .live-icon-tile {
  background: #ffffff;
  border-color: rgba(12, 14, 20, 0.14);
  box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.25);
}
.live-icon-tile svg { width: 100%; height: 100%; display: block; }
.live-icon-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-icon-meta strong { font-size: 13px; font-weight: 700; color: var(--fg); }
.live-icon-meta span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* Account & OAuth Portal Modal */
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
html[data-theme="light"] .auth-backdrop { background: rgba(12, 14, 20, 0.42); }
.auth-card {
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(14, 15, 18, 0.94);
}
html[data-theme="light"] .auth-card { background: rgba(255, 255, 255, 0.96); }
.auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand img { border-radius: 9px; flex-shrink: 0; }
.auth-brand h3 { margin: 0; font-size: 17px; font-weight: 700; }
.auth-brand p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.auth-alert {
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  background: var(--surface-strong);
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.6;
}
.auth-body { display: flex; flex-direction: column; gap: 14px; }
.oauth-grid { display: flex; flex-direction: column; gap: 9px; }
.oauth-btn { width: 100%; padding: 12px 16px; font-size: 14px; justify-content: center; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.auth-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.auth-tab.active { background: var(--accent); color: var(--accent-fg); }

.auth-form { display: flex; flex-direction: column; gap: 11px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 12px; font-weight: 600; color: var(--fg-soft); }
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.auth-field input:focus { border-color: var(--border-hi); }

.auth-profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.auth-avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.auth-profile-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.auth-profile-meta strong { font-size: 14.5px; color: var(--fg); }
.auth-profile-meta span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.auth-prov-pill { padding: 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.auth-quick-actions { display: flex; flex-direction: column; gap: 10px; }
.auth-dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 560px) {
  .top-nav { flex-wrap: nowrap; padding: 7px 10px; gap: 6px; }
  .brand { gap: 6px; font-size: 12.5px; }
  .brand-logo { width: 22px; height: 22px; }
  .nav-actions { gap: 5px; }
  .lang-btn { min-width: 34px; height: 34px; padding: 0 8px; font-size: 11.5px; }
  .icon-btn, .nav-auth-btn { width: 34px; height: 34px; padding: 0; }
  .nav-auth-btn span { display: none; }
  .nav-cta { padding: 7px 10px; font-size: 11.5px; white-space: nowrap; }
  .showcase-tabs { border-radius: 20px; }
  .sc-lens { display: none; }
  .showcase-tabs .sc-tab.active {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: var(--fg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-el { opacity: 1 !important; filter: none !important; transform: none !important; }
  .ambient-stage, .hero-preview, .status-dot, .hero-brand-shimmer { animation: none !important; }
}

/* =========================================================
   Universal iOS 26 Draggable Liquid Glass Segmented Controls
   ========================================================= */
.proof-mode-switch,
.auth-tabs,
.state-switcher {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: grab;
}
.proof-mode-switch.is-dragging,
.showcase-tabs.is-dragging,
.auth-tabs.is-dragging,
.state-switcher.is-dragging {
  cursor: grabbing;
}
.proof-mode-switch .pm-btn,
.auth-tabs .auth-tab,
.state-switcher .state-btn {
  position: relative;
  z-index: 1;
}
.proof-mode-switch .pm-btn.active,
.auth-tabs .auth-tab.active,
.state-switcher .state-btn.active {
  background: transparent;
  border-color: transparent;
  color: var(--fg);
  font-weight: 700;
}
.lg-lens {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 9999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1), height 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
html[data-theme="light"] .lg-lens,
html[data-theme="light"] .sc-lens {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(12, 14, 20, 0.07));
  border-color: rgba(12, 14, 20, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 8px 18px -10px rgba(15, 23, 42, 0.25);
}
.is-dragging > .lg-lens,
.is-dragging > .sc-lens {
  transition: width 0.14s ease, height 0.14s ease;
}
.state-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.state-switcher .state-btn {
  border-color: transparent;
}

/* Upcoming Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.road-card {
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.road-tag {
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg-soft);
}
.road-card h3 { margin: 0; font-size: 17px; font-weight: 700; }
.road-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

.auth-storage-pill {
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}
.auth-saved-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-soft);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

@media (max-width: 1060px) {
  .nav-links { display: none; }
}
@media (max-width: 980px) {
  .roadmap-grid { grid-template-columns: minmax(0, 1fr); }
}

.aud-card {
  margin-top: 16px;
  text-align: center;
}
.aud-sub {
  margin-bottom: 12px;
}
.aud-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.aud-pill {
  padding: 8px 16px;
  font-size: 13px;
}

.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
  direction: ltr;
}
.pass-wrap input {
  width: 100%;
  padding-right: 44px;
  padding-left: 14px;
}
.pass-eye {
  position: absolute;
  right: 8px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pass-eye:hover {
  color: var(--fg);
  background: var(--surface-hi, rgba(255, 255, 255, 0.09));
}
.pw-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.pw-rule {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pw-rule.ok {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  font-weight: 700;
}
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}
.auth-consent input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.auth-consent a {
  color: var(--fg);
  text-decoration: underline;
}

/* =========================================================
   Cloud Web Dashboard (/dashboard)
   ========================================================= */
.dash-main {
  padding-top: 96px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-header h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}
.dash-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.dash-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.dash-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dash-tab.active {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  border-color: rgba(255, 255, 255, 0.30);
  color: var(--fg);
}
html[data-theme="light"] .dash-tab.active {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(12, 14, 20, 0.07));
  border-color: rgba(12, 14, 20, 0.16);
}
.dash-panel {
  padding: 20px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-key-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-key-bar input {
  flex: 1;
  min-width: 220px;
  padding: 9px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-size: 12.5px;
  outline: none;
}
.dash-chat-log {
  min-height: 320px;
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.dash-msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.dash-msg.user {
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
.dash-msg.assistant {
  align-self: flex-end;
  background: var(--surface-hi, rgba(255, 255, 255, 0.09));
  border: 1px solid var(--border);
  color: var(--fg);
}
.dash-chat-compose {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-chat-compose input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--fg);
  font-size: 13.5px;
  outline: none;
}
.dash-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.dash-device-card {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dash-quota-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.dash-key-bar-spread { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dash-chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dash-byok-drawer { margin-top: 8px; }
.dash-priv-actions { margin-top: 16px; }
.dash-danger-btn { border-color: rgba(239, 68, 68, 0.45); color: #f87171; }
.dash-priv-status { margin-top: 12px; font-size: 13px; opacity: 0.85; }

.dash-guest-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;margin-bottom:14px;border-radius:18px;border:1px solid var(--border-hi);background:var(--surface-strong);font-size:13px;}
.dash-chat-split{display:grid;grid-template-columns:1fr;gap:12px;align-items:stretch;}
.dash-chat-split.canvas-open{grid-template-columns:minmax(0,1fr) minmax(300px,0.9fr);}
@media (max-width:860px){.dash-chat-split.canvas-open{grid-template-columns:1fr;}}
.dash-canvas{display:flex;flex-direction:column;border-radius:18px;border:1px solid var(--border-hi);background:var(--surface);overflow:hidden;max-height:520px;}
.dash-canvas-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid var(--border);font-size:12.5px;font-weight:700;}
.dash-canvas-body{flex:1;margin:0;padding:14px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.65;white-space:pre-wrap;word-break:break-word;direction:ltr;text-align:left;}
.dash-msg-text{white-space:pre-wrap;}
.dash-msg-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;}
.dash-msg-btn{padding:2px 10px;font-size:11px;}
.dash-device-sub{padding:4px 0 0;text-align:start;}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important;}}

.dash-canvas-body{background:transparent;border:none;color:var(--fg);resize:none;min-height:320px;outline:none;}
.dash-canvas-preview{flex:1;width:100%;min-height:320px;border:none;background:#ffffff;}
.lg-lens, .sc-lens, .nav-lens { top: 4px !important; left: 0 !important; }
#pm-lens { top: 3px !important; }
.nav-links > a { padding: 7px 14px; border-radius: 9999px; color: var(--fg-soft); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color 0.16s, background 0.16s; white-space: nowrap; }
.nav-links > a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 720px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .showcase-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap !important; justify-content: flex-start !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .showcase-tabs .sc-tab { white-space: nowrap; flex-shrink: 0; }
  .section { padding-inline: 16px !important; }
  .hero { padding-top: 96px !important; gap: 24px !important; }
  .hero h1 { font-size: clamp(28px, 7.8vw, 38px) !important; line-height: 1.25 !important; }
  .hero-cta { flex-direction: column; width: 100%; }
  .glass-card { padding: 18px !important; border-radius: 22px !important; }
}

/* Pure Vercel OLED Black - No ambient glow */
.ambient-stage, html[data-theme="light"] .ambient-stage { display: none !important; background: none !important; animation: none !important; }
html:not([data-theme="light"]), html:not([data-theme="light"]) body { background-color: #000000 !important; background-image: none !important; }
