:root {
  --bg: #03060e;
  --bg-deep: #010308;
  --fg: #edf3fb;
  --fg-muted: #8b9cb3;
  --accent: #6ec8ff;
  --accent-soft: rgba(110, 200, 255, 0.14);
  --accent-dim: #3d7aa8;
  --warm: #c9a87c;
  --line: rgba(237, 243, 251, 0.1);
  --line-strong: rgba(237, 243, 251, 0.18);
  --font-display: "Space Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-body: "Space Grotesk", sans-serif;
  --space: clamp(1.25rem, 4vw, 3rem);
  --max: 74rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

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

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-deep);
}

.atmosphere__nebula {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 55% at 15% 5%, rgba(45, 110, 190, 0.38), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 20%, rgba(25, 60, 130, 0.4), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(12, 35, 80, 0.55), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 60%, rgba(80, 140, 200, 0.08), transparent 70%);
  animation: nebula-breathe 22s var(--ease) infinite alternate;
}

.atmosphere__horizon {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -5%;
  height: 45%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(90, 160, 220, 0.18), transparent 70%),
    linear-gradient(to top, rgba(8, 24, 48, 0.9), transparent);
  animation: horizon-pulse 14s var(--ease) infinite alternate;
}

.atmosphere__stars {
  position: absolute;
  inset: 0;
}

.atmosphere__stars--far {
  background-image:
    radial-gradient(1px 1px at 6% 10%, #fff, transparent),
    radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 33% 16%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 47% 68%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 61% 24%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 76% 52%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 89% 12%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 14% 78%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 54% 6%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 93% 86%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 40% 38%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 72% 88%, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0.7;
  animation: star-drift 60s linear infinite;
}

.atmosphere__stars--near {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 28% 58%, rgba(190, 230, 255, 0.9), transparent),
    radial-gradient(2px 2px at 68% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 82% 64%, rgba(190, 230, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 44% 84%, #fff, transparent);
  opacity: 0.9;
  animation: star-drift 36s linear infinite reverse;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 200, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 200, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 35%, black 10%, transparent 72%);
  transform: perspective(600px) rotateX(52deg) translateY(-8%);
  transform-origin: center top;
  opacity: 0.7;
}

.atmosphere__orbit {
  position: absolute;
  border: 1px solid rgba(110, 200, 255, 0.14);
  border-radius: 50%;
  top: 38%;
  left: 62%;
  translate: -50% -50%;
}

.atmosphere__orbit--a {
  width: min(55vw, 28rem);
  height: min(55vw, 28rem);
  animation: orbit-spin 48s linear infinite;
}

.atmosphere__orbit--b {
  width: min(78vw, 42rem);
  height: min(78vw, 42rem);
  border-color: rgba(110, 200, 255, 0.09);
  animation: orbit-spin 72s linear infinite reverse;
}

.atmosphere__orbit--c {
  width: min(105vw, 58rem);
  height: min(105vw, 58rem);
  border-color: rgba(201, 168, 124, 0.08);
  animation: orbit-spin 96s linear infinite;
}

@keyframes nebula-breathe {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-1%, 1%);
  }
}

@keyframes horizon-pulse {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}

@keyframes star-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3%);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem var(--space);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(3, 6, 14, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand:hover {
  color: var(--fg);
}

.brand__mark {
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--bg-deep), inset 0 0 0 5px var(--accent);
}

.nav {
  display: none;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--fg-muted);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

.nav a[aria-current="page"]::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg-deep);
  background: var(--accent);
  padding: 0.55rem 0.95rem;
}

.header-cta:hover {
  color: var(--bg-deep);
  background: #9adbff;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 1.25rem;
  margin-inline: auto;
  background: var(--fg);
}

.nav-drawer {
  position: fixed;
  inset: 3.5rem 0 auto 0;
  z-index: 39;
  padding: 1.5rem var(--space) 2rem;
  background: rgba(3, 6, 14, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

@media (min-width: 860px) {
  .nav,
  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }
}

/* —— App shell —— */
#app {
  outline: none;
}

#app.is-entering .reveal {
  animation: rise 0.9s var(--ease) both;
}

#app.is-entering .reveal-delay-1 {
  animation-delay: 0.1s;
}

#app.is-entering .reveal-delay-2 {
  animation-delay: 0.18s;
}

#app.is-entering .reveal-delay-3 {
  animation-delay: 0.28s;
}

#app.is-entering .reveal-delay-4 {
  animation-delay: 0.38s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - 3.6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 14vh, 8rem) var(--space) clamp(2.5rem, 7vh, 4.5rem);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 6.25rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 0 0 1.35rem;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero__lede {
  margin: 0 0 2.5rem;
  color: var(--fg-muted);
  max-width: 38ch;
  font-size: 1.05rem;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #031018;
}

