/* ---------- Reset & tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #07080a;
  --bg-elev: #0c0e11;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #f4f5f7;
  --fg-mute: #9aa0a6;
  --fg-dim: #6b7079;
  --accent: #a6e3b8; /* very subtle green accent, matched to logo feel */
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono:
    ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas,
    monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(166, 227, 184, 0.25);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
  background: linear-gradient(
    to bottom,
    rgba(7, 8, 10, 0.85),
    rgba(7, 8, 10, 0)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.nav__brand img {
  opacity: 0.95;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--fg-mute);
}

.nav__links a {
  position: relative;
  transition: color 0.2s var(--ease);
}

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

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px clamp(20px, 4vw, 40px) 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* Subtle vignette behind everything */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  z-index: 2;
}

.dots {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 22vw;
  max-width: 360px;
  min-width: 140px;
  pointer-events: none;
  display: block;
  z-index: 0;
}

.dots--left {
  left: 0;
  mask-image: linear-gradient(to right, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 30%, transparent 100%);
}

.dots--right {
  right: 0;
  mask-image: linear-gradient(to left, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
}

@media (max-width: 720px) {
  .dots {
    width: 28vw;
    min-width: 90px;
    opacity: 0.6;
  }
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: heroIn 1.1s var(--ease) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__logo {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.04));
  animation: logoIn 1.4s var(--ease) both;
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__tagline {
  margin: 0;
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--fg-mute);
  letter-spacing: -0.005em;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero__cta--center {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.005em;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: #fff;
  color: #0a0b0d;
}

.btn--primary:hover {
  background: #ebebeb;
}

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

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.hero__scrollcue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--line-strong));
  overflow: hidden;
}

.hero__scrollcue span {
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: #fff;
  animation: scrollcue 2.4s var(--ease) infinite;
}

@keyframes scrollcue {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(60px);
    opacity: 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(96px, 14vh, 160px) clamp(20px, 4vw, 40px);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

.center .hero__cta {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 28px;
}

.section__title {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 28ch;
}

.section__inner--narrow .section__title {
  max-width: none;
}

.center .section__title {
  margin-left: auto;
  margin-right: auto;
}

.section__title--display {
  font-size: clamp(36px, 5vw, 60px);
  max-width: none;
}

.section__lead {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.012em;
  max-width: 36ch;
  margin-top: 48px;
  font-weight: 400;
}

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-mute);
  margin: 0 0 18px;
  max-width: 60ch;
}

.center .prose p,
.center .prose {
  margin-left: auto;
  margin-right: auto;
}

.prose__lead {
  color: var(--fg) !important;
  font-size: 17px !important;
  letter-spacing: -0.005em;
}

/* ---------- "Pieces" list ---------- */
.pieces {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 760px;
}

.pieces li {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--fg-mute);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pieces li:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}

/* ---------- Feature grid ---------- */
.grid {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.012),
    rgba(255, 255, 255, 0)
  );
}

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

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

.card {
  position: relative;
  padding: 32px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.card:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Remove dangling borders on last column / last row */
.grid > .card:nth-child(3n) {
  border-right: none;
}
.grid > .card:nth-last-child(-n + 3) {
  border-bottom: none;
}

@media (max-width: 900px) {
  .grid > .card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .grid > .card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .grid > .card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .grid > .card:nth-child(2n) {
    border-right: none;
  }
  .grid > .card:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .grid > .card {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .grid > .card:last-child {
    border-bottom: none !important;
  }
}

.card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  margin-bottom: 22px;
}

.card__title {
  font-size: 17px;
  letter-spacing: -0.012em;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--fg);
}

.card__body {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  color: var(--fg-mute);
}

/* ---------- Status section ---------- */
.section--status {
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(166, 227, 184, 0.04),
      transparent 60%
    ),
    var(--bg);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(166, 227, 184, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
  display: inline-block;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 227, 184, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(166, 227, 184, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(166, 227, 184, 0);
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 40px);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-mute);
}

.footer__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__scrollcue {
    display: none;
  }
}
