:root {
  --bg: #08080a;
  --text: #f2f2f4;
  --dim: #8e8e98;
  --faint: #5c5c66;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.035);
  --rose: #ff486c;
  --red: #ff4433;
  --mint: #40d898;
  --gold: #ffc048;
  --discord: #5865f2;
  --radius: 22px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Geist, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; color: var(--text); }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(255, 72, 108, 0.13), transparent 60%),
    radial-gradient(700px 500px at 0% 40%, rgba(178, 112, 255, 0.07), transparent 60%),
    radial-gradient(800px 600px at 100% 90%, rgba(255, 68, 51, 0.07), transparent 60%),
    var(--bg);
}

/* header */
.top {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: 1160px; margin: 12px auto 0; padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { padding: 8px 14px; border-radius: 10px; color: var(--dim); font-size: 15px; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* buttons */
.btn, .discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 16px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .45s var(--spring), background .2s, box-shadow .3s, border-color .2s;
}
.btn:hover, .discord:hover { transform: translateY(-2px); }
.btn:active, .discord:active { transform: translateY(0) scale(0.98); transition-duration: .12s; }
.btn.primary { background: #f2f2f4; color: #0b0b0d; box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08); }
.btn.primary:hover { background: #fff; box-shadow: 0 10px 40px rgba(255, 255, 255, 0.16); }
.btn.glass {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn.glass:hover { background: rgba(255, 255, 255, 0.09); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 8px 30px rgba(255, 68, 51, 0.22); }
.btn.red:hover { background: #ff5a4a; box-shadow: 0 10px 40px rgba(255, 68, 51, 0.32); }
.btn.wide { width: 100%; height: 60px; justify-content: space-between; padding: 0 22px; }
.dl-meta { font-weight: 500; font-size: 14px; opacity: 0.6; }
.discord { background: var(--discord); color: #fff; }
.discord:hover { background: #6e7af6; }
.discord.sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }

/* hero */
main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hero { position: relative; padding: 84px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: 1400px; height: 980px; translate: -50% 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(ellipse 50% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 30%, #000 20%, transparent 75%);
}
.beam {
  position: absolute; z-index: -1; left: 50%; top: -140px; width: 900px; height: 820px; translate: -50% 0; pointer-events: none;
  background:
    radial-gradient(ellipse 22% 60% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 55% at 50% 10%, rgba(255, 72, 108, 0.20), transparent 70%);
  filter: blur(8px);
  animation: beam 9s ease-in-out infinite alternate;
}
@keyframes beam { from { opacity: 0.75; transform: scaleX(0.92); } to { opacity: 1; transform: scaleX(1.08); } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-hi); background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #cfcfd6; font-size: 14px; font-weight: 500;
  transition: background .2s, transform .45s var(--spring);
}
.pill:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(64, 216, 152, 0.15); animation: pulse 2.4s ease-in-out infinite; }
.pill .go { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(64, 216, 152, 0); } }

h1 { margin-top: 26px; font-size: clamp(42px, 7.4vw, 92px); overflow-wrap: anywhere; line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; }
.metal {
  background: linear-gradient(180deg, #ffffff 10%, #c4c4cc 55%, #6c6c76 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 26px auto 0; max-width: 640px; text-wrap: balance; color: var(--dim); font-size: 19px; line-height: 1.55; }
.lede b { font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .sub { font-weight: 500; opacity: 0.5; font-size: 14px; }
.fine { margin-top: 14px; color: var(--faint); font-size: 14px; }

/* hero stage: the app window, tilted back, straightens while you scroll */
.stage { position: relative; margin: 92px auto 0; max-width: 1060px; perspective: 1800px; }
.stage-glow {
  position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 72, 108, 0.22), rgba(178, 112, 255, 0.08) 60%, transparent);
  filter: blur(30px);
}
.window {
  position: relative; transform-origin: 50% 0;
  transform: rotateX(var(--rx, 16deg)) scale(var(--sc, 0.92));
  will-change: transform;
}
.window-frame {
  position: relative; border-radius: 20px; padding: 6px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.window-frame img { border-radius: 15px; width: 100%; height: auto; }
.window-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10), transparent 30%);
}
.window .peek {
  position: absolute; bottom: 100%; right: 9%; width: clamp(110px, 15%, 168px); height: auto;
  filter: drop-shadow(0 0 1.4px rgba(255, 255, 255, 0.6));
}

.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  border: 1px solid var(--line-hi);
  background: rgba(20, 20, 24, 0.72);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: bob 7s ease-in-out infinite;
}
.chip b { display: block; font-size: 15px; line-height: 1.25; }
.chip small { display: block; color: var(--dim); font-size: 13px; line-height: 1.3; }
.chip .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; }
.chip .ico svg { width: 20px; height: 20px; }
.chip .code { font: 600 15px ui-monospace, Consolas, monospace; letter-spacing: 0.16em; color: var(--text); }
.chip.c1 { left: -64px; top: -26px; }
.chip.c1 .ico { background: rgba(255, 72, 108, 0.16); color: var(--rose); }
.chip.c2 { right: -52px; top: 44%; animation-delay: -2.4s; min-width: 250px; }
.chip.c2 .ico { background: rgba(255, 68, 51, 0.16); padding: 6px; }
.chip.c2 .ico img { border-radius: 6px; }
.chip.c2 .scan { flex: 1; }
.chip .track { display: block; margin-top: 8px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.chip .track i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff7a5c); transform-origin: left; animation: scan 4.8s var(--ease) infinite; }
.chip.c3 { left: 24%; bottom: -30px; animation-delay: -4.6s; }
.chip.c3 .ico { background: rgba(64, 216, 152, 0.16); color: var(--mint); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scan { 0% { transform: scaleX(0.04); } 70%, 100% { transform: scaleX(1); } }

/* programs */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px 0 24px; }
.program {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.program::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px 220px at 20% 0%, var(--tint), transparent 70%);
}
.program.labs { --tint: rgba(255, 72, 108, 0.14); --accent: var(--rose); }
.program.it { --tint: rgba(255, 68, 51, 0.12); --accent: var(--red); }
.program > * { position: relative; }
.program-head { display: flex; align-items: center; gap: 16px; }
.program-head .logo { width: 56px; height: 56px; border-radius: 16px; background: #0c0c0e; border: 1px solid var(--line-hi); padding: 8px; }
.program h2 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.tag { color: var(--accent); font-weight: 500; font-size: 15px; }
.program-lede { margin-top: 20px; color: var(--dim); font-size: 16.5px; }
.features { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; }
.features li { position: relative; padding-left: 30px; font-size: 15.5px; color: #d4d4da; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.features li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dl { margin-top: auto; }
.dl .fine { margin-top: 10px; }
.sha { margin-top: 8px; color: var(--faint); font-size: 13px; }
.sha summary { cursor: pointer; width: fit-content; }
.sha summary:hover { color: var(--dim); }
.sha code { display: block; margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font: 12.5px/1.5 ui-monospace, Consolas, monospace; color: var(--dim); word-break: break-all; user-select: all; }
.trust { grid-column: 1 / -1; color: var(--faint); font-size: 14px; max-width: 820px; margin: 8px auto 0; text-align: center; }

/* how */
.section-title { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 32px; }
.how { padding: 80px 0 24px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass);
}
.step img {
  height: 150px; width: auto; margin: 0 auto 18px;
  filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.5));
  transition: transform .5s var(--spring);
}
.step:hover img { transform: translateY(-6px) rotate(-2deg); }
.num {
  position: absolute; top: 20px; left: 22px; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-hi);
}
.step h3 { font-size: 20px; letter-spacing: -0.01em; }
.step p { margin-top: 6px; color: var(--dim); font-size: 15.5px; }

