/* bacoder.com — bun.sh-inspired JS runtime landing, cream/milk palette */
:root {
  --cream-bg: #faf8f3;
  --cream-alt: #f5f1e8;
  --cream-card: #fffdf8;
  --cream-border: #e8e2d4;
  --cream-muted: #9e9484;
  --cream-text: #2a2520;
  --cream-sub: #5a5248;
  --accent: #c8860a;
  --accent-dark: #a06a06;
  --accent-light: #f0c060;
  --accent-pale: #fef3d4;
  --green: #4a8c5c;
  --green-pale: #e6f2ea;
  --red: #c0392b;
  --red-pale: #fdecea;
  --code-bg: #f0ece2;
  --code-text: #4a3c2a;
  --nav-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(80,60,20,0.09);
  --shadow-lg: 0 8px 40px rgba(80,60,20,0.13);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream-bg);
  color: var(--cream-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; height: 100%; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--cream-text);
  flex-shrink: 0;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex: 1;
}
.nav-links a {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--cream-sub);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--cream-alt); color: var(--cream-text); }
.nav-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-nav-r {
  padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  background: var(--accent); color: #fff;
  transition: background 0.2s;
}
.btn-nav-r:hover { background: var(--accent-dark); }
.btn-nav-a {
  padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}
.btn-nav-a:hover { background: var(--accent-pale); }

/* ─── HERO ─── */
.hero {
  max-width: 1160px; margin: 0 auto;
  padding: 100px 24px 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-pale); border: 1px solid var(--accent-light);
  color: var(--accent-dark); border-radius: 100px;
  padding: 5px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; display: block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px); font-weight: 800;
  line-height: 1.12; color: var(--cream-text);
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
  font-size: 18px; color: var(--cream-sub); line-height: 1.65;
  margin-bottom: 36px; max-width: 480px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(200,134,10,0.3);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200,134,10,0.38); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 16px; font-weight: 700;
  background: var(--cream-alt); color: var(--cream-text);
  border: 1.5px solid var(--cream-border); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--cream-border); }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.hero-stat strong {
  display: block; font-size: 24px; font-weight: 800; color: var(--cream-text);
}
.hero-stat span { font-size: 13px; color: var(--cream-muted); }

