/* ============ AGI HORSY — the third animal of Wall Street (fwogs-school) ============ */
:root {
  --lime: #CCFF00;
  --ink: #17150f;
  --paper: #f4efdf;
  --dark: #101009;
  --darker: #0a0a06;
  --soft: #efe9d4;
  --dim: #8b8776;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--soft);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* film grain over everything */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); }
  50% { transform: translate(1%,-2%); } 75% { transform: translate(-1%,2%); } 100% { transform: translate(0,0); }
}

/* ============ NAV — minimal, transparent over hero ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  font-family: "Chango", cursive; font-size: 18px; text-shadow: 0 2px 10px rgba(0,0,0,.6);
  white-space: nowrap; }
.nav-brand img { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.nav-side { display: flex; align-items: center; gap: 16px; }
.nav-side a#nav-x { color: #fff; text-decoration: none; font-size: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.nav-buy {
  font-family: "Chango", cursive; font-size: 15px; color: var(--ink); text-decoration: none;
  background: var(--lime); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .12s;
}
.nav-buy:hover { transform: scale(1.06); }

/* ============ HERO ============ */
.hero2 {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 90px 6vw 120px;
}
.hero-bg {
  position: absolute; inset: -8% 0 0 0;
  background: url("images/hero2.jpg") 72% center / cover no-repeat;
  will-change: transform;
}
.hero2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12,10,4,.42) 0%, rgba(12,10,4,.12) 38%, transparent 60%);
}
@keyframes bob { 50% { translate: 0 -9px; } }
.hero-left {
  position: relative; z-index: 5; display: flex; flex-direction: column; align-items: flex-start;
  gap: 20px; max-width: 580px;
}
.h2-title { width: clamp(300px, 34vw, 520px); filter: drop-shadow(0 12px 26px rgba(0,0,0,.45)); }
.h2-tag {
  color: #fff; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.6; font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.h2-tag b { color: var(--lime); }
.h2-x {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: #fff; font-size: 13.5px; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.6);
  transition: transform .15s;
}
.h2-x img { width: 62px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.h2-x:hover { transform: scale(1.05); }





.ca-tape {
  position: relative; z-index: 7; margin-top: 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 4px;
  transform: rotate(-1.2deg); color: var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  padding: 9px 16px; cursor: pointer; max-width: min(92vw, 640px);
  font-family: "Space Grotesk", monospace;
}
.ca-tape::before, .ca-tape::after {
  content: ""; position: absolute; top: -10px; width: 34px; height: 16px;
  background: rgba(204,255,0,.65); border: 1px solid rgba(23,21,15,.25); transform: rotate(-6deg);
}
.ca-tape::before { left: 12px; } .ca-tape::after { right: 12px; transform: rotate(5deg); }
.ca-label { font-family: "Chango", cursive; font-size: 13px; background: var(--ink); color: var(--lime);
  border-radius: 4px; padding: 3px 8px; }
.ca-value { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-hint { font-size: 10px; color: var(--dim); white-space: nowrap; }
.ca-tape.copied { outline: 3px solid var(--lime); }

/* ============ wavy seams (fwogs-style) ============ */
.wave {
  position: absolute; left: -1%; right: -1%; bottom: -2px; width: 102%; height: clamp(44px, 7vw, 92px);
  display: block; z-index: 8; pointer-events: none;
}
.wave path { fill: var(--dark); }

/* ============ MEME WALL — tilted double marquee ============ */
.wall { background: var(--dark); overflow: hidden; padding: 70px 0 90px; }
.wall-tilt { transform: rotate(-3deg) scale(1.08); }
.wall-row { display: flex; gap: 18px; width: max-content; margin-bottom: 18px; will-change: transform; }
.wall-row img {
  width: clamp(240px, 26vw, 380px); aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; border: 3px solid var(--ink);
  box-shadow: 0 12px 28px rgba(0,0,0,.5);
}
.row-a { animation: slide-l 42s linear infinite; }
.row-b { animation: slide-r 42s linear infinite; }
@keyframes slide-l { to { transform: translateX(-50%); } }
@keyframes slide-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============ full-bleed art panels ============ */
.panel { position: relative; overflow: hidden; padding: 130px 26px 170px; }
.wavetop {
  clip-path: url(#wavetop);
  margin-top: -74px;
  padding-top: 170px;
}
.panel-plaza    { background: url("images/bg-plaza.jpg") center 30% / cover no-repeat #223; }
.panel-circuit  { background: url("images/bg-zen.jpg") 68% 30% / cover no-repeat #0d0d1a; }
.panel-stampede { background: url("images/bg-stampede.jpg") center 20% / cover no-repeat #332; padding-bottom: 130px; }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,6,.72), rgba(10,10,6,.5) 40%, rgba(10,10,6,.78)); }
.panel-shade.heavy { background: linear-gradient(100deg, rgba(6,6,12,.86) 0%, rgba(6,6,12,.66) 55%, rgba(6,6,12,.3) 100%); }
.panel .inner { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; }
.inner.center { text-align: center; }

.giant {
  font-family: "Archivo Black", sans-serif; font-weight: 400; color: #fff;
  font-size: clamp(34px, 6vw, 72px); line-height: 1.02; letter-spacing: -.5px;
  text-transform: uppercase; margin-bottom: 40px;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.giant.lime { color: var(--lime); }

/* trio over the plaza */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 42px; max-width: 860px; }
.trio-card {
  background: rgba(10,10,6,.62); backdrop-filter: blur(6px);
  border: 2px solid rgba(244,239,223,.28); border-radius: 20px;
  padding: 22px 16px; text-align: center;
}
.trio-card span { font-size: 46px; line-height: 1; display: block; margin-bottom: 10px; }
.trio-card img { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--lime); }
.trio-card h3 { font-family: "Archivo Black", sans-serif; font-size: 16px; color: #fff; margin-bottom: 6px; }
.trio-card p { font-size: 14px; color: var(--soft); }
.trio-card p b { color: var(--lime); }
.is-horsy { border-color: var(--lime); box-shadow: 0 0 34px rgba(204,255,0,.25); }

.panel-copy { max-width: 640px; font-size: 17px; line-height: 1.8; margin-bottom: 22px; color: #f2eeda; }
.panel-copy b { background: rgba(204,255,0,.85); color: var(--ink); padding: 0 5px; border-radius: 4px; }
.panel-sign { font-family: "Chango", cursive; font-size: clamp(17px, 2vw, 22px); color: var(--lime);
  text-shadow: 0 2px 14px rgba(0,0,0,.6); }

/* flywheel chain */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 40px; }
.chain i { color: var(--lime); font-style: normal; font-size: 20px; font-weight: 700; }
.chip {
  background: rgba(204,255,0,.1); border: 2px solid var(--lime); color: var(--soft);
  border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.chip.glow { background: var(--lime); color: var(--ink); box-shadow: 0 0 26px rgba(204,255,0,.5); }
.fly { position: absolute; right: 4%; top: 90px; width: clamp(120px, 16vw, 220px); opacity: .9; z-index: 1; }
.fly-core { animation: spin 24s linear infinite; filter: drop-shadow(0 0 34px rgba(204,255,0,.45)); }
@keyframes spin { to { rotate: 360deg; } }

.pairplaque {
  position: relative; z-index: 2; max-width: 620px;
  background: rgba(8,8,5,.8); backdrop-filter: blur(4px);
  border: 3px solid var(--lime); border-radius: 22px;
  box-shadow: 0 0 34px rgba(204,255,0,.18);
  padding: 26px 26px 22px;
}
.pp-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px;
  border-bottom: 1px dashed rgba(204,255,0,.25); font-size: 15px; }
.pp-row span { color: var(--dim); }
.pp-row b { color: var(--soft); text-align: right; }
.pp-ca {
  margin-top: 18px; width: 100%; display: flex; align-items: center; gap: 10px;
  background: rgba(204,255,0,.08); border: 2px solid var(--lime); border-radius: 999px;
  color: var(--soft); padding: 11px 18px; cursor: pointer; font-family: inherit;
}
.pp-ca .ca-label { background: var(--lime); color: var(--ink); }
.pp-ca .ca-value { font-size: 12.5px; }
.pp-ca.copied { background: rgba(204,255,0,.22); }

/* ============ giant rounded cards ============ */
.sec-card { background: var(--dark); padding: 30px 18px; }
#chart { padding-bottom: 130px; }
.card {
  position: relative; overflow: hidden; max-width: 1180px; margin: 0 auto;
  border-radius: 34px; padding: 70px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.card-trough { background: url("images/bg-trough.jpg") center / cover no-repeat #221; min-height: 560px; justify-content: center; }
.card-shade { position: absolute; inset: 0; background: rgba(10,10,6,.66); }
.card > *:not(.card-shade) { position: relative; z-index: 2; }
.card .giant { margin-bottom: 34px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 38px; width: 100%; max-width: 920px; }
.step {
  background: rgba(244,239,223,.94); border-radius: 20px; border: 3px solid var(--ink);
  padding: 22px 16px; color: var(--ink);
}
.step img { height: 78px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.step h3 { font-family: "Archivo Black", sans-serif; font-size: 13.5px; margin-bottom: 8px; }
.step p { font-size: 13.5px; line-height: 1.55; }

.pill {
  display: inline-block; font-family: "Chango", cursive; font-size: 17px; text-decoration: none;
  color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 999px;
  padding: 14px 38px; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .12s;
}
.pill:hover { transform: scale(1.06); }
.pill.ghost { background: rgba(244,239,223,.92); }

/* chart card */
.card-chart {
  background: var(--darker); border: 2px dashed rgba(204,255,0,.4);
  padding: 54px 26px;
}
.chart-gauge { width: 110px; margin-bottom: 16px; animation: bob 4s ease-in-out infinite; }
.chart-line { font-family: "Archivo Black", sans-serif; font-size: clamp(18px, 2.6vw, 28px); color: #fff; }
.chart-sub { color: var(--dim); font-size: 14px; margin-top: 8px; }
#chart-wrap iframe { width: 100%; height: 560px; border: 0; border-radius: 22px; }

/* herd band */
.herd-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.panel-stampede .wave { display: none; }

/* ============ FOOTER ============ */
.footer { background: var(--darker); text-align: center; padding: 64px 22px 46px; }
.foot-head { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--lime); }
.foot-brand { font-family: "Chango", cursive; font-size: 24px; color: var(--soft); letter-spacing: 1px; }
.foot-chain { font-size: 11.5px; letter-spacing: 2.5px; color: var(--lime); margin: 8px 0 20px; }
.foot-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 26px; }
.foot-links img { width: 54px; transition: transform .15s; }
.foot-links a:hover img { transform: scale(1.12) rotate(-4deg); }
.disclaimer { max-width: 680px; margin: 0 auto; font-size: 11.5px; line-height: 1.7; color: var(--dim); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(90px);
  background: var(--ink); color: var(--lime); border: 2px solid var(--lime); border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 14px; z-index: 95;
  transition: transform .25s; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ============ mobile ============ */
@media (max-width: 880px) {
  .hero2 { align-items: flex-end; padding: 0 20px 120px; }
  .hero-bg { background-position: 66% center; }
  .hero2::after { background: linear-gradient(0deg, rgba(12,10,4,.55) 0%, rgba(12,10,4,.15) 45%, transparent 65%); }
  .h2-title { width: min(320px, 82vw); }
  .nav { padding: 12px 14px; }
  .nav-brand { font-size: 15px; }
  .nav-brand img { width: 34px; height: 34px; }
  .panel { padding: 90px 20px 120px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .is-horsy { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 50px 20px; border-radius: 24px; }
  .fly { display: none; }
  .chain i { display: none; }
  .chain { justify-content: center; }
  .wall-row img { width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
