/* =========================================================
   Stonk Inu — $SI
   Wall Street trading terminal × superhero Inu
   ========================================================= */

:root {
  --bg: #04080f;
  --bg-2: #07101e;
  --navy: #0a1629;
  --navy-2: #0f1f38;
  --panel: rgba(13, 27, 50, 0.62);
  --panel-solid: #0b1830;
  --line: rgba(120, 190, 255, 0.14);
  --line-strong: rgba(90, 210, 255, 0.34);

  --cyan: #33d1ff;
  --cyan-2: #7fe4ff;
  --blue: #3b7dff;
  --green: #3ee08f;
  --red: #ff5d73;
  --white: #ffffff;
  --text: #e8f2ff;
  --muted: #93a8c6;

  --glow-cyan: 0 0 0 1px rgba(51, 209, 255, 0.4), 0 10px 40px -10px rgba(51, 209, 255, 0.55);

  --font-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  /* global faint terminal grid */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 125, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(51, 209, 255, 0.08), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--cyan); color: var(--bg); }

.sr-only {
  position: absolute !important;
  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: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--white);
}
.display .line,
.hero__title .line { display: block; text-wrap: balance; }

@media (min-width: 961px) {
  .hero__title .line,
  .about__title .line { white-space: nowrap; }
}

.line--accent {
  background: linear-gradient(92deg, var(--cyan-2) 0%, var(--cyan) 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow span {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  letter-spacing: 0.08em;
}
.eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.eyebrow--center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s, border-color 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; }

.btn--primary {
  color: #03101d;
  background: linear-gradient(135deg, var(--cyan-2), var(--cyan) 45%, #1fa8ff);
  box-shadow: 0 8px 30px -8px rgba(51, 209, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary::before {
  /* sheen sweep */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover::before,
.btn--primary:focus-visible::before { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(51, 209, 255, 0.9), inset 0 1px 0 rgba(255,255,255,.6); }

.btn--ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(12, 28, 52, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--white);
  box-shadow: var(--glow-cyan);
}

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

.btn__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--icon svg { fill: currentColor; width: 16px; height: 16px; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 200, 90, 0.4);
  border-radius: 999px;
  background: rgba(255, 190, 70, 0.08);
  color: #ffd27a;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.status-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ffc24d;
  box-shadow: 0 0 0 0 rgba(255, 194, 77, 0.6);
  animation: pulse-dot 2.2s infinite;
}
.status-pill--sm { padding: 4px 10px 4px 8px; font-size: 0.66rem; }

.status-pill--live {
  border-color: rgba(62, 224, 143, 0.4);
  background: rgba(62, 224, 143, 0.1);
  color: var(--green);
}
.status-pill--live .status-pill__dot {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(62, 224, 143, 0.6);
  animation: pulse-dot-live 2.2s infinite;
}
@keyframes pulse-dot-live {
  0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(62, 224, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 77, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 194, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 194, 77, 0); }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(4, 9, 18, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 62px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 24px -6px rgba(51, 209, 255, 0.6);
  object-fit: cover;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}
.brand__ticker {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(51, 209, 255, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__links {
  display: flex;
  gap: 4px;
}
.site-nav__links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__links a:hover,
.site-nav__links a.is-active { color: var(--white); }
.site-nav__links a:hover::after,
.site-nav__links a.is-active::after { transform: scaleX(1); }

.site-nav__actions {
  display: flex;
  gap: 8px;
}

.site-header__mobile { display: none; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(12, 28, 52, 0.6);
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  min-height: min(100vh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__grid {
  position: absolute;
  inset: -80px 0 0;
  background-image:
    linear-gradient(rgba(90, 180, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 180, 255, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 20%, transparent 75%);
  animation: grid-drift 18s linear infinite;
}
@keyframes grid-drift {
  to { transform: translateY(64px); }
}

.hero__glow {
  position: absolute;
  right: -10%; top: 10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(51, 209, 255, 0.22) 0%, rgba(59, 125, 255, 0.12) 35%, transparent 65%);
  filter: blur(10px);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 6vw, 72px);
}

.hero__copy { position: relative; z-index: 2; }

.hero__status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.hero__status-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: fit-content;
  overflow: hidden;
  background: rgba(8, 18, 36, 0.6);
}
.hero__meta li {
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.hero__meta li + li { border-left: 1px solid var(--line); }
.hero__meta .is-accent { color: var(--cyan); background: rgba(51, 209, 255, 0.08); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.3vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--white);
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.hero__lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: #c3d4ea;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- CA terminal ---------- */
.ca {
  max-width: 520px;
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 40, 72, 0.7), rgba(8, 18, 36, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -25px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.ca__bar,
.monitor__bar,
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 10, 22, 0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.ca__dots { display: inline-flex; gap: 6px; }
.ca__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22344f;
}
.ca__dots i:nth-child(1) { background: #ff5d73; opacity: .8; }
.ca__dots i:nth-child(2) { background: #ffc24d; opacity: .8; }
.ca__dots i:nth-child(3) { background: #3ee08f; opacity: .8; }
.ca__label { font-weight: 600; }
.ca__tag {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid rgba(255, 200, 90, 0.4);
  border-radius: 5px;
  color: #ffd27a;
  font-weight: 700;
}
.ca__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.ca__value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed rgba(90, 210, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(0, 6, 16, 0.6);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.ca__prompt { color: var(--green); }
.ca__value [data-ca]::after {
  content: "";
  display: inline-block;
  width: 9px; height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.18em;
  background: var(--cyan);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.btn--copy {
  flex: none;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cyan);
  background: rgba(51, 209, 255, 0.12);
  color: var(--cyan-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.btn--copy svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--copy:hover { background: rgba(51, 209, 255, 0.22); color: var(--white); box-shadow: var(--glow-cyan); }
.btn--copy.is-copied {
  border-color: var(--green);
  background: rgba(62, 224, 143, 0.16);
  color: var(--green);
}
.ca__note {
  padding: 0 14px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Hero visual ---------- */
.hero__visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1145 / 1374;
  margin-inline: auto;
}
.hero__stage > * { will-change: transform; }

.hero__ring {
  position: absolute;
  left: 50%; top: 46%;
  width: 92%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(51, 209, 255, 0.5) 0deg 1.2deg, transparent 1.2deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 64.5%, #000 66%, transparent 66.5%);
  mask: radial-gradient(circle, transparent 64%, #000 64.5%, #000 66%, transparent 66.5%);
  opacity: 0.55;
  animation: spin 60s linear infinite;
}
.hero__ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(51, 209, 255, 0.18);
  box-shadow: 0 0 80px rgba(51, 209, 255, 0.15) inset;
}
@keyframes spin { to { rotate: 360deg; } }

.hero__chart {
  position: absolute;
  left: -12%; right: -8%;
  bottom: 18%;
  width: 120%;
  height: 46%;
  overflow: visible;
}
.hero__chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(51, 209, 255, 0.8));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-line 3.2s var(--ease) 0.4s forwards, line-breathe 6s ease-in-out 3.6s infinite;
}
.hero__chart-area { opacity: 0; animation: fade-in 1.6s ease 1.8s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes line-breathe { 50% { opacity: 0.55; } }
@keyframes fade-in { to { opacity: 1; } }

.hero__candles {
  position: absolute;
  left: 4%; right: 4%;
  bottom: 12%;
  height: 40%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3%;
  opacity: 0.42;
}
.hero__candles i {
  position: relative;
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(62, 224, 143, 0.75), rgba(62, 224, 143, 0.05));
  transform-origin: bottom;
  animation: candle 4.5s ease-in-out var(--d) infinite;
}
.hero__candles i::before {
  /* wick */
  content: "";
  position: absolute;
  left: 50%; top: -14%;
  width: 1px; height: 14%;
  background: rgba(62, 224, 143, 0.7);
}
.hero__candles i.dn { background: linear-gradient(180deg, rgba(59, 125, 255, 0.75), rgba(59, 125, 255, 0.05)); }
.hero__candles i.dn::before { background: rgba(59, 125, 255, 0.7); }
@keyframes candle {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.82); }
}

.hero__floor {
  position: absolute;
  left: 10%; right: 10%;
  bottom: 2%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(51, 209, 255, 0.35), transparent 70%);
  filter: blur(8px);
}

.hero__img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(51, 209, 255, 0.28));
  animation: hover-float 6s ease-in-out infinite;
}
@keyframes hover-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.hero__chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 20, 40, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
}
.hero__chip-k { font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); }
.hero__chip-v { font-size: 1rem; font-weight: 700; color: var(--white); }
.hero__chip--a { left: -2%; top: 20%; }
.hero__chip--a .hero__chip-v { color: var(--green); }
.hero__chip--b { right: 0; bottom: 20%; }
.hero__chip--b .hero__chip-v { color: var(--cyan); }

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(51, 209, 255, 0.07), rgba(59, 125, 255, 0.07)),
    rgba(4, 12, 26, 0.9);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
}
.ticker__group span,
.ticker__group b {
  padding: 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--text);
}
.ticker__group b { padding-inline: 4px; color: var(--cyan); font-weight: 400; }
.ticker__group .is-accent { color: var(--cyan); }
.ticker__group .is-up { color: var(--green); }
.ticker__group .is-up::before { content: "▲ "; font-size: 0.7em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px);
}

