/* ============================================================
   TOKENS — strict grayscale. "Vanta" = vantablack: the brand
   doesn't get a color accent, it gets black, white, and the
   grays in between. Precision, not decoration.
   ============================================================ */
:root {
  --bg:        #0a0a0a;
  --bg-raised: #121212;
  --bg-card:   #141414;
  --line:      #2a2a28;
  --line-soft: #1c1c1b;
  --fg:        #f4f4f1;
  --fg-dim:    #b8b8b3;
  --fg-mute:   #7c7c77;
  --white:     #ffffff;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--white); color: var(--bg); }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 1px;
  flex: none;
}

.navlinks {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navlinks a {
  text-decoration: none;
  font-size: 14px;
  color: var(--fg-dim);
  transition: color .15s ease;
}

.navlinks a:hover { color: var(--fg); }

.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 3px;
  border: 1px solid var(--white);
  color: var(--bg);
  background: var(--white);
  transition: opacity .15s ease;
  white-space: nowrap;
}

.btn:hover { opacity: .82; }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn.ghost:hover { border-color: var(--fg-dim); opacity: 1; }
.navlinks .btn { padding: 8px 16px; }

@media (max-width: 720px) {
  .navlinks a:not(.btn) { display: none; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { padding: 96px 0; border-bottom: 1px solid var(--line-soft); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--fg-dim); margin-top: 16px; font-size: 16px; line-height: 1.6; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 96px 0 88px;
  min-height: 560px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  margin-top: 18px;
}

.hero p.lede {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 480px;
  margin-top: 22px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Hero image placeholder — white square until a real image is ready.
   To use a real image: remove this div, add <img class="hero-img" src="..."> */
.hero-img-placeholder {
  aspect-ratio: 1/1;
  background: var(--white);
  width: 100%;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .hero-img-placeholder { max-width: 260px; margin: 8px auto 0; order: -1; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-grid p {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.75;
}

.about-grid p + p { margin-top: 18px; }

.about-heading {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 14px;
}

.about-stack { border-top: 1px solid var(--line); }

.about-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.about-row span:first-child { color: var(--fg-mute); }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   PRODUCTS GRID
   Adding a product = one object in the PRODUCTS array in JS.
   Nothing here needs to change.
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-card {
  background: var(--bg-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  text-decoration: none;
  color: var(--fg);
  transition: background .15s ease;
}

a.product-card:hover { background: var(--bg-raised); }

.product-card .row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-mute);
}

.status-dot.live::before { background: var(--white); }

.product-card h3 {
  font-size: 24px;
  margin-top: 22px;
}

.product-card .desc {
  color: var(--fg-dim);
  font-size: 14.5px;
  margin-top: 10px;
  line-height: 1.55;
  flex: 1;
}

.product-card .arrow {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-mute);
}

.product-card.ghost {
  border: 1px dashed var(--line);
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg);
}

.product-card.ghost h3 {
  font-size: 16px;
  color: var(--fg-mute);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
  margin-top: 0;
}

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

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  text-align: center;
  padding: 88px 0;
}

.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-band p { color: var(--fg-dim); margin-top: 14px; }
.cta-band .hero-cta { justify-content: center; margin-top: 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 40px 0; }

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-row .logo { font-size: 14px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 13px; color: var(--fg-mute); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }

.foot-copy { font-size: 11px; }

/* ============================================================
   VANTACLEAR PAGE — product deep-dive components
   ============================================================ */
.vc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.vc-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 56px 0;
}

.vc-spec {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vc-spec .k {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg-mute);
}

.vc-spec .v {
  font-family: var(--mono);
  font-size: 15px;
  margin-top: 8px;
  color: var(--fg);
}

@media (max-width: 720px) {
  .vc-specs { grid-template-columns: 1fr 1fr; }
}

/* Before / after drag slider */
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: var(--bg-raised);
}

.compare .layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare .layer svg { width: 62%; height: 62%; }
.compare .layer.before svg { filter: blur(3.2px) contrast(.85); opacity: .85; }
.compare .layer.after { clip-path: inset(0 0 0 50%); }

.compare .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--white);
  transform: translateX(-0.5px);
}

.compare .handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bg);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.compare .tag {
  position: absolute;
  top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  background: rgba(10, 10, 10, 0.7);
  padding: 4px 9px;
  border: 1px solid var(--line);
}

.compare .tag.tl { left: 14px; }
.compare .tag.tr { right: 14px; }

.vc-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* How it works — steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-mute);
}

.step h3 {
  font-size: 19px;
  margin-top: 14px;
  font-weight: 600;
}

.step p {
  color: var(--fg-dim);
  font-size: 14.5px;
  margin-top: 10px;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

/* Back-link breadcrumb (VantaClear page) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color .15s ease;
}

.breadcrumb:hover { color: var(--fg); }
.breadcrumb .sep { opacity: .5; }
