/* Omni Flash — Premium AI Video Studio */

:root {
  --bg: #050508;
  --bg-elevated: #0c0d12;
  --bg-glass: rgba(12, 13, 20, 0.65);
  --bg-glass-hover: rgba(18, 19, 28, 0.78);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.11);
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --purple-glow: rgba(139, 92, 246, 0.35);
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 42%, #22d3ee 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, transparent 55%);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'General Sans', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --glow-sm: 0 0 24px rgba(139, 92, 246, 0.18);
  --glow-md: 0 0 48px rgba(139, 92, 246, 0.14);
  --glow-cyan: 0 0 32px rgba(34, 211, 238, 0.12);
  --dur-fast: 0.22s;
  --dur-normal: 0.42s;
  --dur-slow: 0.88s;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-section: 5.5rem;
  --announce-h: 36px;
  --header-h: 56px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
  --shadow-glow: var(--glow-md);
  --lift: translateY(-3px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--cyan); }

.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: -0.02em; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.container--narrow { width: min(680px, 92vw); }

/* Particles */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
}

/* Glass */
.glass {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.01) 40%,
    rgba(0, 0, 0, 0.15) 100%
  ), var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,0.04) 0%, transparent 42%);
  pointer-events: none;
  opacity: 0.8;
}
.glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: var(--lift);
}
.glass:hover::after { opacity: 1; }
.studio .glass:hover,
.preview-studio:hover,
.generator:hover {
  transform: none;
}

/* Announcement */
.announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--announce-h);
  background: rgba(12, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.announce.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.announce__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.announce__text strong { color: var(--text); font-weight: 600; }
.announce__link {
  color: var(--accent-bright);
  font-weight: 500;
  white-space: nowrap;
}
.announce__link:hover { color: var(--cyan); }
.announce__close {
  position: absolute;
  right: max(4vw, 16px);
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.announce__close:hover { color: var(--text); }

/* Header */
.header {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: top 0.35s var(--ease-out), background 0.3s, box-shadow 0.3s;
}
body.announce-dismissed .header { top: 0; }
body.announce-dismissed { --announce-h: 0px; }

.header.is-scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--text); }

.logo__wrap {
  position: relative;
  display: flex;
  line-height: 0;
}
.logo__wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  opacity: 0.5;
  animation: logo-glow 5s var(--ease-out) infinite;
  z-index: -1;
  filter: blur(6px);
}
@keyframes logo-glow {
  0%, 100% { opacity: 0.35; transform: scale(0.95); }
  50% { opacity: 0.65; transform: scale(1.05); }
}
.logo__mark {
  display: block;
  transition: transform var(--dur-normal) var(--ease-out);
}
.logo:hover .logo__mark { transform: scale(1.04); }

.nav { display: flex; gap: 0.25rem; }
.nav__link {
  padding: 0.4rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__link--active { color: var(--text); background: rgba(255,255,255,0.06); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.credits-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 8px;
  color: var(--cyan);
}
.credits-pill__value { font-weight: 600; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.2s;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.pill--mono {
  font-family: var(--mono);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-bright);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.pill--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-weight: 500;
}
.pill--accent {
  background: var(--gradient);
  color: #fff;
  border: none;
}
.pill--save {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 0.65rem;
  margin-left: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 12px var(--purple-glow);
}
.btn--primary:hover {
  box-shadow: 0 4px 24px var(--purple-glow);
  transform: translateY(-2px);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}

.btn--secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn--generate {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--gradient);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--purple-glow);
}
.btn--generate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--purple-glow);
}
.btn--generate:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn__cost {
  margin-left: auto;
  opacity: 0.85;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.btn--sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn--xs { padding: 0.25rem 0.5rem; font-size: 0.72rem; }
.btn--lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent-bright);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--announce-h) + var(--header-h) + 2.5rem) 0 3rem;
  z-index: 1;
  min-height: 100vh;
}

.hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float-orb 20s ease-in-out infinite;
}
.orb--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  top: -15%; left: -8%;
  filter: blur(90px);
}
.orb--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  top: 35%; right: -12%;
  animation-delay: -8s;
  filter: blur(80px);
}
.orb--3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  bottom: 5%; left: 28%;
  animation-delay: -16s;
  filter: blur(70px);
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  33% { transform: translate(24px, -28px) scale(1.04); opacity: 1; }
  66% { transform: translate(-18px, 20px) scale(0.97); opacity: 0.9; }
}