/* ---------- About ---------- */
.about__title { font-size: clamp(2.6rem, 7vw, 6rem); }
.about__lead {
  max-width: 36rem;
  margin-top: 26px;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #c3d4ea;
}

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(10px, 2vw, 24px);
  margin-top: clamp(48px, 7vw, 84px);
}
.equation__op {
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(51, 209, 255, 0.5);
}

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(22, 44, 80, 0.55), rgba(8, 18, 36, 0.7));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.quote::before {
  /* top accent line */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.6;
}
.quote::after {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(90, 180, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 180, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.quote { isolation: isolate; }
.quote:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -30px rgba(51, 209, 255, 0.6);
}
.quote__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.quote__sym {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--white);
}
.quote__spark {
  width: 80px; height: 24px;
  flex: none;
  margin-top: 8px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.85;
}
.quote__desc {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.quote--result {
  border-color: rgba(51, 209, 255, 0.45);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(51, 209, 255, 0.22), transparent 60%),
    linear-gradient(160deg, rgba(22, 50, 92, 0.75), rgba(8, 18, 36, 0.8));
  box-shadow: 0 30px 70px -40px rgba(51, 209, 255, 0.8);
}
.quote--result .quote__sym { color: var(--cyan); text-shadow: 0 0 30px rgba(51, 209, 255, 0.45); }
.quote--result .quote__desc { color: var(--text); }

