/* Design tokens — Cloudflare-inspired */
: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;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 64px;
  --section: 112px;
  --hero-pad: 120px;
  --container: min(1200px, calc(100% - 2 * var(--space-md)));
  --font-display: "Schibsted Grotesk", "STK Bureau Sans", system-ui, sans-serif;
  --font-ui: "Schibsted Grotesk", 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);
}

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;
  left: -9999px;
  top: var(--space-sm);
  z-index: 1000;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: var(--space-sm);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin-inline: auto;
  gap: var(--space-sm);
}

.site-brand {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.site-brand strong {
  color: var(--ink);
  font-weight: 600;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-md);
  font-size: 14px;
  font-weight: 500;
}

.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.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: var(--surface);
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-md);
  z-index: 99;
  overflow-y: auto;
}

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

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

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

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

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

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

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

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

.btn-ghost-header {
  display: none;
  background: transparent;
  color: var(--body);
}

@media (min-width: 768px) {
  .btn-ghost-header {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding: var(--hero-pad) 0 var(--space-xl);
  background: linear-gradient(180deg, var(--accent-wash) 0%, var(--canvas) 55%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -20%;
  top: 10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 72, 1, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-title .mega-word {
  display: block;
  font-size: clamp(4.5rem, 18vw, 7rem);
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: var(--space-md) 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 28ch;
}

.hero-lead {
  margin: var(--space-md) 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-bullets {
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-xs);
}

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

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

.hero-visual {
  position: relative;
  z-index: 1;
}

.infra-card {
  background: var(--footer-bg);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.infra-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.code-panel .tok-key {
  color: var(--code-cyan);
}

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

.code-panel .tok-accent {
  color: var(--accent-soft);
}

.infra-stat {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.infra-stat div {
  flex: 1;
  min-width: 100px;
}

.infra-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.infra-stat span {
  font-size: 13px;
  color: rgba(250, 250, 250, 0.65);
}

/* Sections */
.section {
  padding: var(--section) 0;
}

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

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

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-head h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.card-grid {
  display: grid;
  gap: var(--space-md);
}

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

@media (min-width: 900px) {
  .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: var(--space-md);
  height: 100%;
}

.section-alt .product-card {
  background: var(--canvas);
}

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

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

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

/* Trust */
.trust-band {
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-band p {
  margin: 0 0 var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.trust-metrics div strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.trust-metrics div span {
  font-size: 14px;
  color: var(--muted);
}

/* Pricing */
.pricing-strip {
  display: grid;
  gap: var(--space-md);
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  background: var(--surface);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-muted);
  background: var(--accent-wash);
}

.pricing-card .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card h3 {
  margin: var(--space-xs) 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
}

.pricing-card .price-detail {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  font-size: 15px;
}

.pricing-list {
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.pricing-list li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--body);
  padding-left: 1.5em;
  position: relative;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

.cta-band h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 auto var(--space-lg);
  max-width: 520px;
  font-size: 18px;
  color: rgba(250, 250, 250, 0.75);
  line-height: 1.55;
}

.cta-band .btn-primary {
  font-size: 16px;
  padding: 14px 28px;
}

.cta-note {
  margin-top: var(--space-md);
  font-size: 13px;
  color: rgba(250, 250, 250, 0.5);
}

/* Footer */
.site-footer {
  background: #0f0f0f;
  color: rgba(250, 250, 250, 0.65);
  padding: var(--space-xl) 0 var(--space-lg);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h4 {
  margin: 0 0 var(--space-sm);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  font-size: 13px;
}

.disclaimer {
  max-width: 56ch;
  line-height: 1.5;
}