/* Design tokens — Cloudflare-inspired (DESIGN.md) */
:root {
  --primary: #ff4801;
  --accent: #ff4801;
  --accent-hover: #d63c01;
  --accent-soft: #ff7038;
  --accent-wash: #fffbf5;
  --accent-muted: #f0e3de;
  --ink: #1a1a1a;
  --body: #262626;
  --muted: #707070;
  --canvas: #fafafa;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --surface-warm: #fffbf5;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --link: #ff4801;
  --success: #00bd7d;
  --on-primary: #ffffff;
  --on-dark: #fafafa;
  --footer-bg: #171717;
  --code-green: #98c379;
  --code-cyan: #56b6c2;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --container: min(1200px, 100% - 48px);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "Departure Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  margin-left: 8px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-alt);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--surface);
  padding: 24px;
  border-top: 1px solid var(--border);
  z-index: 99;
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer li {
  border-bottom: 1px solid var(--border);
}

.nav-drawer a {
  display: block;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: var(--on-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  text-decoration: none;
  color: var(--ink);
}

.btn-on-dark {
  background: var(--accent);
  color: var(--on-primary);
}

.btn-on-dark:hover {
  background: var(--accent-hover);
  color: var(--on-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 80px 0 96px;
  background: linear-gradient(180deg, var(--accent-wash) 0%, var(--canvas) 55%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 120px 0 112px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero-title .product-name {
  display: block;
  color: var(--ink);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 36em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
}

.hero-bullets svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.hero-visual {
  position: relative;
}

.infra-panel {
  background: var(--footer-bg);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.infra-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(250, 250, 250, 0.6);
}

.infra-dots {
  display: flex;
  gap: 6px;
}

.infra-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.infra-dots span:first-child {
  background: #e06c75;
}

.infra-dots span:nth-child(2) {
  background: #ff9910;
}

.infra-dots span:nth-child(3) {
  background: var(--code-green);
}

.code-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block .kw {
  color: var(--code-cyan);
}

.code-block .str {
  color: var(--code-green);
}

.code-block .acc {
  color: var(--accent-soft);
}

.code-block .comment {
  color: rgba(250, 250, 250, 0.45);
}

.infra-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric {
  text-align: center;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--on-dark);
}

.metric span {
  font-size: 12px;
  color: rgba(250, 250, 250, 0.55);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-warm {
  background: var(--surface-warm);
}

.section-alt {
  background: var(--surface);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}

.section-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
}

.product-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.product-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}

.product-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* Trust */
.trust-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 24px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
}

.trust-logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: -0.01em;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
}

.badge svg {
  color: var(--success);
}

/* Split feature */
.split-feature {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split-feature {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--body);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* CTA band */
.cta-band {
  padding: 96px 0;
  background: var(--footer-bg);
  color: var(--on-dark);
  text-align: center;
}

.cta-band .section-title {
  color: var(--on-dark);
  max-width: 720px;
  margin: 0 auto 24px;
}

.cta-band .section-lead {
  color: rgba(250, 250, 250, 0.7);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(250, 250, 250, 0.65);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-links a {
  color: rgba(250, 250, 250, 0.65);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.footer-disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250, 250, 250, 0.45);
  max-width: 720px;
}
