/* ===================================================
   VirtTerm — Landing Page Styles
   =================================================== */

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

:root {
  --bg: #0a140e;
  --bg-card: #101e14;
  --bg-card-hover: #163020;
  --bg-elevated: #1a2e1e;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #5a5a72;
  --accent: #2E7D32;
  --accent-2: #4ECDC4;
  --accent-3: #44CF6C;
  --danger: #FF6B6B;
  --gradient: linear-gradient(135deg, #2E7D32, #4ECDC4);
  --gradient-warm: linear-gradient(135deg, #2E7D32, #FF6B6B);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ---------- Utility ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text); }

.btn-white {
  background: #fff;
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.btn-ghost-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.15);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.nav-logo strong { font-weight: 800; }

.logo-icon { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, rgba(78,205,196,0.08) 40%, transparent 70%);
  filter: blur(60px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(108,99,255,0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.brand-logo {
  display: inline-block;
  width: 0;
  height: 1em;
  vertical-align: -0.12em;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  filter: blur(8px);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease,
              margin-right 0.4s ease;
  margin-right: 0;
  overflow: hidden;
}
.brand-logo svg {
  width: 1em;
  height: 1em;
  display: block;
}
.brand-logo.visible {
  width: 1em;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: blur(0);
  margin-right: 0.25em;
}

.brand-morph {
  display: inline;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-right: 3px solid var(--accent);
  padding-right: 4px;
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 560px;
}
.hero-features {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Preview */
.hero-preview {
  margin-top: 60px;
  perspective: 1000px;
}

.preview-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(108,99,255,0.08);
  transform: rotateX(2deg);
  transition: transform 0.6s ease;
}
.preview-window:hover {
  transform: rotateX(0);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.preview-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.preview-controls {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.preview-body {
  display: flex;
  height: 420px;
  position: relative;
  overflow: hidden;
}

.preview-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pane-1 {
  flex: 1;
  background: linear-gradient(135deg, #1a1028 0%, #0d1b2a 100%);
}
.preview-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pane-2 {
  flex: 1;
  background: linear-gradient(135deg, #0d1b2a 0%, #12212e 100%);
  padding: 20px;
}
.pane-3 {
  flex: 0.8;
  background: linear-gradient(135deg, #1b1028 0%, #1a0d2a 100%);
}

.preview-divider.vertical {
  width: 2px;
  background: var(--accent);
  opacity: 0.3;
  animation: dividerGlowV 4s ease-in-out infinite;
}
.preview-divider.horizontal {
  height: 2px;
  background: var(--accent-2);
  opacity: 0.3;
  animation: dividerGlowH 4s ease-in-out infinite 2s;
}
@keyframes dividerGlowV {
  0%, 100% { opacity: 0.3; box-shadow: none; }
  50% { opacity: 0.7; box-shadow: 0 0 12px rgba(108,99,255,0.4); }
}
@keyframes dividerGlowH {
  0%, 100% { opacity: 0.3; box-shadow: none; }
  50% { opacity: 0.7; box-shadow: 0 0 12px rgba(78,205,196,0.4); }
}

/* Video mock content */
.pane-mock-video {
  text-align: center;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 2;
}
.pane-mock-video svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}
.pane-mock-video.small svg { width: 50px; height: 50px; }
.pane-mock-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Animated video gradient background */
.mock-video-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0d2e 0%, #0d1b3a 25%, #1a1028 50%, #0d2038 75%, #1a0d2e 100%);
  background-size: 300% 300%;
  animation: videoGradient 10s ease-in-out infinite;
  z-index: 0;
}
.mock-video-bg.twitch {
  background: linear-gradient(135deg, #2d1046 0%, #1a0d2a 25%, #2d1046 50%, #1a0d2a 75%, #2d1046 100%);
  background-size: 300% 300%;
  animation: videoGradient 12s ease-in-out infinite;
}
@keyframes videoGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fullscreen badge */
.pane-fs-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  background: rgba(108,99,255,0.25);
  border: 1px solid rgba(108,99,255,0.4);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  z-index: 3;
  animation: fsBadgePulse 3s ease-in-out infinite;
}
@keyframes fsBadgePulse {
  0%, 100% { opacity: 0.5; border-color: rgba(108,99,255,0.3); }
  50% { opacity: 1; border-color: rgba(108,99,255,0.8); box-shadow: 0 0 12px rgba(108,99,255,0.2); }
}

/* Audio equalizer bars */
.mock-equalizer {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  z-index: 3;
}
.mock-equalizer span {
  display: block;
  width: 3px;
  background: rgba(255,255,255,0.45);
  border-radius: 1.5px;
  animation: eqBounce 1.2s ease-in-out infinite;
}
.mock-equalizer span:nth-child(1) { height: 10px; animation-delay: 0s; }
.mock-equalizer span:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.mock-equalizer span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.mock-equalizer span:nth-child(4) { height: 22px; animation-delay: 0.1s; }
.mock-equalizer span:nth-child(5) { height: 12px; animation-delay: 0.25s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* Progress bar */
.mock-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 3;
}
.mock-progress-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, #FF0000, #FF4444);
  border-radius: 0 2px 2px 0;
  animation: progressFill 12s linear infinite;
}
.mock-progress-fill.live {
  width: 100%;
  background: #9146FF;
  animation: none;
}
@keyframes progressFill {
  0% { width: 15%; }
  100% { width: 88%; }
}

/* LIVE badge */
.mock-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  background: #FF0000;
  padding: 2px 8px 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  letter-spacing: 0.5px;
}
.mock-live-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: liveDot 1.5s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Mock chat lines (Twitch pane) */
.mock-chat {
  position: absolute;
  right: 8px;
  bottom: 14px;
  top: 36px;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
}
.mock-chat-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  animation: chatSlide 5s linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
}
.mock-chat-line:nth-child(1) { width: 70%; }
.mock-chat-line:nth-child(2) { width: 50%; }
.mock-chat-line:nth-child(3) { width: 85%; }
.mock-chat-line:nth-child(4) { width: 60%; }
@keyframes chatSlide {
  0% { opacity: 0; transform: translateY(16px); }
  15% { opacity: 0.5; transform: translateY(0); }
  85% { opacity: 0.5; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* URL bar cursor blink */
.mock-url-bar {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.mock-cursor {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: var(--accent);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Content line shimmer */
.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-lines span {
  display: block;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  animation: lineShimmer 3s ease-in-out infinite;
}
.mock-lines span:nth-child(1) { animation-delay: 0s; }
.mock-lines span:nth-child(2) { animation-delay: 0.3s; }
.mock-lines span:nth-child(3) { animation-delay: 0.6s; }
.mock-lines span:nth-child(4) { animation-delay: 0.9s; }
.mock-lines span:nth-child(5) { animation-delay: 1.2s; }
@keyframes lineShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
  letter-spacing: -0.01em;
}
.trust-logo:hover { opacity: 0.8; }

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Features / Bento Grid ---------- */
.features {
  padding: 100px 0;
}

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

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.bento-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-icon {
  width: 44px;
  height: 44px;
  background: rgba(108,99,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.bento-icon svg { width: 22px; height: 22px; }

/* Big hero card */
.bento-hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
}
.bento-hero .bento-text h3 { font-size: 1.4rem; }

.bento-visual {
  background: rgba(108,99,255,0.05);
  border-radius: var(--radius);
  padding: 24px;
}

.fullscreen-demo {
  display: flex;
  gap: 8px;
  height: 200px;
}
.fs-pane {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}
.fs-pane.active {
  border-color: var(--accent);
  background: rgba(108,99,255,0.08);
  flex: 1.4;
}
.fs-video-icon { color: var(--accent); }
.fs-video-icon svg { width: 48px; height: 48px; }
.fs-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}
.fs-label-sm {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.fs-border {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  opacity: 0.4;
  animation: borderPulse 3s ease-in-out infinite;
}
@keyframes borderPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

.fs-content-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
}
.fs-content-lines span {
  display: block;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

/* Wide card */
.bento-wide {
  grid-column: span 2;
  display: flex;
  gap: 24px;
  align-items: center;
}
.bento-wide .bento-icon { margin-bottom: 0; flex-shrink: 0; }

.platform-badges {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Layout mini grid */
.layout-mini-grid {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.mini-layout {
  width: 40px;
  height: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  gap: 2px;
  padding: 3px;
  overflow: hidden;
}
.mini-layout.vert { flex-direction: column; }
.mini-layout.grid { flex-wrap: wrap; }
.mini-layout.grid .ml-cell { width: calc(50% - 1px); height: calc(50% - 1px); }
.ml-cell {
  background: rgba(108,99,255,0.2);
  border-radius: 2px;
  flex-shrink: 0;
}
.mini-layout:not(.vert):not(.grid) .ml-cell { height: 100%; }
.mini-layout.vert .ml-cell { width: 100%; }

/* Key combo */
.key-combo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.key-combo span { color: var(--text-muted); font-size: 0.8rem; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(18,18,30,0.5) 50%, var(--bg) 100%);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  transition: var(--transition);
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1;
}

.step-content { flex: 1; }
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-visual { flex-shrink: 0; }
.step-icon-box {
  width: 64px;
  height: 64px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.step-icon-box svg { width: 32px; height: 32px; }

/* ---------- Pricing ---------- */
.pricing {
  padding: 100px 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.toggle-label.active { color: var(--text); }
.save-badge {
  background: rgba(68,207,108,0.15);
  color: var(--accent-3);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.beta-badge {
  background: rgba(234,179,8,0.15);
  color: #eab308;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.coming-soon-badge {
  background: rgba(136,136,160,0.15);
  color: var(--text-secondary);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.toggle-switch:hover { background: rgba(255,255,255,0.15); }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch.annual .toggle-thumb {
  left: 25px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: rgba(108,99,255,0.3);
  background: linear-gradient(180deg, rgba(108,99,255,0.06) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 60px rgba(108,99,255,0.08);
  transform: scale(1.02);
}
.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.pricing-header { margin-bottom: 24px; }
.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-amount {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.plan-features li.excluded {
  color: var(--text-muted);
}
.check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-3);
  margin-top: 1px;
}
.x-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.4;
  margin-top: 1px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(18,18,30,0.5) 50%, var(--bg) 100%);
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] {
  border-color: rgba(108,99,255,0.2);
  background: rgba(108,99,255,0.03);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
  transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  padding: 80px 0 100px;
}

.cta-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.cta-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(108,99,255,0.15);
  top: -100px;
  left: -100px;
}
.cta-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(78,205,196,0.12);
  bottom: -80px;
  right: -60px;
}

.cta-content {
  position: relative;
}
.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 260px;
}

.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--text); }

/* ---------- Hero Fullscreen FLIP Animation ---------- */
.preview-window.animating {
  transform: rotateX(2deg);
}
.preview-window.animating:hover {
  transform: rotateX(2deg);
}

/* Pane fullscreen states */
.preview-pane.fs-expanding,
.preview-pane.fs-expanded,
.preview-pane.fs-shrinking {
  position: absolute;
  inset: 0;
  z-index: 10;
  flex: none;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dim non-fullscreen panes */
.preview-body.fs-active .preview-pane:not(.fs-expanding):not(.fs-expanded):not(.fs-shrinking) {
  transition: opacity 0.4s ease;
  opacity: 0.15;
}
.preview-body.fs-active .preview-divider {
  opacity: 0.05;
}
.preview-body.fs-active .preview-right {
  pointer-events: none;
}

/* Fullscreen overlay label */
.fs-overlay-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.fs-overlay-label.visible {
  opacity: 1;
}

/* ---------- Phone Mockup ---------- */
.hero-preview {
  position: relative;
}

.device-phone {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) translateX(120%);
  z-index: 5;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}
.device-phone.visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

.device-connection-line {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 120px;
}

.phone-frame {
  width: 130px;
  background: #1a1a2e;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(78,205,196,0.1);
}

.phone-notch {
  width: 50px;
  height: 6px;
  background: #0a0a14;
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 2px;
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.phone-status-icons {
  display: flex;
  gap: 3px;
  color: rgba(255,255,255,0.5);
}
.phone-status-icons svg {
  width: 10px;
  height: 10px;
}

.phone-app-bar {
  padding: 4px 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.phone-app-title {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.01em;
}

.phone-content {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.phone-stream-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d1046 0%, #1a0d2a 50%, #2d1046 100%);
  background-size: 300% 300%;
  animation: videoGradient 12s ease-in-out infinite;
}

.phone-stream-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.phone-live-dot {
  width: 5px;
  height: 5px;
  background: #ff0000;
  border-radius: 50%;
  animation: liveDot 1.5s ease-in-out infinite;
}

.phone-home-indicator {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 6px auto 8px;
}

/* Pane delegation glow */
.preview-pane.pane-delegating {
  box-shadow: inset 0 0 20px rgba(78,205,196,0.25), 0 0 15px rgba(78,205,196,0.15);
  border: 1px solid rgba(78,205,196,0.4);
}

/* Delegation badge overlay */
.pane-delegate-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(78,205,196,0.9);
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pane-delegate-badge.visible {
  opacity: 1;
}

/* Phone float animation when visible */
.device-phone.visible .phone-frame {
  animation: phoneFloat 3s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .device-phone {
    right: -40px;
  }
  .phone-frame {
    width: 110px;
  }
  .phone-content {
    height: 130px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-hero { grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
  .pricing-grid { max-width: none; grid-template-columns: repeat(2, 1fr); }
  .pricing-card { padding: 28px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,20,0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 120px 0 40px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.4rem; }

  .preview-body { height: 260px; }
  .device-phone { display: none !important; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-hero {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .platform-badges { margin-left: 0; }

  .step {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 28px;
  }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured {
    grid-column: span 1;
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: span 2; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-card { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ===== Scene Rotation ===== */
.preview-scene {
  position: absolute; inset: 0; display: flex; width: 100%; height: 100%;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.preview-scene.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.scene-indicators {
  position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.scene-dot {
  background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.4);
  font-size: .65rem; padding: 3px 12px; border-radius: 12px; cursor: pointer;
  transition: all .3s; font-family: inherit;
}
.scene-dot:hover { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.7); }
.scene-dot.active { border-color: var(--accent); color: var(--accent); background: rgba(46,125,50,.12); }

/* ===== Mock Terminal ===== */
.mock-terminal-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, #0c0c1a 0%, #0e1020 50%, #0a0e18 100%); }
.pane-mock-terminal { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.mock-terminal-header { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: .6rem; color: rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-terminal-title { flex: 1; }
.mock-terminal-lines { padding: 8px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .65rem; line-height: 1.7; flex: 1; }
.term-line { color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; }
.term-line.dim { color: rgba(255,255,255,.25); }
.term-line.success { color: rgba(46,125,50,.9); }
.term-prompt { color: rgba(46,125,50,.8); margin-right: 6px; }
.term-accent { color: rgba(96,165,250,.8); margin-right: 4px; }

/* ===== Mock AI Agent ===== */
.mock-agent-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, #0e1f14 0%, #0a140e 50%, #0d1a0e 100%); }
.pane-mock-agent { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.mock-agent-header { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: .6rem; color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-model-pill { margin-left: auto; font-size: .5rem; padding: 1px 6px; border-radius: 3px; background: rgba(46,125,50,.2); color: rgba(46,125,50,.8); border: 1px solid rgba(46,125,50,.3); }
.mock-agent-steps { padding: 8px 10px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mock-agent-step { font-size: .6rem; padding: 4px 8px; border-radius: 4px; position: relative; padding-left: 18px; }
.mock-agent-step::before { content: ''; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; }
.mock-agent-step.done { color: rgba(255,255,255,.35); background: rgba(255,255,255,.02); }
.mock-agent-step.done::before { background: rgba(46,125,50,.6); }
.mock-agent-step.active { color: rgba(255,255,255,.7); background: rgba(46,125,50,.08); }
.mock-agent-step.active::before { background: rgba(96,165,250,.8); animation: agentPulse 1.5s ease-in-out infinite; }
@keyframes agentPulse { 0%,100%{opacity:.5} 50%{opacity:1;box-shadow:0 0 6px rgba(96,165,250,.6)} }

.mock-rec-badge { position: absolute; bottom: 8px; right: 8px; font-size: .5rem; font-weight: 600; color: #fff; background: rgba(220,38,38,.7); padding: 2px 8px; border-radius: 3px; display: flex; align-items: center; gap: 4px; z-index: 3; }
.mock-rec-dot { width: 5px; height: 5px; background: #fff; border-radius: 50%; animation: liveDot 1.5s ease-in-out infinite; }
.mock-heading { height: 12px !important; background: rgba(255,255,255,.09) !important; }
