/* ============================================================
   VERA — Official Landing Page Stylesheet
   Subtle 1px Contextual Strokes, Matching Solid Shadows & Squircles
   ============================================================ */

/* ---------- Self-Hosted Fonts ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-var.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('fonts/plexsans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('fonts/plexsans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Theme Color & Contextual Stroke Tokens ---------- */
:root,
[data-theme="dark"] {
  --bg-main: #080d1a;
  --bg-surface: #0f172a;
  --bg-card: #0f172a;
  --bg-card-hover: #162035;
  --bg-window-chrome: #090e1c;
  --bg-table-wrap: #060a14;
  --bg-terminal: #070d1a;

  /* Contextual 1px Strokes */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: #38bdf8;
  --tilt-shadow-color: rgba(255, 255, 255, 0.16);

  /* Slavic Brand Palette */
  --vera-sky: #38bdf8;
  --vera-sky-hover: #0284c7;
  --vera-sunshine: #F58805;
  --vera-sunshine-text: #F58805;
  --vera-wood: #fef3c7;

  --signal: #38bdf8;
  --signal-glow: rgba(56, 189, 248, 0.35);
  
  --amber: #F58805;
  --emerald: #10b981;
  --rose: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --nav-bg: #0f172a;
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-active-bg: #38bdf8;
  --nav-active-text: #080d1a;

  --btn-sec-bg: #1e293b;
  --btn-sec-border: rgba(255, 255, 255, 0.16);
  --btn-sec-text: #f8fafc;

  --cta-bg: #0f172a;
  --cta-border: rgba(56, 189, 248, 0.4);
  --cta-title: #f8fafc;
  --cta-desc: #94a3b8;
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-window-chrome: #f1f5f9;
  --bg-table-wrap: #ffffff;
  --bg-terminal: #0f172a;

  /* Contextual 1px Strokes */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-card: #e2e8f0;
  --border-focus: #0284c7;
  --tilt-shadow-color: #cbd5e1;

  /* Slavic Brand Palette */
  --vera-sky: #0284c7;
  --vera-sky-hover: #0369a1;
  --vera-sunshine: #F58805;
  --vera-sunshine-text: #F58805;
  --vera-wood: #fef3c7;

  --signal: #0284c7;
  --signal-glow: rgba(2, 132, 199, 0.25);
  
  --amber: #F58805;
  --emerald: #059669;
  --rose: #e11d48;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --nav-bg: #ffffff;
  --nav-border: #e2e8f0;
  --nav-active-bg: #0f172a;
  --nav-active-text: #ffffff;

  --btn-sec-bg: #ffffff;
  --btn-sec-border: #cbd5e1;
  --btn-sec-text: #0f172a;

  --cta-bg: #f0f9ff;
  --cta-border: #bae6fd;
  --cta-title: #0f172a;
  --cta-desc: #334155;
}

:root {
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Plex', system-ui, -apple-system, sans-serif;
  --font-mono: 'PlexMono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell-max: 1180px;
  /* Squircle Superellipse Radius System */
  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius-md: 15px;
  --radius-lg: 19px;
  --radius-xl: 24px;
}

/* ---------- Corner Smoothing / Squircle Superellipse ---------- */
.site-header,
.btn,
.nav-link,
.showcase-container,
.window-frame,
.compare-card,
.feature-item-btn,
.feature-display-frame,
.companion-card,
.companion-window,
.proof-card,
.proof-table-wrap,
.terminal-card,
.quickstart-note,
.cta-banner,
.copy-button,
.tab-btn {
  -webkit-corner-smoothing: continuous;
  corner-smoothing: 100%;
  corner-shape: squircle;
}

/* ---------- Base & Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Ambient Background Canvas Shader ---------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* ---------- Dynamic Logo Switching ---------- */
[data-theme="dark"] .logo-light-theme { display: none !important; }
[data-theme="dark"] .logo-dark-theme { display: block !important; }
[data-theme="light"] .logo-dark-theme { display: none !important; }
[data-theme="light"] .logo-light-theme { display: block !important; }

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-variation-settings: 'wdth' 108, 'wght' 750;
}

p {
  margin: 0;
}

.shell {
  width: min(var(--shell-max), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--signal);
  color: #fff;
  padding: 0.4rem 0.85rem;
  z-index: 1000;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

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

/* ---------- Typography & Section Headers ---------- */
.text-center { text-align: center; }

.section-header {
  margin-bottom: 2.25rem;
}

.section-header.text-center .section-desc {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 38rem;
  line-height: 1.5;
}

.section {
  padding-block: clamp(2.5rem, 4vw, 4.25rem);
  position: relative;
}

/* ============================================================
   SQUIRCLE TOP NAVBAR (Subtle 1px Stroke)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 100;
  width: min(var(--shell-max), calc(100% - 2rem));
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem;
  min-height: 60px;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  padding-left: 0;
  margin: 0;
}

.brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Solid Fill Squircle Menu */
.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.48rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .nav-link:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* Solid Fill Active State */
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--nav-active-text) !important;
  background: var(--nav-active-bg) !important;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* ---------- Squircle Buttons (Contextual Solid Shadows) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  position: relative;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.38rem 0.95rem;
}