/* Hero code terminal */
.hero-terminal {
  background: #2a2218;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #3a3020;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; background: #231c14; border-bottom: 1px solid #3a3020;
}
.terminal-dot {
  width: 13px; height: 13px; border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-bar-title { flex: 1; text-align: center; font-size: 12px; color: #6b6050; font-family: monospace; }
.terminal-body { padding: 24px; font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace; }
.t-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.t-prompt { color: #c8860a; user-select: none; flex-shrink: 0; }
.t-cmd { color: #e8dcc8; }
.t-out { color: #8aac78; }
.t-out.muted { color: #6b6050; }
.t-highlight { color: #f0c060; }
.t-dim { color: #5a5040; }
.t-sep { border: none; border-top: 1px solid #3a3020; margin: 14px 0; }

/* ─── SECTION COMMONS ─── */
section { padding: 80px 24px; }
.container { max-width: 1160px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-pale); border: 1px solid var(--accent-light);
  border-radius: 100px; padding: 4px 12px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  line-height: 1.2; color: var(--cream-text); letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 18px; color: var(--cream-sub); max-width: 560px; line-height: 1.6;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ─── BANNER STRIP ─── */
.banner-strip {
  background: var(--accent);
  padding: 16px 24px;
  text-align: center;
  color: #fff;
  font-size: 14px; font-weight: 600;
}
.banner-strip a { color: #fef3d4; text-decoration: underline; }

/* ─── SPEED / METRICS ─── */
.metrics { background: var(--cream-alt); }
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--cream-border);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--cream-border);
}
.metric-card {
  background: var(--cream-card); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.metric-num { font-size: 40px; font-weight: 800; color: var(--cream-text); letter-spacing: -0.02em; }
.metric-num span { color: var(--accent); }
.metric-label { font-size: 15px; color: var(--cream-sub); font-weight: 500; }
.metric-note { font-size: 12px; color: var(--cream-muted); }

/* ─── COMPARISON TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.compare-table th {
  padding: 14px 20px; text-align: left;
  font-size: 13px; font-weight: 700; color: var(--cream-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--cream-border);
}
.compare-table td {
  padding: 14px 20px; font-size: 15px; color: var(--cream-sub);
  border-bottom: 1px solid var(--cream-border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--cream-text); font-weight: 500; }
.tag-fast {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-pale); color: var(--green);
  border-radius: 6px; padding: 3px 10px; font-size: 13px; font-weight: 600;
}
.tag-fast::before { content: '▲'; font-size: 11px; }
.tag-slow {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red-pale); color: var(--red);
  border-radius: 6px; padding: 3px 10px; font-size: 13px; font-weight: 600;
}

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--accent-light); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--cream-text); }
.feature-card p { font-size: 15px; color: var(--cream-sub); line-height: 1.6; }

/* ─── STEPS ─── */
.steps-alt { background: var(--cream-alt); }
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 24px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--cream-border);
}
.step-row:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.step-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 15px; color: var(--cream-sub); line-height: 1.65; }
.step-code {
  margin-top: 14px;
  background: var(--code-bg); border-radius: 8px;
  padding: 14px 18px; font-family: monospace; font-size: 14px;
  color: var(--code-text); border: 1px solid var(--cream-border);
}

/* ─── PLATFORMS ─── */
.platforms-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.platform-card {
  background: var(--cream-card); border: 1px solid var(--cream-border);
  border-radius: var(--radius); padding: 24px 20px;
  text-align: center; transition: box-shadow 0.2s;
}
.platform-card:hover { box-shadow: var(--shadow); }
.platform-icon { font-size: 40px; margin-bottom: 12px; }
.platform-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.platform-card p { font-size: 13px; color: var(--cream-muted); }
.btn-platform {
  display: block; margin-top: 14px;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; width: 100%;
  background: var(--accent-pale); color: var(--accent-dark);
  transition: background 0.2s;
}
.btn-platform:hover { background: var(--accent-light); }

/* ─── FAQ ─── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--cream-border); padding: 22px 0;
}
.faq-q {
  font-size: 17px; font-weight: 600; color: var(--cream-text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--accent); flex-shrink: 0; }
.faq-a { font-size: 15px; color: var(--cream-sub); line-height: 1.7; padding-top: 14px; }

/* ─── CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, #2a2218 0%, #3d3020 100%);
  color: #fff; padding: 80px 24px; text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  margin-bottom: 16px; color: #fffdf8;
}
.cta-band p { font-size: 18px; color: #c8b898; margin-bottom: 36px; }
.cta-band-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-cta-r {
  padding: 16px 36px; border-radius: 10px; font-size: 17px; font-weight: 700;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,134,10,0.4);
  transition: background 0.2s, transform 0.15s;
}
.btn-cta-r:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-cta-a {
  padding: 16px 36px; border-radius: 10px; font-size: 17px; font-weight: 700;
  background: rgba(255,255,255,0.1); color: #fffdf8;
  border: 1.5px solid rgba(255,255,255,0.25); cursor: pointer;
  transition: background 0.2s;
}
.btn-cta-a:hover { background: rgba(255,255,255,0.18); }

/* ─── FOOTER ─── */
footer {
  background: #1e1a12; color: #8a8070; padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
}
.footer-top {
  display: grid; grid-template-columns: 260px repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: #fffdf8;
}
.footer-logo svg { width: 28px; height: 28px; }
.footer-brand p { font-size: 14px; color: #6b6050; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #c8b898; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: #6b6050; transition: color 0.2s; }
.footer-col ul li a:hover { color: #c8b898; }
.footer-bottom {
  border-top: 1px solid #2a2418; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #4a4030;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px 40px; }
  .hero-terminal { order: -1; }
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .platforms-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .cta-band-btns { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 56px 20px; }
}
