:root {
  --bg: #111111;
  --bg-soft: #1b1b1b;
  --panel: rgba(28, 28, 28, 0.78);
  --text: #f0f0f0;
  --muted: #b3b3b3;
  --line: rgba(200, 200, 200, 0.24);
  --mint: #d8d8d8;
  --ice: #c4c4c4;
  --warm: #aaaaaa;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #111111;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background-color: #111111;
  background: radial-gradient(circle at 10% 20%, #2a2a2a 0%, var(--bg) 45%),
    linear-gradient(160deg, #0d0d0d 0%, #171717 100%);
  min-height: 100svh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

html {
  height: 100%;
  height: -webkit-fill-available;
  background-color: #111111;
  overscroll-behavior-y: none;
}

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}

h1,
h2,
h3,
.eyebrow,
.brand,
.btn {
  font-family: "Space Grotesk", sans-serif;
}

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

.topbar,
.section,
footer {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: calc(constant(safe-area-inset-top) + 0.9rem);
  top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
  z-index: 25;
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  background: rgba(22, 22, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

nav {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--text);
}

.section {
  padding: 5.4rem 0;
}

.hero {
  padding-top: 4.2rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.8rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
  color: var(--ice);
}

h1 {
  font-size: clamp(2rem, 4.9vw, 4rem);
  line-height: 1.02;
  margin: 0.5rem 0 1rem;
}

.lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--mint), var(--ice));
  color: #181818;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(220, 220, 220, 0.18);
}

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

.btn-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.stats article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(30, 30, 30, 0.55);
}

.stats strong {
  font-size: 1.4rem;
  color: var(--warm);
  display: block;
  margin-bottom: 0.25rem;
}

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

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.hero-card img {
  width: 100%;
  border-radius: 18px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card h2 {
  margin-bottom: 0.3rem;
}

.hero-card p {
  color: var(--muted);
  margin-top: 0;
}

.section-head h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.65rem, 2.7vw, 2.6rem);
}

.grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(26, 26, 26, 0.6);
  padding: 1rem;
}

.card h3 {
  margin: 0.1rem 0 0.6rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  margin-top: 1.7rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline article {
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.8);
  border-radius: 18px;
  padding: 1rem;
}

.timeline span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ice);
  font-weight: 700;
}

.cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(35, 35, 35, 0.88), rgba(18, 18, 18, 0.92));
}

.cta h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

footer {
  padding: 1.4rem 0 calc(2.2rem + constant(safe-area-inset-bottom));
  padding: 1.4rem 0 calc(2.2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.footer-links {
  margin-top: 0.35rem;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(45px);
  z-index: 0;
  opacity: 0.35;
}

.orb-a {
  width: 340px;
  height: 340px;
  background: #8c8c8c;
  top: -100px;
  right: -80px;
}

.orb-b {
  width: 290px;
  height: 290px;
  background: #5f5f5f;
  bottom: -100px;
  left: -70px;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 3px 3px;
  z-index: 0;
  opacity: 0.35;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 960px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .hero-card {
    transform: none;
  }

  .grid.three,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .topbar,
  footer {
    width: 100%;
    margin-inline: 0;
    padding-left: calc(1.1rem + constant(safe-area-inset-left));
    padding-left: calc(1.1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.1rem + constant(safe-area-inset-right));
    padding-right: calc(1.1rem + env(safe-area-inset-right, 0px));
  }

  .topbar {
    top: constant(safe-area-inset-top);
    top: env(safe-area-inset-top, 0px);
    margin-top: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

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

  .section {
    padding: 3.4rem 0;
  }

  .grid.two,
  .grid.three,
  .timeline,
  .stats {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-meta {
    text-align: left;
  }
}
