:root {
  --bg: #08101d;
  --bg-soft: #0f1a2e;
  --card: rgba(14, 29, 58, 0.8);
  --text: #eaf2ff;
  --muted: #9cb2d6;
  --accent: #7ae2c5;
  --accent-2: #5ba8ff;
  --line: rgba(122, 226, 197, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #12233c 0%, var(--bg) 40%);
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", "Gill Sans", "Avenir Next", sans-serif;
  line-height: 1.5;
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 80%, rgba(91, 168, 255, 0.2), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(122, 226, 197, 0.15), transparent 46%);
  z-index: -1;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 29, 0.65);
  z-index: 10;
}

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

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--accent);
}

.section {
  position: relative;
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(to right, rgba(8, 16, 29, 0.5), rgba(11, 25, 48, 0.7));
}

.section h1,
.section h2,
.section h3,
.section h4 {
  margin-top: 0;
  line-height: 1.2;
}

.section h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 20ch;
}

.section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  max-width: 28ch;
}

.kicker {
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #09122a;
}

.btn-ghost {
  border: 1px solid var(--accent);
  color: var(--text);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 10px;
}

.trust-bar {
  color: var(--muted);
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 6px;
}

.hero-media img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(6, 12, 24, 0.7);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(156, 178, 214, 0.18);
  border-radius: 14px;
  padding: 20px;
}

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

.section-head {
  max-width: 780px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article {
  padding: 18px;
  border-left: 2px solid var(--accent);
  background: rgba(8, 24, 49, 0.65);
  border-radius: 0 10px 10px 0;
}

.social-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.social-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  text-decoration: none;
  color: #0b1020;
  background: var(--accent);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(156, 178, 214, 0.2);
  padding: 40px 0;
  background: rgba(5, 12, 25, 0.8);
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.footer-grid p {
  color: var(--muted);
}

.footer-grid a {
  color: var(--accent);
}

.doc-page .hero {
  padding-top: 44px;
}

.doc-content {
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.doc-content h1 {
  max-width: none;
}

.doc-content h2 {
  margin-bottom: 0;
}

.doc-content p,
.doc-content li {
  max-width: 70ch;
}

.doc-content ul {
  margin-top: 0.2rem;
}

@media (max-width: 980px) {
  .two-col,
  .cards,
  .timeline,
  .footer-grid,
  .social-wrap {
    grid-template-columns: 1fr;
  }

  .social-wrap {
    justify-items: start;
  }

  .top-nav {
    gap: 14px;
  }
}
