:root {
  color-scheme: dark;
  --bg: #080a10;
  --ink: #f4f6f2;
  --muted: #858b9c;
  --mint: #a8ffd4;
  --blue: #74baff;
  --violet: #9388ff;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Space Grotesk", "Arial", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(26, 39, 61, .34) 0%, rgba(8, 10, 16, 0) 46%),
    var(--bg);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  width: min(100% - 88px, 1600px);
  margin: 0 auto;
}

.ambient, .grid-overlay, .noise-overlay, .pointer-glow { position: fixed; pointer-events: none; }
.ambient { z-index: 0; width: 44vw; height: 44vw; min-width: 420px; min-height: 420px; border-radius: 50%; filter: blur(100px); opacity: .15; }
.ambient-one { top: 14%; left: 10%; background: #384dff; animation: drift-one 18s ease-in-out infinite alternate; }
.ambient-two { right: 7%; bottom: 4%; background: #1cbf9d; opacity: .105; animation: drift-two 21s ease-in-out infinite alternate; }
.grid-overlay {
  z-index: 0;
  inset: 0;
  opacity: .2;
  background-image: linear-gradient(rgba(148, 167, 190, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 167, 190, .075) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 76%);
}
.noise-overlay {
  z-index: 3;
  inset: 0;
  opacity: .035;
  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='.6'/%3E%3C/svg%3E");
}
.pointer-glow {
  z-index: 0;
  top: var(--pointer-y, 45%);
  left: var(--pointer-x, 50%);
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 151, 255, .075), transparent 68%);
  transition: top .25s ease-out, left .25s ease-out;
}

.topbar, .footer { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; }
.topbar { padding-top: 34px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -.075em; }
.brand-dot { color: var(--mint); }
.brand-symbol { display: flex; align-items: flex-end; gap: 2px; width: 19px; height: 19px; padding: 2px; border: 1px solid rgba(210, 255, 230, .42); border-radius: 6px; transform: rotate(-8deg); }
.brand-symbol i { display: block; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--mint), #6d9cff); }
.brand-symbol i:nth-child(1) { height: 6px; }
.brand-symbol i:nth-child(2) { height: 11px; }
.brand-symbol i:nth-child(3) { height: 8px; }
.status { display: inline-flex; align-items: center; gap: 9px; color: #a8adbb; font: 9px var(--mono); letter-spacing: .15em; }
.status-light { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(168, 255, 212, .9); animation: pulse 2.2s ease-in-out infinite; }

.hero { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 620px; padding: 36px 0 48px; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 13px; color: #8992a5; font: 9px var(--mono); letter-spacing: .24em; }
.eyebrow-line { width: 25px; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 255, 212, .62)); }
.eyebrow-line:last-child { transform: rotate(180deg); }

