:root{--font-geist-sans:"Geist",system-ui,sans-serif;--font-geist-mono:"Geist Mono",monospace;}

:root {
  --background: #050704;
  --foreground: #f4ffe6;
  --acid: #ccff00;
  --acid-soft: #e4ff6a;
  --ink: #080a07;
  --panel: rgba(244, 255, 230, 0.07);
  --line: rgba(204, 255, 0, 0.25);
  --muted: rgba(244, 255, 230, 0.68);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 77% 12%, rgba(204, 255, 0, 0.22), transparent 26rem),
    radial-gradient(circle at 8% 26%, rgba(41, 178, 120, 0.22), transparent 24rem),
    linear-gradient(145deg, #020401 0%, #071006 45%, #0f1508 100%);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-section,
.gallery-section,
.close-section {
  position: relative;
  z-index: 1;
}

.hero-section {
  min-height: 100svh;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

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

.terminal-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 48px) clamp(22px, 3.8vw, 78px);
  background:
    radial-gradient(circle at 72% 48%, rgba(204, 255, 0, 0.28), transparent 30rem),
    radial-gradient(circle at 96% 72%, rgba(204, 255, 0, 0.2), transparent 25rem),
    linear-gradient(90deg, rgba(1, 3, 0, 0.22), rgba(1, 3, 0, 0.04) 50%, rgba(204, 255, 0, 0.14)),
    #010300;
  isolation: isolate;
}

.terminal-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.48;
  background:
    linear-gradient(90deg, rgba(204, 255, 0, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(204, 255, 0, 0.045) 1px, transparent 1px);
  background-size: 47px 47px;
}

.terminal-hero::before,
.terminal-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.terminal-hero::before {
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent 0 64%, rgba(1, 3, 0, 0.8) 100%),
    linear-gradient(90deg, rgba(1, 3, 0, 0) 0 62%, rgba(204, 255, 0, 0.13) 100%),
    radial-gradient(circle at 76% 58%, rgba(204, 255, 0, 0.22), transparent 22rem);
}

.terminal-hero::after {
  right: 0;
  bottom: 4vh;
  z-index: -1;
  width: min(38vw, 520px);
  height: min(52vh, 520px);
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.13);
  filter: blur(46px);
}

.brand-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(1040px, 61vw);
  color: var(--acid);
  font-size: clamp(30px, 2.2vw, 45px);
  font-weight: 500;
  text-shadow: 0 0 18px rgba(204, 255, 0, 0.44);
}

.brand-line i {
  display: block;
  height: 2px;
  min-width: 150px;
  background: linear-gradient(90deg, var(--acid), transparent);
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.42);
}

.rh-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 17px rgba(204, 255, 0, 0.72));
}

.hero-type {
  position: relative;
  z-index: 8;
  width: min(1120px, 58vw);
  margin-top: clamp(42px, 5.8vh, 76px);
}

.hero-type h1 {
  margin: 0;
  color: var(--acid);
  font-size: clamp(108px, 14.5vw, 300px);
  font-weight: 1000;
  line-height: 0.72;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 30px rgba(204, 255, 0, 0.72),
    0 0 5px rgba(1, 3, 0, 0.8);
}

.hero-type p {
  margin: clamp(20px, 2.2vw, 34px) 0 0;
  color: #f4f4ec;
  font: 700 clamp(28px, 2.6vw, 54px)/1.03 var(--font-geist-mono), monospace;
  text-shadow:
    0 0 4px rgba(1, 3, 0, 0.95),
    0 0 16px rgba(1, 3, 0, 0.8);
}

.hero-type span {
  color: var(--acid);
}

.feature-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(802px, 48vw);
  margin-top: clamp(28px, 3.4vw, 48px);
  border: 1px solid rgba(204, 255, 0, 0.58);
  background: rgba(1, 3, 0, 0.36);
  box-shadow: 0 0 34px rgba(204, 255, 0, 0.12);
  backdrop-filter: blur(12px);
}

.feature-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  min-height: 88px;
  padding: 18px 22px;
  border-right: 1px solid rgba(204, 255, 0, 0.38);
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-icon {
  position: relative;
  grid-row: 1 / span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: center;
  border: 1px solid var(--acid);
  color: var(--acid);
  font: 900 11px/1 var(--font-geist-mono), monospace;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
}

.feature-fast::before {
  width: 10px;
  height: 22px;
  background: var(--acid);
  clip-path: polygon(52% 0, 100% 0, 67% 38%, 100% 38%, 24% 100%, 42% 51%, 0 51%);
}

.feature-built::before {
  width: 24px;
  height: 30px;
  background: url("/robinhood-logo-acid.png") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(204, 255, 0, 0.42));
}

