/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-surface: #f9f9f9;
  --bg-card: #f4f4f5;
  --bg-card-hover: #ebebed;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --accent: #673ab7;
  --accent-hover: #5a2fa8;
  --accent-dim: rgba(0,0,0,0.06);
  --accent-glow: rgba(0,0,0,0.03);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Google Sans Flex', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== NOISE OVERLAY ===== */
.noise { display: none; }

/* ===== UTILITY ===== */
.gradient-text {
  color: var(--text);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 17px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 28px; width: auto; }

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(0,0,0,0.04); }

.nav-cta {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  padding: 12px 28px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
  animation: btnPulse 2.5s ease infinite;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(103,58,183,0.3);
  animation: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 150px 40px 80px;
  background: var(--bg);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(100, 80, 240, 0.45) 0%, rgba(100, 80, 240, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 400px;
  top: -5%;
  right: 5%;
  background: radial-gradient(circle, rgba(230, 130, 230, 0.35) 0%, rgba(230, 130, 230, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-radial {
  display: none;
}

/* Split layout */
.hero-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-right {
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.animated-gradient-text {
  background: linear-gradient(90deg, #6450f0, #c06ec7, #6450f0);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-gradient {
  background: linear-gradient(135deg, #09090b 0%, #52525b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 32px;
}

/* Hero actions below prompt */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Responsive: stack on mobile */
@media (max-width: 860px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
  }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-right { margin-top: 16px; }
}

/* --- Prompt Bar (editor style) --- */
.hero-prompt {
  width: 100%;
  max-width: 580px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.hero-prompt.active {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

.prompt-textarea-row {
  display: flex;
  align-items: center;
  padding: 22px 24px 14px;
  min-height: 56px;
}

.prompt-text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
}

.char-blur {
  display: inline-block;
  animation: charBlurIn 0.4s ease forwards;
}

@keyframes charBlurIn {
  0% { opacity: 0; filter: blur(6px); transform: translateY(2px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.prompt-cursor {
  width: 2px;
  height: 18px;
  background: var(--text);
  border-radius: 1px;
  flex-shrink: 0;
  animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.prompt-cursor.hidden { opacity: 0; animation: none; }

.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px 20px;
}

.prompt-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-bolt {
  color: var(--text-muted);
}

.prompt-model {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.prompt-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.prompt-send:hover { background: var(--accent-hover); }

.prompt-send.click {
  transform: scale(0.88);
}

.prompt-send.glow {
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.prompt-send .ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: rippleOut 0.6s ease-out forwards;
}

@keyframes rippleOut {
  from { transform: scale(0); opacity: 1; }
  to { transform: scale(2); opacity: 0; }
}

/* --- iPhone Mockup --- */
.iphone {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.iphone.reveal {
  animation: deviceReveal 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes deviceReveal {
  from { transform: translateY(12px) scale(0.97); opacity: 0.5; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.iphone-frame {
  position: relative;
  width: 280px;
  background: #e4e4e7;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 30px 90px rgba(0,0,0,0.12),
    0 8px 28px rgba(0,0,0,0.08),
    inset 0 0 0 1.5px #d4d4d8,
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Side buttons */
.iphone-btn {
  position: absolute;
  background: #d4d4d8;
  border-radius: 2px;
}

.iphone-btn-silent {
  width: 3px;
  height: 24px;
  top: 100px;
  left: -3px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-vol-up {
  width: 3px;
  height: 40px;
  top: 145px;
  left: -3px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-vol-down {
  width: 3px;
  height: 40px;
  top: 195px;
  left: -3px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-power {
  width: 3px;
  height: 64px;
  top: 160px;
  right: -3px;
  border-radius: 0 2px 2px 0;
}

.iphone-bezel {
  background: #ffffff;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}

.iphone-dynamic-island {
  width: 90px;
  height: 28px;
  background: #1a1a1e;
  border-radius: 100px;
  margin: 10px auto 0;
  position: relative;
  z-index: 10;
}

.iphone-screen {
  background: #f9f9fb;
  min-height: 510px;
  margin-top: -14px;
  position: relative;
  overflow: hidden;
}

.iphone-home-indicator {
  width: 100px;
  height: 4px;
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
  margin: 8px auto 6px;
}

/* Screen shimmer loading */
.screen-shimmer {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(110deg, #f9f9fb 30%, #ececf0 45%, #f9f9fb 60%);
  background-size: 200% 100%;
}

.screen-shimmer.loading {
  opacity: 1;
  animation: shimmerMove 1.2s ease-in-out infinite;
}

@keyframes shimmerMove {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Screen content */
.screen-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.screen-content.visible {
  opacity: 1;
  transform: scale(1);
}

/* Individual screen element animations */
.screen-content .sc-el {
  opacity: 0;
  transform: translateY(8px);
}

.screen-content.visible .sc-el {
  animation: scElIn 0.4s ease forwards;
  animation-delay: var(--d, 0s);
}

@keyframes scElIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Sparkle decorations */
.hero-sparkle {
  position: absolute;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
}

.hero-sparkle.visible {
  animation: sparkleIn 2s ease infinite;
}

.s1 { top: 10%; right: -30px; animation-delay: 0s; }
.s2 { bottom: 20%; left: -25px; animation-delay: 0.7s; }
.s3 { top: 40%; right: -20px; font-size: 10px; animation-delay: 1.4s; }

@keyframes sparkleIn {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1) rotate(180deg); }
}

/* (hero-actions defined above in hero section) */

/* ===== APP MOCKUP STYLES ===== */
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 11px;
  color: #1a1a1a;
  padding-top: 24px;
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0,0,0,0.4);
}
.status-icons { font-size: 6px; letter-spacing: 2px; }

/* Tab bar */
.app-tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px 6px;
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.app-tab-bar .tab { color: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; padding: 4px; }
.app-tab-bar .tab.active { color: var(--accent); }

/* ---- MARKETPLACE ---- */
.market-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 18px 8px;
}
.market-header strong { font-size: 16px; font-weight: 700; }
.market-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
}
.market-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 14px 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  color: rgba(0,0,0,0.3);
  font-size: 10px;
}
.market-cats {
  display: flex;
  gap: 5px;
  padding: 0 14px 10px;
}
.mcat {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.5);
}
.mcat.active { background: var(--accent); color: #fff; }
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px;
  flex: 1;
}
.mcard {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.mcard-img { height: 68px; }
.mcard-info { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.mcard-name { font-size: 9px; font-weight: 600; color: #1a1a1a; }
.mcard-price { font-size: 10px; font-weight: 700; color: var(--accent); }

/* ---- FITNESS ---- */
.fit-header { padding: 4px 18px 6px; }
.fit-greeting { font-size: 10px; color: rgba(0,0,0,0.4); display: block; }
.fit-name { font-size: 16px; font-weight: 700; }
.fit-rings-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 14px 8px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
}
.fit-rings { flex-shrink: 0; }
.fit-ring-labels { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fit-rl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: rgba(0,0,0,0.5);
}
.fit-rl strong { margin-left: auto; font-size: 11px; color: #1a1a1a; }
.fit-rl small { font-size: 8px; font-weight: 400; color: rgba(0,0,0,0.35); margin-left: 1px; }
.fit-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.fit-stats {
  display: flex;
  gap: 6px;
  padding: 0 14px 8px;
}
.fit-stat-card {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fit-stat-card span { font-size: 8px; color: rgba(0,0,0,0.4); }
.fit-stat-card strong { font-size: 12px; font-weight: 700; }
.fit-chart-section { padding: 0 14px; }
.fit-chart-title { font-size: 10px; font-weight: 600; display: block; margin-bottom: 6px; }
.fit-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
}
.fit-bar {
  flex: 1;
  height: var(--h);
  background: rgba(0,0,0,0.06);
  border-radius: 4px 4px 2px 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 3px;
}
.fit-bar.active { background: var(--accent); }
.fit-bar span { font-size: 7px; color: rgba(0,0,0,0.3); margin-top: 4px; }
.fit-bar.active span { color: #fff; }

/* ---- MUSIC ---- */
.music-top { text-align: center; padding: 4px 0 6px; font-size: 10px; font-weight: 600; color: rgba(0,0,0,0.4); }
.music-album { display: flex; justify-content: center; padding: 6px 0 12px; }
.music-album-art {
  width: 155px;
  height: 155px;
  border-radius: 18px;
  background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
  box-shadow: 0 10px 40px rgba(129,140,248,0.25);
  position: relative;
  overflow: hidden;
}
.album-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}
.album-circle.c1 { width: 80px; height: 80px; background: #fff; top: -10px; right: -15px; }
.album-circle.c2 { width: 50px; height: 50px; background: #e879f9; bottom: 10px; left: 10px; opacity: 0.5; }
.album-circle.c3 { width: 30px; height: 30px; background: #fff; bottom: 30px; right: 30px; opacity: 0.2; }
.music-info {
  text-align: center;
  padding: 0 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.music-info strong { font-size: 14px; font-weight: 700; }
.music-info span { font-size: 10px; color: rgba(0,0,0,0.4); }
.music-progress { padding: 10px 20px 2px; }
.music-prog-bar {
  height: 3px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.music-prog-fill {
  height: 100%;
  width: 38%;
  background: var(--accent);
  border-radius: 2px;
}
.music-times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 8px;
  color: rgba(0,0,0,0.3);
}
.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 0;
  color: rgba(0,0,0,0.5);
}
.music-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-extras {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 4px 0;
  color: rgba(0,0,0,0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  animation: btnPulse 2.5s ease infinite;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(103,58,183,0.3); animation: none; }

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103,58,183,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(103,58,183,0); }
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); background: rgba(0,0,0,0.02); }

.btn-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}
.btn-outline:hover { border-color: var(--border-hover); background: rgba(0,0,0,0.02); }

.btn-lg { font-size: 17px; padding: 18px 36px; }

/* (old hero demo styles removed — now in hero section above) */



/* ===== FEATURES (alternating rows) ===== */
.features {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: 1.25fr 0.75fr;
}

.feature-row.reverse .feature-text  { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-text h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--text);
}

.feature-text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
}

.feature-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--accent);
  text-transform: uppercase;
}

.feature-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f7ff 0%, #f1f0fb 100%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 24px 64px rgba(103,58,183,0.08), 0 4px 16px rgba(0,0,0,0.04);
  aspect-ratio: 16 / 10;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}

.feature-row:hover .feature-media {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(103,58,183,0.14), 0 8px 24px rgba(0,0,0,0.06);
}

.feature-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Poster fallback shown until the <video> has loaded its source.
   The poster attribute on each <video> handles this automatically when
   the .mp4 is missing — browsers display the poster image instead. */

@media (max-width: 900px) {
  .features { gap: 72px; padding: 80px 24px; }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-row.reverse .feature-text  { order: 1; }
  .feature-row.reverse .feature-media { order: 2; }
  .feature-text p { max-width: none; }
}


/* ===== PRICING ===== */
.pricing {
  padding: 120px 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-toggle span { cursor: pointer; transition: color 0.2s; }
.pricing-toggle span.active { color: var(--text); font-weight: 600; }

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  padding: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.toggle-switch.yearly::after { transform: translateX(20px); }
.toggle-switch.yearly { background: var(--accent); border-color: var(--accent); }
.toggle-switch.yearly::after { background: #ffffff; }

.toggle-save {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(103,58,183,0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
  min-height: 540px;
}

.pricing-loading {
  background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.04) 50%, rgba(0,0,0,0.02) 100%);
  background-size: 200% 200%;
  animation: pricingShimmer 1.6s ease-in-out infinite;
}

@keyframes pricingShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.pricing-card.pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-card.pro:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(103,58,183,0.12);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: var(--accent);
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price { margin-bottom: 20px; }

.pricing-amount {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.5px;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 24px;
}

.pricing-credits {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.pricing-credits strong {
  font-weight: 600;
  color: var(--text);
}

.pricing-credits span {
  color: var(--text-muted);
  font-size: 13px;
}

.pricing-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 20px 0;
}

.pricing-includes {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-list li.disabled {
  color: var(--text-muted);
  opacity: 0.4;
}

.pricing-list li svg {
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; }
  .pricing-card { min-height: auto; }
}

@media (max-width: 640px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq {
  padding: 120px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover { border-color: rgba(0,0,0,0.1); }
.faq-item.open { border-color: rgba(103,58,183,0.2); box-shadow: 0 4px 20px rgba(103,58,183,0.06); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
  display: flex;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 100px 40px;
  margin: 40px 40px 0;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0a0118 0%, #1a0a3a 25%, #2d0a5e 50%, #1a0a3a 75%, #0a0118 100%);
  background-size: 300% 300%;
  animation: ctaGradientShift 12s ease-in-out infinite;
}

@keyframes ctaGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.final-cta-bg::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(139,92,246,0.45) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: ctaBlobFloat 14s ease-in-out infinite;
}

.final-cta-bg::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(180,100,230,0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: ctaBlobFloat 16s ease-in-out infinite reverse;
}

@keyframes ctaBlobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, 20px) scale(1.08); }
  66%      { transform: translate(-20px, 35px) scale(0.94); }
}

.final-cta h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.btn-cta-white {
  color: var(--accent);
  background: #ffffff;
}
.btn-cta-white:hover {
  background: #ffffff;
  color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.final-cta .btn { position: relative; z-index: 1; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 0 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 0 40px;
  gap: 64px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { max-width: 100%; justify-content: space-between; }

  .hero { padding: 130px 20px 40px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-sub br { display: none; }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .prompt-bar { max-width: 100%; }
  .device-frame { width: 200px; }
}
