:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-light: #1d1d1d;

  --text: #f5f5f5;
  --text-muted: rgba(255,255,255,0.72);

  --border: rgba(255,255,255,0.08);

  --container: 1280px;

  --header-height: 84px;

  --radius: 20px;

  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: 7rem 0;
}

.muted {
  background: var(--surface);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.section-heading {
  margin-bottom: 3rem;
}

.section-heading h2,
.split h2,
.cta h2 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;

  background: transparent;

  transition:
    background var(--transition),
    backdrop-filter var(--transition),
    border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .brand,
.site-header .site-nav,
.site-header .nav-toggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .site-nav,
.site-header.is-scrolled .nav-toggle {
  opacity: 1;
  pointer-events: auto;
}

.header-logo {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: currentColor;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform var(--transition);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px auto;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.55)
    );

  z-index: -1;
}

.hero-content {
  min-height: 100svh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.hero-logo-large {
  width: min(62vw, 420px);
  height: auto;

  margin-bottom: 2rem;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.site-header.is-scrolled ~ main .hero-logo-large {
  opacity: 0;
  transform: translateY(-14px);
}

.hero h1 {
  margin: 0.6rem 0 1rem;

  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-text {
  width: min(720px, 100%);
  margin: 0 auto;

  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;

  margin-top: 2rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 54px;

  padding: 0 1.4rem;

  border-radius: 999px;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);

  font-weight: 500;
}

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

.button.primary {
  background: white;
  color: black;
}

.button.secondary {
  border: 1px solid rgba(255,255,255,0.2);
}

.button.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

/* CTA */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

/* Accessibility */

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
}

/* Responsive */

@media (max-width: 900px) {

  .split,
  .cards,
  .cta {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-nav {
    position: fixed;

    top: var(--header-height);
    left: 0;
    right: 0;

    padding: 1.5rem;

    background: rgba(10,10,10,0.98);

    flex-direction: column;

    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}