:root {
  color-scheme: dark;
  --bg: #060806;
  --panel: #101411;
  --panel-2: #171b18;
  --ink: #f5f4ed;
  --muted: #aeb6a8;
  --line: rgba(245, 244, 237, 0.14);
  --gold: #d8b765;
  --green: #9ef24a;
  --cyan: #74d7dc;
  --danger: #ff6f61;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(158, 242, 74, 0.08), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(116, 215, 220, 0.12), transparent 28%),
    linear-gradient(180deg, #060806 0%, #0b0d0b 52%, #060806 100%);
}

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

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

code {
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(158, 242, 74, 0.22);
  border-radius: 4px;
  background: rgba(158, 242, 74, 0.08);
  color: var(--green);
  font-size: 0.88em;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
  background: rgba(6, 8, 6, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  min-width: 0;
}

.brand-mark,
.avatar {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(216, 183, 101, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(216, 183, 101, 0.24), rgba(158, 242, 74, 0.1));
  color: var(--gold);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  color: rgba(245, 244, 237, 0.76);
  font-size: 0.9rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
}

.header-cta {
  justify-self: end;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(245, 244, 237, 0.22);
  border-radius: 6px;
  background: rgba(245, 244, 237, 0.06);
  font-size: 0.88rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 9rem clamp(1rem, 6vw, 5rem) 3rem;
  overflow: hidden;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.06);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 6, 0.3) 0%, rgba(6, 8, 6, 0.44) 42%, rgba(6, 8, 6, 0.9) 100%),
    linear-gradient(180deg, rgba(6, 8, 6, 0.18) 0%, rgba(6, 8, 6, 0.05) 48%, #060806 100%);
}

.hero-content {
  width: min(760px, 100%);
  margin-left: auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.15;
}

.hero-copy {
  width: min(680px, 100%);
  color: rgba(245, 244, 237, 0.82);
  font-size: clamp(1.08rem, 1.9vw, 1.46rem);
}

.hero-actions,
.password-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: #081006;
  box-shadow: 0 16px 44px rgba(158, 242, 74, 0.2);
}

.button.secondary {
  border-color: rgba(245, 244, 237, 0.22);
  background: rgba(245, 244, 237, 0.07);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin: 2rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(245, 244, 237, 0.15);
  border-radius: 8px;
  background: rgba(245, 244, 237, 0.14);
}

.hero-stats div,
.feature-card,
.proof-grid article,
.team-grid article,
.roadmap article,
.whitepaper-panel,
.terminal {
  background: rgba(16, 20, 17, 0.78);
  backdrop-filter: blur(20px);
}

.hero-stats div {
  padding: 1rem;
}

.hero-stats dt {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0d110e;
  color: rgba(245, 244, 237, 0.76);
}

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

.ticker span {
  padding: 0.9rem 2rem;
  white-space: nowrap;
}

.ticker span::before {
  content: "◆";
  margin-right: 1rem;
  color: var(--gold);
}

.section,
.feature-grid,
.console-section,
.team-band,
.roadmap-section,
.liquidity-section,
.meme-section,
.final-cta {
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 6vw, 5rem);
}

.intro {
  width: min(1120px, 100%);
}

.intro p,
.console-copy p,
.whitepaper p,
.proof p,
.final-cta h2 {
  max-width: 780px;
  color: rgba(245, 244, 237, 0.72);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.feature-card,
.proof-grid article,
.team-grid article,
.roadmap article,
.liquidity-board article,
.meme-card,
.whitepaper-panel,
.terminal {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 270px;
  padding: 1.35rem;
}

.feature-icon {
  display: inline-grid;
  min-width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(158, 242, 74, 0.28);
  border-radius: 6px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card p,
.proof-grid p,
.team-grid p,
.roadmap p,
.liquidity-board p,
.meme-heading p,
.meme-card p,
.vaporware-list p {
  color: var(--muted);
}

.console-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 183, 101, 0.1), transparent 34%),
    #0b0d0b;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.mode-tab {
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 1px solid rgba(245, 244, 237, 0.16);
  border-radius: 6px;
  background: rgba(245, 244, 237, 0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mode-tab.active {
  border-color: rgba(158, 242, 74, 0.48);
  background: rgba(158, 242, 74, 0.12);
  color: var(--green);
}

.terminal {
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 237, 0.04);
}

