.nav { background: rgba(4, 6, 13, 0.55); }
.nav .container { max-width: none; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }

@media (min-width: 1061px) {
  .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-5);
  }
  .nav__menu { display: contents; }
  .brand { justify-self: start; }
  .nav__menu > nav { justify-self: center; }
  .nav__cta { justify-self: end; }
}

.brand { gap: 0.6rem; }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}
.brand__name .brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-faint);
  margin-top: 2px;
}

.brand__logo { display: inline-flex; align-items: center; }
.sf-logo {
  height: 30px;
  width: 50px;
  display: block;
  filter: drop-shadow(0 0 9px rgba(79, 140, 255, 0.5));
}
.footer .sf-logo { height: 28px; width: 47px; }

.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-bright), transparent);
  box-shadow: 0 0 10px var(--color-accent-glow);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav__links a:focus { color: var(--color-text); }

.btn--quote {
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.16), rgba(13, 27, 51, 0.35));
  border: 1px solid rgba(120, 170, 255, 0.55);
  box-shadow: 0 0 20px -6px var(--color-accent-glow), inset 0 0 16px rgba(79, 140, 255, 0.08);
  color: #eaf1ff;
}
.btn--quote:hover {
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.3), rgba(13, 27, 51, 0.5));
  border-color: var(--color-accent-bright);
  box-shadow: 0 0 30px -4px var(--color-accent-glow), inset 0 0 20px rgba(79, 140, 255, 0.16);
}

.hero {
  position: relative;
  padding: 0;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #04060d;
  isolation: isolate;
}

.hero__scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.stars { position: absolute; inset: -20%; background-repeat: repeat; }
.stars--sm {
  background-image:
    radial-gradient(1px 1px at 25% 15%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1px 1px at 70% 35%, rgba(205,222,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 40% 72%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 88% 20%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 15% 55%, rgba(220,230,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 55% 25%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 92% 66%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 33% 42%, rgba(255,255,255,0.5), transparent 60%);
  background-size: 300px 300px;
  animation: twinkle 5s var(--ease) infinite alternate, drift 180s linear infinite;
}
.stars--lg {
  background-image:
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.95), transparent 55%),
    radial-gradient(1.6px 1.6px at 20% 80%, rgba(190,215,255,0.9), transparent 55%),
    radial-gradient(2px 2px at 82% 48%, rgba(255,255,255,0.85), transparent 55%),
    radial-gradient(1.6px 1.6px at 45% 60%, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(1.6px 1.6px at 10% 30%, rgba(210,225,255,0.8), transparent 55%);
  background-size: 520px 520px;
  animation: twinkle 7s var(--ease) 0.6s infinite alternate, drift 260s linear infinite reverse;
  opacity: 0.9;
}

.nebula {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 48% at 14% 78%, rgba(40, 92, 205, 0.30), transparent 62%),
    radial-gradient(50% 45% at 86% 70%, rgba(58, 118, 230, 0.24), transparent 62%),
    radial-gradient(46% 42% at 50% 10%, rgba(96, 150, 255, 0.26), transparent 66%);
  filter: blur(8px);
}

.orbit {
  position: absolute; left: 50%; top: 14%;
  width: min(760px, 82vw); height: min(300px, 34vw);
  transform: translateX(-50%) rotate(-11deg);
  border: 1px solid rgba(120, 170, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(79, 140, 255, 0.14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.planet {
  position: absolute; left: 50%; top: -14%;
  width: min(620px, 92vw); aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(26, 48, 92, 0.65), rgba(6, 10, 20, 0.9) 58%, transparent 70%);
  box-shadow:
    inset 0 -26px 70px rgba(79, 140, 255, 0.22),
    0 0 90px rgba(79, 140, 255, 0.16);
}
.planet::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 8%, rgba(190, 215, 255, 0.55), transparent 22%);
  mix-blend-mode: screen;
}

.horizon {
  position: absolute; left: 50%; bottom: 0;
  width: 240%; aspect-ratio: 1;
  transform: translate(-50%, 82%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 6%, rgba(50, 100, 210, 0.32), rgba(6, 8, 16, 0) 30%);
  box-shadow: inset 0 9px 55px rgba(130, 175, 255, 0.45);
  border: 1px solid rgba(120, 165, 255, 0.28);
  border-top-color: rgba(175, 205, 255, 0.78);
}

.hero::after {
  content: "";
  position: absolute; left: 50%; bottom: 8%;
  width: 520px; height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 50%, rgba(79, 140, 255, 0.30), transparent 70%);
  filter: blur(6px);
  z-index: 0; pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hud-launch { margin-inline: auto; }

.wordmark { margin: 0; line-height: 0.92; }
.wordmark__row {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 10.5vw, 7rem);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #f6f9ff 0%, #c9d4ea 38%, #828fad 53%, #eef3ff 70%, #a3b3d3 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(79, 140, 255, 0.4));
}
.wordmark__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 3vw, 1.9rem);
  letter-spacing: clamp(0.3em, 1.4vw, 0.7em);
  text-indent: clamp(0.3em, 1.4vw, 0.7em);
  color: #cdd8ef;
}
.wordmark__sub::before,
.wordmark__sub::after {
  content: "";
  height: 1px; width: clamp(28px, 7vw, 90px);
  background: linear-gradient(90deg, transparent, rgba(150, 185, 255, 0.8));
}
.wordmark__sub::after { background: linear-gradient(90deg, rgba(150, 185, 255, 0.8), transparent); }

