:root {
  --bg: #07070d;
  --ink: #eeeef6;
  --mute: #a7a9bf;
  --dim: #6c6f88;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --mint: #5eead4;
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --horizon: 76vh;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- scene ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.haze {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 42% 34% at 50% 44%, rgba(76,52,140,.30), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(30,24,64,.55), transparent 75%),
    radial-gradient(ellipse 60% 30% at 50% var(--horizon), rgba(139,92,246,.12), transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: .75; transform: scale(1.04); } }

.floor {
  position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0;
  perspective: 420px; perspective-origin: 50% 0;
  overflow: hidden;
}
.grid {
  position: absolute; left: -60%; right: -60%; top: 0; height: 220%;
  background-image:
    linear-gradient(rgba(139,92,246,.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.20) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotateX(72deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 100%);
  animation: run 3.2s linear infinite;
}
@keyframes run { to { background-position: 0 80px, 0 0; } }

/* grid rising above the horizon, faint, like the mockup */
.floor::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,7,13,.85), transparent 30%);
}
.horizon {
  position: absolute; left: 0; right: 0; top: var(--horizon); height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent 4%, rgba(34,211,238,.55) 25%, rgba(139,92,246,.8) 50%, rgba(236,72,153,.55) 75%, transparent 96%);
  box-shadow: 0 0 18px 1px rgba(139,92,246,.45), 0 0 60px 4px rgba(139,92,246,.15);
  animation: hum 4s ease-in-out infinite alternate;
}
@keyframes hum { from { opacity: .7; } to { opacity: 1; } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }

/* ---------- corners ---------- */
.top, .bottom {
  position: fixed; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4vw; font-family: var(--mono);
}
.top { top: 0; height: 110px; }
.bottom { bottom: 0; height: 96px; font-size: .72rem; letter-spacing: .14em; color: var(--dim); }
.brand { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: 1.05rem; letter-spacing: .2em; }
.mark { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(34,211,238,.35)); }
.status { display: flex; align-items: center; gap: 12px; font-size: .82rem; letter-spacing: .14em; color: #c9cbe0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- center ---------- */
.center {
  position: relative; z-index: 4; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 16px 6vh;
}
.eyebrow {
  font-family: var(--mono); font-size: clamp(.62rem, 1vw, .82rem); letter-spacing: .42em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 3.2vh; padding-left: .42em;
}
.wordmark {
  font-weight: 700; line-height: .82; letter-spacing: -.075em;
  font-size: clamp(4.4rem, 15.5vw, 15rem);
  display: flex; align-items: flex-end; padding-right: .06em;
}
.vibe {
  background: linear-gradient(180deg, #ffffff 0%, #ecebf6 60%, #d9d6ee 100%);
  padding-right: .1em; margin-right: -.1em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(180,170,255,.10));
}
.num {
  position: relative; margin-left: -.02em;
  padding-right: .14em; margin-right: -.14em;
  background: linear-gradient(100deg, #67e8f9 0%, #93c5fd 30%, #c4b5fd 62%, #f0abfc 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(139,92,246,.45)) drop-shadow(0 0 60px rgba(34,211,238,.18));
  animation: flow 7s ease-in-out infinite alternate;
}
@keyframes flow { to { background-position: 100% 0; } }
.under {
  position: absolute; left: 8%; right: 12%; bottom: -.16em; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--violet) 70%, transparent);
  box-shadow: 0 0 12px rgba(34,211,238,.6);
  transform-origin: left; transform: scaleX(0);
  animation: draw 1.4s 1.2s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }
.tagline {
  font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 2.1rem); letter-spacing: -.01em;
  color: #dcdcea; margin-top: 7vh;
}
.soon {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 5.5vh;
  font-family: var(--mono); font-size: .86rem; letter-spacing: .16em; color: #c9cbe0;
  padding: 8px 4px; background: none; border: 0; cursor: pointer;
}
.dash { width: 32px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 8px var(--cyan); transition: width .4s ease; }
.soon-txt { position: relative; display: inline-block; transition: color .3s; }
.soon:hover .dash { width: 52px; }
.soon:hover .soon-txt { color: var(--cyan); }

