:root {
  color-scheme: dark;
  font-family: Inter, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: #0b1020;
  color: #f8f7f3;
  --muted: #aeb7ca;
  --blue: #7b8cff;
  --mint: #73f3c1;
  --line: rgba(255, 255, 255, .11);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(78, 99, 224, .18), transparent 34rem),
    radial-gradient(circle at 92% 88%, rgba(102, 51, 181, .17), transparent 38rem),
    linear-gradient(145deg, #080d1b 0%, #0b1020 50%, #111127 100%);
}

a { color: inherit; }

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px clamp(24px, 5vw, 76px) 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 174px;
  height: 48px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .045);
  color: #d7dcec;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  backdrop-filter: blur(12px);
}

.status-dot,
.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(115, 243, 193, .11), 0 0 16px rgba(115, 243, 193, .85);
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding: clamp(64px, 10vh, 116px) 0;
}

.hero-copy { max-width: 720px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 25px;
  color: #aeb9ff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 33px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
}

h1 {
  max-width: 10.5ch;
  margin: 0;
  font-size: clamp(4.3rem, 7.3vw, 7.8rem);
  font-weight: 660;
  letter-spacing: -.07em;
  line-height: .9;
  text-wrap: balance;
}

h1 em {
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.055em;
  background: linear-gradient(105deg, #91a0ff 10%, #b88bff 55%, #7ff0c6 98%);
  background-clip: text;
  -webkit-background-clip: text;
}

.lede {
  max-width: 37rem;
  margin: 32px 0 30px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.72;
}

.launch-note {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  color: #aeb7ca;
  font-size: 12px;
  line-height: 1.45;
  backdrop-filter: blur(14px);
}

.launch-note strong {
  display: block;
  color: #f0f2f8;
  font-size: 13px;
  font-weight: 680;
}

.launch-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(123, 140, 255, .28), rgba(167, 120, 255, .13));
}

