: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;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --link: #ff4801;
  --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-pad: clamp(64px, 10vw, 112px);
  --hero-pad: clamp(80px, 12vw, 120px);
  --container: min(1200px, calc(100% - 2 * var(--space-md)));
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --shadow-glass: 0 1px 0 rgba(26, 26, 26, 0.06);
}

*,
*::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;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

: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(--accent);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  font-weight: 500;
}

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

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

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

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

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

.brand:hover {
  color: var(--ink);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

/* 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);
  color: var(--on-primary);
}

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

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

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

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

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 72, 1, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

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

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

.hero-product {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--accent);
  margin-top: var(--space-sm);
  letter-spacing: -0.02em;
}

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

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

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

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

.hero-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.storage-diagram {
  display: grid;
  gap: var(--space-sm);
}

.diagram-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm);
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.diagram-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  border: 1px solid var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.diagram-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.diagram-meta {
  font-size: 13px;
  color: var(--muted);
}

.sync-beam {
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--border) 0%, var(--accent-soft) 50%, var(--border) 100%);
  margin: var(--space-xs) var(--space-lg);
  opacity: 0.7;
}

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

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

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

.section-title {
  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);
  margin: 0 0 var(--space-sm);
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.product-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: var(--space-sm) 0;
  color: var(--ink);
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--accent-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Trust */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: var(--surface-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

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

.metric {
  text-align: left;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.trust-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.45;
}

/* Dark panel */
.dark-infra {
  background: var(--footer-bg);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 40px);
}

.dark-infra h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.dark-infra > p {
  color: rgba(250, 250, 250, 0.75);
  margin: 0 0 var(--space-md);
  max-width: 52ch;
}

.code-panel {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

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

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

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

/* CTA band */
.cta-band {
  background: var(--accent-wash);
  border-top: 1px solid var(--accent-muted);
  border-bottom: 1px solid var(--accent-muted);
}

.cta-band-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}

.cta-band p {
  font-size: 18px;
  color: var(--body);
  margin: 0 0 var(--space-lg);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

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

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(250, 250, 250, 0.5);
}

.disclaimer {
  margin-top: var(--space-sm);
  font-size: 12px;
  line-height: 1.45;
  max-width: 72ch;
}

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

  .hero-visual {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links .btn {
    width: 100%;
  }

  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}