:root {
  color-scheme: dark;
  --background: #05070a;
  --foreground: #f3f7f6;
  --muted: #9ba9a7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #6ef0bd;
  --accent-blue: #5c9dff;
  --page-padding: clamp(1.25rem, 4vw, 4rem);
  --title-presence: 1;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 75, 69, 0.2), transparent 34rem),
    linear-gradient(145deg, #06080c 0%, #05070a 54%, #070b10 100%);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

#particle-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: -13rem;
  right: -8rem;
  background: var(--accent-blue);
}

.ambient-two {
  bottom: -17rem;
  left: -10rem;
  background: var(--accent);
}

.noise {
  position: fixed;
  z-index: 1;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header,
.site-footer,
.hero {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--page-padding);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.wordmark-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(110, 240, 189, 0.55);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.9rem rgba(110, 240, 189, 0.75);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.7rem rgba(110, 240, 189, 0.75);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.hero {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 7rem var(--page-padding) 8rem;
  isolation: isolate;
}

.hero-copy {
  width: min(100%, 76rem);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(1.1rem, 2.8vw, 2rem);
  color: var(--accent);
  font-size: clamp(0.66rem, 1vw, 0.78rem);
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  display: flex;
  justify-content: center;
  margin: 0;
  color: rgba(243, 247, 246, 0.16);
  font-size: clamp(5.1rem, 17vw, 15rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.72;
  text-indent: -0.06em;
  -webkit-text-stroke: 1px rgba(243, 247, 246, 0.46);
  text-shadow:
    0 0 2.5rem rgba(88, 168, 148, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: var(--title-presence);
}

h1 span {
  display: inline-block;
  animation: letter-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 span:nth-child(2) {
  animation-delay: 70ms;
}

h1 span:nth-child(3) {
  animation-delay: 140ms;
}

h1 span:nth-child(4) {
  animation-delay: 210ms;
}

.claim {
  max-width: 52rem;
  margin: clamp(2rem, 5vw, 3.4rem) auto 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.intro {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  line-height: 1.7;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
  padding: 0.92rem 1.25rem 0.92rem 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 16, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1rem 4rem rgba(0, 0, 0, 0.24);
  color: var(--foreground);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.cta svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 220ms ease;
}

.cta:hover {
  border-color: rgba(110, 240, 189, 0.56);
  background: rgba(24, 49, 42, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1rem 4rem rgba(41, 163, 124, 0.12);
  transform: translateY(-2px);
}

.cta:hover svg {
  transform: translate(2px, -2px);
}

.cta:focus-visible,
.site-footer a:focus-visible,
.wordmark:focus-visible,
.legal-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.interaction-hint {
  position: absolute;
  right: var(--page-padding);
  bottom: 5.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: rgba(214, 226, 223, 0.48);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interaction-hint span {
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem var(--page-padding);
  color: rgba(214, 226, 223, 0.56);
  font-size: 0.68rem;
  letter-spacing: 0.035em;
}

.site-footer p {
  margin: 0;
}

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

.site-footer a {
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.site-footer a:hover {
  color: var(--foreground);
  text-decoration-color: var(--accent);
}

.legal-page {
  min-height: 100svh;
  background: #07090d;
}

.legal-shell {
  width: min(calc(100% - 2 * var(--page-padding)), 48rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0 5rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-back::before {
  content: "←";
  color: var(--accent);
}

.legal-copy h1 {
  display: block;
  margin-bottom: 2.5rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  text-align: left;
  text-indent: 0;
}

.legal-copy h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--foreground);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.legal-copy ul {
  padding-left: 1.2rem;
}

.legal-copy a {
  color: var(--foreground);
  text-decoration-color: rgba(110, 240, 189, 0.55);
  text-underline-offset: 0.25em;
}

.legal-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.78);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(0.22em);
    filter: blur(0.12em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 720px) {
  .status {
    font-size: 0;
  }

  .status::after {
    content: "Research";
    font-size: 0.66rem;
  }

  .hero {
    padding-bottom: 9rem;
  }

  h1 {
    font-size: clamp(4.7rem, 24vw, 8.5rem);
  }

  .interaction-hint {
    right: auto;
    bottom: 7.6rem;
    left: 50%;
    display: flex;
    width: max-content;
    max-width: calc(100% - 2.5rem);
    transform: translateX(-50%);
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1.2rem;
  }

  .site-footer nav {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .interaction-hint {
    display: none;
  }
}
