/* ============================================
   Nano Banana 2 Lite — Design System
   Warm editorial aesthetic, not "AI slop"
   ============================================ */

:root {
  --bg: #F4F1EA;
  --bg-warm: #EDE9DF;
  --surface: #FFFFFF;
  --surface-raised: #FAFAF7;
  --text: #1A1917;
  --text-secondary: #5C5952;
  --text-muted: #8A8680;
  --accent: #C9A227;
  --accent-dark: #A6851E;
  --accent-soft: #F3E8C4;
  --accent-glow: rgba(201, 162, 39, 0.15);
  --border: #E2DDD3;
  --border-light: #EDE9DF;
  --dark: #1A1917;
  --success: #3D7A5F;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(26, 25, 23, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 25, 23, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 25, 23, 0.12);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

.container--wide {
  max-width: 1360px;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }

h1 em, h2 em { font-style: italic; color: var(--accent-dark); }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section-header { margin-bottom: 48px; max-width: 640px; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header p { color: var(--text-secondary); margin-top: 12px; font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: var(--transition);
  border: 2px solid var(--dark);
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn-ghost {
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: var(--transition);
}

.btn-ghost:hover { color: var(--text); background: var(--bg-warm); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.link-btn {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(244, 241, 234, 0.88);
  border-bottom-color: var(--border);
}

.nav .nav-links a {
  color: rgba(255, 255, 255, 0.78);
}

.nav.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav.scrolled .nav-links a:hover {
  color: var(--text);
}

.nav .logo-text {
  color: #fff;
}

.nav.scrolled .logo-text {
  color: var(--text);
}

.nav .logo-text em {
  color: rgba(255, 255, 255, 0.65);
}

.nav.scrolled .logo-text em {
  color: var(--text-secondary);
}

.nav .btn-ghost {
  color: rgba(255, 255, 255, 0.8);
}

.nav.scrolled .btn-ghost {
  color: var(--text-secondary);
}

.nav .nav-toggle span {
  background: #fff;
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mark { font-size: 1.4rem; }

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.logo-text em { font-style: italic; color: var(--text-secondary); font-size: 0.95rem; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroKenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1.06);
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 10, 16, 0.82) 0%,
      rgba(8, 10, 16, 0.45) 28%,
      rgba(8, 10, 16, 0.2) 48%,
      rgba(8, 10, 16, 0.35) 68%,
      rgba(244, 241, 234, 0.88) 90%,
      rgba(244, 241, 234, 1) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      transparent 0%,
      rgba(8, 10, 16, 0.35) 100%
    );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  mix-blend-mode: overlay;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.hero-intro {
  display: flex;
  justify-content: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 20px;
}

.hero-text {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text h1 {
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

.hero-text h1 em {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(201, 162, 39, 0.35);
}

.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(201, 162, 39, 0.25);
  color: #F5E6C0;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.badge-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.hero-desc {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 24px auto 28px;
  max-width: 580px;
  line-height: 1.75;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.pill {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image img {
    animation: none;
  }
}

/* ---- Studio ---- */
.studio {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.studio--large {
  min-height: 640px;
}

.studio-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  padding: 4px 4px 0;
  background: var(--surface-raised);
}

.studio-tab {
  flex: 1;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: var(--transition);
}

.studio-tab.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 -2px 0 var(--accent) inset;
}

.studio-body {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 580px;
}

.studio-input-col {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border-light);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.upload-placeholder svg { color: var(--text-muted); }

.upload-preview {
  position: relative;
}

.upload-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-area label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.prompt-area textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 160px;
  transition: var(--transition);
  background: var(--surface-raised);
}

.prompt-area textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface);
}

.prompt-suggestions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.suggestions-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.suggestion-chip {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: var(--transition);
}

.suggestion-chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.btn-generate {
  width: 100%;
  margin-top: auto;
  padding: 18px;
  font-size: 1.05rem;
}

.btn-loader { display: inline-flex; align-items: center; gap: 8px; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.studio-output-col {
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.output-frame {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.output-empty {
  text-align: center;
  color: var(--text-muted);
}

.output-empty p { font-size: 1.05rem; margin-top: 20px; }

.output-hint {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  color: var(--text-muted);
  opacity: 0.7;
}

.empty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100px;
  margin: 0 auto;
}

.empty-grid div {
  aspect-ratio: 1;
  background: var(--border);
  border-radius: 4px;
  animation: gridPulse 2s ease-in-out infinite;
}

.empty-grid div:nth-child(2) { animation-delay: 0.2s; }
.empty-grid div:nth-child(3) { animation-delay: 0.4s; }
.empty-grid div:nth-child(4) { animation-delay: 0.6s; }

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.output-result {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.output-result img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.output-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.output-actions { display: flex; gap: 4px; }

/* ---- Studio examples (left input column) ---- */
.output-examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.output-examples.hidden { display: none !important; }

.output-examples-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.output-examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.example-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.example-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.example-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.example-thumb:hover img { transform: scale(1.08); }

.example-thumb-tag {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 6px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(26, 25, 23, 0.72);
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.output-loading {
  text-align: center;
  padding: 40px;
}

.gen-animation {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.gen-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.gen-ring-2 {
  inset: 10px;
  animation-direction: reverse;
  animation-duration: 0.9s;
  border-top-color: var(--accent-dark);
}

.gen-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.gen-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.gen-progress {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.gen-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--surface-raised);
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.studio-note {
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-price {
  font-weight: 600;
  color: var(--accent-dark);
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--dark);
  color: #fff;
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--accent);
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ---- Gallery ---- */
.gallery {
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,25,23,0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--dark);
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 6px;
}

.gallery-overlay p {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
}

.gallery-overlay::after {
  content: "Click to generate →";
  margin-top: 10px;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--accent);
  border-radius: 100px;
  transform: translateY(6px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  transition-delay: 0.05s;
}

.gallery-item:hover .gallery-overlay::after {
  transform: translateY(0);
  opacity: 1;
}

/* ---- About ---- */
.about {
  padding: 100px 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin: 16px 0;
  line-height: 1.7;
}

.about-text .btn-secondary { margin-top: 24px; }

.model-compare {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-card {
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}

.model-card--lite {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  transform: scale(1.02);
}

.model-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.model-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.model-dot--fast { background: var(--accent); }
.model-dot--balanced { background: #6B8F71; }
.model-dot--pro { background: #8B7EC8; }

.model-card ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.model-card--lite ul { color: rgba(255,255,255,0.7); }

.model-card li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.model-card li::before {
  content: '·';
  position: absolute;
  left: 4px;
  font-weight: bold;
}

.model-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--dark);
  border-radius: 100px;
}

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

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

.feature-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Animated Demos ---- */
.animated-demos {
  padding: 100px 0;
  background: var(--surface);
}

.demo-carousel {
  position: relative;
}

.demo-slide {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.demo-slide.active {
  display: grid;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-visual {
  background: var(--bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Space Lift mockup */
.demo-mockup--space {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.room-before, .room-after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.room-before {
  background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=600&q=80');
  width: 50%;
  z-index: 2;
  border-right: 2px solid #fff;
}

.room-after {
  background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=600&q=80');
}

.room-slider-handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  animation: sliderMove 4s ease-in-out infinite;
}

@keyframes sliderMove {
  0%, 100% { left: 35%; }
  50% { left: 65%; }
}

.demo-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 4px;
  z-index: 4;
}

.demo-label--before { left: 12px; }
.demo-label--after { right: 12px; }

/* Globe mockup */
.demo-mockup--globe {
  position: relative;
  width: 260px;
  height: 260px;
}

.globe-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: globeSpin 8s linear infinite;
}

.globe-ring-1 { inset: 0; }
.globe-ring-2 { inset: 20px; animation-direction: reverse; animation-duration: 12s; }
.globe-ring-3 { inset: 40px; animation-duration: 6s; }

@keyframes globeSpin {
  to { transform: rotate(360deg); }
}

.globe-core {
  position: absolute;
  inset: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.postcard {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  animation: postcardFloat 3s ease-in-out infinite;
}

.postcard-1 { top: 10px; right: 20px; animation-delay: 0s; }
.postcard-2 { bottom: 30px; left: 0; animation-delay: 1s; }
.postcard-3 { bottom: 10px; right: 0; animation-delay: 2s; }

@keyframes postcardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Product mockup */
.demo-mockup--product {
  display: flex;
  align-items: center;
  gap: 24px;
}

.product-card, .video-card {
  width: 140px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.product-img {
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=300&q=80') center/cover;
}

.product-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.video-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.video-card {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1rem;
  z-index: 2;
}

.video-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 30%, var(--accent) 60%, transparent 100%);
  opacity: 0.3;
  animation: waveMove 2s linear infinite;
}

@keyframes waveMove {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.demo-info h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.demo-info p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.demo-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---- Comparison ---- */
.comparison {
  padding: 100px 0;
}

.compare-slider-wrap { max-width: 800px; margin: 0 auto 48px; }

.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.compare-img--before {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  width: calc(100% * (100 / var(--compare-pct, 50)));
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.compare-handle-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.compare-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 4px;
  z-index: 4;
}

.compare-label--left { left: 12px; }
.compare-label--right { right: 12px; }

.compare-prompt {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.perf-bars {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.perf-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.perf-bar-value { color: var(--accent-dark); font-weight: 600; }

.perf-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.perf-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}

.perf-bar-fill--lite { background: var(--accent); }
.perf-bar-fill--quality { background: var(--success); }

/* ---- Speed & Cost animated demo ---- */
.speed-demo {
  padding: 100px 0;
  background: var(--surface);
}

.race-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.race-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.race-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.race-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6);
  animation: racePulse 1.2s ease-in-out infinite;
}

.race-status.done .race-dot {
  background: var(--success);
  animation: none;
}

@keyframes racePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}

.race-clock {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}

.race-clock small {
  font-size: 0.9rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 2px;
}

.race-lanes {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.race-lane[data-winner="true"] .lane-name { color: var(--accent); }

.lane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.lane-name { font-weight: 600; }

.lane-badge {
  font-size: 0.66rem;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.45);
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
}

.lane-time {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.race-lane[data-winner="true"] .lane-time.filled { color: var(--accent); }
.lane-time.filled { color: var(--success); }

.lane-track {
  position: relative;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lane-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background-size: cover;
  background-position: center 40%;
  border-radius: inherit;
}

.lane-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,25,23,0.1), rgba(26,25,23,0.45));
}

.lane-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  left: 0%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  opacity: 0;
}

.race-lane.running .lane-shine { opacity: 1; }

.lane-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0.4);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.race-lane[data-winner="true"] .lane-check { background: var(--accent); color: var(--dark); }

.lane-check.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.cost-strip {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-strip-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  text-align: center;
}

.cost-strip-label strong { color: #fff; }

.cost-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cost-item {
  text-align: center;
}

.cost-model {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.cost-value {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

.cost-item--lite .cost-value { color: var(--accent); }

.cost-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.cost-bar-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cost-item--lite .cost-bar-fill { background: var(--accent); }

.cost-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 600px) {
  .lane-badge { display: none; }
  .cost-value { font-size: 1.3rem; }
}

/* ---- How It Works ---- */
.how-it-works {
  padding: 100px 0;
  background: var(--surface);
}

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

.step {
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--accent);
}

.step-content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-visual {
  width: 100px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-anim {
  width: 48px;
  height: 48px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  animation: uploadBounce 2s ease-in-out infinite;
}

@keyframes uploadBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.typing-anim {
  display: flex;
  gap: 4px;
}

.typing-anim span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-anim span:nth-child(2) { animation-delay: 0.2s; }
.typing-anim span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.result-anim {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  border-radius: var(--radius-sm);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 20px 4px var(--accent-glow); }
}

/* ---- Testimonials ---- */
.testimonials {
  padding: 100px 0;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.testimonial-card cite {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ---- Pricing ---- */
.pricing {
  padding: 100px 0;
  background: var(--bg-warm);
}

.price-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 48px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.price-toggle-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.price-toggle-btn em {
  font-style: normal;
  color: var(--accent-dark);
  font-size: 0.78rem;
  margin-left: 4px;
}

.price-toggle-btn:hover {
  color: var(--text);
}

.price-toggle-btn.active {
  background: var(--dark);
  color: #fff;
}

.price-toggle-btn.active em {
  color: var(--accent);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-badge--muted {
  background: var(--dark);
  color: #fff;
}

.price-card-head h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.price-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.price-old {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-old:empty {
  display: none;
}

.price-now {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
}

.price-per {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-year {
  margin-top: 10px;
  min-height: 22px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-year .price-year-old {
  text-decoration: line-through;
  color: var(--text-muted);
}

.price-year .price-save {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
}

.price-credits {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.price-credits-main {
  display: block;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1rem;
}

.price-credits small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.price-btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}

.price-features {
  list-style: none;
  margin: 28px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border-light);
  display: grid;
  gap: 12px;
}

.price-features li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .price-toggle {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---- FAQ ---- */
.faq {
  padding: 100px 0;
  background: var(--surface);
}

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---- CTA ---- */
.cta {
  padding: 80px 0;
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.cta-inner p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.cta .btn-primary:hover { background: #D4AD30; }

.cta .btn-secondary {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.cta .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ---- Footer ---- */
.footer {
  padding: 60px 0 30px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,25,23,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--bg); }

.modal h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.modal p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.modal-input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-hint {
  font-size: 0.78rem !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.modal-hint a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---- Auth: credit chip, OAuth button, divider ---- */
.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.credit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal-input--text {
  font-family: var(--font-sans);
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-oauth:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-error {
  color: #C0392B;
  font-size: 0.8rem !important;
  margin: 10px 0 0 !important;
}

.login-sent {
  text-align: center;
  padding: 8px 0 4px;
}

.login-sent-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-sent-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text) !important;
  margin-bottom: 6px !important;
}

.login-sent-text {
  font-size: 0.88rem !important;
  color: var(--text-secondary);
  margin-bottom: 16px !important;
}

.login-sent-text strong {
  color: var(--text);
}

/* ---- Toast ---- */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 24px);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(92vw, 420px);
  padding: 14px 18px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-toast-icon {
  font-size: 1.15rem;
  line-height: 1.4;
}

.app-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-toast-body strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.app-toast-body span {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

code {
  font-family: monospace;
  font-size: 0.85em;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-intro { max-width: 100%; }
  .studio-body { grid-template-columns: 1fr; min-height: auto; }
  .studio--large { min-height: auto; }
  .studio-input-col { border-right: none; border-bottom: 1px solid var(--border-light); }
  .output-frame { min-height: 420px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .demo-slide.active { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--tall, .gallery-item--wide { grid-row: auto; grid-column: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonial-track { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; text-align: center; }
  .step-visual { margin: 0 auto; }
  .stats-inner { gap: 20px; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