.hero__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero__badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 1.06;
  margin-bottom: var(--space-md);
}
.hero__subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: -0.015em;
  max-width: 28rem;
  margin-inline: auto;
}
.hero__br { display: none; }
@media (min-width: 520px) {
  .hero__br { display: inline; }
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Studio layout */
.studio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: start;
}

.studio-sidebar {
  border-radius: var(--radius-lg);
  padding: 1rem;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}
.studio-sidebar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.studio-sidebar__head h2 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.studio-sidebar__count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  background: rgba(255,255,255,0.04);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.studio-sidebar__list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

.history-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  text-align: left;
  background: none;
  color: inherit;
  font-family: inherit;
  width: 100%;
}
.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  transform: translateX(2px);
}
.history-item--active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.04));
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: inset 3px 0 0 var(--accent);
}
.history-item__thumb {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.history-item__info { min-width: 0; flex: 1; }
.history-item__title {
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.history-item__meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.history-item__status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.history-item__status--done { background: #22c55e; }
.history-item__status--processing {
  background: var(--cyan);
  animation: pulse-dot 1s infinite;
}

.studio-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
  gap: 1rem;
}

/* Generator */
.generator {
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.generator__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tabs {
  display: flex;
  gap: 2px;
  background: rgba(0,0,0,0.3);
  padding: 3px;
  border-radius: 8px;
}
.tabs__btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.tabs__btn--active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.tab-panel[hidden] { display: none; }

.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
}

.prompt-input {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.prompt-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.prompt-input::placeholder { color: var(--text-tertiary); }
.prompt-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
}
.char-count { color: var(--text-tertiary); font-size: 0.72rem; }

.options-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.option-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: block;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 500;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.2s;
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip--active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent-bright);
}

.model-select { margin-top: 0.85rem; }
.select-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.upload-zone {
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: 0.2s;
}
.upload-zone svg { margin: 0 auto 0.5rem; opacity: 0.5; }
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
}

/* Preview player */
.preview-studio {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.preview-studio__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.window-dots { display: flex; gap: 5px; }
.window-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }
.preview-studio__title {
  flex: 1;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}
.live-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.live-badge.is-processing {
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  animation: pulse-text 1.5s ease infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.player {
  position: relative;
  aspect-ratio: 16/10;
  background: #030304;
  overflow: hidden;
}
.player__media {
  position: absolute;
  inset: 0;
}
/* Cinematic stack (player + gallery) */
.cine-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #030304;
}
.cine-stack__video,
.player__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08) brightness(0.9);
  transform-origin: center center;
  animation: cine-drift 22s var(--ease-out) infinite alternate;
  will-change: transform;
}
.player.is-playing .cine-stack__video,
.player.is-playing .player__video {
  animation-duration: 18s;
}
@keyframes cine-drift {
  0% { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.07) translate(-0.4%, -0.25%); }
}
.cine-stack__bloom {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 55% 45% at 50% 45%, rgba(139, 92, 246, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 35% at 70% 60%, rgba(34, 211, 238, 0.08), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: bloom-pulse 6s ease-in-out infinite;
}
@keyframes bloom-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
.cine-stack__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55), inset 0 -40px 60px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.cine-stack__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain-shift 0.5s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, -1%); }
}
.cine-stack__ca {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,0,80,0.03) 0%, transparent 12%, transparent 88%, rgba(0,200,255,0.03) 100%);
  mix-blend-mode: screen;
}
.cine-stack__flicker {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(139, 92, 246, 0.03);
  animation: ambient-flicker 8s ease-in-out infinite;
}
@keyframes ambient-flicker {
  0%, 100% { opacity: 0; }
  48% { opacity: 0.4; }
  52% { opacity: 0.15; }
}
.cine-stack__dof {
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, black 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, black 85%);
  background: rgba(0, 0, 0, 0.15);
}
.gallery-card__media .cine-stack {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  height: 100%;
}
.gallery-card__media .cine-stack__video {
  animation-duration: 26s;
}
.player__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.025) 2px,
    rgba(0,0,0,0.025) 4px
  );
  pointer-events: none;
  opacity: 0.35;
}
.player__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    transparent 28%,
    transparent 55%,
    rgba(0,0,0,0.75) 100%
  );
  pointer-events: none;
}

