/* ClauseGuard AI — Design System */
:root {
  /* Light theme */
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --risk: #ff3b30;
  --risk-bg: rgba(255, 59, 48, 0.08);
  --safe: #34c759;
  --safe-bg: rgba(52, 199, 89, 0.08);
  --border: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --card-bg: #ffffff;
  --gradient-1: rgba(0, 113, 227, 0.12);
  --gradient-2: rgba(88, 86, 214, 0.1);
  --gradient-3: rgba(52, 199, 89, 0.08);
  --theme-color: #ffffff;
  --scroll-progress: #0071e3;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.77, 0, 0.18, 1);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-pill: 9999px;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-secondary: #0a0a0c;
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --accent: #2997ff;
  --accent-hover: #4da3ff;
  --risk: #ff453a;
  --risk-bg: rgba(255, 69, 58, 0.12);
  --safe: #30d158;
  --safe-bg: rgba(48, 209, 88, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(20, 20, 22, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 10, 12, 0.85);
  --card-bg: #0a0a0c;
  --gradient-1: rgba(41, 151, 255, 0.15);
  --gradient-2: rgba(94, 92, 230, 0.12);
  --gradient-3: rgba(48, 209, 88, 0.1);
  --theme-color: #000000;
  --scroll-progress: #2997ff;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* Focus styles for a11y */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Reduced motion */
@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;
  }
  .preloader { display: none !important; }
  .parallax-layer { transform: none !important; }
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  font-weight: 400;
  color: var(--text-muted);
}

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

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--scroll-progress);
  z-index: 10000;
  width: 0%;
  transition: width 0.05s linear;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s var(--ease);
}

.preloader.done {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.preloader-logo svg {
  width: 100%;
  height: 100%;
  stroke: var(--text);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preloader-logo .logo-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLogo 1s var(--ease) forwards;
}

@keyframes drawLogo {
  to { stroke-dashoffset: 0; }
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: fillBar 1s var(--ease) forwards;
}

@keyframes fillBar {
  to { width: 100%; }
}

/* ===== BACKGROUND ORBS ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  top: 40%;
  right: -10%;
  animation-delay: -7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--gradient-3);
  bottom: -5%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

/* ===== GLASS UTILITIES ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-btn:active {
  transform: translateY(0) scale(0.98);
}

.glass-btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.glass-btn.primary:hover {
  background: var(--text);
  opacity: 0.9;
}

.glass-btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.glass-btn.accent:hover {
  background: var(--accent-hover);
}

.glass-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 1100px;
  transition: top 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.navbar.hidden {
  top: -80px;
  opacity: 0;
  pointer-events: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

[data-theme="dark"] .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.75rem;
  font-weight: 600;
}

[data-theme="dark"] .lang-switch {
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch button {
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-cta {
  padding: 8px 18px !important;
  font-size: 0.8125rem !important;
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 12px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.15);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}

[data-theme="dark"] .hero-badge {
  background: rgba(41, 151, 255, 0.12);
  border-color: rgba(41, 151, 255, 0.2);
}

.hero h1 {
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.45s forwards;
}

.hero-subtitle {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

.hero-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.75s forwards;
  width: 100%;
  max-width: 420px;
}

.form-row {
  display: flex;
  width: 100%;
  gap: 8px;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.email-input.error {
  border-color: var(--risk);
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-consent {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  max-width: 420px;
}

.form-consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--safe-bg);
  color: var(--safe);
  font-weight: 500;
}

.form-success.show {
  display: inline-flex;
}

/* Hero product preview */
.hero-preview {
  margin-top: 64px;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
  perspective: 1200px;
}

.preview-card {
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.preview-label {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 5;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.preview-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-info {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.doc-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.doc-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-secondary);
}

.preview-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.risk-card, .redline-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.risk-card {
  background: var(--risk-bg);
  border: 1px solid rgba(255, 59, 48, 0.2);
}

.redline-card {
  background: var(--safe-bg);
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.risk-card .card-tag { color: var(--risk); }
.redline-card .card-tag { color: var(--safe); }

.card-clause {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 6px;
}

.card-text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.card-text mark {
  background: transparent;
  color: inherit;
  font-weight: 600;
}

.risk-card mark { color: var(--risk); }
.redline-card mark { color: var(--safe); }

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  animation: scan 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  animation: floatBadge 6s ease-in-out infinite;
}

.float-badge:nth-child(1) {
  top: -12px;
  left: 10%;
  animation-delay: 0s;
}

.float-badge:nth-child(2) {
  top: 40%;
  right: -20px;
  animation-delay: -2s;
}

.float-badge:nth-child(3) {
  bottom: -8px;
  left: 25%;
  animation-delay: -4s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MARQUEE ===== */
.marquee-section {
  padding: 60px 0;
  overflow: hidden;
}

.marquee-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-chip {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 120px 24px;
  text-align: center;
}

.manifesto-text {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-text .word {
  display: inline-block;
  opacity: 0.15;
  transition: opacity 0.4s var(--ease);
}

.manifesto-text .word.visible {
  opacity: 1;
}

/* ===== DEMO TABS ===== */
.demo-section {
  padding: 100px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--text);
}

.tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}

.demo-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease);
}

