:root {
  --bg: #05070a;
  --bg-elev: #0a0e14;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.14);
  --cyan-glow: rgba(0, 229, 255, 0.45);
  --red: #ff2a2a;
  --red-deep: #c40000;
  --text: #f4f6f8;
  --muted: #8b93a3;
  --font-display: "Oxanium", sans-serif;
  --font-hero: "Syne", "Oxanium", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* —— Ambient —— */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ambient__beam {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 70vh;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08), transparent 68%);
  filter: blur(8px);
  animation: beam-drift 14s ease-in-out infinite alternate;
}

/* —— Top bar —— */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 clamp(16px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.88) 0%, rgba(5, 7, 10, 0.35) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  border-radius: 4px;
  transition: filter 0.2s ease;
}

.logo:hover,
.logo:focus-visible {
  outline: none;
  filter: brightness(1.1);
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--cyan-glow));
}

.logo__text strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--red);
}

.logo__text em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav nav a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 14px var(--cyan-dim);
  outline: none;
}

.nav-cta {
  margin-left: 6px;
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.35) !important;
  color: var(--cyan) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(0, 229, 255, 0.16) !important;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 12px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

.nav-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.nav-status.is-down {
  color: #ff8a8a;
  border-color: rgba(255, 42, 42, 0.35);
  background: rgba(255, 42, 42, 0.08);
}

.nav-status.is-down .nav-status__dot {
  background: #ff2a2a;
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.7);
  animation: none;
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background: url("/assets/hero-night.jpg") center center / cover no-repeat;
  transform: scale(1.08);
  animation: hero-bg-settle 2s var(--ease) forwards;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 7, 10, 0.92) 0%, rgba(5, 7, 10, 0.55) 42%, rgba(5, 7, 10, 0.35) 70%, rgba(5, 7, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.35) 0%, transparent 28%, rgba(5, 7, 10, 0.88) 100%);
}

.hero__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero__layout {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 140px) clamp(20px, 5vw, 48px) clamp(72px, 10vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  animation: hero-rise 0.7s var(--ease) 0.15s forwards;
}

.hero__eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
  margin: 0;
  opacity: 0;
  animation: hero-rise 0.8s var(--ease) 0.28s forwards;
}

.hero__brand {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero__brand--accent {
  color: var(--red);
  text-shadow:
    0 0 28px rgba(255, 42, 42, 0.35),
    0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero__sub {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 246, 248, 0.78);
}

.hero__lede {
  margin: 22px 0 0;
  max-width: 34rem;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  opacity: 0;
  animation: hero-rise 0.75s var(--ease) 0.42s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  animation: hero-rise 0.75s var(--ease) 0.55s forwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #1aefff 0%, #00c8e0 100%);
  color: #041016;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2), 0 10px 36px rgba(0, 229, 255, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.4), 0 14px 42px rgba(0, 229, 255, 0.4);
  outline: none;
}

.btn--ghost {
  background: rgba(5, 7, 10, 0.35);
  color: var(--text);
  border-color: rgba(242, 244, 247, 0.22);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 22px var(--cyan-dim);
  outline: none;
}

.hero__mark {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  opacity: 0;
  animation: hero-rise 0.9s var(--ease) 0.35s forwards;
}

.hero__orbit {
  position: absolute;
  width: min(360px, 72vw);
  height: min(360px, 72vw);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 0 0 40px rgba(0, 229, 255, 0.08),
    0 0 50px rgba(0, 229, 255, 0.12);
  animation: orbit-spin 22s linear infinite;
}

.hero__orbit::before,
.hero__orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero__orbit::before {
  top: 8%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
}

.hero__orbit::after {
  bottom: 18%;
  right: 12%;
  width: 5px;
  height: 5px;
  opacity: 0.7;
}

.hero__seal {
  position: relative;
  width: clamp(180px, 24vw, 280px);
  height: auto;
  filter:
    drop-shadow(0 0 28px rgba(0, 229, 255, 0.35))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  animation: seal-glow 4.5s ease-in-out infinite;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 16px;
  text-decoration: none;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scroll-nudge 1.6s ease-in-out infinite;
}

/* —— Sections —— */

.needs,
.block {
  position: relative;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  background: var(--bg);
}

.block--alt {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0, 229, 255, 0.06), transparent 55%),
    var(--bg-elev);
}

.needs__inner,
.block__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 88px) clamp(20px, 5vw, 48px);
}

.block__title,
.needs .block__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.block__lede {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.needs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 48px);
}

.needs__item {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(0, 229, 255, 0.45);
}

.needs__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.needs__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.55), rgba(0, 229, 255, 0.08));
}

.steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
}

.steps__n {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  line-height: 1.2;
  background: var(--bg);
  width: fit-content;
  padding: 0 0 0 0.15rem;
}

.block--alt .steps__n {
  background: transparent;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 229, 255, 0.14);
}

.facts li {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  transition: background 0.2s ease;
}

.facts li:hover {
  background: rgba(0, 229, 255, 0.03);
}

.facts__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: 0.15rem;
}

.facts__value {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.hints {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.hints li {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 229, 255, 0.3);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.portal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  padding: 28px clamp(20px, 5vw, 48px) 40px;
}

.portal-foot img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}

.portal-foot p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.portal-foot__legal a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.portal-foot__legal a:hover,
.portal-foot__legal a:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(0, 229, 255, 0.45);
}

/* —— Reveal —— */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Motion —— */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-bg-settle {
  to {
    transform: scale(1);
  }
}

@keyframes seal-glow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 22px rgba(0, 229, 255, 0.3))
      drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  }
  50% {
    filter:
      drop-shadow(0 0 42px rgba(0, 229, 255, 0.55))
      drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.35;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@keyframes beam-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-4vw, 6vh, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— Mobile —— */

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__mark {
    order: -1;
    justify-self: start;
    margin-bottom: 8px;
  }

  .hero__seal {
    width: clamp(140px, 38vw, 200px);
  }

  .hero__orbit {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }

  .nav-status {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .needs__list {
    grid-template-columns: 1fr;
  }

  .facts li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }
}
