/* Basalt landing. Dark theme locked, single lime accent, radius 12 system. */

:root {
  --bg: #0a0a0c;
  --surface: #101014;
  --surface-2: #16161c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #8b8b93;
  --accent: #c9f158;
  --accent-ink: #101203;
  --radius: 12px;
  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

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

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

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }

.mono, .metric { font-family: "Geist Mono", ui-monospace, monospace; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d6f877; }

.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ---------- Logos ---------- */

.logos {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  border-top: 1px solid var(--border);
}

.logos-label { font-size: 0.85rem; color: var(--faint); white-space: nowrap; }

.logos-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.logos-row img { opacity: 0.55; transition: opacity 0.25s; }
.logos-row img:hover { opacity: 1; }

/* ---------- Platform / bento ---------- */

.platform {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 40rem;
}

.bento {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.cell {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.cell:hover { border-color: rgba(255, 255, 255, 0.18); }

.cell h3 { font-size: 1.1rem; }
.cell-body { font-size: 0.95rem; color: var(--muted); max-width: 26rem; }

.cell-metric {
  grid-column: span 7;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  min-height: 300px;
  justify-content: flex-end;
}
.cell-metric h3 { order: -1; }
.metric {
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: auto;
}
.metric-unit { font-size: 0.35em; color: var(--faint); margin-left: 0.15em; }

.cell-img {
  grid-column: span 5;
  padding: 0;
  border: 1px solid var(--border);
}
.cell-img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); }

.cell-gradient {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(201, 241, 88, 0.16), transparent 55%),
    var(--surface);
}

/* ---------- How it works ---------- */

.how {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem 1.5rem;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  border-top: 1px solid var(--border);
}

.how-left .section-title {
  position: sticky;
  top: 7rem;
}

.how-right { display: flex; flex-direction: column; gap: 3rem; }

.step h3 { font-size: 1.35rem; }
.step h3::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 2px;
  background: var(--accent);
  margin-top: 0.7rem;
}
.step p { margin-top: 0.9rem; color: var(--muted); max-width: 32rem; }

.how-img {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.how-img img { filter: contrast(1.05); }

/* ---------- Quote ---------- */

.quote-band {
  border-top: 1px solid var(--border);
  padding: 7rem 1.5rem;
}

.quote-band blockquote {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.quote-band p {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.quote-band footer {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--faint);
}

/* ---------- CTA ---------- */

.cta {
  border-top: 1px solid var(--border);
  padding: 9rem 1.5rem;
  text-align: center;
}

.cta h2 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
}

.cta .btn { margin-top: 2.5rem; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p { margin-top: 1rem; font-size: 0.9rem; color: var(--faint); }

.footer-col { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.9rem; }
.footer-col h4 { font-size: 0.8rem; font-weight: 500; color: var(--faint); margin-bottom: 0.4rem; }
.footer-col a { color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; gap: 3rem; }
  .how-left .section-title { position: static; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 1.5rem; }
  .menu-btn { display: flex; }
  .nav-actions .btn { display: none; }

  .bento { grid-template-columns: 1fr; }
  .cell, .cell-metric, .cell-img { grid-column: span 1; }
  .cell-img { min-height: 260px; }
  .cell-metric { min-height: 240px; }

  .logos { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2.5rem 1.5rem; }
  .platform, .how, .quote-band { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .cta { padding: 6rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */

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