:root {
  color-scheme: dark;
  --bg: #08080c;
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.55);
  --subtle: rgba(242, 242, 242, 0.32);
  --accent: #c4b5fd;
  --accent-hot: #a78bfa;
  --accent-soft: rgba(196, 181, 253, 0.12);
  --ink: #111;
  --glass-fill: rgba(255, 255, 255, 0.045);
  --glass-rim: rgba(255, 255, 255, 0.14);
  --glass-shine: rgba(255, 255, 255, 0.18);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ——— Ambient ——— */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fx-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.fx-blob-a {
  width: 520px;
  height: 520px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.22), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}

.fx-blob-b {
  width: 480px;
  height: 480px;
  bottom: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.16), transparent 70%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(3%, 4%) scale(1.08);
  }
}

.fx-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.fx-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ——— Shell ——— */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px 48px;
}

/* ——— Glass materials ——— */
.glass,
.glass-deep,
.glass-btn,
.nav {
  border: 1px solid var(--glass-rim);
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 42%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    var(--glass-fill);
  backdrop-filter: blur(28px) saturate(175%) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(175%) brightness(1.05);
  box-shadow:
    0 1px 0 var(--glass-shine) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.glass-deep {
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(167, 139, 250, 0.06) 100%
    ),
    rgba(18, 20, 18, 0.55);
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.12s var(--ease), background 0.12s var(--ease),
    box-shadow 0.12s var(--ease);
}

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

.btn.accent {
  background: var(--accent);
  color: var(--ink);
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(196, 181, 253, 0.2);
}

.btn.accent:hover {
  background: var(--accent-hot);
  box-shadow: 0 0 24px rgba(196, 181, 253, 0.28);
}

.btn.glass-btn {
  border-radius: 999px;
  padding: 9px 14px;
}

.btn.xl {
  padding: 13px 20px;
  font-size: 0.95rem;
}

.btn.disabled,
.btn.accent.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: var(--accent-soft);
}

.soon-pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.2s ease-in-out infinite;
}

/* ——— Hero ——— */
.hero {
  text-align: center;
  padding: 12px 0 36px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.viewfinder {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}

.viewfinder i {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(196, 181, 253, 0.55);
  border-style: solid;
}

.viewfinder i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}
.viewfinder i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-radius: 0 4px 0 0;
}
.viewfinder i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 4px;
}
.viewfinder i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.hero-mark {
  width: 58%;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5));
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

.hero-live {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(196, 181, 253, 0.25);
  white-space: nowrap;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px #ff3b30;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 .serif {
  background: linear-gradient(120deg, #fff 10%, var(--accent) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.lede em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ——— Ticker ——— */
.ticker {
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 28px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  animation: marquee 28s linear infinite;
}

.ticker-track span:nth-child(odd) {
  color: var(--text);
}

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

/* ——— Bento ——— */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 40px;
}

.tile {
  border-radius: var(--r);
  padding: 22px 20px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.28);
}

.tile-wide {
  grid-column: 1 / -1;
  padding: 28px 24px;
}

.tile-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.tile h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 12px;
}

.tile h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.tile p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 56ch;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.flow span {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.flow span.hi {
  color: var(--ink);
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
}

.flow em {
  font-style: normal;
  color: var(--subtle);
  font-size: 0.85rem;
}

.tile-accent {
  grid-column: 1 / -1;
  background:
    radial-gradient(ellipse 70% 100% at 0% 50%, rgba(196, 181, 253, 0.14), transparent 55%),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    rgba(20, 22, 18, 0.5);
}

.big-line {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

/* ——— Roles ——— */
.roles {
  margin-bottom: 36px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.035em;
}

.role-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 18px;
  border-radius: var(--r);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.role-row:hover {
  transform: translateX(4px);
  border-color: rgba(196, 181, 253, 0.3);
}

.role-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.role-body h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.role-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

.role-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ——— Token ——— */
.token {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 28px;
  margin-bottom: 36px;
}

.token-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.token-left img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.token-left h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.token-left p {
  color: var(--muted);
  font-size: 0.85rem;
}

.token-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.token-mid code {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.token-right {
  display: flex;
  gap: 8px;
}

/* ——— Footer ——— */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.foot-brand strong {
  color: var(--text);
}

.foot-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--subtle);
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile-wide,
  .tile-accent {
    grid-column: auto;
  }

  .token {
    grid-template-columns: 1fr;
  }

  .token-right {
    flex-wrap: wrap;
  }

  .role-row {
    grid-template-columns: 40px 1fr;
  }

  .role-tag {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav {
    border-radius: 20px;
  }
}
