/* HermesOS Landing — Design System */
/* Based on docs/LANDING_CONCEPT.md v1.0 */
/* Fonts: Golos Text + JetBrains Mono (system-ui fallback) */
/* Colors: #08090A, #5E6AD2, #F59E0B */
/* Dark-only, tabular-nums, Lucide SVG icons */

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Фон — 5 слоёв */
  --bg-0: #08090A;
  --bg-1: #0D0E10;
  --bg-2: #121316;
  --bg-3: #17181C;
  --bg-4: #1F2024;

  /* Текст — 4 уровня */
  --text-1: #F7F8F8;
  --text-2: #D0D6E0;
  --text-3: #8A8F98;
  --text-4: #62666D;

  /* Акценты */
  --accent: #5E6AD2;
  --accent-bright: #7070FF;
  --accent-2: #8B5CF6;
  --amber: #F59E0B;

  /* Статусы */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Типографика */
  --font-sans: 'Golos Text', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Размеры текста */
  --t-xs: 11px;
  --t-sm: 12px;
  --t-base: 14px;
  --t-lg: 16px;
  --t-xl: 18px;
  --t-2xl: 20px;
  --t-3xl: 24px;
  --t-4xl: 32px;
  --t-5xl: 44px;
  --t-display: 72px;

  /* Сетка */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Радиусы */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Motion */
  --m-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --m-base: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --m-spring: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --m-slow: 1200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1200px;
  --nav-h: 64px;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  font-size: var(--t-base);
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Links */
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

/* Custom cursor */
.cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
}
.cursor-dot.hover {
  width: 20px;
  height: 20px;
  background: var(--accent-bright);
}

/* ─── Typography ───────────────────────────────────────────── */
.num, .kpi-value, .tabular { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: var(--sp-2);
}

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section {
  padding: var(--sp-16) 0;
}
.section-title {
  font-size: var(--t-4xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-2);
  font-size: var(--t-lg);
  margin-bottom: var(--sp-8);
  max-width: 600px;
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(8, 9, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.nav-logo {
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--text-1);
}
.nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  font-size: var(--t-base);
  transition: color var(--m-fast);
}
.nav-links a:hover {
  color: var(--text-1);
  text-decoration: none;
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: background var(--m-fast);
}
.nav-cta:hover {
  background: var(--accent-bright);
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--sp-6);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  color: var(--text-2);
  margin-bottom: var(--sp-6);
  font-weight: 500;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}
.hero-sub {
  font-size: var(--t-xl);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}
