/* ===========================================================
   NEURAL — Cinematic AI Creative Platform
   Premium dark-mode-first design with glassmorphism + aurora
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #06070d;
  --bg-1: #0a0c15;
  --bg-2: #0e1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7eaf3;
  --text-dim: #a3a9bd;
  --text-mute: #6b7290;
  --accent-1: #6aa6ff;
  --accent-2: #b07cff;
  --accent-3: #4ce0d4;
  --accent-warm: #ff7ac6;
  --grad-1: linear-gradient(135deg, #6aa6ff 0%, #b07cff 50%, #ff7ac6 100%);
  --grad-2: linear-gradient(135deg, #4ce0d4 0%, #6aa6ff 50%, #b07cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(106,166,255,0.18), rgba(176,124,255,0.18) 50%, rgba(255,122,198,0.18));
  --shadow-1: 0 10px 40px -10px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px -10px rgba(106,166,255,0.5);
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg-0: #f6f7fb;
  --bg-1: #eef0f7;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 18, 32, 0.08);
  --border-strong: rgba(15, 18, 32, 0.16);
  --text: #0b0d18;
  --text-dim: #4a4f63;
  --text-mute: #8088a0;
  --grad-soft: linear-gradient(135deg, rgba(106,166,255,0.22), rgba(176,124,255,0.22) 50%, rgba(255,122,198,0.22));
  --shadow-1: 0 10px 40px -10px rgba(15,18,32,0.18);
  --shadow-glow: 0 0 60px -10px rgba(106,166,255,0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.03em; }
::selection { background: rgba(106,166,255,0.4); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #0d1024 0%, var(--bg-0) 60%);
}
.aurora.soft { background: radial-gradient(ellipse at top, #0a0d1a 0%, var(--bg-0) 70%); }
.aurora-blob {
  position: absolute; width: 720px; height: 720px; border-radius: 50%;
  filter: blur(120px); opacity: 0.55; mix-blend-mode: screen;
  animation: float 22s var(--ease) infinite;
}
.blob-1 { background: radial-gradient(circle, #6aa6ff 0%, transparent 60%); top: -200px; left: -200px; animation-delay: 0s; }
.blob-2 { background: radial-gradient(circle, #b07cff 0%, transparent 60%); top: 20%; right: -240px; animation-delay: -6s; }
.blob-3 { background: radial-gradient(circle, #4ce0d4 0%, transparent 60%); bottom: -240px; left: 20%; animation-delay: -12s; opacity: 0.4; }
.blob-4 { background: radial-gradient(circle, #ff7ac6 0%, transparent 60%); top: 50%; left: 40%; animation-delay: -18s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.4;
}
[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(15,18,32,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,18,32,0.05) 1px, transparent 1px);
  opacity: 0.6;
}
#particles { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(6,7,13,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
[data-theme="light"] .navbar.scrolled { background: rgba(255,255,255,0.7); }

.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad-1);
  box-shadow: 0 8px 24px -6px rgba(176,124,255,0.6);
  position: relative;
  animation: logo-pulse 4s var(--ease) infinite;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 4px;
  background: var(--bg-0); border-radius: 5px;
}
@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 8px 24px -6px rgba(176,124,255,0.6); }
  50% { box-shadow: 0 8px 30px -4px rgba(106,166,255,0.8); }
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  backdrop-filter: blur(12px);
}
.nav-links a {
  padding: 8px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  background: var(--text);
  color: var(--bg-0);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
  position: relative;
}
.theme-toggle:hover { background: var(--surface-2); transform: scale(1.05); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: all 0.4s var(--ease); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }

.mobile-toggle { display: none; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.mobile-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-primary {
  background: var(--text);
  color: var(--bg-0);
  border-color: var(--text);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary.glow {
  background: var(--grad-1);
  color: #fff;
  border: none;
  box-shadow: 0 10px 40px -10px rgba(176,124,255,0.7);
}
.btn-primary.glow::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary.glow:hover::before { transform: translateX(100%); }
.btn-primary.glow:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(176,124,255,0.9); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(76,224,212,0.6);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76,224,212,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(76,224,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,224,212,0); }
}

/* ---------- Gradient text ---------- */
.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: grad-shift 8s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--radius);
  position: relative;
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