.btn-lg {
  font-size: 0.94rem;
  padding: 0.68rem 1.55rem;
}

.btn-primary {
  background: var(--signal);
  color: #080d1a;
  border: 1px solid #7dd3fc;
}
[data-theme="light"] .btn-primary {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #034a75;
}

/* Hover, Focus, Active: Keep EXACT same background, adjust solid shadow tone */
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--signal);
  border-color: #7dd3fc;
  box-shadow: 3px 3px 0 #7dd3fc;
  transform: translate(-1.5px, -1.5px);
}
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-primary:focus-visible {
  background: #0284c7;
  border-color: #034a75;
  box-shadow: 3px 3px 0 #034a75;
  transform: translate(-1.5px, -1.5px);
}

.btn-primary:active {
  background: var(--signal);
  border-color: #7dd3fc;
  box-shadow: 1px 1px 0 #7dd3fc;
  transform: translate(1px, 1px);
}
[data-theme="light"] .btn-primary:active {
  background: #0284c7;
  border-color: #034a75;
  box-shadow: 1px 1px 0 #034a75;
  transform: translate(1px, 1px);
}

.btn-secondary {
  background: var(--btn-sec-bg);
  color: var(--btn-sec-text);
  border: 1px solid var(--btn-sec-border);
}
.btn-secondary:hover {
  background: #334155;
  box-shadow: 3px 3px 0 var(--btn-sec-border);
  transform: translate(-1.5px, -1.5px);
}
[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 3px 3px 0 #94a3b8;
  transform: translate(-1.5px, -1.5px);
}
.btn-secondary:active {
  box-shadow: 1px 1px 0 var(--btn-sec-border);
  transform: translate(1px, 1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
  box-shadow: 3px 3px 0 var(--text-primary);
  transform: translate(-1.5px, -1.5px);
}
[data-theme="light"] .btn-ghost {
  border-color: #cbd5e1;
  background: #ffffff;
}
[data-theme="light"] .btn-ghost:hover {
  border-color: #0f172a;
  box-shadow: 3px 3px 0 #0f172a;
  transform: translate(-1.5px, -1.5px);
}
.btn-ghost:active {
  box-shadow: 1px 1px 0 var(--border-medium);
  transform: translate(1px, 1px);
}

/* ---------- Theme Switcher Button (Circle) ---------- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  box-shadow: 2px 2px 0 var(--border-medium);
  transform: translate(-1px, -1px);
}
.theme-toggle-btn:active {
  box-shadow: 0 0 0 transparent;
  transform: translate(1px, 1px);
}

[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* ---------- 3D Tilt Card Effects (Contextual Solid 3D Shadows) ---------- */
.tilt-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ================= TRUE ONE-FOLD SPLIT HERO ================= */
.hero-one-fold {
  min-height: calc(100vh - 85px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 2.25rem 1.5rem;
  position: relative;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
}

.hero-col-copy {
  text-align: left;
}

/* Brand Badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--vera-sky);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
[data-theme="light"] .pill-badge {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.badge-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Live-status dot: a solid center with a soft ring that expands and fades,
   used in place of a static icon wherever the badge should read as "live". */
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--signal);
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.5;
  animation: pulseDot 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.5); opacity: 0.5; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

/* Happy Bright Yellow/Gold Hero Highlight */
.hero-highlight {
  color: var(--vera-sunshine);
}
[data-theme="light"] .hero-highlight {
  color: var(--vera-sunshine-text);
}

.hero-subtitle {
  font-size: clamp(0.94rem, 1.35vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.35rem;
  max-width: 32rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.95rem;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.stat-item strong {
  color: var(--text-secondary);
}
.stat-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.stat-sub {
  font-size: 0.92em;
}
.stat-icon {
  width: 14px;
  height: 14px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--signal);
}

/* ---------- Showcase Container with Contextual Stroke ---------- */
.hero-col-showcase {
  width: 100%;
}

.showcase-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 0.7rem;
  --tilt-shadow-color: var(--signal);
}

.showcase-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}
.showcase-tabs::-webkit-scrollbar { display: none; }

.tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .tab-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}
.tab-btn.is-active {
  color: #080d1a;
  background: var(--signal);
  border-color: var(--signal);
}
[data-theme="light"] .tab-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.window-frame {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
}