.launch-icon svg {
  width: 20px;
  fill: none;
  stroke: #c8d0ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.visual {
  position: relative;
  min-height: min(560px, 62vh);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual::before {
  content: "";
  position: absolute;
  width: min(34vw, 490px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 87, 220, .24), rgba(55, 71, 155, .08) 54%, transparent 72%);
  filter: blur(8px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 4%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 20px rgba(123, 140, 255, .85);
}

.orbit-outer {
  width: min(39vw, 545px);
  aspect-ratio: 1;
  animation: turn 24s linear infinite;
}

.orbit-inner {
  width: min(31vw, 430px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: turn-reverse 34s linear infinite;
}

.orbit-inner::after {
  top: auto;
  right: 10%;
  bottom: 10%;
  left: auto;
  width: 5px;
  height: 5px;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(115, 243, 193, .8);
}

.message-card {
  position: relative;
  z-index: 2;
  width: min(86%, 425px);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 36px 90px rgba(0, 0, 0, .32);
  backdrop-filter: blur(20px);
  transform: rotate(2.5deg);
  animation: float 7s ease-in-out infinite;
}

.card-topbar {
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.card-topbar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.card-topbar > span:first-child { background: #af86ff; }

.topbar-line {
  width: 56px;
  height: 5px;
  margin-left: auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
}

.envelope-wrap {
  position: relative;
  height: 275px;
  display: grid;
  place-items: center;
}

.envelope {
  position: relative;
  z-index: 2;
  width: 220px;
  overflow: visible;
  filter: drop-shadow(0 24px 30px rgba(1, 4, 14, .25));
}

.envelope-back {
  fill: #7788f5;
  stroke: rgba(255, 255, 255, .23);
  stroke-width: 1.5;
}

.envelope-fold {
  fill: none;
  stroke: rgba(255, 255, 255, .48);
  stroke-width: 2;
}

.envelope-front {
  fill: #6879e3;
  stroke: rgba(255, 255, 255, .2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.letter {
  position: absolute;
  z-index: 1;
  top: 44px;
  width: 170px;
  height: 122px;
  padding: 25px 24px;
  border-radius: 10px 10px 3px 3px;
  background: #f3f1ec;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  animation: letter-rise 7s ease-in-out infinite;
}

.letter span {
  display: block;
  height: 6px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: #d5d7e1;
}

.letter span:first-child { width: 45%; background: #8593ec; }
.letter span:nth-child(2) { width: 84%; }
.letter span:nth-child(3) { width: 64%; }

.spark {
  position: absolute;
  z-index: 3;
  color: #d1c1ff;
  text-shadow: 0 0 18px currentColor;
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark-one { top: 50px; right: 54px; font-size: 24px; }
.spark-two { bottom: 48px; left: 54px; color: #8cf3cb; font-size: 15px; animation-delay: 1.2s; }

.card-caption { padding: 0 30px 26px; }

.card-caption span {
  display: block;
  margin-bottom: 8px;
  color: #939db5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.card-caption strong {
  color: #f5f5fa;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -.025em;
}

.floating-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(15, 21, 42, .8);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  color: #e6e8f0;
  font-size: 11px;
  font-weight: 640;
  backdrop-filter: blur(14px);
}

.chip-one { top: 20%; right: -1%; transform: rotate(-3deg); }
.chip-one span { color: #cab5ff; }
.chip-two { bottom: 17%; left: -2%; transform: rotate(2deg); }
.chip-two .mini-dot { width: 6px; height: 6px; }

.site-footer {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  color: #747f96;
  font-size: 11px;
  letter-spacing: .025em;
}

.site-footer p { margin: 0; }

.error-shell { min-height: 100vh; min-height: 100svh; }

.error-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
  padding: clamp(65px, 11vh, 120px) 0;
}

.error-copy { position: relative; z-index: 2; }

.error-code {
  position: absolute;
  z-index: -1;
  top: -130px;
  left: -20px;
  margin: 0;
  color: rgba(255, 255, 255, .025);
  font-size: clamp(13rem, 25vw, 26rem);
  font-weight: 850;
  letter-spacing: -.11em;
  line-height: 1;
  user-select: none;
}

.error-copy h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 7vw, 7.2rem);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(123, 140, 255, .22), rgba(167, 120, 255, .09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .18);
  color: #f5f5fa;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.home-link:hover,
.home-link:focus-visible {
  border-color: rgba(145, 160, 255, .48);
  background-color: rgba(123, 140, 255, .12);
  transform: translateY(-2px);
}

.home-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.home-link span { color: var(--mint); font-size: 18px; line-height: 1; }

.error-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.error-visual::before {
  content: "";
  position: absolute;
  width: min(34vw, 450px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 87, 220, .22), rgba(55, 71, 155, .07) 54%, transparent 72%);
}

.error-visual svg {
  position: relative;
  z-index: 2;
  width: min(69%, 300px);
  filter: grayscale(.2) drop-shadow(0 30px 38px rgba(1, 4, 14, .3));
  transform: rotate(-7deg);
  animation: error-float 7s ease-in-out infinite;
}

.error-orbit {
  position: absolute;
  width: min(39vw, 510px);
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, .09);
  border-radius: 50%;
  animation: turn-reverse 34s linear infinite;
}

.error-orbit::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 17%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(115, 243, 193, .8);
}

.error-spark { position: absolute; z-index: 3; }
.error-spark.spark-one { right: 11%; }
.error-spark.spark-two { left: 11%; }

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.ambient-one {
  top: 22%;
  left: 43%;
  width: 5px;
  height: 5px;
  background: #8796ff;
  box-shadow: 0 0 60px 28px rgba(123, 140, 255, .16);
}

.ambient-two {
  right: 8%;
  bottom: 8%;
  width: 5px;
  height: 5px;
  background: #8df2cc;
  box-shadow: 0 0 70px 34px rgba(115, 243, 193, .09);
}

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

@keyframes float {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-13px); }
}

@keyframes letter-rise {
  0%, 100% { transform: translateY(12px); }
  50% { transform: translateY(-9px); }
}

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes turn-reverse { to { transform: rotate(-360deg); } }

@keyframes twinkle {
  0%, 100% { opacity: .45; transform: scale(.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@keyframes error-float {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-13px); }
}

@media (max-width: 980px) {
  .site-shell { padding-inline: clamp(22px, 5vw, 48px); }
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 70px 0 55px; }
  .hero-copy { max-width: 760px; }
  h1 { max-width: 11ch; font-size: clamp(4rem, 12vw, 7.5rem); }
  .visual { min-height: 530px; }
  .orbit-outer { width: min(75vw, 540px); }
  .orbit-inner { width: min(60vw, 430px); }
  .chip-one { right: 8%; }
  .chip-two { left: 7%; }
  .error-main { grid-template-columns: 1fr; gap: 30px; }
  .error-visual { min-height: 390px; }
  .error-orbit { width: min(75vw, 510px); }
  .error-visual::before { width: min(70vw, 450px); }
}

@media (max-width: 600px) {
  .site-shell { padding: 20px 20px 22px; }
  .brand-logo { width: 157px; height: auto; }
  .status-pill { padding: 8px 11px; }
  .hero { padding: 58px 0 48px; gap: 48px; }
  .eyebrow { margin-bottom: 20px; font-size: 10px; }
  h1 { font-size: clamp(3.25rem, 15.5vw, 4.6rem); }
  .lede { margin: 26px 0; }
  .launch-note { width: 100%; }
  .visual { min-height: 440px; }
  .message-card { width: min(88%, 360px); min-height: 380px; border-radius: 23px; }
  .envelope-wrap { height: 238px; }
  .envelope { width: 190px; }
  .letter { top: 36px; width: 148px; height: 108px; }
  .orbit-outer { width: min(105vw, 470px); }
  .orbit-inner { width: min(82vw, 370px); }
  .floating-chip { padding: 10px 12px; }
  .chip-one { top: 14%; right: 0; }
  .chip-two { bottom: 13%; left: 0; }
  .site-footer { gap: 18px; align-items: flex-end; }
  .site-footer p:last-child { text-align: right; }
  .error-main { padding: 82px 0 45px; gap: 38px; }
  .error-code { top: -95px; left: -10px; font-size: 12rem; }
  .error-copy h1 { font-size: clamp(3.4rem, 15vw, 4.6rem); }
  .error-visual { min-height: 320px; }
  .error-orbit { width: min(105vw, 420px); }
  .error-visual::before { width: min(90vw, 380px); }
}

@media (max-width: 390px) {
  .brand-logo { width: 145px; }
  .status-pill { font-size: 10px; }
  .visual { min-height: 410px; }
  .message-card { min-height: 350px; }
  .envelope-wrap { height: 218px; }
  .chip-one { right: -6px; }
  .chip-two { left: -7px; }
}

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