.demo-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-card {
  border-radius: var(--radius);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.demo-score {
  font-weight: 700;
  color: var(--risk);
}

.demo-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.demo-highlights {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.demo-hl {
  text-align: center;
}

.demo-hl-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.demo-hl-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== FEATURES BENTO ===== */
.features-section {
  padding: 100px 24px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
  cursor: default;
}

.bento-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card h3 {
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.bento-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.bento-card .glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
}

.bento-card:hover .glow {
  opacity: 1;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 100px 24px;
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.steps-line {
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.steps-line-fill {
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.1s linear;
}

.step {
  display: flex;
  gap: 24px;
  padding-bottom: 48px;
  position: relative;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.step.active .step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.step-content h3 {
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===== ROI CALCULATOR ===== */
.roi-section {
  padding: 100px 24px;
}

.roi-card {
  border-radius: var(--radius);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.roi-sliders {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.slider-group label span {
  color: var(--accent);
  font-weight: 600;
}

.slider-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-secondary);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.roi-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.roi-result {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.roi-result-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.roi-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.roi-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== FOUNDER ===== */
.founder-section {
  padding: 80px 24px;
}

.founder-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
}

.founder-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 20px;
}

.founder-attr {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== PRICING ===== */
.pricing-section {
  padding: 100px 24px;
}

.pricing-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.recommended {
  border: 2px solid transparent;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              linear-gradient(135deg, var(--accent), #5856d6) border-box;
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #fff;
}

.price-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--safe);
  font-weight: 700;
  font-size: 0.875rem;
}

.price-card .glass-btn {
  width: 100%;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 100px 24px;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  gap: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 80px 24px 120px;
}

.final-cta-card {
  border-radius: var(--radius);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0c 0%, #1a1a2e 50%, #0a0a0c 100%);
  color: #f5f5f7;
}

.final-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(41, 151, 255, 0.2), transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(94, 92, 230, 0.15), transparent 50%);
  animation: gradientMove 12s ease-in-out infinite alternate;
}

@keyframes gradientMove {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.final-cta-card h2,
.final-cta-card p,
.final-cta-card .hero-form,
.final-cta-card .form-note {
  position: relative;
  z-index: 1;
  color: #f5f5f7;
}

.final-cta-card p {
  color: #a1a1a6;
  max-width: 480px;
  margin: 0 auto 32px;
}

.final-cta-card .email-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f7;
}

.final-cta-card .email-input::placeholder {
  color: #6e6e73;
}

.final-cta-card .form-consent {
  color: #a1a1a6;
  justify-content: center;
}

.final-cta-card .form-consent a {
  color: #2997ff;
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 24px 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.5;
}

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

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card.large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  section { padding: 72px 16px; }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .floating-badges { display: none; }

  .bento {
    grid-template-columns: 1fr;
  }
  .bento-card.large {
    grid-column: span 1;
  }

  .roi-results {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    flex-direction: column;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .demo-highlights {
    gap: 20px;
  }

  .hero { padding-top: 100px; }
}

@media (max-width: 430px) {
  .navbar { top: 12px; width: calc(100% - 24px); }
  .navbar-inner { padding: 8px 10px 8px 14px; }
  .lang-switch { display: none; }
  .hero-form { max-width: 100%; }
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