.hero-cta {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Kinetic text */
.kinetic-text {
  display: inline-block;
}
.kinetic-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.kinetic-text.visible span {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: var(--t-lg);
  transition: all var(--m-base);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  background: var(--bg-3);
  transform: translateY(-2px);
}

/* Magnetic button */
.magnetic-btn {
  transition: transform var(--m-spring);
  will-change: transform;
}

/* ─── Dashboard Card (Hero) ────────────────────────────────── */
.dashboard-card {
  background: rgba(13, 14, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 800px;
  margin: var(--sp-8) auto 0;
  text-align: left;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.dashboard-title {
  font-size: var(--t-xl);
  font-weight: 600;
}
.dashboard-live {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  color: var(--success);
  font-weight: 600;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.kpi-card {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.kpi-label {
  font-size: var(--t-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-1);
}
.kpi-value {
  font-size: var(--t-3xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kpi-sub {
  font-size: var(--t-xs);
  color: var(--text-3);
  margin-top: var(--sp-1);
}
.kpi-sub.pos { color: var(--success); }
.kpi-sub.neg { color: var(--danger); }

/* Chart container */
.chart-container {
  height: 200px;
  margin-bottom: var(--sp-6);
  position: relative;
}

/* Action feed */
.action-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.action-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg-2);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.action-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.action-text {
  flex: 1;
  font-size: var(--t-sm);
}
.action-time {
  font-size: var(--t-xs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ─── Problem Section ──────────────────────────────────────── */
.problem-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.calc-input label {
  display: block;
  font-size: var(--t-sm);
  color: var(--text-2);
  margin-bottom: var(--sp-1);
}
.calc-input input {
  width: 100%;
  padding: var(--sp-3);
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: var(--t-base);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.calc-input input:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-results {
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.calc-result-item:last-child { border-bottom: none; }
.calc-result-label { color: var(--text-2); }
.calc-result-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.calc-result-value.loss { color: var(--danger); }
.calc-result-value.gain { color: var(--success); }
.calc-total {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-total-label { font-weight: 600; }
.calc-total-value {
  font-size: var(--t-2xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  color: var(--danger);
}

/* ─── Solution Section ─────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.pillar {
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--m-base);
}
.pillar:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  color: var(--accent);
}
.pillar-title {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.pillar-desc {
  font-size: var(--t-sm);
  color: var(--text-3);
}

/* ─── Modules Dock ─────────────────────────────────────────── */
.dock {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(13, 14, 16, 0.85);
  backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
  flex-wrap: wrap;
}
.dock-item {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  cursor: pointer;
  transition: all var(--m-base);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.dock-item:hover {
  transform: translateY(-8px) scale(1.1);
  background: var(--bg-3);
  border-color: var(--accent);
}
.dock-item svg {
  width: 32px;
  height: 32px;
  color: var(--text-2);
}
.dock-item span {
  font-size: var(--t-xs);
  color: var(--text-3);
}

/* ─── Examples Section ────────────────────────────────────── */
.examples-carousel {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding: var(--sp-4) 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.examples-carousel::-webkit-scrollbar { display: none; }
.example-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all var(--m-base);
}
.example-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.example-title {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.example-desc {
  font-size: var(--t-sm);
  color: var(--text-3);
}

/* ─── How It Works ─────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.step {
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--t-xl);
  margin: 0 auto var(--sp-4);
}
.step-title {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.step-desc {
  font-size: var(--t-sm);
  color: var(--text-3);
}

/* ─── Cases Section ────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.case-card {
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all var(--m-base);
}
.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.case-placeholder {
  width: 100%;
  height: 160px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  font-size: var(--t-sm);
}
.case-title {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.case-metrics {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
.case-metric {
  text-align: center;
}
.case-metric-value {
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}
.case-metric-label {
  font-size: var(--t-xs);
  color: var(--text-3);
}

/* ─── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  text-align: center;
  transition: all var(--m-base);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(94, 106, 210, 0.15);
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-name {
  font-size: var(--t-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.pricing-price {
  font-size: var(--t-5xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-2);
}
.pricing-price span {
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--text-3);
}
.pricing-desc {
  color: var(--text-2);
  margin-bottom: var(--sp-6);
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--sp-6);
}
.pricing-features li {
  padding: var(--sp-2) 0;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}
.pricing-soon {
  opacity: 0.5;
}

/* ─── X-ray Section ────────────────────────────────────────── */
.xray-form {
  display: flex;
  gap: var(--sp-4);
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}
.xray-form input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: var(--t-base);
  font-family: var(--font-mono);
}
.xray-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.xray-result {
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  max-width: 800px;
  margin: 0 auto;
}
.xray-result.hidden { display: none; }
.xray-product {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.xray-image {
  width: 120px;
  height: 120px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.xray-info h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-2);
}
.xray-meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.xray-meta-item {
  display: flex;
  flex-direction: column;
}
.xray-meta-label {
  font-size: var(--t-xs);
  color: var(--text-3);
}
.xray-meta-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: var(--t-lg);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.faq-question:hover { color: var(--accent-bright); }
.faq-icon {
  transition: transform var(--m-fast);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--m-base);
  color: var(--text-2);
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: var(--sp-4);
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--sp-12) 0;
  text-align: center;
}
.footer-logo {
  font-size: var(--t-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.footer-links {
  display: flex;
  gap: var(--sp-6);
  justify-content: center;
  margin-bottom: var(--sp-6);
  list-style: none;
}
.footer-links a {
  color: var(--text-3);
  font-size: var(--t-sm);
}
.footer-links a:hover { color: var(--text-1); }
.footer-copy {
  color: var(--text-4);
  font-size: var(--t-xs);
}

/* ─── Command Palette ──────────────────────────────────────── */
.palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  z-index: 10000;
}
.palette-overlay.open { display: flex; }
.palette {
  width: 560px;
  max-width: 90vw;
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.palette-input {
  width: 100%;
  padding: var(--sp-4) var(--sp-6);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-1);
  font-size: var(--t-lg);
}
.palette-input:focus { outline: none; }
.palette-list { max-height: 300px; overflow-y: auto; }
.palette-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  cursor: pointer;
  transition: background var(--m-fast);
}
.palette-item:hover, ..palette-item.selected {
  background: rgba(94, 106, 210, 0.1);
}
.palette-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

/* ─── Before/After Slider ─────────────────────────────────── */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: ew-resize;
}
.ba-before, .ba-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-xl);
  font-weight: 700;
}
.ba-before {
  background: var(--bg-2);
  color: var(--danger);
}
.ba-after {
  background: var(--bg-2);
  color: var(--success);
  clip-path: inset(0 0 0 50%);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--text-1);
  transform: translateX(-50%);
}
.ba-handle::after {
  content: '◂ ▸';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-sm);
}

/* ─── Heatmap ──────────────────────────────────────────────── */
.heatmap {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: var(--sp-1);
  max-width: 600px;
  margin: 0 auto;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  transition: transform var(--m-fast);
}
.heatmap-cell:hover {
  transform: scale(1.2);
  z-index: 1;
}

/* ─── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--m-slow) var(--ease, ease), transform var(--m-slow) var(--ease, ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Pulse Animation ──────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --t-display: 56px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .problem-calc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --t-display: 44px;
    --sp-16: 48px;
  }
  .nav-links { display: none; }
  .hero h1 { font-size: var(--t-display); }
  .hero-sub { font-size: var(--t-lg); }
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card {
    padding: var(--sp-4);
  }
  .xray-form {
    flex-direction: column;
  }
  .xray-product {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --t-display: 36px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .dock {
    gap: var(--sp-2);
  }
  .dock-item {
    width: 60px;
    height: 60px;
  }
  .heatmap {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ─── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-canvas { display: none; }
  .kinetic-text span {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .cursor-dot { display: none; }
}