.player__processing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(14px) saturate(1.25);
  z-index: 5;
  animation: fade-in var(--dur-normal) var(--ease-out);
}
.player__processing[hidden] { display: none; }
.player__processing.is-active .processing-ring {
  animation-duration: 0.75s;
}
.player.is-rendering .cine-stack__video {
  filter: saturate(0.85) contrast(1.05) brightness(0.75) blur(1px);
  animation-play-state: paused;
}
.gallery-card__overlay { z-index: 2; }

.processing-gpu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
}
.processing-gpu__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 1.2s ease infinite;
}

.processing-ring {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent-bright);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.processing-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.processing-steps {
  display: flex;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--text-tertiary);
}
.processing-step {
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
}
.processing-step.is-active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: rgba(34, 211, 238, 0.25);
}
.processing-step.is-done {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.2);
}

.progress-bar {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  width: 58%;
  max-width: 260px;
}
.progress-bar--player { width: 65%; }
.progress-bar__fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.08s linear;
  border-radius: 2px;
  box-shadow: var(--glow-sm);
  will-change: width;
}
.player__processing .progress-bar__fill {
  transition: width 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.player__complete {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(5, 5, 8, 0.75);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 500;
  animation: complete-flash 1.2s var(--ease-out) forwards;
}
.player__complete[hidden] { display: none; }
.player__complete svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
@keyframes complete-flash {
  0% { opacity: 0; transform: scale(0.96); }
  20% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

.player__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem 0.8rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.92) 100%);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
.player:hover .player__controls,
.player.is-focused .player__controls,
.player.is-paused .player__controls {
  opacity: 1;
  transform: translateY(0);
}

.player__play {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}
.player__play:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}

.player__time {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  min-width: 2.2rem;
  flex-shrink: 0;
}
.player__time:last-of-type { text-align: right; }

.player__timeline {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s var(--ease-out);
}
.player__timeline:hover { height: 6px; }
.player__timeline-buffer {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.15);
  border-radius: inherit;
  transition: width 0.3s;
}
.player__timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: inherit;
  box-shadow: var(--glow-sm);
  transition: width 0.12s linear;
}
.player__timeline.is-seeking .player__timeline-progress {
  transition: none;
}
.player__timeline-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s var(--ease-spring);
  pointer-events: none;
}
.player__timeline:hover .player__timeline-thumb { opacity: 1; }

.player__ctrl-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, background 0.25s;
}
.player__ctrl-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.player.is-muted .player__ctrl-btn svg path:last-child { opacity: 0.25; }

.preview-studio__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 0.65rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
.meta-value { font-size: 0.78rem; color: var(--text-secondary); }
.preview-studio__meta .btn { margin-left: auto; }

/* Prompt examples */
.prompt-examples {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.prompt-examples__label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.prompt-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.prompt-chip {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompt-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

/* Trust */
.trust {
  padding: var(--space-lg) 0;
  border-block: 1px solid var(--border);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.trust__inner { text-align: center; }
.trust__label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-md);
  font-weight: 500;
}
.trust__marquee {
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.trust__marquee:hover .trust__track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-logo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: -0.03em;
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease-out), color 0.4s;
}
.trust-logo:hover { opacity: 0.95; color: var(--text-secondary); }

/* Stats */
.stats {
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-3px);
  transition: transform 0.45s var(--ease-out);
}
.stat-card { transition: transform 0.45s var(--ease-out); }
.stat-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}
.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Sections */
.section {
  padding: var(--space-section) 0;
  position: relative;
  z-index: 1;
}
.section-header { margin-bottom: 2.75rem; }
.section-header--center { text-align: center; }
.section-header h2,
.bento-card h3,
.model-card h3,
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.038em;
}
.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 0.55rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
}
.section-header--center .section-desc { margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent-bright);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 48px rgba(139, 92, 246, 0.1);
}
.gallery-card__media {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: #0a0a0f;
}
.gallery-card:hover .cine-stack__video {
  filter: saturate(1.14) contrast(1.1) brightness(0.94);
}
.gallery-card:hover .cine-stack__bloom {
  opacity: 1;
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    transparent 25%,
    rgba(0,0,0,0.4) 55%,
    rgba(0,0,0,0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.gallery-card:hover .gallery-card__overlay { opacity: 1; }
.gallery-card__prompt {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 16, 0.6);
}
.gallery-card__user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.gallery-card__user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.gallery-card__time {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--text-tertiary);
}

