:root {
  --ink: #06241c;
  --ink-soft: rgba(6, 36, 28, 0.72);
  --night: #04110e;
  --night-2: #08211b;
  --panel: rgba(8, 28, 23, 0.72);
  --mint: #9dffdf;
  --mint-2: #3ef0c4;
  --studio: #7eefd6;
  --line: rgba(157, 255, 223, 0.18);
  --white: #f3fff9;
  --shadow: 0 30px 80px rgba(4, 20, 16, 0.35);
  --font: "Outfit", sans-serif;
  --display: "Bricolage Grotesque", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--night);
  font-family: var(--font);
  font-weight: 420;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.progress {
  position: fixed;
  z-index: 40;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1d8f78, var(--mint));
  box-shadow: 0 0 16px var(--mint);
}

#night {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav, main, footer { position: relative; z-index: 1; }

.nav {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  background: rgba(244, 255, 249, 0.72);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(6, 36, 28, 0.08);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.nav.night {
  background: rgba(6, 22, 18, 0.78);
  color: var(--white);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 720;
  letter-spacing: -0.03em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(157, 255, 223, 0.7);
}
.nav nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 520;
  opacity: 0.8;
}
.nav nav a:hover { opacity: 1; background: rgba(62, 240, 196, 0.16); }
.nav-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mint);
  font-weight: 650;
}
.nav.night .nav-buy { background: var(--mint); color: var(--ink); }
.nav-buy img, .btn img, .text-link img, .join-card img, .foot-links img, .kicker img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.nav.night .nav-buy img,
.btn.ghost img,
.kicker img { filter: brightness(0); }
.menu { display: none; width: 42px; height: 42px; margin-left: auto; position: relative; }
.menu span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px;
}
.menu span:first-child { top: 16px; }
.menu span:last-child { top: 24px; }

.hero {
  position: relative;
  min-height: 100vh;
  padding: 128px 6vw 90px;
  color: var(--ink);
  background:
    radial-gradient(90% 70% at 78% 32%, #f4fff9 0%, #b9ffe8 26%, #63e6c8 58%, #147a68 100%);
  overflow: hidden;
}
#studio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.knit {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(6, 36, 28, 0.16) 1.1px, transparent 1.3px);
  background-size: 16px 11px;
  animation: knit 22s linear infinite;
  mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
  pointer-events: none;
}
.hero-grid, .wave { position: relative; z-index: 1; }
.hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(6, 36, 28, 0.1);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); display: block; }
.kicker img { filter: brightness(0); }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.2rem, 8vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}
h1 span { display: block; animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both; }
h1 span:last-child { animation-delay: 0.12s; color: #08382d; }
.lede {
  max-width: 460px;
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 650;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.dark {
  background: var(--ink);
  color: var(--mint);
  box-shadow: 0 12px 30px rgba(6, 36, 28, 0.22);
}
.btn.ghost {
  border: 1px solid rgba(6, 36, 28, 0.22);
  background: rgba(255, 255, 255, 0.35);
}
.btn.ghost img { filter: brightness(0); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out infinite;
}
.ticket {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}
.ticket div { padding: 14px 16px; }
.ticket div + div { border-left: 1px solid rgba(6, 36, 28, 0.08); }
.ticket dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.ticket dd { margin: 4px 0 0; font-weight: 650; letter-spacing: -0.02em; }
.ca {
  margin-top: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.ca span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 650;
  opacity: 0.55;
}
.ca code { font-family: var(--font); font-size: 0.98rem; font-weight: 650; word-break: break-all; }
.ca em { margin-left: auto; font-style: normal; font-weight: 650; }
.steps code { color: var(--mint); font-family: var(--font); font-weight: 650; }

.portrait-wrap { position: relative; display: grid; place-items: center; min-height: 560px; }
.halo {
  position: absolute;
  width: min(460px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.85), rgba(255,255,255,0) 68%);
  filter: blur(8px);
  animation: pulse 5.5s ease-in-out infinite;
}
.orbit {
  position: absolute;
  width: min(500px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(6, 36, 28, 0.28);
  animation: spin 28s linear infinite;
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 12px rgba(6, 36, 28, 0.4);
}
.orbit::before { top: -5px; left: 50%; }
.orbit::after { bottom: 18%; right: -4px; background: #fff; }
.portrait {
  margin: 0;
  width: min(420px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow), 0 0 0 10px rgba(255,255,255,.35);
  animation: float 6s ease-in-out infinite;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.portrait-cap {
  position: absolute;
  bottom: 18px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mint);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.wave { margin: 40px -6vw -90px; height: 120px; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave path {
  fill: var(--night);
  animation: wave 7s ease-in-out infinite;
  transform-origin: center;
}

.marquee {
  background: var(--night);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--display);
  font-weight: 720;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
  color: var(--mint);
}
.marquee-track span { position: relative; }
.marquee-track span::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 42px;
  border-radius: 50%;
  background: var(--mint-2);
  box-shadow: 0 0 10px var(--mint);
  vertical-align: middle;
}

section { padding: 96px 6vw; }
.section-head { width: min(760px, 100%); margin: 0 auto 42px; }
.index {
  margin: 0 0 8px;
  color: var(--mint-2);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 650;
}
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.section-head p:last-child { margin: 14px 0 0; color: rgba(243, 255, 249, 0.72); font-size: 1.08rem; }

.about-grid, .join-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card, .join-card {
  padding: 26px 24px 28px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(157, 255, 223, 0.08), rgba(157, 255, 223, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover, .join-card:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 255, 223, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(62, 240, 196, 0.08);
}
.card-kicker, .join-card span {
  margin: 0;
  color: var(--mint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 650;
}
h3 { margin: 10px 0 8px; font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.03em; }
.card p, .steps p { margin: 0; color: rgba(243, 255, 249, 0.72); }

.pull {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(62, 240, 196, 0.14), rgba(8, 28, 23, 0.4));
  border: 1px solid var(--line);
}
.pull img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px rgba(157, 255, 223, 0.25);
  animation: float 6s ease-in-out infinite;
}
.pull p {
  margin: 0;
  font-family: var(--display);
  font-weight: 720;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.buy { position: relative; }
.steps {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 27px; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--mint-2), transparent);
  transform-origin: top;
  animation: grow 2.4s ease both;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 8px 0 28px;
}
.step-n {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--night-2);
  border: 1px solid var(--mint-2);
  color: var(--mint);
  font-family: var(--display);
  font-weight: 720;
  box-shadow: 0 0 24px rgba(62, 240, 196, 0.18);
  position: relative;
  z-index: 1;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--mint);
  font-weight: 650;
}
.text-link img { filter: none; }