/* ---------- Section ---------- */
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ---------- HERO ---------- */
.hero { padding: 80px 0 40px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  min-height: 70vh;
}
.hero-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0 0 28px;
}
.hero-title .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: word-in 1s var(--ease) forwards;
}
.hero-title .reveal-word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .reveal-word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .reveal-word:nth-child(3) { animation-delay: 0.3s; }
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: 19px; line-height: 1.6;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats span { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stats .divider { width: 1px; height: 32px; background: var(--border); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Hero visual floating gallery */
.hero-visual {
  position: relative;
  height: 540px;
  perspective: 1200px;
}
.orb-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--grad-1);
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-pulse 6s var(--ease) infinite;
}
@keyframes orb-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.55; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 0.7; }
}
.orb-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%; border: 1px solid var(--border-strong);
  transform: translate(-50%, -50%);
}
.orb-1 { width: 360px; height: 360px; animation: ring-spin 30s linear infinite; }
.orb-2 { width: 480px; height: 480px; animation: ring-spin 50s linear infinite reverse; border-style: dashed; opacity: 0.4; }
@keyframes ring-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.float-card {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-1);
  animation: card-float 8s var(--ease) infinite;
  transition: transform 0.4s var(--ease);
}
.float-card:hover { transform: scale(1.05) !important; }
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.card-1 { top: 8%; left: 0; width: 220px; animation-delay: 0s; }
.card-2 { top: 36%; right: 0; width: 240px; animation-delay: -2s; }
.card-3 { bottom: 12%; left: 12%; width: 200px; animation-delay: -4s; }
.card-4 { bottom: 24%; right: 8%; width: 260px; animation-delay: -1s; }

.card-media {
  width: 100%; aspect-ratio: 1.05/1; border-radius: 10px; position: relative; overflow: hidden;
}
.media-1 { background: linear-gradient(135deg, #6aa6ff 0%, #b07cff 100%); }
.media-1::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 50%); }
.media-2 { background: linear-gradient(135deg, #4ce0d4 0%, #6aa6ff 50%, #b07cff 100%); }
.media-2::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 80%, rgba(0,0,0,0.4), transparent 50%); }
.media-3 { background: linear-gradient(135deg, #ff7ac6 0%, #b07cff 100%); }
.media-3::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent 60%); }

.card-meta {
  font-size: 11px; color: var(--text-dim);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 4px 2px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.card-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); }

.card-prompt { padding: 16px; }
.prompt-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-mute); margin-bottom: 8px; display: block;
}
.card-prompt p {
  font-size: 13px; line-height: 1.5; color: var(--text);
  margin: 0 0 12px;
  font-style: italic;
}
.prompt-actions { display: flex; gap: 6px; }
.badge {
  padding: 3px 8px; border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 10px; color: var(--text-dim);
}

