:root {
  --void: #070708;
  --ink: #101114;
  --plate: rgba(16, 17, 20, 0.78);
  --silver: #d9dbe2;
  --paper: #f4f5f7;
  --steel: #8d929c;
  --line: rgba(255, 255, 255, 0.14);
  --warm: #cfc3b4;
  --display: "Bagel Fat One", "Fredoka", system-ui, sans-serif;
  --body: "Fredoka", "Nunito", system-ui, sans-serif;
  --mx: 50vw;
  --my: 30vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--body);
  overflow-x: hidden;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0 22px,
      rgba(255, 255, 255, 0.018) 22px 23px
    ),
    var(--void);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fog {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 42% 36% at 18% 20%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 42% at 82% 30%, rgba(207, 195, 180, 0.08), transparent 72%),
    radial-gradient(ellipse 46% 40% at 50% 100%, rgba(255, 255, 255, 0.05), transparent 70%);
  animation: fog 22s ease-in-out infinite alternate;
}

.beams {
  position: absolute;
  inset: -10%;
}

.beams i {
  position: absolute;
  top: -20%;
  width: 1px;
  height: 150%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(24deg);
  opacity: 0.35;
  filter: blur(0.3px);
  animation: beam 9s linear infinite;
}

.beams i:nth-child(1) { left: 8%; animation-duration: 11s; }
.beams i:nth-child(2) { left: 22%; animation-duration: 7.5s; animation-delay: -2s; opacity: 0.2; }
.beams i:nth-child(3) { left: 47%; width: 2px; animation-duration: 13s; animation-delay: -4s; }
.beams i:nth-child(4) { left: 63%; animation-duration: 8s; animation-delay: -1s; opacity: 0.5; }
.beams i:nth-child(5) { left: 78%; animation-duration: 10s; animation-delay: -6s; }
.beams i:nth-child(6) { left: 91%; animation-duration: 14s; animation-delay: -3s; opacity: 0.22; }

#specks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: -20%;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grain 0.45s steps(2) infinite;
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.62) 100%);
}

.cursor-light {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 68%);
  transition: left 0.18s linear, top 0.18s linear;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  background: transparent;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6d717a, #fff, #9aa0aa);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 6vw;
  background: rgba(7, 7, 8, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  animation: navIn 0.8s ease both;
}

.brand,
.nav-x,
.btn,
.text-link,
.join-card,
.steps a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-family: var(--display);
  letter-spacing: 0.02em;
  font-size: 1.35rem;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.98rem;
  color: var(--silver);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-x {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-x:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-x img,
.btn img,
.text-link img,
.steps img,
.join-card img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 36px 6vw 72px;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--warm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.eyebrow-mark {
  width: 18px;
  height: 18px;
}

.crest {
  width: min(220px, 46vw);
  margin-bottom: -8px;
  animation: crest 4.5s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.4rem, 9vw, 8.4rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.02em;
}

h1 span {
  display: block;
}

.chrome {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d5d7de 22%,
    #8e939d 46%,
    #ffffff 52%,
    #6a6f78 74%,
    #f3f4f6 100%
  );
  background-size: 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metal 7s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.symbol {
  display: inline-block;
  margin: 22px 0 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--silver);
  animation: rise 1s 0.15s ease both;
}

.tagline {
  max-width: 34rem;
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--silver);
  animation: rise 1s 0.28s ease both;
}

.ca-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 34rem);
  margin: 18px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--silver);
  font-family: var(--body);
  text-align: left;
  cursor: pointer;
  animation: rise 1s 0.34s ease both;
}

.ca-copy code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--body);
  font-size: 0.86rem;
}

.ca-label {
  flex: none;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--paper);
}

.ca-copy:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise 1s 0.4s ease both;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn::after,
.portrait .shine {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-130%);
}

.btn:hover::after,
.portrait:hover .shine {
  transform: translateX(130%);
  transition: transform 0.7s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--paper);
  color: #121316;
}

.btn-solid img {
  filter: brightness(0);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.portrait-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  animation: rise 1.1s 0.1s ease both;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 12%;
  left: 11%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
  filter: blur(10px);
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.ring-a {
  width: 118%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: dashed;
  animation: spin 36s linear infinite;
}

.ring-b {
  width: 132%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  border-color: rgba(255, 255, 255, 0.08);
  animation: spin 52s linear infinite reverse;
}

.portrait {
  position: relative;
  width: min(100%, 520px);
  margin: 0;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 6.5s ease-in-out infinite;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.02);
}

.portrait .shine {
  mix-blend-mode: screen;
  animation: sweep 5.5s ease-in-out infinite;
}

.portrait-plate {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 520px);
  margin: 14px 0 0;
  color: var(--steel);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.marquee p {
  margin: 0;
  padding: 14px 0;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--silver);
  white-space: nowrap;
}

.section {
  padding: 92px 6vw;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px 18px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
}

.index {
  margin: 0;
  color: var(--steel);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.section-lead {
  max-width: 38rem;
  margin: -8px 0 28px;
  color: var(--silver);
  font-size: 1.2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.lead p {
  margin: 0 0 16px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--silver);
}

.lead strong {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.trait-list {
  display: grid;
  gap: 14px;
}

.plate {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--plate);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14), transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.plate:hover::before {
  transform: translateX(120%);
}

.plate.reveal.in:hover {
  transform: translateY(-4px);
}

.plate h3 {
  margin: 8px 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
}

.plate p,
.steps p {
  margin: 0;
  color: var(--silver);
  line-height: 1.5;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

.steps .plate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.step-no {
  font-family: var(--display);
  color: var(--steel);
  letter-spacing: 0.12em;
}

.steps a {
  margin-top: auto;
  padding-top: 12px;
  color: var(--paper);
  font-weight: 600;
}

.steps a::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.steps a:hover::after {
  width: 28px;
}

.text-link {
  margin-left: auto;
  color: var(--silver);
  font-weight: 600;
}

.text-link:hover {
  color: var(--paper);
}

.chart-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0c0f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.chart-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.chart-frame iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  background: #0b0c0f;
}

.banner-stage {
  width: 100%;
  aspect-ratio: 3 / 1;
  margin: 0 0 22px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  background: #050506;
}

.banner-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.join-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 160px;
}

.join-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

.join-card strong {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
}

.join-card span {
  color: var(--steel);
}

.footer {
  display: grid;
  gap: 10px;
  padding: 28px 6vw 48px;
  border-top: 1px solid var(--line);
  color: var(--steel);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
}

.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
}

.footer-brand span,
.footer p {
  margin: 0;
}

.fine {
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes metal {
  0%, 100% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
}

@keyframes fog {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

@keyframes beam {
  0% { transform: rotate(24deg) translateY(-8%); opacity: 0.15; }
  50% { opacity: 0.55; }
  100% { transform: rotate(24deg) translateY(8%); opacity: 0.15; }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, 1%); }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sweep {
  0%, 62% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@keyframes navIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes crest {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)); }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .steps,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 16px;
    overflow-x: auto;
  }

  .text-link {
    margin-left: 0;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .ring-a,
  .ring-b {
    display: none;
  }

  .chart-frame iframe {
    height: 540px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding-inline: 18px;
  }

  .hero,
  .section,
  .footer {
    padding-inline: 18px;
  }

  h1 {
    font-size: 4.2rem;
  }

  .symbol {
    letter-spacing: 0.24em;
  }

  .chart-frame iframe {
    height: 460px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
