/* =============================================================
   Graphorin — Landing page styles
   Palette:  graphite + deep terracotta (#E8590C, matches logo)
   Stack:    pure CSS, no build step, designed for Cloudflare Pages
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surface (graphite) */
  --bg-base:        #0B0B0D;
  --bg-elevated:    #131316;
  --bg-card:        #1A1A1E;
  --bg-card-hover:  #21212630;
  --bg-strip:       #0F0F12;

  /* Borders */
  --border:         #26262C;
  --border-strong:  #36363D;

  /* Text */
  --text-primary:   #F4F4F6;
  --text-secondary: #B8B8BD;
  --text-muted:     #76767E;
  --text-faint:     #4F4F57;

  /* Accent — terracotta, matches logo (#E8590C).
     Three solid hues + four alpha variants of the same RGB.
     ALL orange in the design routes through these tokens. */

  /* Solid hues */
  --accent:               #E8590C;                  /* 1) primary brand, matches logo */
  --accent-light:         #FF7A2E;                  /* 2) hover, gradient top   */
  --accent-dark:          #B8460A;                  /* 3) pressed, gradient bottom */

  /* Translucent variants — pick the lowest opacity that does the job */
  --accent-tint:          rgba(232, 89, 12, 0.10);  /* a) subtle background fills */
  --accent-tint-strong:   rgba(232, 89, 12, 0.18);  /* b) stronger fills, soft borders */
  --accent-glow:          rgba(232, 89, 12, 0.30);  /* c) drop-shadows, hover borders, atmospheric glows */
  --accent-stroke:        rgba(232, 89, 12, 0.55);  /* d) CTA button 1px ring */

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Layout */
  --max-w:          1200px;
  --max-w-narrow:   880px;
  --gutter:         clamp(1.25rem, 4vw, 2.5rem);
  --section-y:      clamp(4.5rem, 10vw, 9rem);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Motion */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:       160ms;
  --dur-mid:        320ms;
  --dur-slow:       560ms;

  /* Shadow */
  --shadow-card:    0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  --shadow-cta:     0 0 0 1px var(--accent-stroke), 0 16px 36px -12px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.10) inset;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-color: #2a2a30 var(--bg-base);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "kern";
  overflow-x: hidden;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- A11y helpers ---------- */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 1000;
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 13, 0.88);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.012em;
  font-size: 17px;
  flex-shrink: 0;
}
.brand-glyph {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.brand-wordmark {
  line-height: 1;
  color: var(--accent);
  transition: color var(--dur-fast) var(--ease-out);
}
.brand:hover .brand-wordmark { color: var(--accent-light); }

/* Nav */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.nav-toggle-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  border-top: 1px solid var(--border);
  padding: 1rem var(--gutter) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-base);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-link {
  padding: 12px 8px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:last-of-type { border-bottom: 0; }
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.1rem;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--accent-light); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn-lg {
  height: 50px;
  padding: 0 1.6rem;
  font-size: 15.5px;
  border-radius: var(--r-md);
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 800px 500px at 50% -10%, var(--accent-tint-strong) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 90% 30%, var(--accent-tint) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 35%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  letter-spacing: -0.005em;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.038em;
  max-width: 18ch;
  background: linear-gradient(180deg, #FFFFFF 0%, #C8C8CD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-headline .text-accent {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
}
.hero-sub strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  list-style: none;
  margin-top: 1.5rem;
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pill-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- Trust strip ---------- */
.strip {
  background: var(--bg-strip);
  border-block: 1px solid var(--border);
  padding-block: 1.25rem;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  font-size: 13.5px;
}
.strip-label {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.strip-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  color: var(--text-muted);
}
.strip-items > span {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.strip-items > span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
}

/* ---------- Section primitives ---------- */
.section {
  padding-block: var(--section-y);
}
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--border-strong);
}
.section-title {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.028em;
  max-width: 24ch;
  color: var(--text-primary);
}
.section-lead {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}
.section-lead strong { color: var(--text-primary); }