/* Marquee */
.marquee-wrap {
  margin-top: 80px; padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent);
}
.marquee-label { text-align: center; font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent); }
.marquee-track { display: inline-flex; gap: 40px; padding-right: 40px; animation: marquee 35s linear infinite; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 18px; color: var(--text-dim); white-space: nowrap; }
.marquee-track span { display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--text); }
.feature-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin: 0 0 20px; }
.feature-preview {
  width: 100%; aspect-ratio: 16/9; border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.preview-img-1 { background: linear-gradient(135deg, #6aa6ff, #b07cff); }
.preview-img-1::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.4), transparent 50%); }
.preview-vid { background: linear-gradient(135deg, #0a0c15, #1a1d35); display: grid; place-items: center; }
.preview-vid::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #4ce0d4 0%, transparent 60%); opacity: 0.4; }
.play-mini { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); display: grid; place-items: center; position: relative; z-index: 1; }
.play-mini::after { content: ''; width: 0; height: 0; border-left: 10px solid var(--bg-0); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.preview-avatar { background: linear-gradient(135deg, #ff7ac6, #b07cff); }
.preview-avatar::after { content: '✦'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; color: rgba(255,255,255,0.7); }
.preview-upscale { background: repeating-linear-gradient(45deg, #1a1d35 0 8px, #0a0c15 8px 16px); position: relative; }
.preview-upscale::after { content: ''; position: absolute; inset: 20%; border: 1px dashed rgba(255,255,255,0.3); border-radius: 4px; }
.preview-bg {
  background:
    linear-gradient(45deg, #6aa6ff 25%, transparent 25%, transparent 75%, #6aa6ff 75%) 0 0/16px 16px,
    linear-gradient(45deg, #6aa6ff 25%, transparent 25%, transparent 75%, #6aa6ff 75%) 8px 8px/16px 16px;
}
.preview-bg::after { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: var(--grad-1); opacity: 0.8; }
.preview-enhance { background: radial-gradient(circle at 30% 30%, #4ce0d4, transparent 50%), radial-gradient(circle at 70% 70%, #b07cff, transparent 50%), var(--bg-2); }

/* ---------- Demo / Magic button ---------- */
.section-demo { position: relative; }
.demo-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: center;
}
.demo-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 12px; }
.demo-meta { display: flex; gap: 24px; }
.demo-meta > div { display: flex; flex-direction: column; }
.demo-meta strong { font-size: 20px; font-weight: 700; }
.demo-meta span { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }

.magic-btn {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px 14px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease);
}
.magic-btn:hover { transform: translateY(-2px); }
.magic-orb {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-1);
  position: relative;
  box-shadow: 0 0 40px rgba(176,124,255,0.6);
  animation: orb-pulse 3s var(--ease) infinite;
}
.magic-orb::after {
  content: ''; position: absolute; inset: 8px;
  background: var(--bg-0); border-radius: 50%;
  background: linear-gradient(135deg, #6aa6ff, #b07cff);
}
.magic-label { font-weight: 600; font-size: 15px; }
.magic-btn.generating .magic-orb { animation: orb-spin 1s linear infinite; }
@keyframes orb-spin { to { transform: rotate(360deg); } }

.demo-stage { padding: 16px; border-radius: var(--radius-lg); }
.stage-frame {
  background: var(--bg-1);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.stage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 8px;
}
.stage-tile {
  aspect-ratio: 1; border-radius: 10px; position: relative; overflow: hidden;
  opacity: 0; transform: scale(0.92);
  animation: tile-in 0.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes tile-in { to { opacity: 1; transform: scale(1); } }
.tile-media { width: 100%; height: 100%; }
.t1 { background: linear-gradient(135deg, #6aa6ff, #4ce0d4); }
.t2 { background: linear-gradient(135deg, #b07cff, #ff7ac6); }
.t3 { background: linear-gradient(135deg, #ff7ac6, #6aa6ff); }
.t4 { background: linear-gradient(135deg, #4ce0d4, #b07cff); }
.t5 { background: linear-gradient(135deg, #6aa6ff, #ff7ac6); }
.t6 { background: linear-gradient(135deg, #b07cff, #4ce0d4); }
.tile-tag {
  position: absolute; bottom: 6px; left: 6px;
  font-size: 9px; padding: 3px 6px; border-radius: 4px;
  background: rgba(0,0,0,0.5); color: white;
  text-transform: uppercase; letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}
.stage-console {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  font-family: 'Space Grotesk', monospace; font-size: 12px;
  color: var(--text-dim);
}
.console-dot { width: 10px; height: 10px; border-radius: 50%; }
.console-dot.r { background: #ff5f57; }
.console-dot.y { background: #febc2e; }
.console-dot.g { background: #28c840; }
.console-text { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-stage.generating .stage-tile { animation: none; opacity: 0; transform: scale(0.9); }
.demo-stage.generating .stage-tile.in { animation: tile-in 0.4s var(--ease) forwards; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pricing-3 { max-width: 1100px; margin: 0 auto; }
.price-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.highlight {
  background: linear-gradient(180deg, rgba(176,124,255,0.12), rgba(106,166,255,0.04));
  border-color: rgba(176,124,255,0.3);
  box-shadow: 0 20px 60px -20px rgba(176,124,255,0.4);
  transform: scale(1.03);
}
.price-card.highlight:hover { transform: scale(1.03) translateY(-6px); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 100px;
  background: var(--grad-1); color: #fff;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
}
.price-head h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.price-head p { font-size: 13px; color: var(--text-dim); margin: 0; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price .num { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price .per { font-size: 13px; color: var(--text-mute); }
.price-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); }
.price-list .check { color: var(--accent-3); font-weight: 700; }

/* Billing toggle */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 100px;
  margin-top: 32px; gap: 4px;
}
.bt-opt { padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--text-dim); transition: all 0.3s var(--ease); position: relative; }
.bt-opt.active { background: var(--text); color: var(--bg-0); }
.bt-opt .save { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 100px; background: var(--grad-1); color: #fff; font-size: 10px; }
.bt-opt.active .save { background: var(--grad-1); color: #fff; }

/* Compare table */
.compare-wrap { margin-top: 100px; }
.compare-table {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.cmp-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: center;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-head { background: var(--surface-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.cmp-head > div:not(:first-child) { text-align: center; }
.cmp-row > div:not(:first-child) { text-align: center; color: var(--text-dim); }
.cmp-row > div:first-child { color: var(--text-dim); }
.cmp-row .hl { color: var(--text); font-weight: 600; }
.cmp-head .hl { color: var(--text); }

/* FAQ */
.faq-wrap { margin-top: 80px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 20px 24px; border-radius: var(--radius); cursor: pointer; transition: all 0.3s var(--ease); }
.faq-item[open] { background: var(--surface-2); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 18px; height: 18px; position: relative; transition: transform 0.3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--text-dim); }
.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item p { margin: 12px 0 0; color: var(--text-dim); line-height: 1.6; font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial { padding: 28px; border-radius: var(--radius); }
.testimonial p { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0 0 20px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who > div { display: flex; flex-direction: column; }
.testimonial .who strong { font-size: 14px; }
.testimonial .who span { font-size: 12px; color: var(--text-mute); }
.avatar { width: 40px; height: 40px; border-radius: 50%; }
.av-1 { background: linear-gradient(135deg, #6aa6ff, #b07cff); }
.av-2 { background: linear-gradient(135deg, #4ce0d4, #6aa6ff); }
.av-3 { background: linear-gradient(135deg, #ff7ac6, #b07cff); }

/* ---------- CTA ---------- */
.cta-section { padding: 80px 0 120px; }
.cta {
  padding: 80px 40px; text-align: center; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(106,166,255,0.1), rgba(176,124,255,0.1));
  border: 1px solid var(--border-strong);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(circle, rgba(106,166,255,0.15), transparent 50%);
  animation: cta-glow 8s var(--ease) infinite;
}
@keyframes cta-glow {
  0%, 100% { transform: translate(-30%, -30%); }
  50% { transform: translate(30%, 30%); }
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 0 0 16px; position: relative; }
.cta p { color: var(--text-dim); margin: 0 0 28px; font-size: 16px; position: relative; }
.cta .btn { position: relative; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, var(--bg-1)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; color: var(--text-dim); }
.footer-grid > div a { display: block; font-size: 14px; color: var(--text-dim); padding: 6px 0; transition: color 0.2s; }
.footer-grid > div a:hover { color: var(--text); }
.footer-tag { font-size: 14px; color: var(--text-dim); margin-top: 12px; max-width: 280px; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-mute); flex-wrap: wrap; gap: 12px; }

/* ---------- Page header (Tools / Pricing / About) ---------- */
.page-header { padding: 100px 0 40px; text-align: center; position: relative; }
.page-title { font-size: clamp(36px, 5.5vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 20px; }
.page-sub { font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Tool filters */
.tool-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.filter { padding: 8px 16px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-dim); transition: all 0.3s var(--ease); }
.filter span { color: var(--text-mute); margin-left: 4px; font-size: 11px; }
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { background: var(--text); color: var(--bg-0); border-color: var(--text); }
.filter.active span { color: var(--text-mute); }

/* Tools grid */
.tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.tool-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5); }
.tool-preview {
  width: 100%; aspect-ratio: 16/10;
  position: relative; overflow: hidden;
  background: var(--bg-2);
}
.tp-shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.tp-1 { background: linear-gradient(135deg, #6aa6ff, #b07cff); }
.tp-2 { background: linear-gradient(135deg, #1a1d35, #4ce0d4); }
.tp-3 { background: linear-gradient(135deg, #ff7ac6, #b07cff); }
.tp-4 { background: repeating-linear-gradient(45deg, #1a1d35 0 12px, #2a2d45 12px 24px); }
.tp-5 { background:
  linear-gradient(45deg, #ccc 25%, transparent 25%) -8px 0/16px 16px,
  linear-gradient(-45deg, #ccc 25%, transparent 25%) -8px 0/16px 16px,
  linear-gradient(45deg, transparent 75%, #ccc 75%) 0 8px/16px 16px,
  linear-gradient(-45deg, transparent 75%, #ccc 75%) 0 8px/16px 16px,
  #fff; }
.tp-5::after { content: ''; position: absolute; top: 25%; left: 30%; width: 40%; height: 50%; border-radius: 50%; background: var(--grad-1); }
.tp-6 { background: linear-gradient(135deg, #4ce0d4, #6aa6ff); }
.tp-7 { background: linear-gradient(135deg, #2a2d45, #6aa6ff); }
.tp-8 { background: linear-gradient(135deg, #ff7ac6, #4ce0d4); }
.tp-9 { background: linear-gradient(135deg, #0a0c15, #b07cff); }
.tp-10 { background: linear-gradient(135deg, #1a1d35, #ff7ac6); }
.tp-11 { background: linear-gradient(135deg, #0a0c15, #4ce0d4); }
.tp-12 { background: linear-gradient(135deg, #0a0c15, #ff7ac6); }

.checker { position: absolute; inset: 20%; background: rgba(255,255,255,0.1); border-radius: 50%; border: 1px dashed rgba(255,255,255,0.3); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); display: grid; place-items: center; z-index: 1; }
.play-icon::after { content: ''; width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 3px; }

.bars { position: absolute; bottom: 20%; left: 10%; right: 10%; display: flex; gap: 4px; align-items: flex-end; height: 50%; }
.bars span { flex: 1; background: rgba(255,255,255,0.5); border-radius: 2px; animation: bar 1.4s var(--ease) infinite; }
.bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.bars span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.bars span:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.bars span:nth-child(4) { height: 50%; animation-delay: 0.3s; }
.bars span:nth-child(5) { height: 90%; animation-delay: 0.4s; }
.bars span:nth-child(6) { height: 70%; animation-delay: 0.5s; }
.bars span:nth-child(7) { height: 40%; animation-delay: 0.6s; }
.bars span:nth-child(8) { height: 60%; animation-delay: 0.7s; }
.bars span:nth-child(9) { height: 85%; animation-delay: 0.8s; }
.bars span:nth-child(10) { height: 50%; animation-delay: 0.9s; }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.4); } }

.waveform { position: absolute; inset: 30% 10%; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.6) 0 2px, transparent 2px 6px); border-radius: 4px; opacity: 0.7; mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); }

.tool-meta { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tool-head { display: flex; justify-content: space-between; align-items: center; }
.tool-head h3 { font-size: 17px; font-weight: 600; margin: 0; }
.tool-tag { font-size: 10px; padding: 3px 8px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.tool-meta p { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 0; }
.tool-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--border); }
.tool-stat { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.tool-cta { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text); }
.tool-cta svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.tool-card:hover .tool-cta svg { transform: translateX(3px); }

/* ---------- Story / About ---------- */
.manifesto { padding: 100px 0 40px; text-align: center; }
.manifesto-title { font-size: clamp(36px, 5.5vw, 80px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin: 0 auto 24px; max-width: 1000px; }
.manifesto-sub { font-size: 19px; color: var(--text-dim); max-width: 640px; margin: 0 auto; line-height: 1.6; }

.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.story-text p { font-size: 16px; line-height: 1.7; color: var(--text-dim); margin: 0 0 16px; }
.story-figures { padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; }
.fig { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.fig:last-child { border-bottom: none; }
.fig strong { font-size: 22px; font-weight: 800; min-width: 60px; background: var(--grad-1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fig span { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-card { padding: 32px; border-radius: var(--radius); transition: all 0.4s var(--ease); }
.value-card:hover { transform: translateY(-4px); }
.value-num { font-size: 12px; color: var(--text-mute); font-weight: 600; margin-bottom: 16px; font-family: 'Space Grotesk', monospace; }
.value-card h3 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.value-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { padding: 20px; border-radius: var(--radius); transition: all 0.4s var(--ease); text-align: center; }
.team-card:hover { transform: translateY(-4px); }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: 12px; margin-bottom: 16px; }
.tph-1 { background: linear-gradient(135deg, #6aa6ff, #b07cff); }
.tph-2 { background: linear-gradient(135deg, #4ce0d4, #6aa6ff); }
.tph-3 { background: linear-gradient(135deg, #ff7ac6, #b07cff); }
.tph-4 { background: linear-gradient(135deg, #b07cff, #4ce0d4); }
.tph-5 { background: linear-gradient(135deg, #6aa6ff, #ff7ac6); }
.tph-6 { background: linear-gradient(135deg, #4ce0d4, #ff7ac6); }
.team-card strong { display: block; font-size: 16px; }
.team-card span { font-size: 13px; color: var(--text-dim); }

.backed-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; padding: 32px; border-radius: var(--radius); gap: 24px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 18px; color: var(--text-dim); }

/* ---------- STUDIO (Generate page) ---------- */
.app-body { background: var(--bg-0); }
.studio { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 80px); }

.studio-sidebar {
  margin: 16px 0 16px 16px;
  padding: 16px;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  height: calc(100vh - 112px);
  position: sticky; top: 96px;
  overflow-y: auto;
}
.new-chat {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--grad-1);
  color: #fff; font-weight: 600; font-size: 14px;
  margin-bottom: 20px;
  transition: all 0.3s var(--ease);
}
.new-chat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(176,124,255,0.6); }
.new-chat svg { width: 16px; height: 16px; }

.side-section { margin-bottom: 16px; }
.side-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin: 0 0 8px; padding: 0 6px; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.active { background: var(--surface-2); color: var(--text); }
.side-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); flex-shrink: 0; }
.side-item svg { width: 14px; height: 14px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }

.studio-main { display: flex; flex-direction: column; height: calc(100vh - 80px); padding: 16px; }

.studio-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 16px; gap: 16px; flex-wrap: wrap; }
.model-picker { display: flex; padding: 4px; border-radius: 100px; gap: 2px; flex-wrap: wrap; }
.model-btn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--text-dim); transition: all 0.3s var(--ease); }
.model-btn small { color: var(--text-mute); font-size: 11px; }
.model-btn.active { background: var(--text); color: var(--bg-0); }
.model-btn.active small { color: var(--text-mute); }
.model-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-1); }
.model-dot.gen { background: var(--grad-2); }
.model-dot.flux { background: #4ce0d4; }
.model-dot.avatar { background: var(--accent-warm); }

.studio-actions { display: flex; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; color: var(--text-dim); }

.convo { flex: 1; overflow-y: auto; padding: 16px 8px; display: flex; flex-direction: column; gap: 28px; }
.msg { display: flex; gap: 14px; max-width: 900px; width: 100%; margin: 0 auto; }
.msg-user { flex-direction: row-reverse; }
.bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  max-width: 80%;
  line-height: 1.6; font-size: 14px;
}
.msg-user .bubble { background: var(--surface-2); border-color: var(--border-strong); }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.avatar-mini { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-1); flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.avatar-mini.ai { background: var(--grad-2); }
.avatar-mini.ai::after { content: '✦'; }

.attachments { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.attach-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; background: rgba(0,0,0,0.2); font-size: 11px; color: var(--text-dim); }
.attach-pill svg { width: 12px; height: 12px; }

.output-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.output-card { border-radius: 12px; overflow: hidden; background: var(--bg-1); border: 1px solid var(--border); transition: all 0.3s var(--ease); }
.output-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.output-media { width: 100%; aspect-ratio: 1; }
.o-1 .output-media { background: linear-gradient(135deg, #6aa6ff, #b07cff); }
.o-2 .output-media { background: linear-gradient(135deg, #4ce0d4, #6aa6ff); }
.o-3 .output-media { background: linear-gradient(135deg, #ff7ac6, #b07cff); }
.o-4 .output-media { background: linear-gradient(135deg, #b07cff, #4ce0d4); }
.output-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 11px; color: var(--text-dim); }
.output-btns { display: flex; gap: 4px; }
.output-btns button { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; transition: all 0.2s; }
.output-btns button:hover { background: var(--surface-2); }
.output-btns svg { width: 13px; height: 13px; }

.ai-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.ai-action { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-dim); transition: all 0.2s; }
.ai-action:hover { background: var(--surface); color: var(--text); }
.ai-action svg { width: 12px; height: 12px; }

.bubble-typing { display: flex; align-items: center; gap: 10px; }
.typing { display: inline-flex; gap: 3px; }
.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: typing 1.2s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.composer-wrap { padding: 16px 8px 8px; }
.composer {
  border-radius: 18px; padding: 12px;
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.composer-toolbar { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; padding: 0 4px; }
.comp-tool { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 12px; color: var(--text-dim); transition: all 0.2s; }
.comp-tool:hover { background: var(--surface-2); color: var(--text); }
.comp-tool.active { background: var(--surface-2); color: var(--text); }
.comp-tool svg { width: 14px; height: 14px; }
.divider-vert { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.ratio-pill { padding: 2px 6px; border-radius: 4px; background: var(--bg-1); font-family: 'Space Grotesk', monospace; font-size: 11px; }

.composer-main { display: flex; gap: 8px; align-items: flex-end; padding: 4px; }
.composer-main textarea {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: inherit; font-size: 14px; line-height: 1.5;
  color: var(--text); resize: none; padding: 8px 4px;
  min-height: 24px; max-height: 200px;
}
.composer-main textarea::placeholder { color: var(--text-mute); }
.send-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-1); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.send-btn:hover { transform: scale(1.05) rotate(-12deg); }
.send-btn svg { width: 18px; height: 18px; }

.composer-foot { display: flex; justify-content: space-between; padding: 0 8px; font-size: 11px; color: var(--text-mute); flex-wrap: wrap; gap: 8px; }
.composer-foot kbd { padding: 1px 5px; border-radius: 4px; background: var(--bg-1); font-family: 'Space Grotesk', monospace; font-size: 10px; }
.credit-count { color: var(--accent-3); }

.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 460px; }
  .features-grid, .tools-grid, .testimonial-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .pricing-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.highlight { transform: none; }
  .price-card.highlight:hover { transform: translateY(-6px); }
  .demo-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: 240px 1fr; }
  .cmp-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 13px; padding: 14px 18px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open { display: flex; position: absolute; top: 80px; left: 16px; right: 16px; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--surface-2); backdrop-filter: blur(20px); border: 1px solid var(--border); z-index: 60; }
  .nav-links.open a { width: 100%; text-align: center; }
  .section { padding: 80px 0; }
  .features-grid, .tools-grid, .testimonial-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .hero-visual { height: 380px; }
  .card-1, .card-2, .card-3, .card-4 { width: 160px; }
  .marquee-track { font-size: 14px; gap: 24px; }
  .studio { grid-template-columns: 1fr; }
  .studio-sidebar { position: fixed; left: 0; top: 0; height: 100vh; width: 280px; transform: translateX(-100%); transition: transform 0.3s var(--ease); z-index: 100; margin: 0; border-radius: 0; }
  .studio-sidebar.open { transform: translateX(0); }
  .model-picker { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .model-btn { white-space: nowrap; }
  .cta { padding: 60px 24px; }
  .cmp-row { grid-template-columns: 1fr 1fr 1fr; font-size: 11px; }
  .cmp-row > div:first-child { display: none; }
  .demo-grid { gap: 40px; }
  .demo-actions { flex-direction: column; align-items: flex-start; }
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