.window-body {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 10.75;
  width: 100%;
  overflow: hidden;
}

.tab-panel {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.tab-panel.is-active {
  display: block;
  animation: fadeInPanel 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: scale(0.995); }
  to { opacity: 1; transform: scale(1); }
}

.canvas-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.canvas-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.canvas-annotation-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.canvas-annotation-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--signal);
}
.canvas-annotation-badge code {
  font-family: var(--font-mono);
  color: var(--amber);
  background: rgba(245, 158, 11, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ---------- Difference Slider Interactive Stage ---------- */
.diff-interactive-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.diff-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.diff-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.diff-stage .layer-top {
  mix-blend-mode: difference;
  opacity: var(--diff, 0.4);
  pointer-events: none;
}

.diff-toolbar {
  background: var(--bg-window-chrome);
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-shrink: 0;
}

.diff-control-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  max-width: 24rem;
}

.diff-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.diff-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  background: linear-gradient(90deg, var(--signal) var(--pct, 40%), rgba(255, 255, 255, 0.2) var(--pct, 40%));
  border-radius: 4px;
  cursor: ew-resize;
}
.diff-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-xs);
  background: var(--signal);
  border: 1px solid #080d1a;
  cursor: pointer;
}
.diff-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-xs);
  background: var(--signal);
  border: 1px solid #080d1a;
  cursor: pointer;
}

.diff-readout {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--signal);
  min-width: 3ch;
  text-align: right;
}

.diff-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---------- Comparison Section ---------- */
.comparison-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.compare-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
}

.card-pain {
  border: 1px solid #f43f5e;
  background: rgba(244, 63, 94, 0.03);
}
[data-theme="light"] .card-pain {
  border: 1px solid #f43f5e;
  background: #fff5f7;
}

.card-vera {
  border: 1px solid var(--signal);
  background: rgba(56, 189, 248, 0.04);
}
[data-theme="light"] .card-vera {
  border: 1px solid #0284c7;
  background: #f0f9ff;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.75rem;
}
.card-status-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.badge-pain {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border: 1px solid var(--rose);
}
.badge-vera {
  background: rgba(56, 189, 248, 0.15);
  color: var(--signal);
  border: 1px solid var(--signal);
}

.compare-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.compare-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.compare-step {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
}

.step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.card-pain .step-num {
  background: rgba(244, 63, 94, 0.18);
  color: var(--rose);
  border: 1px solid var(--rose);
}
.card-vera .step-num {
  background: rgba(56, 189, 248, 0.2);
  color: var(--signal);
  border: 1px solid var(--signal);
}

.compare-step strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.05rem;
}
.compare-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.compare-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.82rem;
}
.pain-footer { color: var(--rose); }
.vera-footer { color: var(--emerald); }

/* ============================================================
   INTERACTIVE FEATURE SPOTLIGHT (Equal-Height Grid & Black Selected Style)
   ============================================================ */
.features-section {
  border-top: 1px solid var(--border-subtle);
}

.feature-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.32fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

.feature-spotlight-list {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 0.75rem;
  height: 100%;
}

/* Base Feature Item (Unselected: Soft & Subtle) */
.feature-item-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
  box-shadow: none;
}
[data-theme="light"] .feature-item-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.feature-item-btn:hover:not(.is-active) {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateX(2px);
}
[data-theme="light"] .feature-item-btn:hover:not(.is-active) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Feature Item Header */
.feat-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

/* Feature Badge (Unselected: Muted Pill) */
.feat-item-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid transparent;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.18s ease;
}
[data-theme="light"] .feat-item-badge {
  background: #f1f5f9;
  color: #64748b;
}

.feat-item-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.feat-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  transition: all 0.18s ease;
}

.feat-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: all 0.18s ease;
}

/* ================= SELECTED STATE (Black Used For Selected Only) ================= */
[data-theme="light"] .feature-item-btn.is-active {
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  background: #ffffff;
  transform: translateX(4px);
}
[data-theme="light"] .feature-item-btn.is-active .feat-item-badge {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  font-weight: 700;
}
[data-theme="light"] .feature-item-btn.is-active .feat-item-num {
  color: #000000;
  font-weight: 800;
}
[data-theme="light"] .feature-item-btn.is-active .feat-item-title {
  color: #000000;
  font-weight: 800;
}
[data-theme="light"] .feature-item-btn.is-active .feat-item-desc {
  color: #0f172a;
  font-weight: 500;
}

