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

@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "GeistMono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* hood.fun design language — pitch canvas, lime signal, dense */
:root {
  --bg: #131313;
  --surface: #191919;
  --surface-2: #1f1f1f;
  --surface-3: #2a2a2a;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #ffffffa6;
  --faint: #ffffff61;
  --green: #95d028;
  --green-deep: #8bc424;
  --green-ink: #001405;
  --green-soft: rgba(149, 208, 40, 0.12);
  --green-glow: rgba(149, 208, 40, 0.35);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 8px 28px -10px rgba(0, 0, 0, 0.7);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "GeistMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum", "cv11"; font-weight: 480;
  font-size: 15px; line-height: 1.5; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--green-soft); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- background scales + cube stage ---------- */
.scales { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; perspective: 1500px; }
.cube-holder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); will-change: transform; }

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-card); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px;
  background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 0.94rem; border: none; border-radius: 5px; cursor: pointer;
  box-shadow: 0 0 18px -6px var(--green-glow); transition: filter 0.12s ease, box-shadow 0.15s ease, transform 0.08s ease;
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 26px -6px var(--green-glow); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary.big { height: 50px; padding: 0 30px; font-size: 1rem; }

/* Buy on FOMO — transparent, clean */
.fomo-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px;
  background: transparent; border: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; opacity: 0.92;
  transition: color 0.15s, opacity 0.15s;
}
.fomo-btn:hover { color: var(--text); opacity: 1; }
.fomo-logo { height: 20px; width: auto; object-fit: contain; display: block; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; background: transparent; border: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.topbar.hide { transform: translateY(-115%); opacity: 0; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-logo { width: 26px; height: 26px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-link { width: 36px; height: 36px; border-radius: 6px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; transition: color 0.15s, background 0.15s; }
.icon-link svg { width: 16px; height: 16px; }
.icon-link:hover { color: var(--text); background: var(--surface-2); }

/* ---------- main / sections ---------- */
main { position: relative; z-index: 2; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }

/* hero: cube centered (fixed), identity below */
.s-hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 20px 22vh; }
.hero-id { display: flex; flex-direction: column; align-items: center; }
.coin-name { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
.coin-tagline { margin-top: 8px; color: var(--muted); font-size: 1.02rem; }
.tag { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; color: var(--green); background: var(--green-soft); border: 1px solid rgba(149,208,40,0.25); border-radius: 5px; padding: 4px 9px; }
.coin-sub { margin-top: 8px; color: var(--muted); font-size: 0.95rem; display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.coin-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.ca {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; cursor: pointer;
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
  background: transparent; border: none; border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.ca:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.ca-key { color: var(--green); font-weight: 700; }
.ca-ic { width: 14px; height: 14px; opacity: 0.7; }
.ca.copied { border-color: var(--green-deep); color: var(--green); }
.scroll-hint { margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(5px); opacity: 1; } }

/* side sections — content on one half, cube on the other */
.s-side { min-height: 100vh; display: flex; align-items: center; padding: 0 8vw; }
.s-side.align-right { justify-content: flex-end; }
.s-side.align-left { justify-content: flex-start; }
.side-content { width: min(440px, 100%); }
.side-content.card { padding: 26px; }
.side-content h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; }
.side-content p { margin-top: 14px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.panel-title { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.chip { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: var(--green-soft); border: 1px solid rgba(149,208,40,0.25); border-radius: 5px; padding: 3px 8px; }
.panel-sub { margin-top: 5px; color: var(--muted); font-size: 0.92rem; }

/* close */
.s-close { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 0 20px; }
.s-close h2 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; }

/* ---------- glossy cube faces ---------- */
.cube { position: relative; width: 200px; height: 200px; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-40deg); filter: drop-shadow(0 30px 44px rgba(0,0,0,0.7)) drop-shadow(0 0 26px var(--green-glow)); }
.face {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 5px;
  background: radial-gradient(135% 115% at 22% 14%, rgba(255,255,255,0.4), rgba(255,255,255,0.04) 34%, transparent 56%), linear-gradient(155deg, #6f7278 0%, #3f4147 34%, #232427 66%, #131313 100%);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 2px 1px rgba(255,255,255,0.28), inset 0 0 48px rgba(0,0,0,0.5), inset 0 -24px 44px rgba(0,0,0,0.5);
}
.face img { width: 52%; height: 52%; object-fit: contain; opacity: 0.95; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.55)); }
.fx-front { transform: translateZ(100px); }
.fx-back { transform: rotateY(180deg) translateZ(100px); }
.fx-right { transform: rotateY(90deg) translateZ(100px); }
.fx-left { transform: rotateY(-90deg) translateZ(100px); }
.fx-top { transform: rotateX(90deg) translateZ(100px); background: linear-gradient(155deg, #797c82, #3c3e44 55%, #26282c); }
.fx-bottom { transform: rotateX(-90deg) translateZ(100px); background: linear-gradient(155deg, #17181b, #0b0b0d); }

/* ---------- terminal chat card ---------- */
.chat-demo { margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.cd-head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.cd-model { margin-left: auto; border: 1px solid var(--border); border-radius: 5px; padding: 3px 10px; font-size: 11px; }
.cd-body { padding: 20px 16px; min-height: 190px; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.cd-msg { display: flex; gap: 10px; animation: msg-in 0.35s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
.cd-msg.user { justify-content: flex-end; }
.cd-msg.user .b { background: var(--surface-3); border-radius: 8px 14px 4px 14px; padding: 9px 13px; max-width: 80%; font-size: 0.92rem; }
.cd-msg.ai .av { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.cd-msg.ai .av img { width: 15px; height: 15px; object-fit: contain; }
.cd-msg.ai .b { max-width: 88%; line-height: 1.6; font-size: 0.93rem; padding-top: 1px; }
.cd-typing-caret { display: inline-block; width: 6px; height: 1em; background: var(--green); margin-left: 2px; vertical-align: text-bottom; border-radius: 1px; box-shadow: 0 0 8px var(--green-glow); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cd-composer { display: flex; align-items: center; gap: 9px; padding: 11px; border-top: 1px solid var(--border); }
.cd-input { flex: 1; background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 0 14px; height: 40px; display: flex; align-items: center; gap: 8px; }
.cd-input-off { color: var(--faint); font-family: var(--mono); font-size: 0.8rem; }
.cd-input-off svg { opacity: 0.7; }
.cd-send { width: 40px; height: 40px; flex-shrink: 0; border-radius: 6px; background: var(--surface-3); color: var(--faint); display: flex; align-items: center; justify-content: center; }

/* ---------- footer ---------- */
.foot { max-width: 900px; margin: 0 auto; padding: 40px 20px 30px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.foot-brand img { width: 20px; height: 20px; object-fit: contain; }
.foot-disc { color: var(--faint); font-size: 0.76rem; line-height: 1.5; }

@media (max-width: 720px) {
  /* mobile: cube is the hero flourish, then a clean dense stacked page */
  .s-hero { min-height: 100dvh; padding-bottom: 15vh; }
  .s-side { min-height: auto; align-items: center; justify-content: center; padding: 70px 18px; }
  .side-content { width: 100%; }
  .s-close { min-height: auto; padding: 90px 20px; }
}
@media (max-width: 560px) {
  .topbar { padding: 12px 14px; }
  .top-actions { gap: 4px; }
  .ca .ca-val { display: none; }
  .ca { padding: 0 8px; }
  .icon-link { width: 34px; height: 34px; }
  .btn-primary { height: 40px; padding: 0 16px; font-size: 0.9rem; }
  .coin-name { font-size: 2.7rem; }
  .coin-actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .dot, .scroll-hint, .cd-typing-caret { animation: none; } }
