/* ------------------------------
   DStash – Static HTML + CSS
   Modern, lightweight, no JS
   ------------------------------ */
:root {
  --bg: #0b0d10;
  --bg-soft: #111418;
  --card: #14181e;
  --text: #e8ecf1;
  --muted: #9aa3ad;
  --primary: #66c2ff;
  --primary-ink: #062338;
  --accent2: #4fd6e0;   /* cyan — secondary mesh hue */
  --accent3: #8aa2ff;   /* periwinkle — tertiary mesh hue */
  --border: #202630;
  --accent: #1a2230;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1100px;
  /* Dark mode only — render native controls/scrollbars dark regardless of OS setting */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  position: relative;
  background-color: var(--bg);
  /* Multi-hue aurora mesh, anchored to the viewport so color is present on
     every screen as you scroll — strongest blue top-right, cyan top-left,
     blue and periwinkle pooling along the bottom. */
  background-image:
    radial-gradient(1100px 680px at 88% -8%, color-mix(in oklab, var(--primary) 30%, transparent), transparent 60%),
    radial-gradient(840px 600px at 2% 4%, color-mix(in oklab, var(--accent2) 22%, transparent), transparent 58%),
    radial-gradient(920px 680px at 4% 106%, color-mix(in oklab, var(--primary) 20%, transparent), transparent 60%),
    radial-gradient(860px 620px at 98% 100%, color-mix(in oklab, var(--accent3) 22%, transparent), transparent 58%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Faint technical grid across the whole viewport, softly vignetted at the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 50%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 50%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(150% 130% at 50% 35%, #000 38%, transparent 92%);
          mask-image: radial-gradient(150% 130% at 50% 35%, #000 38%, transparent 92%);
}

/* Ultra-fine grain to kill gradient banding on large color fields */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Shiny gradient-clipped text for focal words */
.grad {
  background: linear-gradient(110deg, #b8e2ff, var(--primary) 42%, var(--accent2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Hero: isometric network of boxes (echoes the logo), fading in from the right */
.hero {
  position: relative;
  overflow: hidden;
  /* soft glossy pool behind the headline to balance the mesh on the right */
  background:
    radial-gradient(760px 420px at 26% 18%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../../images/hero-iso.svg") no-repeat;
  background-position: right -6px top -34px;
  background-size: min(600px, 58%) auto;
  /* fade out toward the headline (left) and into the section (bottom) */
  -webkit-mask-image: linear-gradient(to left, #000 18%, transparent 72%), linear-gradient(to top, transparent 6%, #000 38%);
          mask-image: linear-gradient(to left, #000 18%, transparent 72%), linear-gradient(to top, transparent 6%, #000 38%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hero .container { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero::before { display: none; } }

/* Layout */
.container { width: 100%; max-width: var(--maxw); padding: 0 20px; margin: 0 auto; }
.section { padding: 80px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Header */
header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in oklab, var(--primary) 18%, transparent); }
.brand svg { width: 18px; height: 18px; stroke: var(--primary); }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 14px; }
nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in oklab, #fff 24%, var(--primary)), var(--primary) 72%);
  color: var(--primary-ink);
  box-shadow: var(--shadow),
    inset 0 1px 0 color-mix(in oklab, #fff 55%, transparent),
    0 0 0 1px color-mix(in oklab, var(--primary) 35%, transparent),
    0 8px 24px color-mix(in oklab, var(--primary) 30%, transparent);
}
.btn-outline { border: 1px solid var(--border); color: var(--text); }

/* Hero */
.pill { display:inline-flex; align-items:center; gap:8px; border:1px solid var(--border); background: color-mix(in oklab, var(--accent) 70%, transparent); color: var(--text); padding: 6px 10px; border-radius: 999px; font-size: 12px; }
h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; margin: 14px 0 10px; }
p.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); margin: 12px 0 0; }
.stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stat { text-align:center; border:1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 14px; }
.stat b { font-size: 20px; display:block; }
.card { border:1px solid var(--border); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }

/* Section titles */
h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 10px; }
.subtle { color: var(--muted); font-size: 14px; }

/* Feature cards */
.features { margin-top: 24px; }
.feature { border:1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 18px; }
.feature h3 { margin: 0; font-size: 18px; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Glossy surfaces — top-down sheen + a bright top edge highlight */
.card, .feature, .stat {
  background-image: linear-gradient(180deg, color-mix(in oklab, #fff 6%, transparent), transparent 44%);
  box-shadow: var(--shadow), inset 0 1px 0 color-mix(in oklab, #fff 10%, transparent);
}

/* How it works diagram */
.diagram .step { border:1px solid var(--border); background: var(--card); border-radius: var(--radius-sm); padding: 14px; }
.diagram .step .label { font-weight: 600; margin-bottom: 4px; }
.diagram { display:grid; gap: 12px; }

/* Roadmap */
.timeline { display:grid; gap: 18px; }
.timeline .item { position: relative; padding-left: 18px; }
.timeline .item::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.muted { color: var(--muted); font-size: 13px; }

/* About */
.list { list-style: none; padding: 0; margin: 12px 0 0; }
.list li { display:flex; gap:10px; align-items:flex-start; }
.list li svg { width: 16px; height: 16px; stroke: var(--primary); margin-top: 3px; }

/* CTA */
.cta { background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 18%, transparent), transparent 55%), var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.input { width: 100%; height: 44px; border-radius: 12px; border:1px solid color-mix(in oklab, var(--primary) 28%, var(--border)); background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--text); padding: 0 12px; }
.input::placeholder { color: color-mix(in oklab, var(--text) 60%, transparent); }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }

/* Utility */
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.mt-2{ margin-top: 8px; } .mt-3{ margin-top: 12px; } .mt-4{ margin-top: 16px; } .mt-6{ margin-top: 24px; }
.mb-1{ margin-bottom: 8px; } .mb-2{ margin-bottom: 12px; }
.bg-soft { background: var(--bg-soft); }
.center { text-align: center; }
.hide-mobile { display:none; } @media (min-width: 900px){ .hide-mobile{ display:initial; } }

/* Code blocks */
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  white-space: pre;
}
.card pre { color: var(--text); }

/* Comparison table */
table th, table td { vertical-align: top; }
table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
