* { box-sizing: border-box; }

:root {
  --bg: #080611;
  --bg-alt: #100b1f;
  --panel: rgba(22, 16, 39, 0.86);
  --border: rgba(255,255,255,0.12);
  --text: #f6f3ff;
  --muted: #b9b2d0;
  --purple: #8e5cff;
  --purple-2: #5b35c8;
  --gold: #f5c76c;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(142, 92, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(245, 199, 108, 0.12), transparent 24%),
    linear-gradient(180deg, #06040d 0%, #0b0716 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--gold);
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.glow-1 { top: -80px; left: -120px; background: var(--purple); }
.glow-2 { right: -80px; top: 260px; background: var(--gold); }

.site-header, main, .site-footer { position: relative; z-index: 2; }

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand { font-weight: 800; letter-spacing: 0.12em; }
.brand span { color: var(--gold); }

.nav { display: flex; gap: 20px; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.nav a:hover { color: var(--text); }

.nav-btn, .btn {
  border-radius: 14px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: 0.2s ease;
  font-weight: 600;
}
.btn-primary, .nav-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover, .nav-btn:hover { transform: translateY(-1px); }
.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.03);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); }
.full { width: 100%; }

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 700px;
}
.hero-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.hero-stats div, .card, .panel-window, .step {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-stats div { padding: 18px; }
.hero-stats strong {
  display: block;
  margin-bottom: 6px;
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-window { overflow: hidden; }
.panel-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.panel-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.panel-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.prompt-card, .output-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
}
label, .output-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
select, textarea {
  width: 100%;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(5,5,10,0.55);
  color: var(--text);
  font: inherit;
  margin-bottom: 12px;
}
textarea {
  min-height: 180px;
  resize: vertical;
}
pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--muted);
  line-height: 1.65;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.section-head { margin-bottom: 26px; }
.section h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); }

.grid { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card { padding: 22px; }
.card h3 { margin-top: 0; margin-bottom: 12px; }
.card p, .card li {
  color: var(--muted);
  line-height: 1.7;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step { padding: 22px; }
.step span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(142, 92, 255, 0.18);
  color: var(--gold);
  font-weight: 800;
}

.cta {
  text-align: center;
  padding-bottom: 90px;
}
.cta p {
  color: var(--muted);
  max-width: 700px;
  margin: 14px auto 24px;
  line-height: 1.7;
}
.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 0 20px 28px;
}

@media (max-width: 960px) {
  .hero, .cards-3, .cards-2, .workflow, .hero-stats {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .hero { padding-top: 30px; }
}