/* presentation */
.present { padding: 80px 0 24px; }
.film {
  border-radius: 26px; overflow: hidden; border: 1px solid var(--line-hi);
  background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.02);
  aspect-ratio: 16 / 9;
}
.film video { width: 100%; height: 100%; display: block; }
.film-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.film-bar p { color: var(--dim); }
.film-bar .btn { height: 44px; padding: 0 18px; font-size: 15px; }
.gallery { margin-top: 64px; display: grid; justify-items: center; }
.tabs {
  position: relative; display: inline-flex; padding: 5px; border-radius: 16px; margin-bottom: 22px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.tabs button {
  position: relative; z-index: 1; height: 40px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: none; color: var(--dim); font: 500 15px Geist, system-ui, sans-serif; transition: color .25s;
}
.tabs button[aria-selected="true"] { color: var(--text); }
.tab-glass {
  position: absolute; top: 5px; left: 0; height: 40px; width: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform .55s var(--spring), width .55s var(--spring);
}
.shot { width: 100%; }
.shots { position: relative; aspect-ratio: 1760 / 1128; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-hi); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); background: #0c0c0e; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.shots img.on { opacity: 1; transform: none; }
.shot figcaption { margin-top: 14px; color: var(--dim); font-size: 15px; text-align: center; }

/* community */
.community {
  display: flex; align-items: center; gap: 24px; margin: 80px 0 40px; padding: 26px 30px;
  border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.08), rgba(255, 255, 255, 0.02));
}
.community .peek { height: 110px; width: auto; filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.5)); }
.community h2 { font-size: 24px; letter-spacing: -0.02em; }
.community p { color: var(--dim); }
.community .discord { margin-left: auto; }

.foot {
  max-width: 1160px; margin: 0 auto; padding: 28px 24px 40px;
  display: flex; justify-content: space-between; color: var(--faint); font-size: 14px;
  border-top: 1px solid var(--line);
}
.foot a:hover { color: var(--text); }

.programs > *, .steps > *, .community > * { min-width: 0; }

/* entrance */
.reveal { opacity: 0; transform: translateY(24px) scale(0.985); transition: opacity .8s var(--ease), transform .9s var(--spring); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .discord { margin-left: auto; }
  .hero { padding-top: 56px; }
  .stage { margin-top: 72px; }
  .chip.c1 { left: -8px; top: -30px; }
  .chip.c2 { right: -8px; top: auto; bottom: 24%; min-width: 0; }
  .chip.c3 { display: none; }
  .programs, .steps { grid-template-columns: 1fr; }
  .community { flex-direction: column; text-align: center; }
  .community .discord { margin: 0; }
}
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .top { margin: 8px 8px 0; top: 8px; }
  .cta .btn { width: 100%; }
  h1 { font-size: 44px; }
  .chip { padding: 8px 12px 8px 8px; border-radius: 14px; gap: 8px; }
  .chip .ico { width: 30px; height: 30px; border-radius: 9px; }
  .chip b { font-size: 13px; } .chip small { font-size: 11.5px; }
  .chip.c2 { display: none; }
  .window .peek { width: 96px; }
  .lede { font-size: 17px; }
  .btn.wide { padding: 0 16px; }
  .dl-meta { font-size: 13px; }
  .program { padding: 22px; }
  .film-bar { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .chip, .chip .track i, .pill .dot { animation: none; }
  .window { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
