:root {
  --bg: #07090e;
  --panel: #10141d;
  --panel-soft: #0c1018;
  --line: #1d2431;
  --text: #e9edf7;
  --muted: #9aa3b8;
  --accent: #67e8c2;
  --accent-2: #7dd3fc;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at 20% 5%, #0f1622 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, #102a2b 0%, transparent 35%),
    linear-gradient(180deg, #07090e 0%, #090c12 45%, #07090e 100%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #1a2130;
  backdrop-filter: blur(10px);
  background: #07090ecc;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: min-height 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: font-size 220ms ease;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: width 220ms ease, height 220ms ease;
}

.nav-toggle {
  display: none;
  border: 1px solid #2b3548;
  border-radius: 10px;
  background: #0f1521;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 7px 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease, font-size 220ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #f7fbff;
  border-color: var(--accent);
}

.site-header.scrolled {
  background: #04060af2;
  border-color: #283149;
  box-shadow: 0 14px 30px #00000075;
}

.site-header.scrolled .nav-wrap {
  min-height: 52px;
}

.site-header.scrolled .brand {
  font-size: 0.88rem;
}

.site-header.scrolled .brand img {
  width: 24px;
  height: 24px;
}

.site-header.scrolled .site-nav a {
  font-size: 0.84rem;
}

.hero {
  padding: 74px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #0e131d, #0b0f17);
  box-shadow: 0 18px 40px #0000004d;
}

.hero-copy {
  padding: clamp(22px, 4vw, 44px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd8c5;
  margin-bottom: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.3rem);
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 22px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  transition: transform 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, #1db79a, #0ea5e9);
  color: #fff;
}

.btn-ghost {
  border: 1px solid #32405a;
  color: #dbeafe;
}

.hero-side {
  padding: 24px;
}

.hero-side h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.hero-side p {
  color: var(--muted);
  margin-bottom: 12px;
}

.pill-list {
  display: grid;
  gap: 10px;
}

.pill {
  border: 1px solid #2b3548;
  border-radius: 12px;
  padding: 10px 12px;
  color: #dce6fb;
  background: #111725;
}

section {
  padding: 58px 0;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-top p {
  color: var(--muted);
  max-width: 45ch;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  border: 1px solid #212938;
  border-radius: 14px;
  background: #0f1420;
  padding: 16px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: #39607e;
}

.tile .tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ddff5;
  margin-bottom: 8px;
  font-weight: 800;
}

.tile h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.tile p,
.tile span {
  color: var(--muted);
  font-size: 0.93rem;
}

.team-wrap {
  padding: 16px;
}

.team-photo {
  width: 100%;
  object-fit: contain;
  border: 1px solid #1c2534;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #090d15;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.person {
  border: 1px solid #222b3c;
  border-radius: 12px;
  padding: 10px;
  background: #0c111b;
}

.person strong {
  display: block;
}

.person span {
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
  transition-delay: var(--delay, 0ms);
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid #151b28;
  background: radial-gradient(circle at 12% 10%, #0d1320 0%, transparent 36%),
    linear-gradient(180deg, #04060a 0%, #030509 100%);
  padding-bottom: 10px;
}

.footer-top {
  padding: 32px 24px 30px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 26px;
  border: 1px solid #1b2436;
  border-radius: 18px;
  background: linear-gradient(155deg, #111a2a, #0a101a 65%);
  box-shadow: 0 26px 55px #00000080, 0 0 0 1px #2a375133 inset;
  margin-top: -38px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.footer-brand {
  max-width: 48ch;
}

.footer-brand .logo-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand .logo-line img {
  width: 30px;
  height: 30px;
}

.footer-brand .logo-line b {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.footer-brand p {
  color: #a1aecb;
  font-size: 1.08rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #f8fbff;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #9ba8c6;
  font-weight: 700;
  font-size: 1rem;
  margin: 12px 0;
  transition: color 200ms ease, transform 200ms ease;
}

.footer-col a:hover,
.footer-col a.active {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid #151c2b;
  padding: 22px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.footer-bottom p {
  color: #5d6783;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.page-hero {
  padding: 56px 0 18px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.3vw, 3.5rem);
}

.page-hero p {
  color: var(--muted);
  max-width: 64ch;
}

.stack {
  display: grid;
  gap: 12px;
}

.row-card {
  border: 1px solid #212938;
  border-radius: 14px;
  background: #0d131f;
  padding: 16px;
}

.row-card h3 {
  margin-bottom: 6px;
}

.row-card p,
.row-card li {
  color: var(--muted);
}

.row-card ul {
  margin-left: 18px;
}

.docs {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  padding-bottom: 30px;
}

.docs-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  border: 1px solid #1f2736;
  border-radius: 14px;
  background: #0a1019;
  padding: 12px;
}

.docs-nav h3 {
  font-size: 0.9rem;
  color: #dce7ff;
  margin-bottom: 6px;
}

.docs-nav a {
  display: block;
  text-decoration: none;
  color: #90a0bf;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 7px 8px;
  border-radius: 8px;
}

.docs-nav a:hover {
  background: #151e2f;
  color: #edf5ff;
}

.docs-main {
  border: 1px solid #1f2736;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d131f, #0b1018);
  padding: 24px;
}

.docs-main .meta {
  color: #7f90b2;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.docs-main h2 {
  margin: 18px 0 8px;
  font-size: 1.45rem;
}

.docs-main p,
.docs-main li {
  color: #9aa8c4;
}

.docs-main ul {
  margin-left: 18px;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-4,
  .team-grid,
  .footer-top,
  .docs {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    gap: 20px;
    margin-top: -24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .docs-nav {
    position: static;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 4vw;
    left: 4vw;
    border: 1px solid #253147;
    border-radius: 12px;
    background: #0b1018;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-grid,
  .grid-4,
  .team-grid,
  .footer-top,
  .docs {
    grid-template-columns: 1fr;
  }

  .footer-top {
    margin-top: -16px;
    padding: 24px 16px;
  }

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