.art-stage { position: relative; display: grid; place-items: center; width: min(620px, 78vw); height: 370px; margin: 2px 0 -2px; isolation: isolate; perspective: 900px; }
.halo { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(113, 151, 255, .22), rgba(67, 117, 160, .055) 44%, transparent 70%); filter: blur(15px); }
.halo-back { transform: translateY(13px) scale(1.1); }
.orbit { position: absolute; border: 1px solid rgba(165, 197, 224, .2); border-radius: 50%; transform-style: preserve-3d; }
.orbit-one { width: 500px; height: 174px; transform: rotate(-24deg) rotateX(59deg); box-shadow: 0 0 24px rgba(97, 167, 255, .045); }
.orbit-two { width: 440px; height: 218px; transform: rotate(31deg) rotateX(67deg); border-color: rgba(154, 255, 217, .2); }
.orbit-three { width: 342px; height: 342px; border-color: rgba(166, 181, 255, .12); transform: rotateX(69deg) rotateZ(-18deg); }
.orbit-one::before, .orbit-two::before { position: absolute; inset: -1px; border-radius: inherit; content: ""; background: conic-gradient(from 45deg, transparent 0 27%, rgba(164, 255, 213, .8) 32%, transparent 37% 67%, rgba(113, 173, 255, .6) 73%, transparent 80%); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; padding: 1px; opacity: .8; }
.orbit-node { position: absolute; display: block; width: 7px; height: 7px; border-radius: 50%; background: #c5ffe0; box-shadow: 0 0 16px 4px rgba(145, 255, 212, .55); }
.node-one { top: 12%; left: 19%; }
.node-two { right: 17%; bottom: 12%; width: 5px; height: 5px; background: #98baff; box-shadow: 0 0 15px 4px rgba(119, 167, 255, .55); }
.cube-wrap { position: relative; z-index: 2; width: 280px; transform: translateY(-4px); animation: cube-float 6s ease-in-out infinite; filter: drop-shadow(0 22px 38px rgba(41, 59, 129, .24)); }
.cube { display: block; width: 100%; overflow: visible; }
.floor-glow { position: absolute; bottom: 43px; width: 210px; height: 26px; border-radius: 50%; background: rgba(91, 150, 255, .24); filter: blur(24px); transform: rotate(-5deg); }
.spark { position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: #d5ffe6; box-shadow: 0 0 13px 3px rgba(173, 255, 222, .65); }
.spark-a { top: 20%; left: 23%; }
.spark-b { top: 27%; right: 21%; width: 3px; height: 3px; background: #a9c4ff; box-shadow: 0 0 12px 3px rgba(142, 178, 255, .65); }
.spark-c { bottom: 20%; left: 30%; width: 2px; height: 2px; }
.pixel { position: absolute; width: 7px; height: 7px; border: 1px solid rgba(189, 223, 255, .55); transform: rotate(45deg); opacity: .7; }
.pixel-a { top: 25%; right: 28%; }
.pixel-b { bottom: 24%; right: 26%; width: 5px; height: 5px; border-color: rgba(168, 255, 212, .65); }
.pixel-c { top: 40%; left: 18%; width: 4px; height: 4px; opacity: .4; }

h1 { position: relative; z-index: 2; margin: -1px 0 0; font-size: clamp(64px, 9.3vw, 118px); line-height: .86; font-weight: 600; letter-spacing: -.105em; text-indent: -.105em; color: #f4f7f3; text-shadow: 0 3px 50px rgba(181, 204, 255, .08); }
.title-dot { color: var(--mint); }
.subtitle { margin: 19px 0 0; color: #969eae; font-size: 13px; font-weight: 400; letter-spacing: .015em; }
.loading-mark { display: flex; gap: 5px; align-items: center; justify-content: center; margin-top: 29px; }
.loading-mark span { display: block; width: 4px; height: 4px; border-radius: 1px; background: #718098; animation: loading-pulse 1.5s ease-in-out infinite; }
.loading-mark span:nth-child(2) { animation-delay: .12s; }
.loading-mark span:nth-child(3) { animation-delay: .24s; }
.loading-mark span:nth-child(4) { animation-delay: .36s; }
.loading-mark span:nth-child(5) { animation-delay: .48s; }

.footer { padding: 0 0 27px; color: #646c7c; font: 8px var(--mono); letter-spacing: .13em; }
.footer-center { position: absolute; left: 50%; transform: translateX(-50%); color: #818a9c; }
.footer-star { padding-left: 7px; color: var(--mint); font-size: 11px; vertical-align: -1px; }
.footer-right { text-align: right; }

@keyframes cube-float { 0%, 100% { transform: translateY(-4px) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes loading-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); background: var(--mint); } }
@keyframes drift-one { to { transform: translate(12vw, 8vh) scale(1.12); } }
@keyframes drift-two { to { transform: translate(-10vw, -8vh) scale(.9); } }

@media (max-width: 700px) {
  .page-shell { width: calc(100% - 40px); }
  .topbar { padding-top: 24px; }
  .brand-mark { font-size: 16px; }
  .status { font-size: 8px; letter-spacing: .1em; }
  .hero { min-height: 570px; padding: 30px 0 42px; }
  .eyebrow { gap: 9px; font-size: 8px; letter-spacing: .17em; }
  .eyebrow-line { width: 16px; }
  .art-stage { width: 100%; height: 310px; margin-top: 8px; }
  .orbit-one { width: 112%; height: 145px; }
  .orbit-two { width: 96%; height: 174px; }
  .orbit-three { width: 270px; height: 270px; }
  .cube-wrap { width: 235px; }
  .floor-glow { bottom: 38px; width: 170px; }
  h1 { font-size: clamp(62px, 17vw, 92px); }
  .subtitle { margin-top: 16px; font-size: 12px; }
  .footer { padding-bottom: 20px; font-size: 7px; letter-spacing: .08em; }
  .footer-center { display: none; }
}

@media (max-width: 380px) {
  .status { font-size: 7px; }
  .art-stage { height: 280px; }
  .cube-wrap { width: 210px; }
  .orbit-three { width: 240px; height: 240px; }
  .footer { font-size: 6px; }
}

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