.chart { padding-top: 40px; }
.frame {
  width: min(1180px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #071612;
  position: relative;
  box-shadow: 0 0 0 1px rgba(157, 255, 223, 0.05), 0 30px 80px rgba(0,0,0,.35);
}
.frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 40%, var(--mint) 50%, transparent 60%);
  animation: spin 8s linear infinite;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.frame-bar a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-weight: 520;
}
.frame-bar img { width: 16px; height: 16px; }
.live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-2);
  box-shadow: 0 0 0 0 rgba(62, 240, 196, 0.7);
  animation: ping 1.8s ease-out infinite;
}
.frame iframe { display: block; width: 100%; height: min(640px, 70vh); border: 0; background: #0b1210; }

.banner {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  aspect-ratio: 3 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 40px rgba(62, 240, 196, 0.08);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 16s ease-in-out infinite alternate;
}
.join-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.join-card img { width: 28px; height: 28px; }
.join-card em {
  margin-top: auto;
  font-style: normal;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-weight: 720;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 6vw 40px;
  border-top: 1px solid var(--line);
  color: rgba(243, 255, 249, 0.7);
}
footer p { margin: 0; }
.foot-links { display: flex; gap: 8px; }
.foot-links a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 0.25s ease, transform 0.25s ease;
}
.foot-links a:hover { background: rgba(157, 255, 223, 0.12); transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(24px); animation: reveal 0.8s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: 0.8; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
@keyframes knit { to { background-position: 160px 110px; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes wave { 50% { transform: scaleY(1.15) translateY(4px); } }
@keyframes drift { to { transform: scale(1.06); } }
@keyframes ping {
  70% { box-shadow: 0 0 0 10px rgba(62, 240, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 240, 196, 0); }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .menu { display: block; }
  .nav nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
    background: rgba(6, 22, 18, 0.94);
    color: var(--white);
    border: 1px solid var(--line);
  }
  .nav nav.open { display: flex; }
  .nav-buy { display: none; }
  .hero-grid, .about-grid, .join-grid, .ticket { grid-template-columns: 1fr; }
  .ticket div + div { border-left: 0; border-top: 1px solid rgba(6, 36, 28, 0.08); }
  .portrait-wrap { min-height: 0; }
  h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  footer { flex-direction: column; align-items: flex-start; }
  .frame iframe { height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