/* ---------- The gap ---------- */
.section-gap {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elevated) 100%);
}
.gap-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.gap-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-mid) var(--ease-out);
}
.gap-card:hover { border-color: var(--border-strong); }
.gap-axis {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.gap-axis > span:first-child { color: var(--accent); }
.gap-axis > span:last-child { color: var(--text-secondary); }
.gap-vs {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint) !important;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}
.gap-card p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
}
.gap-resolution {
  margin-top: 2.5rem;
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Why (cards grid) ----------
   Flex with justify-content: center so an odd-count last row
   (e.g. 7 items in a 3-col layout → orphan in row 3) is centred,
   not left-aligned. `flex-grow: 0` keeps the orphan at card width
   instead of stretching it across the row. */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cards-grid > .card {
  flex: 0 1 320px;
  min-width: min(100%, 280px);
  max-width: 360px;
}
@media (max-width: 640px) {
  .cards-grid > .card { max-width: 100%; }
}
.card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-tint) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-glow);
  background: #1D1D22;
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  color: var(--accent-light);
  border: 1px solid var(--accent-tint-strong);
}
.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-primary);
}
.card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.card-body strong {
  color: var(--text-primary);
  font-weight: 500;
}
.card-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent-light);
  border: 1px solid var(--accent-tint-strong);
}

/* ---------- Memory section ---------- */
.section-memory {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.memory-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin-bottom: 4rem;
}
.memory-tier {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out);
}
.memory-tier:hover {
  transform: translateY(-2px);
  border-color: var(--accent-glow);
  background: #1D1D22;
}

.memory-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.memory-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}
.memory-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.memory-life {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border-top: 1px dashed var(--border);
}

.memory-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.memory-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, var(--accent-tint) 0%, transparent 70%);
  pointer-events: none;
}
.memory-feature {
  flex: 0 1 280px;
  min-width: min(100%, 240px);
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}
@media (max-width: 640px) {
  .memory-feature { max-width: 100%; }
}
.memory-feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-tint-strong);
}
.memory-feature h4 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.memory-feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Use cases ---------- */
.cases-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.case-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.case-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-glow);
  background: #1D1D22;
}
.case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.case-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}
.case-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Delivery ---------- */
.section-delivery {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  border-top: 1px solid var(--border);
}
.delivery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.delivery-card {
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}
.delivery-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-glow);
  background: #1D1D22;
}

.delivery-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.delivery-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 4px 10px;
  align-self: flex-start;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.delivery-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}