.terminal-bar span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--danger);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-bar strong {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

pre {
  min-height: 330px;
  margin: 0;
  padding: 1.2rem;
  overflow: auto;
  color: #c9ffd1;
  font: 0.92rem/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.proof {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.proof-grid,
.team-grid,
.roadmap {
  display: grid;
  gap: 1rem;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid article,
.team-grid article,
.roadmap article,
.liquidity-board article,
.whitepaper-panel {
  padding: 1.25rem;
}

.liquidity-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(158, 242, 74, 0.12), transparent 32%),
    linear-gradient(180deg, #080a08, #101411);
  border-bottom: 1px solid var(--line);
}

.liquidity-copy p {
  max-width: 700px;
  color: rgba(245, 244, 237, 0.72);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.liquidity-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.liquidity-board article {
  min-height: 190px;
  background: rgba(16, 20, 17, 0.82);
  box-shadow: var(--shadow);
}

.liquidity-board span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.liquidity-board strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.vaporware {
  background: #0b0d0b;
}

.vaporware-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.vaporware-list p {
  min-height: 180px;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 244, 237, 0.04);
}

.meme-section {
  background: #f5f4ed;
  color: #11140f;
}

.meme-section .section-kicker {
  color: #316b25;
}

.meme-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.meme-heading p {
  color: #4e574c;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.meme-card {
  overflow: hidden;
  background: #ffffff;
  color: #11140f;
  box-shadow: 0 20px 60px rgba(20, 25, 17, 0.12);
}

.meme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #101411;
}

.meme-card div {
  padding: 1rem;
}

.meme-card h3 {
  min-height: 2.8rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.meme-card p {
  margin: 0;
  color: #4e574c;
  font-size: 0.92rem;
}

.whitepaper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

input {
  flex: 1 1 180px;
  min-height: 3rem;
  min-width: 0;
  border: 1px solid rgba(245, 244, 237, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--ink);
  font: inherit;
  padding: 0 0.85rem;
}

.unlock-result {
  min-height: 2.6rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.unlock-result.success {
  color: var(--green);
}

.unlock-result.fail {
  color: var(--danger);
}

.team-band {
  background: #f5f4ed;
  color: #11140f;
}

.team-band .section-kicker {
  color: #316b25;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.team-grid article {
  border-color: rgba(17, 20, 15, 0.16);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(20, 25, 17, 0.12);
}

.team-grid p {
  color: #4e574c;
}

.avatar {
  margin-bottom: 1.4rem;
  background: #11140f;
  color: var(--green);
}

.roadmap-section {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 2rem;
}

.roadmap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roadmap article span {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-cta {
  min-height: 60vh;
  display: grid;
  place-items: center start;
  background:
    linear-gradient(90deg, rgba(6, 8, 6, 0.86), rgba(6, 8, 6, 0.6)),
    url("assets/hero-bapo-bear.png") center / cover;
}

.final-cta h2 {
  max-width: 980px;
  color: var(--ink);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(6, 8, 6, 0.58) 0%, rgba(6, 8, 6, 0.66) 100%),
      linear-gradient(180deg, rgba(6, 8, 6, 0.12) 0%, #060806 100%);
  }

  .feature-grid,
  .console-section,
  .proof,
  .whitepaper,
  .liquidity-section,
  .meme-heading,
  .roadmap-section {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .team-grid,
  .liquidity-board,
  .meme-grid,
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 7rem 1rem 2rem;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.5rem);
  }

  .hero-stats,
  .feature-grid,
  .proof-grid,
  .team-grid,
  .liquidity-board,
  .vaporware-list,
  .meme-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .meme-card h3 {
    min-height: 0;
  }

  .hero-actions .button,
  .password-row .button {
    width: 100%;
  }

  .brand small {
    display: none;
  }

  pre {
    min-height: 390px;
    font-size: 0.82rem;
  }
}
