:root {
  --ink: #f8fbff;
  --muted: rgba(248, 251, 255, 0.78);
  --soft: rgba(248, 251, 255, 0.64);
  --panel: rgba(13, 16, 24, 0.43);
  --panel-strong: rgba(13, 16, 24, 0.66);
  --line: rgba(255, 255, 255, 0.22);
  --accent: #ffdd7a;
  --accent-ink: #151006;
  --focus: #9ee9ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #10131c;
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #10131c;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: #111522;
  font-weight: 700;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(16, 19, 28, 0.18), rgba(16, 19, 28, 0.18)),
    url("assets/hero-poster.jpg") center / cover no-repeat,
    radial-gradient(circle at 20% 20%, rgba(255, 221, 122, 0.28), transparent 32rem),
    radial-gradient(circle at 82% 24%, rgba(91, 214, 255, 0.24), transparent 28rem),
    linear-gradient(135deg, #171927 0%, #273047 44%, #11131c 100%);
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-shell::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.68), rgba(5, 7, 12, 0.2) 48%, rgba(5, 7, 12, 0.56)),
    linear-gradient(180deg, rgba(5, 7, 12, 0.72), rgba(5, 7, 12, 0.18) 44%, rgba(5, 7, 12, 0.72));
}

.page-shell::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 74%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.08) contrast(1.02);
  transition: opacity 700ms ease;
}

.video-ready .hero-video {
  opacity: 1;
}

.video-error .hero-video,
.reduced-motion .hero-video {
  display: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand,
.nav-links,
.header-cta,
.hero-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  color: #111522;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(255, 221, 122, 0.25);
}

.nav-links {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.35rem;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.35rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100svh - 5rem);
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 6.5rem) 0 clamp(2.5rem, 8vh, 6.5rem);
}

.hero-panel {
  width: min(710px, 100%);
  border-radius: 8px;
  padding: clamp(1.35rem, 4vw, 3.2rem);
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.15rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.35rem;
  border-radius: 999px;
  padding: 0.9rem 1.15rem 0.9rem 1.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(255, 221, 122, 0.26);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(255, 221, 122, 0.34);
}

.cta-arrow {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(21, 16, 6, 0.11);
  font-size: 1rem;
  line-height: 1;
}

.microcopy {
  max-width: 13rem;
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-video {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding-top: 0.75rem;
  }

  .brand {
    min-height: 2.75rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    min-height: 2.75rem;
    order: 3;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .header-cta {
    min-height: 2.75rem;
    padding-inline: 0.9rem;
  }

  .hero {
    min-height: calc(100svh - 6.8rem);
    padding-block: 1.5rem 2rem;
  }

  .hero-panel {
    background: var(--panel-strong);
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-cta {
    width: 100%;
  }

  .microcopy {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .page-shell {
    min-height: 100dvh;
  }

  .site-header,
  .hero {
    width: min(100% - 1rem, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .brand {
    padding-right: 0.5rem;
  }

  .header-cta {
    font-size: 0.86rem;
  }

  .hero-panel {
    padding: 1.1rem;
  }
}