.delivery-lede {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.delivery-lede strong { color: var(--text-primary); }
.delivery-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.delivery-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.delivery-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---------- Principles ---------- */
.section-principles {
  text-align: center;
  background: var(--bg-strip);
  border-block: 1px solid var(--border);
  padding-block: clamp(5rem, 10vw, 8rem);
}
.principles-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.principles-headline {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--text-primary);
  max-width: 22ch;
  margin-inline: auto;
}
/* Italic accent words inherit `<em>` italic + headline font-weight automatically. */
.principles-sub {
  margin-top: 1.5rem;
  max-width: 56ch;
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- The deeper bet ---------- */
.section-bet {
  position: relative;
}
.bet-inner {
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  text-align: center;
  padding-block: 2rem;
}
.bet-headline {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.bet-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.bet-body strong { color: var(--text-primary); }

/* ---------- Final CTA ---------- */
.section-cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute;
  width: 900px;
  height: 600px;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-headline {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.032em;
  max-width: 18ch;
}
.cta-sub {
  max-width: 50ch;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}
.cta-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.brand-footer { font-size: 16px; }
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.footer-nav a {
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-nav a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2rem;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-meta { color: var(--text-faint); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.cards-grid .reveal.is-visible:nth-child(2) { transition-delay: 60ms; }
.cards-grid .reveal.is-visible:nth-child(3) { transition-delay: 120ms; }
.cards-grid .reveal.is-visible:nth-child(4) { transition-delay: 180ms; }
.cards-grid .reveal.is-visible:nth-child(5) { transition-delay: 240ms; }
.cards-grid .reveal.is-visible:nth-child(6) { transition-delay: 300ms; }
.cards-grid .reveal.is-visible:nth-child(7) { transition-delay: 360ms; }

.memory-grid .reveal.is-visible:nth-child(2) { transition-delay: 60ms; }
.memory-grid .reveal.is-visible:nth-child(3) { transition-delay: 120ms; }
.memory-grid .reveal.is-visible:nth-child(4) { transition-delay: 180ms; }
.memory-grid .reveal.is-visible:nth-child(5) { transition-delay: 240ms; }
.memory-grid .reveal.is-visible:nth-child(6) { transition-delay: 300ms; }

.cases-grid .reveal.is-visible:nth-child(2) { transition-delay: 60ms; }
.cases-grid .reveal.is-visible:nth-child(3) { transition-delay: 120ms; }
.cases-grid .reveal.is-visible:nth-child(4) { transition-delay: 180ms; }
.cases-grid .reveal.is-visible:nth-child(5) { transition-delay: 240ms; }
.cases-grid .reveal.is-visible:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .eyebrow-dot { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* =============================================================
   v0.2 design refresh — rhythm variety + memory/security accents
   ============================================================= */

/* ---------- Left-aligned section header (breaks the all-centered
   rhythm; used on Why + Use cases) ---------- */
.section-header--left {
  text-align: left;
  align-items: flex-start;
  max-width: var(--max-w-narrow);
}
.section-header--left .section-title { max-width: 30ch; }
.section-header--left .section-eyebrow::before { display: none; }

/* ---------- Featured security card ----------
   Elevates "Secrets as a first-class concern" out of the grid so
   security reads as a headline differentiator, not one of seven. */
.card--secure {
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg-card) 62%);
  border-color: var(--accent-stroke);
  box-shadow: 0 0 0 1px var(--accent-tint-strong), 0 18px 40px -22px var(--accent-glow);
}
.card--secure::before { opacity: 1; }
.card--secure:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-tint-strong) 0%, #1D1D22 62%);
}
.card--secure .card-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.card-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  color: var(--accent-light);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-strong);
}

/* ---------- Memory lifecycle meter ----------
   A per-tier bar that visualises how far each layer's lifespan
   reaches on a milliseconds → permanent axis. Width set inline
   per tier via the --fill custom property. */
.memory-meter {
  margin-top: auto;
  display: block;
  height: 4px;
  width: 100%;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  overflow: hidden;
}
.memory-meter i {
  display: block;
  height: 100%;
  width: var(--fill, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  box-shadow: 0 0 12px var(--accent-glow);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-out);
}
.memory-tier.is-visible .memory-meter i,
.memory-tier:not(.reveal) .memory-meter i { transform: scaleX(1); }
.memory-tier .memory-life {
  margin-top: 0.85rem;
  border-top: 0;
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .memory-meter i { transform: scaleX(1); transition: none; }
}

/* ---------- Two-column hero (code as the hero visual) ---------- */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
  position: relative;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}
.hero-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--accent-light);
  margin-bottom: -0.65rem;
}
.hero-copy .hero-headline { max-width: 16ch; }
.hero-copy .hero-sub { max-width: 48ch; }
.hero-copy .hero-cta { justify-content: flex-start; margin-top: 0.35rem; }
.hero-copy .hero-pills { justify-content: flex-start; margin-top: 0.5rem; }