/* ---------- The Desk ---------- */
.desk {
  background:
    linear-gradient(180deg, transparent, rgba(10, 24, 46, 0.55) 30%, rgba(10, 24, 46, 0.55) 70%, transparent);
}

.monitor {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #13243f, #0a1528);
  padding: 0 0 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 50px 100px -50px rgba(51, 209, 255, 0.45),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.monitor__bar { background: transparent; border-bottom: 0; }
.monitor__title { font-weight: 600; color: var(--text); }
.monitor__rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
}
.monitor__rec i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.monitor__screen {
  position: relative;
  margin-inline: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #050b16;
}
.monitor__screen img {
  width: 100%;
  aspect-ratio: 2172 / 724;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.monitor:hover .monitor__screen img { transform: scale(1.02); }
.monitor__screen::after {
  /* scanlines + vignette */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45));
  mix-blend-mode: multiply;
}
.monitor__hud {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(3, 10, 22, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan-2);
}
.monitor__hud--tl { left: 18px; top: 18px; }
.monitor__hud--br { right: 18px; bottom: 18px; color: var(--green); }
.monitor__corner {
  position: absolute;
  z-index: 2;
  width: 22px; height: 22px;
  border: 2px solid var(--cyan);
  opacity: 0.8;
}
.monitor__corner--tl { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.monitor__corner--tr { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.monitor__corner--bl { left: 8px; bottom: 8px; border-right: 0; border-top: 0; }
.monitor__corner--br { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }

.desk__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 80px);
}
.desk__title { font-size: clamp(2.3rem, 5.2vw, 4.6rem); }

.log {
  position: relative;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 10, 22, 0.6);
  font-family: var(--font-mono);
  counter-reset: log;
}
.log li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 22px;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--text);
  transition: background-color 0.25s, padding-left 0.3s var(--ease);
}
.log li + li { border-top: 1px dashed rgba(120, 190, 255, 0.1); }
.log li:hover { background: rgba(51, 209, 255, 0.06); padding-left: 28px; }
.log__t { flex: none; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; }
.log li.log__last { color: var(--cyan-2); font-weight: 700; }

/* ---------- Chart ---------- */
.chart__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.chart__title { font-size: clamp(2.8rem, 7vw, 6rem); }
.chart__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #0f1f38, #07111f);
  box-shadow: 0 40px 90px -50px rgba(51, 209, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.terminal__title { font-weight: 600; color: var(--text); }
.terminal__bar .status-pill { margin-left: auto; }

.terminal__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 420px;
  background: #050b16;
}
.terminal__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.chart-idle__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 180, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 180, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-pan 24s linear infinite;
}
@keyframes grid-pan { to { background-position: 48px 0, 48px 0; } }

.chart-idle__pulse {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  width: 100%;
  height: 120px;
  translate: 0 -50%;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.35;
  filter: drop-shadow(0 0 6px rgba(51, 209, 255, 0.7));
  stroke-dasharray: 120 900;
  animation: heartbeat 4s linear infinite;
}
@keyframes heartbeat {
  from { stroke-dashoffset: 1020; }
  to { stroke-dashoffset: 0; }
}