/* Dark Mode Selected State */
[data-theme="dark"] .feature-item-btn.is-active {
  border: 2px solid var(--signal);
  box-shadow: 4px 4px 0 var(--signal);
  background: #0f172a;
  transform: translateX(4px);
}
[data-theme="dark"] .feature-item-btn.is-active .feat-item-badge {
  background: var(--signal);
  color: #080d1a;
  border: 1px solid var(--signal);
  font-weight: 700;
}
[data-theme="dark"] .feature-item-btn.is-active .feat-item-num {
  color: var(--signal);
  font-weight: 800;
}
[data-theme="dark"] .feature-item-btn.is-active .feat-item-title {
  color: #ffffff;
  font-weight: 800;
}
[data-theme="dark"] .feature-item-btn.is-active .feat-item-desc {
  color: #cbd5e1;
  font-weight: 500;
}

/* ================= FEATURE DISPLAY STAGE (Equal Height) ================= */
.feature-spotlight-display {
  width: 100%;
  height: 100%;
  display: flex;
}

.feature-display-frame {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  --tilt-shadow-color: var(--border-medium);
}
[data-theme="light"] .feature-display-frame {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
}

.feature-frame-header {
  background: var(--bg-window-chrome);
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
[data-theme="light"] .feature-frame-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.feature-frame-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-close { background: #ff5f56; }
.dot-minimize { background: #ffbd2e; }
.dot-expand { background: #27c93f; }

.feature-frame-body {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: #000000;
  overflow: hidden;
}

.feature-panel {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.feature-panel.is-active {
  display: flex;
  flex-direction: column;
  animation: fadeInPanel 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-panel img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}

.feature-display-caption {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 0.6rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
[data-theme="light"] .feature-display-caption {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.feature-display-caption strong {
  color: var(--text-primary);
}
.feature-display-caption span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.feature-display-caption svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--signal);
}

/* ---------- Companion Section ---------- */
.companion-section {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
}

.companion-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: center;
  --tilt-shadow-color: var(--border-medium);
}

.companion-title {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  margin-block: 0.4rem 0.55rem;
}
.companion-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.companion-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.comp-step {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  align-items: baseline;
}
.comp-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--signal);
  font-size: 0.95rem;
}
.comp-step strong {
  color: var(--text-primary);
  font-size: 0.88rem;
}
.comp-step p {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.companion-window {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  aspect-ratio: 4 / 3;
  background: #000;
}
.companion-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Proof Section ---------- */
.proof-section {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}
[data-theme="light"] .proof-card {
  border: 1px solid #059669;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 0.35rem;
}
.proof-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.proof-content h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: 0.55rem;
}
.proof-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.proof-table-wrap {
  background: var(--bg-table-wrap);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--border-subtle);
}

.proof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.proof-table th {
  text-align: left;
  padding-bottom: 0.45rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}
.proof-table td {
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.proof-table .tabular {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.proof-highlight-row td {
  border-bottom: 0;
  padding-top: 0.65rem;
  color: var(--text-primary);
}
.diff-zero {
  color: var(--emerald) !important;
}

/* ---------- Quickstart & Terminal ---------- */
.quickstart-section {
  border-top: 1px solid var(--border-subtle);
}

.quickstart-box {
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.terminal-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  --tilt-shadow-color: var(--border-medium);
}

.terminal-header {
  background: #0d1424;
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="light"] .terminal-header {
  background: #0f172a;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.18s ease;
}
.copy-button:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 2px 2px 0 var(--border-medium);
}

.terminal-code {
  padding: 1rem 1.15rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #f8fafc;
  overflow-x: auto;
}
.cmd-comment { color: #64748b; }
.cmd-line { color: #f8fafc; font-weight: 500; }
.cmd-flag { color: var(--signal); }

.quickstart-note {
  margin-top: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  display: flex;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
[data-theme="light"] .quickstart-note {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #334155;
}
.note-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--signal);
  margin-top: 0.1rem;
}
.note-body strong { color: var(--text-primary); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  transition: background 0.25s ease, border-color 0.25s ease;
  position: relative;
  --tilt-shadow-color: var(--signal);
}

.cta-pencil-badge {
  width: 30px;
  height: 30px;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
}
.cta-banner h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.4rem;
  color: var(--cta-title);
}
.cta-banner p {
  color: var(--cta-desc);
  font-size: 0.9rem;
  margin-bottom: 1.35rem;
}
.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding-block: 2.2rem 2.6rem;
  font-size: 0.82rem;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}
.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0;
  padding: 0;
  text-align: left;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-col-copy {
    text-align: center;
    max-width: 44rem;
    margin-inline: auto;
  }
  .hero-cta-group,
  .hero-stats {
    justify-content: center;
  }
  .hero-one-fold {
    min-height: auto;
    padding-top: 2rem;
  }
  .feature-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .comparison-grid,
  .companion-card,
  .proof-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
  }
  .shell {
    width: min(var(--shell-max), 100% - 1.5rem);
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .diff-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .diff-control-group {
    max-width: 100%;
  }
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .ambient-canvas { display: none; }
}
