:root {
  --navy: #0F1B2D;
  --navy-2: #13233a;
  --teal: #2EC4B6;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: radial-gradient(ellipse at 70% 30%, var(--navy-2) 0%, var(--navy) 60%);
  color: var(--white);
  font-family: "Sora", "Manrope", "Inter", Helvetica, Arial, sans-serif;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  -webkit-font-smoothing: antialiased;
}

#wind {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 27, 45, 0.9) 0%, rgba(15, 27, 45, 0.5) 45%, rgba(15, 27, 45, 0) 70%),
    radial-gradient(ellipse at center, transparent 50%, rgba(8, 14, 24, 0.6) 100%);
}

.top, .hero, .bottom { position: relative; z-index: 2; }

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 56px);
}

.logo { display: inline-flex; line-height: 0; }
.logo svg { height: 30px; width: auto; overflow: visible; }

.logo .wl {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 1.4s cubic-bezier(.6, .1, .2, 1) forwards;
}
.logo .wl2 { animation-delay: .15s; }
.logo .wl3 { animation-delay: .3s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--faint);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(15, 27, 45, 0.4);
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(46, 196, 182, .7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 196, 182, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(46, 196, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}

/* ---------- hero ---------- */
.hero {
  align-self: center;
  padding: 0 clamp(20px, 8vw, 120px);
  max-width: 1000px;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--teal);
  font-size: 13px;
  margin-bottom: 22px;
  opacity: 0;
  animation: rise .8s .4s forwards;
}

h1 {
  font-weight: 700;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  opacity: 0;
  animation: rise .9s .55s forwards;
}

h1 em {
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(90deg, var(--teal), #8ff0e6, var(--teal));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.lede {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  font-weight: 300;
  color: var(--muted);
  opacity: 0;
  animation: rise .9s .75s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- build widget ---------- */
.build {
  margin-top: 44px;
  max-width: 420px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  animation: rise .9s .95s forwards;
}

.build-head {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

#pct { color: var(--teal); }

.bar {
  height: 3px;
  background: var(--faint);
  border-radius: 3px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(46, 196, 182, .4), var(--teal));
  box-shadow: 0 0 12px var(--teal);
  transition: width 1.2s cubic-bezier(.3, .7, .2, 1);
}

#log {
  display: block;
  margin-top: 12px;
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#log::after {
  content: "▍";
  color: var(--teal);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- footer ---------- */
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 56px);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: .04em;
}

@media (hover: none), (max-width: 560px) { .hint { display: none; } }

@media (max-width: 560px) {
  .logo svg { height: 24px; }
  .status { font-size: 10px; padding: 6px 10px; }
  .vignette {
    background: linear-gradient(180deg, rgba(15, 27, 45, 0.3), rgba(15, 27, 45, 0.75) 50%, rgba(15, 27, 45, 0.3));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eyebrow, h1, .lede, .build { opacity: 1; }
  .logo .wl { stroke-dashoffset: 0; }
}
