:root {
  --black: #070807;
  --graphite: #121412;
  --graphite-2: #1a1d1a;
  --off: #f3f4f1;
  --mute: #9aa19a;
  --silver: #c6cbc4;
  --green: #00c805;
  --green-2: #14e01a;
  --green-dim: rgba(0, 200, 5, 0.14);
  --line: rgba(243, 244, 241, 0.08);
  --header: rgba(7, 8, 7, 0.82);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Times New Roman", Times, Georgia, serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--off);
  line-height: 1.5;
  min-height: 100%;
  text-rendering: optimizeLegibility;
}

main {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a.btn {
  font-family: inherit;
}

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

::selection {
  background: var(--green);
  color: #041204;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--green);
  color: #041204;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--off);
  transition: transform 160ms var(--ease), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: scale(0.97);
}

.btn-lg {
  min-height: 48px;
  padding: 0 1.25rem;
  font-size: 0.78rem;
}

.btn-buy {
  background: var(--green);
  color: #041204;
  border-color: var(--green);
}

.btn-buy:hover {
  background: var(--green-2);
}

.btn-chart,
.btn-x {
  border-color: rgba(0, 200, 5, 0.55);
  color: var(--off);
  background: rgba(0, 200, 5, 0.06);
}

.btn-tg {
  border-color: var(--line);
  color: var(--silver);
}

.btn-copy {
  border-color: rgba(0, 200, 5, 0.45);
  background: var(--graphite-2);
  min-width: 5.5rem;
}

.btn-copy.is-copied {
  background: var(--green);
  color: #041204;
  border-color: var(--green);
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 80;
  width: min(1240px, calc(100% - 20px));
  margin: 10px auto 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 8px 10px 8px 8px;
  background: var(--header);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: saturate(1.15) blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--off);
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-ticker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--green);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1rem, 3vw, 3.5rem);
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 1.25rem;
  overflow-x: clip;
}

.hero-copy {
  min-width: 0;
  padding-bottom: 0.5rem;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.35rem, 11vw, 7.1rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  animation: lineIn 0.9s var(--ease) both;
}

.hero-line:nth-child(1) { animation-delay: 0.04s; }
.hero-line:nth-child(2) { animation-delay: 0.14s; }
.hero-line:nth-child(3) { animation-delay: 0.24s; }
.hero-line:nth-child(4) { animation-delay: 0.34s; }

.hero-init {
  display: inline-block;
  width: 0.72em;
  color: var(--green);
}

.hero-symbol {
  margin: 1.1rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  color: var(--green);
}

.hero-hook {
  margin: 1.35rem 0 0;
  max-width: 26rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0.85rem 0 0;
  color: var(--mute);
  font-size: 1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6rem;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 38rem);
  isolation: isolate;
}

.hero-glow,
.hero-grid,
.hero-ticks,
.hero-up {
  position: absolute;
  pointer-events: none;
}

.hero-glow {
  inset: 18% 8% 8%;
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 200, 5, 0.28), transparent 68%);
  z-index: 0;
}

.hero-grid {
  inset: 8% 0 0;
  background-image:
    linear-gradient(rgba(0, 200, 5, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 5, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 55% 50%, #000 18%, transparent 78%);
  z-index: 0;
}

.hero-aapl-shift,
.hero-aapl-bg {
  position: absolute;
  pointer-events: none;
}

.hero-aapl-shift {
  inset: 12% -8% auto;
  z-index: 0;
}

.hero-aapl-bg {
  position: relative;
  margin: 0;
  left: auto;
  right: auto;
  top: auto;
  font-size: clamp(5rem, 22vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: rgba(243, 244, 241, 0.045);
  text-align: center;
  animation: aaplDrift 18s ease-in-out infinite alternate;
}

.hero-ticks {
  top: 6%;
  right: 7%;
  bottom: 10%;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--green) 0 7px,
    transparent 7px 26px
  );
  opacity: 0.35;
  animation: ticks 7.5s linear infinite;
  z-index: 0;
}

.hero-up {
  left: 12%;
  bottom: 14%;
  width: 2px;
  height: 38%;
  background: linear-gradient(to top, transparent, var(--green));
  opacity: 0.55;
  z-index: 0;
}

.hero-up::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: translateX(-50%) rotate(-45deg);
}

.hero-ape {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1211 / 1299;
  object-fit: contain;
  animation: apeFloat 5.8s ease-in-out infinite;
}

.ca-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 0.5rem;
}

.ca-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "meta value copy"
    "meta status copy";
  gap: 0.15rem 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ca-meta {
  grid-area: meta;
}

.ca-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
}

.ca-chain {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--silver);
}

