/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #08080f;
  --bg-card:   #111119;
  --bg-code:   #0d0d16;
  --border:    #1e1e2e;
  --text:      #d4d4e0;
  --text-dim:  #8888a0;
  --text-bright: #f0f0ff;
  --accent:    #60a5fa;
  --cyan:      #22d3ee;
  --green:     #34d399;
  --magenta:   #c084fc;
  --yellow:    #fbbf24;
  --orange:    #fb923c;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-w:     960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
nav .logo span { color: var(--text-dim); }
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--text-bright); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
}
.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--green); }
.hero .subtitle {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero .cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #7cb9fc; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-dim);
  color: var(--text-bright);
}

/* ── Code Block ── */
.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  overflow-x: auto;
}
.code-block .prompt { color: var(--text-dim); user-select: none; }
.code-block .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--border);
  border: none;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.code-block .copy-btn:hover { color: var(--text-bright); background: #2a2a3e; }

/* ── Section Headers ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 600px;
  line-height: 1.7;
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}
.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-card .stat-label {
  color: var(--text-dim);
  font-size: 14px;
}
.stat-value.cyan { color: var(--cyan); }
.stat-value.yellow { color: var(--yellow); }
.stat-value.green { color: var(--green); }

/* ── Flow Diagram ── */
.flow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-x: auto;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-step .step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step .step-content { flex: 1; }
.flow-step .step-title {
  color: var(--text-bright);
  font-weight: 600;
  margin-bottom: 6px;
}
.flow-step .step-detail { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

.flow-matrix {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.flow-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.flow-matrix th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border);
}
.flow-matrix td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
}
.model-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.model-tag.haiku   { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.model-tag.sonnet  { background: rgba(96, 165, 250, 0.12); color: var(--accent); }
.model-tag.opus    { background: rgba(192, 132, 252, 0.12); color: var(--magenta); }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.feature-card .feature-icon {
  font-size: 20px;
  margin-bottom: 12px;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Savings Section ── */
.savings-highlight {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.06), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  text-align: center;
}
.savings-big {
  font-family: var(--font-mono);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.savings-label {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 32px;
}
.savings-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.savings-stat { text-align: center; }
.savings-stat .val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
}
.savings-stat .lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Setup Section ── */
.setup-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.setup-col h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.setup-col .code-block {
  max-width: none;
  margin-bottom: 12px;
}
.setup-col p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.setup-col ul {
  list-style: none;
  margin-top: 12px;
}
.setup-col li {
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.setup-col li::before {
  content: ">";
  color: var(--accent);
  margin-right: 8px;
  font-family: var(--font-mono);
}

/* ── Footer CTA ── */
.footer-cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.footer-cta h2 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.footer-cta p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .footer-left {
  font-size: 13px;
  color: var(--text-dim);
}
footer .footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
footer .footer-links a {
  color: var(--text-dim);
  font-size: 13px;
}
footer .footer-links a:hover { color: var(--text-bright); }

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  nav ul { gap: 16px; }
  nav a { font-size: 13px; }
  .stats-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .savings-breakdown { grid-template-columns: repeat(2, 1fr); }
  .setup-cols { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  nav ul { gap: 12px; }
  .hero .cta-group { flex-direction: column; align-items: center; }
  .savings-breakdown { grid-template-columns: 1fr 1fr; }
}
