:root {
  --bg: #0a0f1e;
  --bg-surface: #111827;
  --bg-card: #1a1f35;
  --fg: #e2e8f0;
  --fg-muted: #94a3b8;
  --fg-dim: #64748b;
  --accent: #ff6b6b;
  --accent-glow: rgba(255, 107, 107, 0.15);
  --cyan: #00d4ff;
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --purple: #a855f7;
  --green: #34d399;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --section-pad: clamp(64px, 10vw, 120px);
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero {
  padding: clamp(100px, 15vw, 160px) 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
}

.stat-label {
  font-size: 12px;
  color: var(--fg-dim);
  max-width: 120px;
  line-height: 1.4;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.4;
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: var(--cyan);
  opacity: 0.35;
  bottom: 30px;
  right: 20px;
  animation-delay: -3s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: var(--purple);
  opacity: 0.3;
  top: 80px;
  right: 60px;
  animation-delay: -5s;
}

.orb-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -20px); }
  66% { transform: translate(-10px, 15px); }
}

/* ===== PROBLEM ===== */
.problem {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
}

.problem-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.problem-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
  flex: 1;
  min-width: 160px;
}

.problem-icon {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  color: var(--fg-muted);
}

.problem-arrow {
  color: var(--fg-dim);
  font-size: 20px;
  flex-shrink: 0;
}

.problem-punchline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--fg);
  font-weight: 500;
}

.problem-punchline em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

/* ===== STUDIO ===== */
.studio {
  padding: var(--section-pad) 0;
}

.studio-header {
  margin-bottom: 56px;
}

.studio h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.studio-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 540px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s;
}

.studio-card:hover {
  border-color: rgba(255,255,255,0.12);
}

.studio-card-large {
  grid-column: 1 / -1;
}

.card-visual {
  height: 120px;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.generation-visual {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-surface) 100%);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gen-preview {
  display: flex;
  gap: 12px;
}

.gen-dot {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  animation: genPulse 3s ease-in-out infinite;
}

.gen-dot:nth-child(2) { animation-delay: 0.3s; }
.gen-dot:nth-child(3) { animation-delay: 0.6s; }
.gen-dot:nth-child(4) { animation-delay: 0.9s; }

@keyframes genPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.edit-visual {
  background: var(--bg);
  position: relative;
}

.edit-layer {
  position: absolute;
  inset: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.03));
  border: 1px dashed rgba(255,255,255,0.1);
}

.edit-layer.overlay {
  inset: 24px 24px 24px 40%;
  background: linear-gradient(135deg, var(--cyan-glow), var(--accent-glow));
  border: 1px solid rgba(0,212,255,0.2);
}

.batch-visual {
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
}

.batch-item {
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-card), rgba(168,85,247,0.1));
  border: 1px solid rgba(255,255,255,0.06);
}

.studio-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.studio-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== WORKFLOW ===== */
.workflow {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
}

.workflow h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.workflow-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 48px;
}

.workflow-demo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.style-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, border-color 0.3s;
}

.style-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.style-preview {
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.style-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===== PLATFORMS ===== */
.platforms {
  padding: var(--section-pad) 0;
}

.platforms h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.platforms-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 56px;
}

.platform-grid {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

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

.platform-frame {
  width: 100px;
  max-height: 180px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--bg-card);
  transition: border-color 0.3s;
}

.platform-frame:hover {
  border-color: var(--cyan);
}

.platform-frame span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
}

.platform-item p {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%);
}

.manifesto-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.manifesto p {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.manifesto-closer {
  font-family: var(--font-display);
  font-size: 22px !important;
  font-weight: 600;
  color: var(--fg) !important;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 4px;
}

.footer-meta p {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .stat-label {
    max-width: none;
  }

  .problem-grid {
    flex-direction: column;
  }

  .problem-arrow {
    transform: rotate(90deg);
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-card-large {
    grid-column: 1;
  }

  .workflow-demo {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    justify-content: space-around;
  }

  .platform-frame {
    width: 70px;
    max-height: 130px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}