.feature-secure::before {
  width: 20px;
  height: 24px;
  border: 3px solid var(--acid);
  clip-path: polygon(50% 0, 100% 18%, 88% 72%, 50% 100%, 12% 72%, 0 18%);
}

.feature-strip strong,
.feature-strip em {
  font-family: var(--font-geist-mono), monospace;
  font-style: normal;
  text-transform: uppercase;
}

.feature-strip strong {
  color: var(--acid);
  font-size: 16px;
}

.feature-strip em {
  color: #f4f4ec;
  font-size: 15px;
}

.hero-actions {
  position: relative;
  z-index: 11;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(802px, 48vw);
  margin-top: 22px;
}

.chart-card {
  position: relative;
  z-index: 6;
  width: min(802px, 48vw);
  min-height: clamp(218px, 22vh, 250px);
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(204, 255, 0, 0.44);
  background:
    linear-gradient(90deg, rgba(204, 255, 0, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(204, 255, 0, 0.08) 1px, transparent 1px),
    rgba(1, 3, 0, 0.45);
  background-size: 52px 52px;
  box-shadow: 0 0 34px rgba(204, 255, 0, 0.12);
}

.chart-card span,
.chart-card strong,
.chart-card em {
  position: relative;
  z-index: 2;
  display: block;
  margin-left: 28px;
  font-family: var(--font-geist-mono), monospace;
  font-style: normal;
  text-transform: uppercase;
}

.chart-card span {
  margin-top: 24px;
  color: var(--acid);
  font-size: 22px;
}

.chart-card strong {
  margin-top: 42px;
  color: var(--acid);
  font-size: clamp(44px, 4vw, 72px);
  line-height: 0.9;
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.35);
}

.chart-card em {
  margin-top: 11px;
  color: var(--acid-soft);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.candles {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 40%;
  display: flex;
  align-items: end;
  gap: clamp(5px, 0.7vw, 12px);
  height: 155px;
}

.candles i {
  position: relative;
  display: block;
  flex: 1;
  min-width: 5px;
  height: calc(22px + var(--h, 1) * 6px);
  background: var(--acid);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
}

.candles i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 1px;
  height: calc(100% + 36px);
  background: rgba(204, 255, 0, 0.45);
}

.candles i:nth-child(1) { --h: 1; }
.candles i:nth-child(2) { --h: 2; }
.candles i:nth-child(3) { --h: 3; }
.candles i:nth-child(4) { --h: 4; }
.candles i:nth-child(5) { --h: 5; }
.candles i:nth-child(6) { --h: 7; }
.candles i:nth-child(7) { --h: 6; }
.candles i:nth-child(8) { --h: 8; }
.candles i:nth-child(9) { --h: 7; }
.candles i:nth-child(10) { --h: 9; }
.candles i:nth-child(11) { --h: 10; }
.candles i:nth-child(12) { --h: 8; }
.candles i:nth-child(13) { --h: 11; }
.candles i:nth-child(14) { --h: 13; }
.candles i:nth-child(15) { --h: 10; }
.candles i:nth-child(16) { --h: 14; }
.candles i:nth-child(17) { --h: 16; }
.candles i:nth-child(18) { --h: 18; }

.dog-stage {
  position: absolute;
  right: clamp(-118px, -4.6vw, -40px);
  bottom: -8vh;
  z-index: 4;
  width: min(52vw, 900px);
  aspect-ratio: 0.91;
  filter: drop-shadow(0 0 46px rgba(204, 255, 0, 0.34));
}

.dog-stage::before {
  content: "";
  position: absolute;
  inset: 12% -7% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.24), transparent 64%);
  filter: blur(22px);
}

.dog-stage img {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  opacity: 1;
  filter: saturate(1.08) contrast(1.05);
}

.terminal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 64px;
  padding: 0 26px;
  border: 1px solid var(--acid);
  border-radius: 4px;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 0 34px rgba(204, 255, 0, 0.32);
  font: 900 15px/1 var(--font-geist-mono), monospace;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.terminal-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.terminal-button-dark {
  background: rgba(1, 3, 0, 0.52);
  color: var(--acid);
  backdrop-filter: blur(16px);
}

.meme-card {
  border: 1px solid var(--line);
  background: rgba(5, 7, 4, 0.64);
  backdrop-filter: blur(18px);
}

.section-kicker {
  color: var(--acid);
  font: 900 13px/1.1 var(--font-geist-mono), monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gallery-heading h2,
.close-section h2 {
  margin: 0;
  color: #fbfff5;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.meme-card span {
  display: block;
  color: var(--acid);
  font: 800 11px/1 var(--font-geist-mono), monospace;
  text-transform: uppercase;
}

.gallery-section,
.close-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 116px) 0 0;
}