/* Models */
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin-inline: auto;
}
.model-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}
.model-card--pro {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.08);
}
.model-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.model-card h3 { font-size: 1.1rem; font-weight: 700; }
.model-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.model-specs { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.model-specs li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}
.model-specs li span:first-child {
  width: 70px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.model-specs strong {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.spec-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.spec-bar div {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 1s var(--ease-out);
}

/* Flow */
.flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 960px;
  margin-inline: auto;
}
.flow__step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  padding: 0 0.5rem;
}
.flow__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-bright);
  transition: transform 0.3s, box-shadow 0.3s;
}
.flow__step:hover .flow__icon {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--purple-glow);
}
.flow__step h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.flow__step p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.45; }
.flow__connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  margin-top: 24px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* Bento features */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.bento-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}
.bento-card--lg { grid-row: span 2; }
.bento-card--wide { grid-column: span 2; }
.bento-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bento-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* Pricing */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2rem;
  padding: 4px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  width: fit-content;
  margin-inline: auto;
  border: 1px solid var(--border);
}
.pricing-toggle__btn {
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}
.pricing-toggle__btn--active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  border-color: rgba(139, 92, 246, 0.32);
  background: linear-gradient(
    160deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(12, 13, 20, 0.65) 45%
  ), var(--bg-glass);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.15),
    0 20px 50px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: scale(1.03);
}
.price-card--featured:hover {
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.25),
    0 24px 60px rgba(139, 92, 246, 0.2),
    var(--shadow-glow);
}
.price-card--featured .btn--primary {
  box-shadow: 0 4px 28px rgba(139, 92, 246, 0.45);
}
.price-card__ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 20px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.price-card__desc { font-size: 0.82rem; color: var(--text-tertiary); margin-bottom: 1.25rem; }
.price-card__price { margin-bottom: 0.35rem; }
.price-current {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-period { font-size: 0.9rem; color: var(--text-tertiary); }
.price-card__detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.price-card .btn { margin-bottom: 1.25rem; }
.price-card__features {
  list-style: none;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.price-card__features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  padding-left: 1.1rem;
  position: relative;
}
.price-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.testimonial-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.testimonial-card__stars {
  color: #fbbf24;
  font-size: 0.7rem;
  letter-spacing: 3px;
  margin-bottom: 0.65rem;
  opacity: 0.9;
}
.testimonial-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.testimonial-card footer img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--bg-elevated);
}
.testimonial-card footer strong {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.testimonial-card .verified {
  display: inline-flex;
  color: var(--cyan);
  opacity: 0.85;
}
.testimonial-card footer .handle {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  display: block;
}
.testimonial-card footer .role {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: block;
  margin-top: 1px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.is-open { border-color: var(--border-hover); }
.faq-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-item__trigger:hover { background: rgba(255,255,255,0.03); }
.faq-item__trigger:active { transform: scale(0.995); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.35s var(--ease-out);
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-item__body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s var(--ease-out);
}
.faq-item__body p {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA */
.cta-panel {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-xl);
}
.cta-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.cta-panel p {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
.cta-panel__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__tagline { font-size: 0.88rem; color: var(--text-tertiary); margin-top: 0.5rem; }
.footer h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.35rem; }
.footer a { color: var(--text-secondary); font-size: 0.88rem; }
.footer a:hover { color: var(--text); }
.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer__bottom p { font-size: 0.78rem; color: var(--text-tertiary); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay { transition-delay: 0.15s; }

.prompt-input.shake {
  animation: shake 0.4s ease;
  border-color: rgba(239, 68, 68, 0.5);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 1024px) {
  .studio { grid-template-columns: 1fr; }
  .studio-sidebar {
    max-height: none;
    order: 2;
  }
  .studio-sidebar__list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
  }
  .history-item { min-width: 180px; }
  .studio-workspace { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .features-bento { grid-template-columns: 1fr 1fr; }
  .bento-card--lg { grid-row: span 1; }
  .bento-card--wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .price-card--featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .flow__connector { display: none; }
  .flow { gap: 1.5rem; }
}

@media (hover: none) {
  .player__controls {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--announce-h) + var(--header-h));
    left: 0; right: 0;
    background: var(--bg-elevated);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .status-pill, .credits-pill { display: none; }
  .menu-toggle { display: flex; }
  .announce__text { font-size: 0.72rem; }
  .features-bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .trust__track { animation: none; }
  .cine-stack__video,
  .player__video { animation: none; }
  .cine-stack__bloom,
  .cine-stack__flicker,
  .cine-stack__grain,
  .logo__wrap::after { animation: none; }
}
