/* ===== TOKENS ===== */
:root {
  --bg: #0D1117;
  --fg: #FFF8F0;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --bg-2: #161B22;
  --muted: #8B949E;
  --border: rgba(255,248,240,0.08);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 700; line-height: 1.1; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

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

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #6366F1;
  bottom: -100px; left: -80px;
  animation: float2 10s ease-in-out infinite;
}
.shape-3 {
  width: 300px; height: 300px;
  background: #F59E0B;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 6s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,248,240,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,248,240,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.label-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 1.75rem;
  color: var(--fg);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* Terminal */
.hero-terminal {
  width: 100%;
  max-width: 540px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.1);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,248,240,0.04);
  border-bottom: 1px solid var(--border);
}
.tb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,248,240,0.15);
}
.tb-dot:nth-child(1) { background: #FF5F56; }
.tb-dot:nth-child(2) { background: #FFBD2E; }
.tb-dot:nth-child(3) { background: #27C93F; }

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 20px 20px 24px;
  font-family: 'DM Sans', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--fg);
}

.t-prompt { color: var(--accent); font-weight: 600; }
.t-cmd { color: var(--muted); }
.t-input { color: var(--fg); opacity: 0.7; display: block; }
.t-running { color: var(--accent); display: block; }

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== HOW IT WORKS ===== */
.hiw {
  background: var(--bg-2);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.hiw-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hiw-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4rem;
  color: var(--fg);
}

.hiw-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.hiw-connector {
  display: flex;
  align-items: center;
  padding-top: 2rem;
}

.hiw-step {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.step-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.step-body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
  padding: 7rem 2rem;
  background: var(--bg);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 600px;
  margin-bottom: 4rem;
  color: var(--fg);
}

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

.feature-card {
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
}

.feature-body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== OUTCOMES ===== */
.outcomes {
  background: var(--bg-2);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-inner {
  max-width: 960px;
  margin: 0 auto;
}

.outcomes-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  flex: 1;
  padding: 2.5rem 2rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}

.outcomes-block { max-width: 680px; margin: 0 auto; }

.quote-mark { margin-bottom: 1.5rem; }

.quote-text {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.quote-attr {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  background: var(--bg);
  text-align: center;
}

.closing-inner { max-width: 640px; margin: 0 auto; }

.closing-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.closing-pill-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.closing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

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

.footer-note {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hiw-connector { display: none; }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .outcomes-stats {
    flex-direction: column;
  }
  .stat-divider {
    width: 60px; height: 1px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 5rem 1.5rem 3rem; }
  .hero-terminal { max-width: 100%; }
  .closing-pill-row { gap: 0.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}