/* DocTiger CLM — Enterprise SaaS Styles */
:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #60a5fa;
  --glass: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --hero-gradient: linear-gradient(135deg, #0a0f1a 0%, #1e3a5f 50%, #0a0f1a 100%);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent: #3b82f6;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --hero-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
}

.hidden { display: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
.container { width: min(1200px, 92vw); margin: 0 auto; }
.section { padding: 5rem 0; }
.section-eyebrow { text-align: center; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; text-align: center; margin-bottom: 1rem; }
.section-desc { text-align: center; color: var(--text-muted); max-width: 560px; margin: 0 auto 3rem; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--glass); }
.btn-glass {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all var(--transition);
}
.header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.logo:hover { color: var(--text); }
.logo-icon svg { width: 36px; height: 36px; }
.logo-badge { font-size: 0.7rem; padding: 0.15rem 0.4rem; background: var(--primary); color: white; border-radius: 4px; margin-left: 0.25rem; vertical-align: middle; }
.nav-links { display: flex; list-style: none; gap: 1.75rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active { color: var(--primary); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-nav-demo {
  white-space: nowrap;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Inner page hero */
.page-hero {
  position: relative;
  padding: 8rem 0 3rem;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg { position: absolute; inset: 0; background: var(--hero-gradient); pointer-events: none; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  position: relative;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { opacity: 0.5; }

/* Explore hub (home) */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.explore-card {
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all var(--transition);
}
.explore-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  color: inherit;
}
.explore-card .explore-icon { font-size: 2rem; margin-bottom: 1rem; }
.explore-card h3 { margin-bottom: 0.5rem; }
.explore-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.explore-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: var(--hero-gradient); pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: #6366f1; bottom: 10%; left: -50px; animation-delay: -4s; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; animation: fadeInUp 0.8s ease 0.3s both; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--primary); }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* Mockup */
.mockup-frame {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px var(--primary-glow);
  animation: fadeInUp 1s ease 0.5s both, mockupFloat 6s ease-in-out infinite;
}
@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
}
.mockup-bar span:first-child { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.mockup-bar span:nth-child(2) { width: 10px; height: 10px; border-radius: 50%; background: #eab308; }
.mockup-bar span:nth-child(3) { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.mockup-title { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.mockup-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  padding: 1.25rem;
  align-items: stretch;
}
.mockup-panel {
  padding: 1rem;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 140px;
}
.panel-label { font-size: 0.7rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.doc-lines .line { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 6px; }
.doc-lines .line.w90 { width: 90%; }
.doc-lines .line.w70 { width: 70%; }
.doc-lines .line.w85 { width: 85%; }
.doc-lines .line.w60 { width: 60%; }
.doc-lines .line.w80 { width: 80%; }
.doc-lines .line.highlight { background: rgba(59,130,246,0.4); }
.risk-meter { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.risk-fill { height: 100%; width: var(--risk, 72%); background: linear-gradient(90deg, #22c55e, #eab308); border-radius: 4px; animation: riskPulse 2s ease infinite; }
@keyframes riskPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }
.risk-score { font-size: 0.75rem; color: var(--text-muted); }
.risk-items { list-style: none; margin-top: 0.5rem; font-size: 0.7rem; }
.risk-items li { padding: 2px 0; }
.risk-items .low { color: #22c55e; }
.risk-items .med { color: #eab308; }
.flow-steps { display: flex; flex-direction: column; gap: 6px; }
.flow-step { font-size: 0.75rem; padding: 6px 10px; border-radius: 6px; background: var(--border); }
.flow-step.done { background: rgba(34,197,94,0.2); color: #22c55e; }
.flow-step.active { background: rgba(59,130,246,0.3); color: var(--primary); animation: activePulse 1.5s ease infinite; }
@keyframes activePulse { 0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); } 50% { box-shadow: 0 0 0 4px transparent; } }
.mockup-arrows { display: flex; align-items: center; color: var(--primary); opacity: 0.6; }
.mockup-arrows svg { width: 24px; height: 60px; }
.mockup-outputs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(59,130,246,0.05);
}
.output-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: var(--glass);
  border-radius: 100px;
  border: 1px solid var(--border);
}
.chip-icon { width: 8px; height: 8px; border-radius: 50%; }
.chip-icon.clean { background: #22c55e; }
.chip-icon.clause { background: #3b82f6; }
.chip-icon.compare { background: #a855f7; }
.output-arrow { color: var(--primary); font-size: 0.8rem; }

/* Trust */
.trust { padding-top: 2rem; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
  margin-bottom: 3rem;
  padding: 1.5rem 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.client-logo:hover {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.08);
}
.client-logo img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: all var(--transition);
  border-radius: 6px;
}
[data-theme="dark"] .client-logo img {
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.92;
}
[data-theme="dark"] .client-logo:hover img {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}
[data-theme="light"] .client-logo img {
  opacity: 0.85;
  padding: 4px 8px;
}
[data-theme="light"] .client-logo:hover img {
  opacity: 1;
  transform: scale(1.03);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.metric-card { padding: 2rem; text-align: center; transition: transform var(--transition); }
.metric-card:hover { transform: translateY(-4px); }
.metric-value { font-size: 2.5rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.metric-suffix { font-size: 1.5rem; color: var(--primary); }
.metric-card p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* Cards */
.cards-grid { display: grid; gap: 1.5rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 1.75rem; transition: all var(--transition); }
.card:hover { transform: translateY(-6px); border-color: rgba(59,130,246,0.3); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; }

/* Solution */
.solution { text-align: center; }
.solution-inner { max-width: 720px; margin: 0 auto; }
.solution-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(59,130,246,0.15);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.solution h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.solution p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* Workflow */
.workflow-pipeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
  padding: 2rem;
}
.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 120px;
  font-size: 0.8rem;
  text-align: center;
}
.workflow-step:hover, .workflow-step.active {
  border-color: var(--primary);
  background: rgba(59,130,246,0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--primary-glow);
}
.step-num {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}
.workflow-connector {
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  flex-shrink: 0;
}
.workflow-detail { padding: 2rem; text-align: center; max-width: 600px; margin: 0 auto; }
.workflow-detail h3 { margin-bottom: 0.5rem; color: var(--primary); }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card { padding: 2rem; transition: all var(--transition); }
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.feature-card ul { list-style: none; }
.feature-card li {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
}
.feature-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Video */
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.product-video { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder, .tour-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30,58,95,0.9), rgba(15,23,42,0.95));
  gap: 1rem;
}
.video-placeholder.hidden, .tour-placeholder.hidden { display: none; }
.video-placeholder p, .tour-placeholder p { color: var(--text-muted); font-size: 0.9rem; }
.video-placeholder code, .tour-placeholder code { background: rgba(0,0,0,0.3); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }
.play-btn-large {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 0 40px var(--primary-glow);
}
.play-btn-large:hover { transform: scale(1.1); }

/* Outputs */
.outputs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.output-card { padding: 0; overflow: hidden; transition: transform var(--transition); }
.output-card:hover { transform: translateY(-6px); }
.output-preview { height: 160px; margin: 0; }
.clean-preview { background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%); }
.clause-preview { background: linear-gradient(180deg, #1e40af 0%, #172554 100%); }
.compare-preview { background: linear-gradient(180deg, #4c1d95 0%, #1e1b4b 100%); }
.output-card h3, .output-card p { padding: 0 1.5rem; }
.output-card h3 { padding-top: 1.25rem; margin-bottom: 0.5rem; }
.output-card p { padding-bottom: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* AI */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ai-card { padding: 1.5rem; transition: all var(--transition); }
.ai-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.ai-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.ai-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.industry-card { padding: 2rem; text-align: center; transition: transform var(--transition); }
.industry-card span { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.industry-card:hover { transform: translateY(-4px); }

/* Mobile */
.mobile-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mobile-content h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.mobile-content p { color: var(--text-muted); margin-bottom: 1.5rem; }
.mobile-features { list-style: none; }
.mobile-features li { padding: 0.5rem 0; color: var(--text-muted); }
.mobile-mockups { display: flex; gap: 1.5rem; justify-content: center; align-items: flex-end; }
.phone {
  width: 140px;
  background: #1a1a2e;
  border-radius: 24px;
  padding: 8px;
  border: 3px solid #333;
  box-shadow: var(--shadow);
  animation: phoneFloat 4s ease-in-out infinite;
}
.phone-ios { animation-delay: -2s; border-radius: 28px; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.phone-notch { width: 60px; height: 18px; background: #000; border-radius: 0 0 12px 12px; margin: 0 auto 4px; }
.phone-screen { background: var(--bg-elevated); border-radius: 16px; padding: 12px; min-height: 220px; }
.app-header { font-size: 0.75rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.app-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px; background: var(--glass); border-radius: 8px; margin-bottom: 6px; font-size: 0.65rem;
}
.badge { font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; }
.badge.pending { background: rgba(234,179,8,0.3); color: #eab308; }
.badge.approved { background: rgba(34,197,94,0.3); color: #22c55e; }
.app-risk { font-size: 0.8rem; margin: 8px 0; }
.app-chart { height: 60px; background: linear-gradient(180deg, var(--primary) 30%, transparent); border-radius: 4px; opacity: 0.5; }

/* Comparison table */
.table-wrapper { overflow-x: auto; padding: 0; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th, .comparison-table td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--border); }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }
.comparison-table th { font-weight: 600; color: var(--text-muted); }
.highlight-col { background: rgba(59,130,246,0.1); color: var(--primary) !important; font-weight: 600; }
.check { color: #22c55e; font-weight: 700; }
.cross { color: #ef4444; }
.partial { color: #eab308; font-size: 0.85rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card { padding: 2rem; position: relative; transition: transform var(--transition); }
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.popular { border: 2px solid var(--primary); transform: scale(1.03); }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 100px;
}
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.price { margin-bottom: 1.5rem; }
.price .currency { font-size: 1.25rem; vertical-align: top; color: var(--text-muted); }
.price .amount { font-size: 3rem; font-weight: 800; font-family: var(--font-display); }
.price .period { color: var(--text-muted); font-size: 1rem; }
.price.custom { font-size: 1.75rem; font-weight: 700; }
.pricing-card ul { list-style: none; margin-bottom: 2rem; }
.pricing-card li { padding: 0.5rem 0; color: var(--text-muted); font-size: 0.9rem; padding-left: 1.5rem; position: relative; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.security-card { padding: 1.75rem; text-align: center; transition: transform var(--transition); }
.security-card span { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.security-card:hover { transform: translateY(-4px); }
.security-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-family: var(--font-display); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-list { list-style: none; margin-bottom: 2rem; }
.contact-list li { padding: 0.5rem 0; color: var(--text-muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.contact-email { font-size: 0.9rem; color: var(--text-muted); }
.contact-form-wrap { padding: 2rem; }
.contact-form-wrap h3 { margin-bottom: 1.25rem; }

/* Testimonials */
.testimonials-slider { position: relative; min-height: 200px; }
.testimonial-card {
  padding: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  display: none;
  animation: fadeIn 0.5s ease;
}
.testimonial-card.active { display: block; }
.testimonial-card p { font-size: 1.15rem; font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.testimonial-card footer strong { display: block; margin-bottom: 0.25rem; }
.testimonial-card footer span { font-size: 0.9rem; color: var(--text-muted); }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 0.75rem; overflow: hidden; }
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.25rem; color: var(--text-muted); font-size: 0.95rem; }

/* Final CTA */
.final-cta-inner { padding: 4rem; text-align: center; }
.final-cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.final-cta-inner p { color: var(--text-muted); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta-inner .hero-cta { justify-content: center; }

/* Footer */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: var(--text-muted); font-size: 0.9rem; }
.footer a:hover { color: var(--text); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-lg { width: min(900px, 100%); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  border: none;
  background: var(--glass);
  color: var(--text);
  font-size: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.modal h2 { font-family: var(--font-display); margin-bottom: 0.5rem; }
.modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Forms */
.form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; color: var(--text-muted); }
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; }
.checkbox-label input { width: auto; margin-top: 4px; }
.field-error { display: block; color: #ef4444; font-size: 0.8rem; margin-top: 0.25rem; }
.field-error.hidden { display: none; }
.form-success, .payment-success { text-align: center; padding: 2rem 0; }
.form-success.hidden, .payment-success.hidden { display: none; }
.success-icon {
  width: 64px; height: 64px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  animation: successPop 0.5s ease;
}
@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.btn-loader {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-loader.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Payment */
.payment-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
.payment-summary h2 { font-size: 1.25rem; }
.plan-summary {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(59,130,246,0.1);
  border-radius: var(--radius);
  margin: 1rem 0;
}
.plan-name { font-weight: 700; }
.plan-price { color: var(--primary); font-weight: 700; }
.plan-features-mini { list-style: none; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.plan-features-mini li { padding: 0.35rem 0; }
.secure-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.card-input-wrap { position: relative; }
.card-brands {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.4;
}
.card-brands span.active { opacity: 1; color: var(--primary); }
.payment-note { font-size: 0.75rem; }
.txn-id { font-size: 0.85rem; color: var(--text-muted); margin: 1rem 0; }
.tour-video-wrap { position: relative; aspect-ratio: 16/9; margin-top: 1rem; border-radius: var(--radius); overflow: hidden; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 3000;
  transition: transform var(--transition);
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.hidden { display: none; }
.toast.error { border-color: #ef4444; }
.toast.success { border-color: #22c55e; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.15s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub, .hero-stats { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-arrows { display: none; }
  .features-grid, .ai-grid, .outputs-grid, .pricing-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-inner { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .payment-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-nav-trial { display: none; }
  .nav-actions .btn-nav-demo,
  .nav-actions .theme-toggle { display: inline-flex; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-actions { display: flex; flex-wrap: wrap; padding: 1rem; }
  .cols-3, .features-grid, .ai-grid, .outputs-grid, .pricing-grid, .industry-grid, .security-grid {
    grid-template-columns: 1fr;
  }
  .workflow-pipeline { flex-direction: column; }
  .workflow-connector { width: 2px; height: 20px; background: linear-gradient(180deg, var(--primary), transparent); }
  .form-row { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