.chart-idle__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 460px;
  padding: 32px 28px;
  margin: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(5, 12, 24, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
}
.chart-idle__copy img {
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 40px -8px rgba(51, 209, 255, 0.6);
  object-fit: cover;
  filter: saturate(0.85);
}
.chart-idle__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}
.chart-idle__sub { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.chart-idle__ctas { display: flex; gap: 10px; margin-top: 22px; }

/* ---------- Closing bell ---------- */
.bell {
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.bell__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(51, 209, 255, 0.18), transparent 70%),
    linear-gradient(rgba(90, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(90, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.bell__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bell__icon {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 209, 255, 0.2), rgba(8, 18, 36, 0.8));
  box-shadow: 0 0 60px -10px rgba(51, 209, 255, 0.6);
}
.bell__icon svg {
  width: 38px; height: 38px;
  fill: none;
  stroke: var(--cyan-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 10%;
}
.bell__icon.is-visible svg { animation: ring 2.4s var(--ease) 0.3s 2; }
@keyframes ring {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-14deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-6deg); }
  50% { transform: rotate(3deg); }
}
.bell__title { font-size: clamp(2.5rem, 7.2vw, 6.4rem); }
.bell__ticker {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 15rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  background: linear-gradient(180deg, rgba(51, 209, 255, 0.28), rgba(51, 209, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(51, 209, 255, 0.35));
}
.bell__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px 32px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 14, 0.85);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}
.site-footer__name {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}
.site-footer__line { font-size: 0.9rem; color: var(--muted); }
.site-footer__x {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  overflow-wrap: anywhere;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.site-footer__x svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.site-footer__x:hover { border-color: var(--cyan); color: var(--white); box-shadow: var(--glow-cyan); }
.site-footer__legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 190, 255, 0.08);
  font-size: 0.78rem;
  color: #6f86a6;
}

/* =========================================================
   REVEAL
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .site-nav { gap: 16px; }
  .site-nav__links a { padding: 8px 10px; }
  .hero__chip--a { left: 0; }
}

@media (max-width: 960px) {
  .site-header__mobile { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px clamp(18px, 4vw, 40px) 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 9, 18, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__links { flex-direction: column; }
  .site-nav__links a { padding: 14px 6px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav__links a::after { display: none; }
  .site-nav__actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .site-nav__actions .btn { min-height: 48px; }

  .site-header:has(.site-nav.is-open) {
    background: rgba(4, 9, 18, 0.96);
    border-bottom-color: var(--line);
  }

  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 12px; padding-top: 32px; }
  .hero__title { font-size: clamp(2.6rem, 9vw, 5rem); }
  .hero__visual { order: 2; }
  .hero__stage { max-width: 540px; }

  .equation { grid-template-columns: 1fr; }
  .equation__op { justify-self: center; margin-block: -4px; }
  .quote { min-height: 0; gap: 24px; }

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

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .brand__logo { width: 36px; height: 36px; }
  .brand__name { font-size: 1.15rem; }

  .hero__title { font-size: clamp(2.2rem, 10.4vw, 4rem); }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn--primary { grid-column: 1 / -1; }
  .hero__ctas .btn { width: 100%; }

  .ca__body { flex-direction: column; align-items: stretch; }
  .btn--copy { width: 100%; }

  .hero__stage { max-width: 100%; width: 108%; margin-inline: -4%; }
  .hero__candles { opacity: 0.28; }
  .hero__candles i:nth-child(odd) { display: none; }
  .hero__chip { padding: 8px 11px; }
  .hero__chip-v { font-size: 0.9rem; }
  .hero__chip--a { top: 12%; left: 4%; }
  .hero__chip--b { bottom: 14%; right: 4%; }

  .ticker__group span, .ticker__group b { padding-block: 13px; font-size: 0.8rem; }

  .monitor__screen img { aspect-ratio: 4 / 3; object-position: 52% center; }
  .monitor__hud { font-size: 0.62rem; padding: 5px 8px; }
  .monitor__hud--tl { left: 12px; top: 12px; }
  .monitor__hud--br { right: 12px; bottom: 12px; }
  .monitor__title { display: none; }

  .log li { padding: 12px 16px; gap: 12px; }

  .chart__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .terminal__title { font-size: 0.62rem; letter-spacing: 0.08em; }
  .terminal__screen { aspect-ratio: auto; min-height: 460px; }
  .chart-idle__copy { padding: 26px 20px; margin: 14px; }

  .bell__ctas { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .bell__ctas .btn--primary { grid-column: 1 / -1; }
  .bell__ctas .btn:last-child { grid-column: 1 / -1; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand__ticker { display: none; }
  .hero__meta li { padding: 6px 10px; font-size: 0.72rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__chart-line { stroke-dashoffset: 0; }
  .hero__chart-area { opacity: 1; }
  .ticker__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