.gallery-heading h2,
.close-section h2 {
  font-size: clamp(36px, 6vw, 82px);
  line-height: 0.9;
}

.gallery-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.meme-card {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.meme-card:hover {
  transform: translateY(-4px);
  border-color: var(--acid);
}

.meme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.meme-card div {
  min-height: 118px;
  padding: 16px;
}

.meme-card h3 {
  margin: 12px 0 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 0.98;
  text-transform: uppercase;
}

.close-section {
  padding-bottom: clamp(72px, 9vw, 124px);
}

.close-section p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

@media (max-width: 900px) {
  .terminal-hero {
    min-height: 900px;
  }

  .brand-line,
  .hero-type,
  .feature-strip,
  .chart-card {
    width: 100%;
  }

  .hero-actions {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip div {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid rgba(204, 255, 0, 0.3);
  }

  .feature-strip div:last-child {
    border-bottom: 0;
  }

  .dog-stage {
    right: -4vw;
    bottom: 12vh;
    width: min(62vw, 430px);
  }

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

@media (max-width: 560px) {
  .terminal-hero {
    min-height: 920px;
    padding-inline: 14px;
  }

  .terminal-button {
    flex: 1;
    min-width: 0;
  }

  .hero-type h1 {
    font-size: clamp(70px, 25vw, 118px);
  }

  .hero-type p {
    font-size: clamp(22px, 8vw, 38px);
  }

  .chart-card {
    min-height: 185px;
  }

  .candles {
    left: 34%;
    gap: 4px;
  }

  .dog-stage {
    right: -22vw;
    bottom: 105px;
    width: 92vw;
    opacity: 0.68;
  }

  .brand-line {
    font-size: 22px;
  }

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

/* ---------- CA chip on the dog's suit ---------- */
.dog-stage { pointer-events: none; }
.dog-stage img { pointer-events: none; }
.ca-chip {
  pointer-events: auto;
  position: absolute;
  z-index: 7;
  left: 4%;
  bottom: 26%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--acid);
  border-radius: 999px;
  background: rgba(1, 3, 0, 0.82);
  color: var(--acid);
  font: 900 12px/1 var(--font-geist-mono), monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.35);
  transition: transform 160ms ease, background 160ms ease;
}
.ca-chip:hover { transform: scale(1.06) rotate(-1deg); background: rgba(204, 255, 0, 0.14); }
.ca-chip em { font-style: normal; color: var(--acid-soft); }
.ca-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: ca-pulse 1.6s ease-in-out infinite;
}
@keyframes ca-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(34px, 5vw, 60px) clamp(22px, 3.8vw, 78px) clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, transparent, rgba(204, 255, 0, 0.05));
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.site-footer .footer-tag {
  margin-top: 14px;
  color: var(--acid);
  font: 800 12px/1 var(--font-geist-mono), monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- mobile layout fixes ---------- */
@media (max-width: 560px) {
  .terminal-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    overflow: hidden;
  }
  .dog-stage {
    position: relative;
    right: auto;
    bottom: auto;
    order: 99;
    width: 100%;
    max-width: 420px;
    margin: 6px auto -2px;
    opacity: 1;
  }
  .chart-card { width: 100%; min-height: 170px; }
  .chart-card strong { margin-top: 30px; font-size: clamp(38px, 11vw, 52px); }
  .candles { left: 42%; right: 14px; gap: 3px; }
  .ca-chip { left: 6%; bottom: 30%; }
  .close-section h2 { font-size: clamp(30px, 9vw, 44px); }
}
@media (min-width: 561px) and (max-width: 900px) {
  .terminal-hero { min-height: auto; padding-bottom: 0; display: flex; flex-direction: column; }
  .dog-stage { position: relative; right: auto; bottom: auto; order: 99; width: min(70vw, 460px); margin: 10px 0 -2px auto; }
}

/* ---------- close section extras ---------- */
.close-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 4.5vw, 56px);
}
.close-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px 24px;
  background: rgba(1, 3, 0, 0.4);
  transition: transform 180ms ease, border-color 180ms ease;
}
.close-card:hover { transform: translateY(-4px); border-color: var(--acid); }
.close-card span {
  display: block;
  color: var(--acid);
  font: 800 11px/1 var(--font-geist-mono), monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.close-card h3 {
  margin: 12px 0 0;
  color: #fbfff5;
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.02;
  text-transform: uppercase;
}
.close-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.close-cta-line {
  margin: clamp(30px, 4vw, 46px) 0 0;
  color: var(--acid);
  font: 800 clamp(14px, 1.4vw, 18px)/1.3 var(--font-geist-mono), monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) { .close-grid { grid-template-columns: 1fr; } }
