:root {
  --bg: #02050a;
  --white: #f4f7fc;
  --muted: #798494;
  --blue: #0879ff;
  --ice: #8dc8ff;
  --line: rgba(120, 174, 244, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--white);
  font-family: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { color: white; background: var(--blue); }

.loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #010307;
  transition: opacity 0.65s var(--ease), visibility 0.65s;
}

.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader img { width: 66px; filter: drop-shadow(0 0 24px rgba(8, 121, 255, 0.5)); animation: loaderFloat 1.4s ease-in-out infinite; }
.loader span { color: #637085; font-size: 8px; letter-spacing: 0.3em; }
.loader-line { width: 150px; height: 1px; overflow: hidden; background: rgba(255,255,255,0.1); }
.loader-line i { display: block; width: 100%; height: 100%; background: var(--blue); box-shadow: 0 0 12px var(--blue); transform-origin: left; animation: load 1.1s var(--ease) both; }

@keyframes loaderFloat { 50% { transform: translateY(-7px); } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

#particle-field,
.grid-field,
.noise,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#particle-field { z-index: 0; opacity: 0.8; }

.grid-field {
  z-index: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(72, 128, 206, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 128, 206, 0.08) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at 76% 48%, black, transparent 57%);
}

.noise {
  z-index: 50;
  opacity: 0.06;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-glow {
  z-index: 1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(6, 105, 255, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity 0.35s;
}

.top-beam {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, #0879ff, #a6d7ff, transparent);
  box-shadow: 0 0 14px #0879ff;
  animation: topBeam 5s ease-in-out infinite alternate;
}

@keyframes topBeam { to { width: 70%; opacity: 0.5; } }

.launch-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 104px 1fr 72px;
  width: min(1760px, calc(100vw - 8vw));
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-icon { display: grid; width: 46px; height: 46px; overflow: hidden; place-items: center; border-radius: 12px; box-shadow: 0 0 28px rgba(8,121,255,0.2); }
.brand-icon img { width: 53px; max-width: none; }
.brand > span:last-child { font-size: 20px; font-weight: 640; letter-spacing: 0.01em; }
.brand b { color: #4b9dff; font-weight: 640; }

.launch-code { display: flex; align-items: center; gap: 13px; color: #768399; font-size: 8px; letter-spacing: 0.22em; }
.launch-code > i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(8,121,255,0.1), 0 0 14px var(--blue); animation: pulse 2s ease-out infinite; }
.launch-code b { padding: 9px 12px; border: 1px solid rgba(61,149,255,0.32); border-radius: 30px; color: #8bc5ff; font-size: 8px; font-weight: 600; background: rgba(5,68,151,0.12); }

@keyframes pulse { 70% { box-shadow: 0 0 0 11px transparent, 0 0 18px var(--blue); } }

.hero {
  display: grid;
  grid-template-columns: 51% 49%;
  min-height: 0;
}

.hero-copy { align-self: center; padding: 2vh 2.5vw 2vh 0; }

.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 3.2vh; color: #718097; font-size: 9px; font-weight: 600; letter-spacing: 0.28em; }
.eyebrow i { width: 29px; height: 1px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

h1 { margin: 0; font-size: clamp(80px, 8vw, 150px); font-weight: 350; line-height: 0.92; letter-spacing: -0.072em; }
.title-mask { display: block; overflow: hidden; padding: 0 0.08em 0.04em 0; }
.title-mask b { display: block; font-weight: inherit; transform: translateY(110%); animation: titleIn 1.15s 1.05s var(--ease) forwards; }
.title-mask:nth-child(2) b { animation-delay: 1.18s; }
.title-mask.accent { color: transparent; background: linear-gradient(90deg, #0879ff 0%, #73b7ff 70%, #d9edff 110%); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 0 25px rgba(8,121,255,0.22)); }

@keyframes titleIn { to { transform: translateY(0); } }

.message { margin: 3.7vh 0 0; color: #a2adba; font-size: clamp(15px, 1.2vw, 20px); letter-spacing: 0.01em; }

.status { display: flex; align-items: center; gap: 13px; width: max-content; margin-top: 4.3vh; padding: 10px 14px 10px 10px; border: 1px solid rgba(86,154,242,0.2); border-radius: 100px; background: rgba(5,29,65,0.2); backdrop-filter: blur(12px); }
.status-pulse { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(8,121,255,0.14); }
.status-pulse i { width: 6px; height: 6px; border-radius: 50%; background: #62b2ff; box-shadow: 0 0 11px #0879ff; animation: pulseDot 1.6s ease-in-out infinite; }
.status p { margin: 0; color: #7b899d; font-size: 8px; letter-spacing: 0.19em; }
.status-bars { display: flex; align-items: end; gap: 3px; height: 14px; margin-left: 8px; }
.status-bars i { display: block; width: 2px; height: 4px; background: #247fdc; animation: bars 1.2s ease-in-out infinite alternate; }
.status-bars i:nth-child(2) { height: 8px; animation-delay: -0.5s; }
.status-bars i:nth-child(3) { height: 13px; animation-delay: -0.9s; }
.status-bars i:nth-child(4) { height: 7px; animation-delay: -0.2s; }
.status-bars i:nth-child(5) { height: 10px; animation-delay: -0.7s; }

@keyframes pulseDot { 50% { opacity: 0.35; transform: scale(0.65); } }
@keyframes bars { to { height: 13px; opacity: 0.35; } }

.hero-visual { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; perspective: 1100px; }
.visual-stage { position: relative; width: min(41vw, 720px); aspect-ratio: 1; transform-style: preserve-3d; transition: transform 0.35s ease-out; }
.stage-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(8,89,213,0.45), rgba(5,40,97,0.1) 47%, transparent 70%); filter: blur(32px); animation: breathe 4s ease-in-out infinite; }

@keyframes breathe { 50% { opacity: 0.6; transform: scale(1.09); } }

.portal {
  position: absolute;
  z-index: 4;
  inset: 16%;
  overflow: hidden;
  border: 1px solid rgba(89,173,255,0.9);
  border-radius: 29% 8% 28% 8%;
  background: radial-gradient(circle at 52% 60%, rgba(7,81,186,0.25), transparent 55%), linear-gradient(145deg, rgba(15,54,111,0.55), rgba(1,7,17,0.88));
  box-shadow: inset 0 0 50px rgba(15,96,225,0.22), 0 0 7px #278dff, 0 0 45px rgba(3,101,236,0.28), 0 50px 100px rgba(0,0,0,0.55);
  transform: rotateY(-4deg) rotateX(2deg);
  transform-style: preserve-3d;
}

.portal::before { position: absolute; z-index: 5; inset: 0; content: ""; background: linear-gradient(112deg, rgba(255,255,255,0.1), transparent 28%, transparent 72%, rgba(39,131,255,0.08)); pointer-events: none; }
.portal::after { position: absolute; z-index: 8; right: 12%; bottom: -1px; left: 12%; height: 2px; content: ""; background: #81c2ff; box-shadow: 0 0 25px 6px #0879ff; animation: edge 3.5s ease-in-out infinite; }

@keyframes edge { 50% { right: 38%; left: 38%; opacity: 0.55; } }

.portal-grid { position: absolute; inset: 0; opacity: 0.17; background-image: linear-gradient(rgba(100,172,255,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(100,172,255,0.18) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.scan { position: absolute; z-index: 9; top: -15%; right: 0; left: 0; height: 14%; background: linear-gradient(to bottom, transparent, rgba(68,158,255,0.27), transparent); animation: scan 4.7s linear infinite; }
@keyframes scan { to { top: 110%; } }

.corner { position: absolute; z-index: 12; width: 21px; height: 21px; border-color: rgba(201,230,255,0.9); border-style: solid; }
.top-left { top: 18px; left: 18px; border-width: 1px 0 0 1px; }
.top-right { top: 18px; right: 18px; border-width: 1px 1px 0 0; }
.bottom-left { bottom: 18px; left: 18px; border-width: 0 0 1px 1px; }
.bottom-right { right: 18px; bottom: 18px; border-width: 0 1px 1px 0; }

.logo-main,
.logo-copy { position: absolute; top: 50%; left: 50%; width: 70%; transform: translate(-50%,-50%); }
.logo-main { z-index: 7; filter: drop-shadow(0 0 14px rgba(85,170,255,0.6)) drop-shadow(0 25px 25px rgba(0,0,0,0.65)); animation: logoFloat 4.6s ease-in-out infinite; }
.logo-main::after { position: absolute; inset: 0; content: ""; opacity: 0.5; background: linear-gradient(105deg, transparent 30%, white 49%, transparent 66%); mix-blend-mode: overlay; mask: url("assets/wjs-mark.png") center / contain no-repeat; animation: shine 4s ease-in-out infinite; }
.logo-copy { z-index: 5; opacity: 0.19; filter: grayscale(1) brightness(2) drop-shadow(0 0 8px #0879ff); }
.copy-left { transform: translate(-63%,-46%) scale(0.92); animation: echoLeft 4.6s ease-in-out infinite; }
.copy-right { transform: translate(-38%,-54%) scale(0.96); animation: echoRight 4.6s ease-in-out infinite; }

@keyframes logoFloat { 50% { transform: translate(-50%,-53%) rotateY(-4deg); } }
@keyframes echoLeft { 50% { transform: translate(-66%,-43%) scale(0.92); opacity: 0.3; } }
@keyframes echoRight { 50% { transform: translate(-35%,-56%) scale(0.96); opacity: 0.1; } }
@keyframes shine { 0%,20% { transform: translateX(-80%); opacity: 0; } 48% { opacity: 0.55; } 80%,100% { transform: translateX(80%); opacity: 0; } }

.orbit { position: absolute; z-index: 2; border: 1px solid rgba(69,148,244,0.24); border-radius: 50%; }
.orbit-a { inset: 3%; animation: rotate 20s linear infinite; }
.orbit-b { inset: 9%; border-style: dashed; opacity: 0.6; animation: rotate 28s linear reverse infinite; }
.orbit-c { inset: 0 37%; transform: rotate(66deg); }
.orbit i { position: absolute; top: 48%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #a8d7ff; box-shadow: 0 0 14px 4px #0879ff; }
.orbit-b i { top: 15%; right: 10%; left: auto; }
.radar { position: absolute; z-index: 1; inset: 1%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(10,104,244,0.19), transparent 13%, transparent 100%); mask: radial-gradient(circle, transparent 0 48%, black 49% 49.5%, transparent 50.5%); animation: rotate 7s linear infinite; }

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

.coordinate { position: absolute; z-index: 10; color: #526077; font-size: 7px; letter-spacing: 0.2em; }
.coordinate b { margin-left: 12px; color: #76b9ff; font-size: 11px; }
.coordinate-top { top: 18%; right: 1%; }
.coordinate-side { top: 50%; right: -3%; transform: rotate(90deg); }
.coordinate-bottom { bottom: 16%; left: 1%; }

.bottom-rail { display: grid; grid-template-columns: 1fr minmax(350px, 40%) 1fr; align-items: center; gap: 28px; border-top: 1px solid var(--line); }
.bottom-rail > p { margin: 0; color: #4a5669; font-size: 7px; letter-spacing: 0.23em; }
.bottom-rail > p:last-child { justify-self: end; }
.sequence { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }
.sequence span,
.sequence strong { color: #526077; font-size: 7px; font-weight: 500; letter-spacing: 0.18em; white-space: nowrap; }
.sequence strong { color: #367fdb; }
.sequence-line { position: relative; height: 1px; overflow: visible; background: rgba(255,255,255,0.1); }
.sequence-line i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #0879ff); animation: progress 3s ease-in-out infinite alternate; }
.sequence-line b { position: absolute; top: 50%; left: 38%; width: 6px; height: 6px; border-radius: 50%; background: #89c7ff; box-shadow: 0 0 10px #0879ff; transform: translate(-50%,-50%); animation: progressDot 3s ease-in-out infinite alternate; }
@keyframes progress { to { width: 88%; } }
@keyframes progressDot { to { left: 86%; } }

.reveal { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .launch-page { width: calc(100vw - 48px); grid-template-rows: 88px 1fr 62px; }
  .hero { grid-template-columns: 50% 50%; }
  h1 { font-size: clamp(70px, 9vw, 100px); }
  .visual-stage { width: 49vw; }
  .bottom-rail { grid-template-columns: 1fr 1fr; }
  .sequence { display: none; }
}

@media (max-width: 700px) {
  .launch-page { width: calc(100vw - 36px); grid-template-rows: 76px 1fr 50px; }
  .brand-icon { width: 38px; height: 38px; border-radius: 9px; }
  .brand-icon img { width: 44px; }
  .brand > span:last-child { font-size: 16px; }
  .launch-code span { display: none; }
  .launch-code { gap: 9px; }
  .launch-code b { padding: 8px 10px; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero-copy { z-index: 5; align-self: end; padding: 4vh 0 0; }
  .eyebrow { margin-bottom: 2.2vh; font-size: 7px; letter-spacing: 0.2em; }
  .eyebrow i { width: 20px; }
  h1 { font-size: clamp(58px, 18vw, 82px); line-height: 0.84; }
  .message { margin-top: 2.5vh; font-size: 14px; }
  .status { margin-top: 2.5vh; padding-top: 7px; padding-bottom: 7px; }
  .status-pulse { width: 26px; height: 26px; }

  .hero-visual { margin-top: -2vh; }
  .visual-stage { width: min(92vw, 470px); }
  .coordinate-top { top: 14%; right: 0; }
  .coordinate-side { display: none; }
  .coordinate-bottom { bottom: 13%; }
  .portal { inset: 15%; }

  .bottom-rail { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bottom-rail > p { font-size: 6px; letter-spacing: 0.15em; }
  #particle-field { opacity: 0.58; }
  .noise { opacity: 0.04; }
  .status { backdrop-filter: none; }
}

@media (max-height: 700px) and (min-width: 701px) {
  .launch-page { grid-template-rows: 80px 1fr 55px; }
  h1 { font-size: clamp(68px, 7.4vw, 116px); }
  .eyebrow { margin-bottom: 2vh; }
  .message { margin-top: 2.6vh; }
  .status { margin-top: 3vh; }
  .visual-stage { width: min(36vw, 570px); }
}

@media (max-height: 780px) and (max-width: 700px) {
  .launch-page { grid-template-rows: 66px 1fr 42px; }
  .hero-copy { padding-top: 2vh; }
  h1 { font-size: clamp(51px, 15vw, 66px); }
  .status { margin-top: 1.8vh; }
  .visual-stage { width: min(75vw, 380px); }
  .coordinate { display: none; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .launch-page {
    width: calc(100vw - max(48px, calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px))));
    grid-template-rows: 58px 1fr 38px;
  }

  .brand-icon { width: 34px; height: 34px; border-radius: 8px; }
  .brand-icon img { width: 40px; }
  .brand > span:last-child { font-size: 15px; }
  .launch-code span { display: none; }
  .launch-code b { padding: 7px 10px; }

  .hero { grid-template-columns: 54% 46%; grid-template-rows: 1fr; }
  .hero-copy { align-self: center; padding: 0 2vw 0 0; }
  .eyebrow { margin-bottom: 10px; font-size: 7px; }
  h1 { font-size: clamp(48px, 8vw, 70px); line-height: 0.84; }
  .message { margin-top: 12px; font-size: 12px; }
  .status { margin-top: 13px; padding: 5px 10px 5px 6px; }
  .status-pulse { width: 24px; height: 24px; }
  .status p { font-size: 7px; }

  .hero-visual { margin: 0; }
  .visual-stage { width: min(54vh, 38vw); }
  .coordinate { display: none; }
  .bottom-rail > p { font-size: 6px; }
}

@media (pointer: coarse) { .cursor-glow { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .title-mask b, .reveal { opacity: 1; transform: none; }
}
