/* ---------- tokens ---------- */
:root {
  --bg: #0b0e14;
  --bg-alt: #0e1320;
  --surface: #121826;
  --surface-2: #161d2e;
  --border: #1f2940;
  --text: #e6ebf5;
  --muted: #9aa6bf;
  --faint: #6b7790;
  --brand: #f38020;        /* cloudflare orange */
  --brand-2: #ffb15c;
  --accent: #6aa9ff;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .92em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.gh-mark { margin-right: 8px; flex: 0 0 auto; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1206; }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(243,128,32,.5); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-2); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,20,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-name { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn-ghost { padding: 8px 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 0;
  background:
    radial-gradient(900px 480px at 50% -160px, rgba(243,128,32,.16), transparent 60%),
    radial-gradient(700px 420px at 85% 0, rgba(106,169,255,.10), transparent 60%);
}
.hero-inner { text-align: center; max-width: 860px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--brand-2); text-transform: none; margin: 0 0 18px;
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; background: rgba(243,128,32,.06);
}
.eyebrow.center { display: inline-block; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 22px; font-weight: 800;
}
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 auto 30px; max-width: 720px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
  margin-top: 38px; color: var(--faint); font-size: 13px; font-family: var(--mono);
}
.hero-badges span { position: relative; padding-left: 16px; }
.hero-badges span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.hero-shot { margin-top: 64px; }
.hero-shot img {
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 0 auto;
}

/* ---------- bands ---------- */
.band { padding: 92px 0; border-top: 1px solid var(--border); }
.band-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.02em; margin: 0 0 16px; font-weight: 800; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0 0 8px; }
.center { text-align: center; }
.section-title.center, .section-sub.center { margin-left: auto; margin-right: auto; }
.eyebrow.center { display: block; width: fit-content; margin: 0 auto 16px; }

/* value grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.value { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.value h3 { margin: 0 0 10px; font-size: 19px; }
.value p { margin: 0; color: var(--muted); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  background: var(--surface); transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand); }
.card-ico { font-size: 26px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card code { color: var(--brand-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.step { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; font-weight: 800; font-family: var(--mono);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1206; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 14px; text-align: center; }

/* developers */
.dev-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand);
  font-weight: 800; background: rgba(243,128,32,.12); width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px;
}
.checklist code, .dev-copy code { color: var(--brand-2); }
.dev-code { display: grid; gap: 18px; }
.code-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0a0d15; box-shadow: var(--shadow); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3450; }
.dot:nth-child(1){ background:#ff5f57; } .dot:nth-child(2){ background:#febc2e; } .dot:nth-child(3){ background:#28c840; }
.code-title { margin-left: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; }
.code-card code { font-family: var(--mono); font-size: 13.5px; color: #c8d3ea; line-height: 1.7; }
.c-cmt { color: var(--faint); }

/* spotlight — context enrichment */
.spotlight {
  padding: 92px 0; border-top: 1px solid var(--border);
  background:
    radial-gradient(720px 360px at 18% 0, rgba(106,169,255,.10), transparent 60%),
    radial-gradient(640px 320px at 90% 100%, rgba(243,128,32,.10), transparent 60%),
    var(--bg-alt);
}
.c-enrich { color: var(--brand-2); }

/* security */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.sec { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.sec h3 { margin: 0 0 10px; font-size: 17px; color: var(--brand-2); }
.sec p { margin: 0; color: var(--muted); font-size: 15px; }

/* choose / get started */
.choose {
  padding: 100px 0; border-top: 1px solid var(--border);
  background: radial-gradient(800px 380px at 50% 0, rgba(243,128,32,.14), transparent 65%);
}
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 52px; max-width: 920px; margin-left: auto; margin-right: auto; }
.plan {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; background: var(--surface); display: flex; flex-direction: column;
}
.plan-feature {
  border-color: rgba(243,128,32,.55);
  background: linear-gradient(180deg, rgba(243,128,32,.08), var(--surface) 42%);
  box-shadow: 0 24px 60px -28px rgba(243,128,32,.4);
}
.plan-flag {
  position: absolute; top: -12px; right: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a1206;
  font-size: 12px; font-weight: 700; font-family: var(--mono);
  padding: 5px 12px; border-radius: 999px;
}
.plan-kicker { font-family: var(--mono); font-size: 12.5px; color: var(--brand-2); margin: 0 0 6px; letter-spacing: .03em; }
.plan-title { font-size: 24px; margin: 0 0 4px; letter-spacing: -.02em; }
.plan-price { font-size: 26px; color: var(--text); margin: 0 0 16px; font-weight: 800; letter-spacing: -.02em; }
.plan-per { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan-save { display: block; font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.plan-plus { display: block; font-size: 13.5px; color: var(--brand-2); font-weight: 600; font-family: var(--mono); margin-top: 4px; }
.plan-pitch { color: var(--muted); margin: 0 0 20px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; }
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; color: var(--brand); font-weight: 800;
  background: rgba(243,128,32,.12); width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 50%; font-size: 11px;
}
.plan-btn { margin-top: auto; width: 100%; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-tag { color: var(--muted); margin: 4px 0 0; }
.footer-legal { color: var(--faint); font-size: 14px; margin: 0; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--brand-2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .value-grid, .feature-grid, .steps, .sec-grid { grid-template-columns: 1fr 1fr; }
  .dev-inner { grid-template-columns: 1fr; gap: 32px; }
  .shots { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .value-grid, .feature-grid, .steps, .sec-grid { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 44px; }
}
