/* ============================================
   ZeroToK — Theme CSS
   Dark synthwave. Electric orange. Action.
   ============================================ */

/* Variables */
:root {
  --bg: #080B0F;
  --bg-2: #0E1318;
  --bg-card: #111820;
  --fg: #F0F2F5;
  --fg-muted: #8892A0;
  --accent: #FF4D00;
  --accent-2: #00E5CC;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.6; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* CSS grid lines — subtle perspective */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,77,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,77,0,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,77,0,0.18) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,204,0.10) 0%, transparent 70%);
  bottom: -100px; left: 10%;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,77,0,0.08) 0%, transparent 70%);
  top: 30%; left: 30%;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,77,0,0.1);
  border: 1px solid rgba(255,77,0,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  margin-bottom: 28px;
}

.hero-title-main {
  display: block;
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--fg);
  background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-sub {
  display: block;
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--accent);
  margin-top: 16px;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 580px;
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 680px;
}

/* ============================================
   FORMAT SECTION
   ============================================ */
.format {
  padding: 120px 0;
  background: var(--bg-2);
}

.format .section-title { margin-bottom: 64px; }

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: border-color 0.3s ease;
}

.format-card:hover { border-color: rgba(255,77,0,0.3); }

.format-card-icon {
  margin-bottom: 24px;
}

.format-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.format-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================
   FORMULA SECTION
   ============================================ */
.formula {
  padding: 120px 0;
}

.formula .section-title { margin-bottom: 72px; }

.formula-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Visual side — stacked bars */
.formula-visual {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.formula-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-layer { display: flex; align-items: center; gap: 16px; }

.stack-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  width: 80px;
  flex-shrink: 0;
}

.stack-bar {
  height: 28px;
  border-radius: 6px;
  flex: 1;
}

.voice-bar {
  background: linear-gradient(90deg, #FF4D00, #ff6a30);
  width: 90%;
}
.script-bar {
  background: linear-gradient(90deg, rgba(255,77,0,0.5), rgba(255,77,0,0.35));
  width: 75%;
}
.gameplay-bar {
  background: linear-gradient(90deg, rgba(0,229,204,0.4), rgba(0,229,204,0.2));
  width: 100%;
  border: 1px solid rgba(0,229,204,0.2);
}

.formula-result {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255,77,0,0.2);
  border-radius: 12px;
}

.result-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.result-bar {
  height: 8px;
  background: rgba(255,77,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.result-fill {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, #FF4D00, #ff6a30);
  border-radius: 4px;
}

.result-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* Copy side */
.formula-copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.formula-point {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.point-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  width: 48px;
  line-height: 1;
}

.formula-point h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.formula-point p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================
   FACTORY SECTION
   ============================================ */
.factory {
  padding: 120px 0;
  background: var(--bg-2);
}

.factory .section-title { margin-bottom: 24px; }

.factory-lead {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 72px;
  line-height: 1.7;
  font-weight: 300;
}

.factory-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  align-self: center;
  flex-shrink: 0;
  margin: 0 -8px;
  position: relative;
  z-index: 1;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

.step p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   OUTCOMES SECTION
   ============================================ */
.outcomes {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.outcome-stat {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.outcome-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.outcome p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================
   CLOSING SECTION
   ============================================ */
.closing {
  padding: 140px 0;
}

.closing-inner {
  max-width: 700px;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 580px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 100px 0 80px; }

  .formula-layout { grid-template-columns: 1fr; gap: 48px; }
  .formula-visual { order: 2; }
  .formula-copy { order: 1; }

  .factory-steps {
    flex-direction: column;
    gap: 16px;
  }
  .step-connector { width: 2px; height: 24px; margin: 0 auto; }

  .outcomes-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .format-grid { grid-template-columns: 1fr; }
  .format-card { padding: 24px 20px; }
}