.ca-value {
  grid-area: value;
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--off);
}

.btn-copy {
  grid-area: copy;
}

.copy-status {
  grid-area: status;
  min-height: 1.1em;
  font-size: 0.78rem;
  color: var(--green);
}

.tape {
  margin: 2.25rem 0 0;
  border-block: 1px solid var(--line);
  background: #0b0d0b;
  overflow: hidden;
}

.tape-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  padding: 0.85rem 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  animation: tape 32s linear infinite;
}

.tape-track span:nth-child(odd) {
  color: var(--green);
}

.narrative {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 3rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.split-wall,
.split-ape {
  min-width: 0;
}

.split-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.split-wall .split-kicker {
  color: var(--mute);
}

.split-ape .split-kicker {
  color: var(--green);
}

.split-eq {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.split-wall .split-eq {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--silver);
}

.split-ape .split-eq {
  color: var(--off);
}

.pull {
  margin: 3rem 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--off);
}

.denials {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.denials li {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--mute);
}

.punch {
  margin: 1.6rem 0 0;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--green);
}

.kicker {
  margin: 2.2rem 0 0;
  color: var(--silver);
  font-size: 1.02rem;
}

.banner-block {
  margin: 0.5rem auto 0;
  width: min(1440px, calc(100% - 16px));
}

.banner-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #050605;
}

.banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transform-origin: 22% center;
  will-change: transform;
}

.terminal,
.howto,
.community {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.terminal {
  padding: clamp(3.5rem, 8vw, 6rem) 0 2rem;
}

.terminal-head,
.howto,
.community {
  display: grid;
}

.terminal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.terminal h2,
.howto h2,
.community h2,
.lev-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.dex-chart-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 200, 5, 0.22);
  background: #080a08;
}

#dexEmbed {
  display: block;
  width: 100%;
  height: clamp(480px, 65vw, 720px);
  border: 0;
}

.leverage {
  position: relative;
  isolation: isolate;
  margin: 2rem auto 0;
  width: min(1180px, calc(100% - 40px));
  min-height: 28rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(0, 200, 5, calc(0.05 + var(--heat, 0) * 0.08)), transparent 46%), var(--graphite);
  --heat: 0;
}

.lev-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lev-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 5, calc(0.05 + var(--heat, 0) * 0.08)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 5, calc(0.04 + var(--heat, 0) * 0.06)) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridShift 10s linear infinite;
  opacity: 0.7;
}

.lev-rain {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--green);
  opacity: 0.12;
}

.lev-rain span {
  font-size: clamp(1.4rem, 6vw, 4rem);
  animation: rainPulse 3.6s ease-in-out infinite;
}

.lev-rain span:nth-child(odd) { animation-delay: 0.4s; }
.lev-rain span:nth-child(3n) { color: var(--off); opacity: 0.35; }

.leverage[data-level="1"] { --heat: 1; }
.leverage[data-level="2"] { --heat: 2; }
.leverage[data-level="3"] { --heat: 3; }
.leverage[data-level="4"] { --heat: 4; }
.leverage[data-level="5"] { --heat: 5; }
.leverage[data-level="6"] { --heat: 6; }
.leverage[data-level="7"] { --heat: 7; }
.leverage[data-level="8"] { --heat: 8; }

.leverage[data-level="1"] .lev-rain { opacity: 0.2; }
.leverage[data-level="2"] .lev-rain { opacity: 0.28; }
.leverage[data-level="3"] .lev-rain { opacity: 0.38; }
.leverage[data-level="4"] .lev-rain { opacity: 0.48; }
.leverage[data-level="5"] .lev-rain { opacity: 0.58; }
.leverage[data-level="6"] .lev-rain { opacity: 0.68; }
.leverage[data-level="7"] .lev-rain,
.leverage[data-level="8"] .lev-rain { opacity: 0.82; }