.btn--primary:hover {
  background: #9adbff;
  color: #031018;
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* —— Domains strip —— */
.domains {
  padding: 1.35rem var(--space);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(110, 200, 255, 0.03);
}

.domains__inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  align-items: baseline;
}

.domains__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.domains__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--fg);
  font-style: italic;
}

.domains__list span:not(:last-child)::after {
  content: "·";
  margin: 0 0.75rem;
  color: var(--accent-dim);
  font-style: normal;
}

/* —— Sections —— */
.section {
  padding: clamp(3.75rem, 11vh, 7rem) var(--space);
  border-top: 1px solid var(--line);
}

.section--story {
  position: relative;
}

.section--story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(110, 200, 255, 0.03), transparent);
  pointer-events: none;
}

.section__inner {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
}

.section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.85rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.section__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section__copy {
  margin: 0;
  color: var(--fg-muted);
  max-width: 44ch;
  font-size: 1.05rem;
}

.section__copy-wide {
  max-width: 52ch;
}

.story-points {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .story-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.story-points li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.story-points h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.story-points p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

/* —— Product list —— */
.product-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.product-list li {
  border-top: 1px solid var(--line);
}

.product-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.product-list a {
  display: grid;
  gap: 0.45rem;
  padding: 1.75rem 0;
  text-decoration: none;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.product-list a:hover {
  padding-left: 0.65rem;
  color: var(--fg);
  background: linear-gradient(90deg, var(--accent-soft), transparent 55%);
}

.product-list__index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
}

.product-list__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.75rem;
}

.product-list__badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.product-list__blurb {
  color: var(--fg-muted);
  font-size: 0.98rem;
  max-width: 48ch;
}

.product-list__arrow {
  color: var(--accent);
  font-size: 1.35rem;
  align-self: center;
}

@media (min-width: 860px) {
  .product-list a {
    grid-template-columns: 3rem 13rem 1fr auto;
    align-items: center;
    gap: 1.25rem 1.75rem;
    padding: 2rem 0;
  }
}

/* —— Product page —— */
.product-hero {
  position: relative;
  padding: clamp(3.5rem, 12vh, 6.5rem) var(--space) clamp(2.75rem, 7vh, 4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(110, 200, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(110, 200, 255, 0.04), transparent 60%);
  pointer-events: none;
}

.product-hero[data-product="keypass"]::before {
  background:
    radial-gradient(ellipse 55% 70% at 85% 15%, rgba(110, 200, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(201, 168, 124, 0.08), transparent 60%);
}

.product-hero[data-product="depguard"]::before {
  background:
    radial-gradient(ellipse 55% 70% at 85% 15%, rgba(120, 200, 160, 0.12), transparent 55%);
}

.product-hero[data-product="netproxy"]::before {
  background:
    radial-gradient(ellipse 55% 70% at 85% 15%, rgba(140, 170, 230, 0.14), transparent 55%);
}

.product-hero__inner {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
}

.product-hero__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

.product-hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0 0 1.15rem;
}

.product-hero__tagline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 1.1rem;
  max-width: 22ch;
  color: var(--fg);
}

.product-hero__lede {
  margin: 0;
  color: var(--fg-muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

.feature-block {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.25rem, 5.5vh, 3.5rem) var(--space);
  display: grid;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.feature-block:hover {
  background: rgba(110, 200, 255, 0.03);
}

@media (min-width: 860px) {
  .feature-block {
    grid-template-columns: minmax(11rem, 18rem) 1fr;
    gap: 2.75rem;
    align-items: start;
  }
}

.feature-block__num {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
  margin-bottom: 0.45rem;
}

.feature-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}

.feature-block p {
  margin: 0;
  color: var(--fg-muted);
  max-width: 50ch;
  font-size: 1.02rem;
}

.product-cta {
  position: relative;
  max-width: var(--max);
  margin: clamp(1rem, 4vh, 2rem) auto clamp(2rem, 6vh, 3.5rem);
  padding: clamp(2.5rem, 7vh, 4rem) var(--space);
}

.product-cta__panel {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(110, 200, 255, 0.08), transparent 55%),
    rgba(8, 14, 28, 0.65);
}

.product-cta__panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.product-cta__panel p {
  margin: 0 0 1.5rem;
  color: var(--fg-muted);
  max-width: 40ch;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem var(--space) 3.25rem;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  gap: 0.65rem;
}

.site-footer__brand {
  margin: 0;
}

.brand-inline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.site-footer__tag {
  margin: 0;
  color: var(--fg-muted);
  font-family: var(--font-serif);
  font-style: italic;
}

.site-footer__products {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.site-footer__products a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-footer__products a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__nebula,
  .atmosphere__horizon,
  .atmosphere__stars--far,
  .atmosphere__stars--near,
  .atmosphere__orbit--a,
  .atmosphere__orbit--b,
  .atmosphere__orbit--c {
    animation: none;
  }

  #app.is-entering .reveal {
    animation: none;
  }

  .btn--primary:hover {
    transform: none;
  }
}