.hero-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- Code card (shared by hero + quickstart) ---------- */
.code-card {
  background: #0D0D10;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.code-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.95rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: inline-flex; gap: 6px; }
.code-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.code-file {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.code-block {
  margin: 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-secondary);
}
.code-block code {
  font-family: inherit;
  white-space: pre;
}
/* Syntax tokens — kept inside the warm/graphite palette */
.c-kw   { color: var(--accent-light); }
.c-fn   { color: var(--text-primary); }
.c-str  { color: #C99A6E; }
.c-com  { color: var(--text-faint); font-style: italic; }

/* ---------- Install command bar ---------- */
.install-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: #0D0D10;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.install-cmd {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.install-cmd::-webkit-scrollbar { display: none; }
.install-cmd::before { content: "$ "; color: var(--accent); }
.install-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-xs);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.install-copy:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.install-copy .icon-check { display: none; }
.install-copy.is-copied { color: var(--accent-light); }
.install-copy.is-copied .icon-copy { display: none; }
.install-copy.is-copied .icon-check { display: block; }

/* ---------- Quickstart section ---------- */
.section-quickstart {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  border-top: 1px solid var(--border);
}
.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.quickstart-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.quickstart-copy .section-eyebrow::before { display: none; }
.quickstart-copy .section-title { text-align: left; max-width: 20ch; }
.quickstart-copy .section-lead { text-align: left; max-width: 46ch; margin-top: 0; }
.quickstart-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
.quickstart-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.quickstart-steps strong { color: var(--text-primary); font-weight: 600; }
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-strong);
}
.quickstart-cta { margin-top: 0.75rem; }
.quickstart-code { min-width: 0; }

/* =============================================================
   Motion & dynamics — all gated behind prefers-reduced-motion
   so reduced-motion users get a calm, fully-static page.
   ============================================================= */

/* Micro-interactions that are safe always-on (transition-based,
   only triggered by user intent like hover) */
.btn-primary svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn-primary:hover svg { transform: translateX(3px); }

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }

.card-icon, .case-icon, .memory-feature-icon, .delivery-tag {
  transition: transform var(--dur-mid) var(--ease-out);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.case-card:hover .case-icon { transform: scale(1.08) translateY(-1px); }

@media (prefers-reduced-motion: no-preference) {
  /* Staggered hero entrance on load */
  .hero-copy > * { animation: fadeUp 0.7s var(--ease-out) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.33s; }
  .hero-copy > *:nth-child(6) { animation-delay: 0.40s; }
  .hero-visual { animation: codeIn 0.85s var(--ease-out) 0.30s both; }

  /* Slowly breathing hero glow */
  .hero-glow { animation: breathe 9s var(--ease-in-out) infinite; }

  /* Animated accent sheen along the top of every code card */
  .code-card { position: relative; }
  .code-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    animation: sheen 5s var(--ease-in-out) infinite;
    pointer-events: none;
  }

  /* Blinking terminal caret on the install command */
  .install-cmd::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 5px;
    vertical-align: -2px;
    background: var(--accent);
    animation: blink 1.1s steps(1) infinite;
  }

  /* Gentle drift on the final-CTA glow */
  .cta-glow { animation: ctaDrift 11s var(--ease-in-out) infinite; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes codeIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.68; transform: translateX(-50%) scale(1.08); }
}
@keyframes sheen {
  0%       { background-position: -60% 0; opacity: 0; }
  20%      { opacity: 1; }
  80%      { opacity: 1; }
  100%     { background-position: 160% 0; opacity: 0; }
}
@keyframes blink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes ctaDrift {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50%      { transform: translateX(-46%) scale(1.06); opacity: 0.85; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner,
  .quickstart-grid { grid-template-columns: 1fr; }
  .quickstart-code { order: -1; }
}

@media (max-width: 920px) {
  .nav-primary { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .hero { padding-top: 3rem; }
  .hero-headline { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .hero-pills { gap: 0.4rem 1rem; font-size: 12.5px; }

  .strip-inner { gap: 0.75rem 1rem; }
  .strip-items { gap: 0.5rem 1rem; }

  .gap-card { padding: 1.5rem 1.25rem; }
  .card { padding: 1.5rem 1.25rem; }
  .delivery-card { padding: 1.75rem 1.5rem; }
  .memory-features { padding: 1.5rem; }

  .code-block { font-size: 12px; padding: 1rem; }
  .install-cmd { font-size: 11.5px; }
  .hero-kicker { font-size: 13px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-buttons .btn { flex: 1; min-width: 0; }
}

/* ---------- High-contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn-primary { background: Highlight; color: HighlightText; }
  .card, .memory-tier, .case-card, .delivery-card, .gap-card { border: 1px solid CanvasText; }
}