/* entrance */
.top, .eyebrow, .wordmark, .tagline, .soon, .bottom { opacity: 0; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.eyebrow { animation-delay: .25s; }
.wordmark { animation-delay: .45s; animation-duration: 1.4s; }
.tagline { animation-delay: .9s; }
.soon { animation-delay: 1.15s; }
.top, .bottom { animation-delay: 1.3s; animation-name: fade; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- contact modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
  background: rgba(4,4,10,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s ease;
}
.modal.open { opacity: 1; }
.modal[hidden] { display: none; }
.panel {
  position: relative; width: 100%; max-width: 560px; margin: auto;
  padding: 40px 40px 34px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(22,20,40,.92), rgba(10,10,20,.95));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 40px 120px -30px rgba(139,92,246,.55), 0 0 0 1px rgba(34,211,238,.05);
  transform: translateY(16px) scale(.98); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.modal.open .panel { transform: none; }
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink)); opacity: .4;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--mute);
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: color .2s, background .2s;
}
.close:hover { color: var(--ink); background: rgba(255,255,255,.09); }
.panel-eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--cyan); margin-bottom: 12px; }
.panel h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.panel-sub { color: var(--mute); margin: 10px 0 26px; font-size: .98rem; }
#contactForm { display: flex; flex-direction: column; gap: 16px; }
#contactForm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contactForm label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.opt { text-transform: none; letter-spacing: .02em; color: #4d5068; }
#contactForm input, #contactForm textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
#contactForm textarea { resize: vertical; min-height: 120px; }
#contactForm input:focus, #contactForm textarea:focus {
  border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.04); box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}
#contactForm .bad { border-color: rgba(236,72,153,.7); box-shadow: 0 0 0 3px rgba(236,72,153,.12); }
#contactForm[hidden], .sent[hidden] { display: none; }
.panel.done > .panel-eyebrow, .panel.done > #contactTitle, .panel.done > .panel-sub { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.msg { font-family: var(--mono); font-size: .76rem; color: var(--pink); }
.send {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  font: 600 1rem var(--sans); color: #0a0a12; padding: 13px 24px; border-radius: 11px;
  background: linear-gradient(100deg, #67e8f9, #a78bfa 55%, #f0abfc);
  box-shadow: 0 10px 36px -10px rgba(139,92,246,.7), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.send:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(236,72,153,.6); }
.send:disabled { opacity: .55; cursor: wait; transform: none; }
.send.ghost { background: rgba(255,255,255,.05); color: var(--ink); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.sent { text-align: center; padding: 10px 0 4px; }
.sent .panel-sub { margin-bottom: 24px; }
.check {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; color: var(--mint); border: 1px solid rgba(94,234,212,.45);
  box-shadow: 0 0 30px rgba(94,234,212,.25), inset 0 0 20px rgba(94,234,212,.08);
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  :root { --horizon: 78vh; }
  .top { height: 80px; padding: 0 16px; }
  .bottom { height: 64px; padding: 0 16px; font-size: .6rem; letter-spacing: .1em; }
  .brand { gap: 12px; font-size: .9rem; }
  .mark { width: 30px; height: 30px; }
  .status { font-size: .68rem; gap: 8px; }
  .eyebrow { letter-spacing: .26em; line-height: 1.9; max-width: 22em; }
  .wordmark { font-size: 21vw; }
  .tagline { margin-top: 5vh; }
  .grid { background-size: 56px 56px; }
  .panel { padding: 34px 22px 26px; }
  .panel h2 { font-size: 1.55rem; }
  #contactForm .row { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .send { justify-content: center; }
}
@media (max-height: 560px) {
  .top { height: 64px; } .bottom { height: 48px; }
  .tagline { margin-top: 4vh; } .soon { margin-top: 3vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .top, .eyebrow, .wordmark, .tagline, .soon, .bottom { opacity: 1; }
  .under { transform: none; }
}