.hero__slogan {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: clamp(0.18em, 1vw, 0.34em);
  text-indent: clamp(0.18em, 1vw, 0.34em);
  font-size: clamp(0.78rem, 2.2vw, 1.1rem);
  color: #bcd0ff;
}
.hero__slogan b { color: var(--color-accent-bright); font-weight: 700; padding: 0 0.15em; }

.hero__tag {
  margin-top: 0.7rem;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.hud-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  width: min(620px, 90%);
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
}
.hud-launch__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 170, 255, 0.55));
  position: relative;
}
.hud-launch__line--r { background: linear-gradient(90deg, rgba(120, 170, 255, 0.55), transparent); }
.hud-launch__line::after {
  content: "";
  position: absolute; top: 50%; width: 7px; height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--color-accent-bright);
  box-shadow: 0 0 10px var(--color-accent-glow);
}
.hud-launch__line--l::after { right: 0; }
.hud-launch__line--r::after { left: 0; }

.hud-start {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem clamp(2rem, 5vw, 3rem);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #eaf1ff;
  background: transparent;
  border: none;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
  filter: drop-shadow(0 0 11px rgba(79, 140, 255, 0.5));
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
/* Travelling light that sweeps around the outline */
.hud-start::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%; left: 50%;
  width: 220%; height: 220%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 0deg,
    transparent 0 58%,
    rgba(150, 195, 255, 0.5) 72%,
    #eaf4ff 82%,
    rgba(150, 195, 255, 0.5) 92%,
    transparent 100%);
  animation: startSweep 3.6s linear infinite;
}
/* Inner face: dark fill, top highlight + pulsing inner glow (3D depth) */
.hud-start::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.6px;
  background: linear-gradient(180deg, rgba(34, 62, 116, 0.92), rgba(9, 16, 32, 0.96));
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 18px rgba(79, 140, 255, 0.2);
  animation: startInner 3.2s ease-in-out infinite;
}
.hud-start:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 24px rgba(110, 163, 255, 0.85));
}
.hud-start:hover::before { animation-duration: 2.1s; }
.hud-start:active { transform: translateY(0) scale(0.98); }
.hud-start > span:not(.hud-start__ripple),
.hud-start > svg { position: relative; z-index: 1; }
.hud-start svg { color: var(--color-accent-bright); }

.hud-start .hud-start__ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(170, 210, 255, 0.6) 0%, rgba(79, 140, 255, 0.28) 42%, transparent 70%);
  transform: scale(0);
  opacity: 0.9;
  animation: startRipple 0.65s var(--ease) forwards;
}

@keyframes startSweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes startInner {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 15px rgba(79, 140, 255, 0.15); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 28px rgba(79, 140, 255, 0.34); }
}
@keyframes startRipple { to { transform: scale(1); opacity: 0; } }

.hero__scroll {
  margin-top: clamp(1.8rem, 5vh, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(150, 180, 230, 0.5);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 6px;
}
.mouse .wheel {
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--color-accent-bright);
  animation: scrollwheel 1.6s var(--ease) infinite;
}
.hero__scroll:hover { color: var(--color-text-muted); }

.hud-pill {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  max-width: 230px;
  background: linear-gradient(180deg, rgba(14, 20, 36, 0.82), rgba(10, 14, 26, 0.82));
  border: 1px solid rgba(110, 163, 255, 0.35);
  box-shadow: 0 0 26px -6px var(--color-accent-glow), inset 0 0 20px rgba(79, 140, 255, 0.06);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 0.9rem; font-weight: 600; line-height: 1.25;
  text-align: left;
}
.hud-pill--left  { left: max(1.5rem, 4vw);  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
.hud-pill--right { right: max(1.5rem, 4vw); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); text-align: right; }
.hud-pill--right { justify-content: flex-end; }
.hud-pill__icon {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(110, 163, 255, 0.45);
  border-radius: 8px;
  color: var(--color-accent-bright);
  background: rgba(79, 140, 255, 0.08);
}

.hero__corner { position: absolute; bottom: clamp(1rem, 3vh, 1.75rem); z-index: 2; }
.hero__corner--l {
  left: max(1.5rem, 4vw);
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text-faint); line-height: 1.5;
}
.hero__corner--l .bars { display: grid; gap: 4px; }
.hero__corner--l .bars i { display: block; height: 3px; width: 34px; border-radius: 2px; background: var(--color-accent); opacity: 0.8; }
.hero__corner--l .bars i:nth-child(2) { width: 26px; }
.hero__corner--l .bars i:nth-child(3) { width: 30px; }

.hero__corner--r { right: max(1.5rem, 4vw); display: flex; gap: 0.7rem; }
.hero__corner--r a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background: rgba(10, 14, 26, 0.6);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hero__corner--r a:hover {
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 18px -2px var(--color-accent-glow);
}

@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes drift   { from { transform: translateY(0); } to { transform: translateY(-40px); } }
@keyframes scrollwheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  60%  { opacity: 1; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 1040px) {
  .hud-pill { max-width: 190px; font-size: 0.82rem; padding: 0.7rem 1rem; }
}
@media (max-width: 860px) {
  .hud-pill { display: none; }
}
@media (max-width: 680px) {
  .hero__corner { display: none; }
  .hud-launch__line { display: none; }
  .hud-launch { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .stars, .mouse .wheel { animation: none !important; }
}