.lev-arrows {
  position: absolute;
  inset: 8% 10%;
  background:
    linear-gradient(to top, transparent 40%, rgba(0, 200, 5, 0.18)),
    repeating-linear-gradient(90deg, transparent 0 18%, var(--green) 18% 18.35%, transparent 18.35% 25%);
  mask-image: linear-gradient(to top, transparent, #000 40%);
  transform: scaleY(calc(0.4 + var(--heat, 0) * 0.12));
  transform-origin: bottom center;
  opacity: calc(0.25 + var(--heat, 0) * 0.08);
}

.lev-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.lev-copy h2 {
  max-width: 14ch;
}

.lev-readout {
  margin: 0.4rem 0 0.3rem;
  font-size: clamp(4.2rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
  color: var(--green);
}

.btn-lev {
  min-width: min(18rem, 100%);
}

.howto {
  padding: clamp(3.5rem, 8vw, 6rem) 0 2rem;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #041204;
  font-weight: 800;
}

.step-text {
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.howto-ctas,
.community-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.75rem;
}

.howto-ca {
  margin: 1.1rem 0 0;
  color: var(--mute);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.howto-ca span {
  color: var(--off);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.community {
  padding: 2rem 0 4rem;
}

.community h2 {
  max-width: 16ch;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.5rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-name,
.footer-meta {
  margin: 0;
}

.footer-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.footer-meta {
  color: var(--mute);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
}

.footer-nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--green);
}

@keyframes lineIn {
  from {
    opacity: 0;
    transform: translate3d(0, 1.15rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes aaplDrift {
  from { transform: translate3d(-2%, 0, 0); }
  to { transform: translate3d(3%, 4%, 0); }
}

@keyframes ticks {
  from { background-position: 0 0; }
  to { background-position: 0 120px; }
}

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

@keyframes gridShift {
  from { background-position: 0 0; }
  to { background-position: 0 36px; }
}

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

@supports (animation-timeline: view()) {
  .split-wall {
    animation: viewLeft linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  .split-ape {
    animation: viewRight linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  .denials li,
  .punch,
  .steps li {
    animation: viewUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  .denials li:nth-child(2) { animation-range: entry 8% entry 42%; }
  .denials li:nth-child(3) { animation-range: entry 16% entry 50%; }
  .steps li:nth-child(2) { animation-range: entry 10% entry 45%; }
  .steps li:nth-child(3) { animation-range: entry 18% entry 52%; }
}

@keyframes viewLeft {
  from { opacity: 0.2; transform: translateX(-1.2rem); }
  to { opacity: 1; transform: none; }
}

@keyframes viewRight {
  from { opacity: 0.2; transform: translateX(1.2rem); }
  to { opacity: 1; transform: none; }
}

@keyframes viewUp {
  from { opacity: 0.15; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(2.35rem, 8.4vw, 5.6rem);
  }
}

@media (max-width: 1024px) {
  .hero {
    width: min(1180px, calc(100% - 32px));
    gap: 1.25rem;
  }

  .header-inner {
    min-height: 58px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }

  .hero-visual {
    order: 2;
    width: min(22rem, 86%);
    margin-top: 0.25rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-aapl-bg {
    font-size: clamp(4.5rem, 28vw, 8rem);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 8px;
    width: min(1240px, calc(100% - 12px));
  }

  .brand-name {
    display: none;
  }

  .header-nav .btn {
    padding: 0 0.78rem;
    letter-spacing: 0.1em;
  }

  .hero,
  .ca-section,
  .narrative,
  .terminal,
  .howto,
  .community,
  .leverage,
  .site-footer {
    width: min(1180px, calc(100% - 24px));
  }

  .ca-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta copy"
      "value value"
      "status status";
    gap: 0.55rem 0.75rem;
  }

  .banner-block {
    width: min(1440px, calc(100% - 12px));
  }

  .banner-frame {
    aspect-ratio: 16 / 10;
  }

  .banner-frame img {
    width: 100%;
    height: 100%;
    object-position: 16% center;
  }
}

@media (max-width: 430px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-nav {
    max-width: none;
    width: 100%;
    justify-content: stretch;
  }

  .header-nav .btn {
    flex: 1 1 0;
  }

  .header-nav .btn-tg {
    flex: 1 1 100%;
  }

  .hero-title {
    font-size: clamp(2.2rem, 12.2vw, 3.2rem);
  }

  .hero-ctas .btn,
  .howto-ctas .btn,
  .community-ctas .btn {
    flex: 1 1 auto;
  }

  .lev-readout {
    font-size: clamp(3.4rem, 22vw, 5.5rem);
  }
}

@media (max-width: 360px) {
  .site-header {
    width: calc(100% - 10px);
  }

  .header-inner {
    padding: 6px;
    gap: 6px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .header-nav {
    max-width: none;
    gap: 6px;
  }

  .header-nav .btn {
    min-height: 40px;
    padding: 0 0.62rem;
    font-size: 0.66rem;
  }

  .hero,
  .ca-section,
  .narrative,
  .terminal,
  .howto,
  .community,
  .leverage,
  .site-footer {
    width: calc(100% - 16px);
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-init {
    width: 0.7em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-line,
  .hero-ape,
  .hero-aapl-bg,
  .hero-aapl-shift,
  .hero-ticks,
  .tape-track,
  .lev-grid,
  .lev-rain span,
  .split-wall,
  .split-ape,
  .denials li,
  .punch,
  .steps li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .banner-frame img {
    transform: none;
    will-change: auto;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
