/* Ticker Screener - Soft Premium rebuild.
   taste-skill soft-skill + impeccable anti-patterns + emilkowalski animation. */

:root {
  --bg: #faf9f7;
  --bg-deep: #f0eeea;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --accent: #1a1a2e;
  --accent-warm: #c9a96e;
  --accent-warm-soft: rgba(201, 169, 110, 0.12);
  --text: #1c1c1e;
  --text-secondary: #4a4a4e;
  --text-muted: #8a8a8e;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --patina: #3a9d7a;
  --red: #d94f4f;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --bg-deep: #0a0a0d;
    --surface: #18181c;
    --surface-elevated: #1e1e23;
    --accent: #e8e6e1;
    --accent-warm: #c9a96e;
    --accent-warm-soft: rgba(201, 169, 110, 0.1);
    --text: #e8e6e1;
    --text-secondary: #a8a8ac;
    --text-muted: #6a6a6e;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: 'General Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-shell {
  overflow-x: clip;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-shell main { flex: 1; }

/* Grain overlay - fixed, pointer-events-none per taste-skill */
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 200px;
  z-index: 9999;
  opacity: 0.35;
}

.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

/* Floating Glass Nav - taste-skill Fluid Island */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1200px, calc(100% - 32px));
  transition: transform 350ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms ease;
}
.nav-wrap.nav-hidden {
  transform: translateX(-50%) translateY(-130%);
  opacity: 0;
  pointer-events: none;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
@media (prefers-color-scheme: dark) {
  .nav { background: rgba(20, 20, 26, 0.82); border-color: rgba(255, 255, 255, 0.08); }
}


.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: transform 300ms var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-text {
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text em { color: var(--accent-warm); font-style: normal; font-weight: 700; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: var(--border); }

.nav-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* Buttons - 3D tactile depth with light gleam */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'General Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 250ms ease, background 250ms ease;
}
.button:hover {
  transform: translateY(-2px) translateZ(8px);
}
.button:active {
  transform: translateY(1px) scale(0.97) translateZ(-4px);
}
.button-primary {
  position: relative;
  overflow: hidden;
  color: #0b0c10;
  background: linear-gradient(135deg, #e5c98d 0%, var(--accent-warm) 100%);
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.button-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  animation: buttonGleam 5s infinite ease-in-out;
  pointer-events: none;
}
@keyframes buttonGleam {
  0%, 75% { left: -70%; }
  90%, 100% { left: 140%; }
}
.button-primary:hover {
  transform: translateY(-2px) scale(1.02) translateZ(10px);
  box-shadow: 0 10px 32px rgba(201, 169, 110, 0.55), 0 0 16px rgba(201, 169, 110, 0.3);
}
.button-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.button-secondary:hover {
  transform: translateY(-2px) translateZ(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-warm);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--patina);
}

/* Hero - centered stacked layout with 3D ambient depth */
.hero {
  position: relative;
  padding: 120px 0 0;
  overflow: hidden;
}

/* 3D Perspective Grid Background */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 700px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Floating 3D Ambient Orbs */
.hero-orb-1 {
  position: absolute;
  top: 6%;
  left: 8%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb1 14s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-orb-2 {
  position: absolute;
  top: 22%;
  right: 6%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 157, 122, 0.16) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: floatOrb2 16s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(45px, -35px, 0) scale(1.18); }
}
@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-55px, 45px, 0) scale(0.88); }
}

.hero-text-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 48px;
}
/* keep h1 and hero-copy max-width for readability */
.hero-text-wrap h1 { max-width: 720px; margin: 20px 0 0; }
.hero-text-wrap .hero-copy { max-width: 52ch; }
.hero-text-wrap .hero-actions { justify-content: center; }
.hero-text-wrap .proof { justify-content: center; }

/* Hero 3D Stage & Showcase Frame Wrapper */
.hero-frame-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.hero-frame-wrap::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 6%;
  right: 6%;
  bottom: 10%;
  background: radial-gradient(ellipse at 50% 35%, rgba(201, 169, 110, 0.22) 0%, rgba(58, 157, 122, 0.15) 45%, transparent 72%);
  filter: blur(64px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
}

h1 {
  max-width: 580px;
  margin: 20px 0 0;
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}
h1 .accent { color: var(--accent-warm); }
.hero-copy {
  max-width: 44ch;
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.proof strong { color: var(--text); font-weight: 600; }

/* Tape marquee */
.tape {
  margin-top: 40px;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.tape-track {
  display: inline-flex;
  gap: 32px;
  padding: 10px 0;
  animation: tape-scroll 28s linear infinite;
  will-change: transform;
}
.tape:hover .tape-track { animation-play-state: paused; }
.tape span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.tape span:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px) scale(1.05);
  color: var(--text);
}
.tape b { color: var(--text); font-weight: 600; }
.tape .up { color: var(--red); }
.tape .down { color: var(--patina); }
@keyframes tape-scroll { to { transform: translateX(-50%); } }

/* Live Ticker Flash Animations */
.tape span.ticker-tick-up {
  animation: tickUpFlash 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.tape span.ticker-tick-down {
  animation: tickDownFlash 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes tickUpFlash {
  0% { background: rgba(217, 79, 79, 0.4); transform: scale(1.12); color: #fff; }
  50% { background: rgba(217, 79, 79, 0.15); }
  100% { background: transparent; transform: scale(1); }
}
@keyframes tickDownFlash {
  0% { background: rgba(78, 203, 148, 0.4); transform: scale(1.12); color: #fff; }
  50% { background: rgba(78, 203, 148, 0.15); }
  100% { background: transparent; transform: scale(1); }
}

/* Product frame - 3D Desktop Window Bezel */
.product-frame {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 90px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  width: 100%;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 350ms ease;
}
@media (prefers-color-scheme: dark) {
  .product-frame {
    background: #141418;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 100px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}
.product-frame:hover {
  box-shadow: 0 40px 110px -15px rgba(0, 0, 0, 0.85), 0 0 32px rgba(201, 169, 110, 0.14);
}

/* Specular Glare Reflection */
.frame-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 300ms ease;
  background: radial-gradient(700px circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.14), transparent 60%);
}
.product-frame:hover .frame-shine {
  opacity: 1;
}

/* 3D Elevated Browser Window Header Bar */
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(20, 20, 26, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  user-select: none;
  transform: translateZ(24px);
  position: relative;
  z-index: 6;
}
.frame-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.frame-dots span:nth-child(1) { background: #ff5f56; }
.frame-dots span:nth-child(2) { background: #ffbd2e; }
.frame-dots span:nth-child(3) { background: #27c93f; }

.frame-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #8e8e98;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.frame-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-warm);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.25);
  text-transform: uppercase;
}

/* Screen Visual */
.frame-screen {
  position: relative;
  overflow: hidden;
  display: block;
  background: #0d0d11;
  transform-style: preserve-3d;
}
.frame-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* 3D Floating LIVE WATCHLIST Badge Pill */
.ticker-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(65px);
  transform-style: preserve-3d;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 18px 34px 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(18, 22, 26, 0.94);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  z-index: 12;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(78, 203, 148, 0.3), 0 0 24px rgba(78, 203, 148, 0.2);
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
}
.ticker-chip:hover {
  transform: translate(-50%, -54%) translateZ(80px) scale(1.05);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.85), 0 0 32px rgba(78, 203, 148, 0.45);
}
.ticker-chip i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ecb94;
  box-shadow: 0 0 14px rgba(78, 203, 148, 0.9);
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chip-line1, .chip-line2 {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ecb94;
  line-height: 1.2;
  white-space: nowrap;
}



/* Sections */
.section { padding: 80px 0 12px; }
.section-head { max-width: 720px; }
.section-title {
  margin: 12px 0 0;
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-copy {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 64ch;
}

/* Bento - 3D Interactive Cards with Spotlight */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.tile {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 300ms ease, border-color 300ms ease;
}
@media (prefers-color-scheme: dark) {
  .tile {
    background: #131317;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }
}
/* Flashlight spotlight effect */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 169, 110, 0.14), transparent 70%);
  opacity: var(--spotlight-opacity, 0);
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 1;
}
.tile:hover {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.25);
  border-color: rgba(201, 169, 110, 0.3);
}
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }
.bento-num {
  position: relative;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent-warm);
  text-transform: uppercase;
}
.tile h3 {
  position: relative;
  z-index: 2;
  transform: translateZ(14px);
  margin: 14px 0 8px;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.tile p {
  position: relative;
  z-index: 2;
  transform: translateZ(10px);
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.tile p:last-child { margin-bottom: 0; }
.tile figure {
  position: relative;
  z-index: 2;
  transform: translateZ(24px);
  margin: 18px 0 0;
}
.tile figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 400ms ease;
}
.tile:hover figure img {
  transform: scale(1.025);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.tile figcaption { margin-top: 8px; color: var(--text-muted); font-size: 0.78rem; }

/* Markets signal panel - 3D Card with Spotlight */
.signal-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 32px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 300ms ease, opacity 600ms ease;
}
@media (prefers-color-scheme: dark) {
  .signal-panel {
    background: #131317;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
}
.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 169, 110, 0.12), transparent 70%);
  opacity: var(--spotlight-opacity, 0);
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 1;
}
.signal-panel:hover {
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 169, 110, 0.2);
}
.signal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .signal-panel::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
}
.signal-panel h2 {
  margin: 12px 0 0;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.signal-panel h2 .accent { color: var(--accent-warm); }
.signal-panel p { margin: 0; color: var(--text-muted); line-height: 1.75; max-width: 56ch; }
.stat-list { display: grid; gap: 10px; align-content: center; }
.stat {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.stat:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat b { display: block; color: var(--text); font-size: 0.88rem; font-weight: 600; }
.stat span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.8rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.post-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-meta {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card h3 {
  margin: 10px 0 8px;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}
.post-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--accent-warm);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Footer */
.footer { padding: 48px 0 36px; color: var(--text-muted); font-size: 0.84rem; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text-secondary); font-weight: 500; }
.footer a:hover { color: var(--accent-warm); }
.inline-link { color: var(--accent-warm); font-weight: 600; white-space: nowrap; }

/* Reveal - visible without JS */
.reveal { opacity: 1; }

/* Scroll reveal  JS adds/removes .is-visible */
.will-reveal {
  opacity: 0;
  transform: translateY(32px);
}
.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1), transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hero entrance animation - staggered on page load */
.hero .eyebrow { animation: fadeSlideUp 700ms cubic-bezier(0.23, 1, 0.32, 1) 150ms both; }
.hero h1 { animation: fadeSlideUp 700ms cubic-bezier(0.23, 1, 0.32, 1) 300ms both; }
.hero .hero-copy { animation: fadeSlideUp 700ms cubic-bezier(0.23, 1, 0.32, 1) 450ms both; }
.hero .hero-actions { animation: fadeSlideUp 700ms cubic-bezier(0.23, 1, 0.32, 1) 600ms both; }
.hero .proof { animation: fadeSlideUp 600ms cubic-bezier(0.23, 1, 0.32, 1) 700ms both; }
.hero .tape { animation: fadeSlideUp 600ms cubic-bezier(0.23, 1, 0.32, 1) 800ms both; }
.hero-frame-wrap { animation: fadeScaleIn 900ms cubic-bezier(0.23, 1, 0.32, 1) 550ms both; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(58, 157, 122, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 16px rgba(58, 157, 122, 0.9); }
}

/* Eyebrow dot pulse */
.eyebrow::before {
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Mobile drawer */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.97); }
.menu-btn span {
  display: block;
  width: 18px; height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 250ms var(--ease-out), opacity 200ms var(--ease-out);
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 81;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(300px, 84vw);
  padding: 88px 24px 28px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
  transform: translateX(105%);
  transition: transform 280ms var(--ease-drawer);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a:not(.button) {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}
.mobile-drawer a:not(.button):hover { color: var(--accent-warm); }
.mobile-drawer .button { margin-top: 16px; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out), background 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn:active { transform: scale(0.97); }
.filter-btn.active {
  background: var(--accent-warm-soft);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

/* Feature toggles */
.feature-more { margin-top: 10px !important; }
.feature-toggle {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-warm);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.feature-toggle:hover { text-decoration: underline; }

/* Blog hub */
.section-tight { padding: 40px 0 64px; }
.post-list { margin-top: 28px; }
.post-row {
  display: block;
  padding: 20px 4px;
  border-radius: var(--radius-md);
  transition: background 180ms var(--ease-out);
}
.post-row:hover { background: var(--accent-warm-soft); }
.post-row:hover h3 { color: var(--accent-warm); }
.post-row h3 {
  margin: 10px 0 8px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.post-row p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.post-date { margin-top: 10px; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.post-divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* Article page */
.back-link { display: inline-block; margin-bottom: 24px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.back-link:hover { color: var(--accent-warm); }
.article { max-width: 780px; }
.article-title {
  margin: 14px 0 8px;
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: none;
}
.article-body { margin-top: 28px; color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }
.article-body h2 { margin: 36px 0 12px; color: var(--text); font-weight: 700; font-size: 1.4rem; }
.article-body p { margin: 0 0 16px; }
.article-body ul { margin: 0 0 16px; padding-left: 20px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--accent-warm); font-weight: 600; }
.shot { margin: 24px 0; }
.shot img { display: block; width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); }
.shot figcaption { margin-top: 8px; color: var(--text-muted); font-size: 0.84rem; line-height: 1.6; }
.extension-cta, .telegram-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.extension-cta strong, .telegram-cta strong { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.extension-cta p, .telegram-cta p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.extension-cta .button, .telegram-cta .button { flex-shrink: 0; }

/* Feedback page */
.feedback-page { min-height: 100vh; display: grid; place-items: center; padding: 36px 0; }
.feedback-card {
  width: min(580px, 100%);
  padding: clamp(28px, 6vw, 50px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.feedback-card h1 { margin: 16px auto; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; }
.feedback-card p { color: var(--text-muted); line-height: 1.75; }
.feedback-form { display: grid; gap: 10px; margin-top: 24px; }
.feedback-form input, .feedback-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.feedback-form input:focus, .feedback-form textarea:focus { outline: none; border-color: var(--accent-warm); }

/* File attachment */
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.attach-drop {
  display: block;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.attach-drop:hover, .attach-drop.drag-over { border-color: var(--accent-warm); background: var(--accent-warm-soft); }
.attach-drop-title { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.attach-drop-sub { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--text-muted); }
.attach-drop-files { display: block; margin-top: 8px; font-size: 0.76rem; font-weight: 600; color: var(--accent-warm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-preview:empty { display: none; }
.attach-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Confirm dialog */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  animation: confirm-fade 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.confirm-box {
  width: min(360px, 100%);
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: confirm-pop 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.confirm-check {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(58, 157, 122, 0.1);
  color: var(--patina);
  font-size: 1.6rem;
  font-weight: 700;
}
.confirm-box h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--text); font-weight: 600; }
.confirm-box p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
@keyframes confirm-fade { from { opacity: 0; } }
@keyframes confirm-pop { from { opacity: 0; transform: scale(0.95) translateY(8px); } }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; pointer-events: none; }

/* Responsive */
@media (max-width: 900px) {
  .span-8, .span-6, .span-4 { grid-column: span 12; }
}
@media (max-width: 800px) {
  .nav-links, .nav-meta { display: none; }
  .nav-wrap { width: calc(100% - 24px); top: 12px; }
  .nav { padding: 8px 8px 8px 16px; min-height: 48px; }
  .hero { padding: 88px 0 0; }
  .hero-text-wrap { padding-bottom: 32px; }
  .signal-panel { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .section { padding: 56px 0 8px; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.3rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .extension-cta, .telegram-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .hero-frame-wrap { max-width: 100%; }
  .ticker-chip { padding: 12px 20px 12px 16px; gap: 8px; }
  .chip-line1, .chip-line2 { font-size: 0.75rem; }
  .ticker-chip i { width: 7px; height: 7px; }
  .menu-btn { display: inline-flex; }
  .nav .button-secondary { display: none; }
}

/* Hover gating - Emil */
@media (hover: hover) and (pointer: fine) {
  .tile:hover, .post-card:hover, .button-primary:hover, .button-secondary:hover { will-change: transform; }
}

/* Accessibility: Gentle motion when reduced motion is requested */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero h1, .hero .hero-copy, .hero .hero-actions, .hero .proof, .hero-frame-wrap, .hero .tape {
    animation-duration: 400ms;
  }
}

/* Programmatic SEO: collections / glossary / learn */
.breadcrumb { margin-bottom: 18px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-warm); }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 8px; }
.hub-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hub-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.hub-card:hover h3 { color: var(--accent-warm); }
.hub-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.fact-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.6; }
.fact-table th, .fact-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.fact-table thead th { background: var(--surface); color: var(--text); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.fact-table tbody tr:last-child th, .fact-table tbody tr:last-child td { border-bottom: 0; }
.fact-table td { color: var(--text-secondary); }
.fact-table td strong { color: var(--text); white-space: nowrap; }
.disclaimer { margin-top: 28px; color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; border-top: 1px solid var(--border); padding-top: 16px; }
/* Justified body copy site-wide */
.hero-copy, .section-copy, .tile p, .signal-panel p, .post-card p, .post-row p, .hub-card p, .article-body p, .article-body li, .extension-cta p, .telegram-cta p, .feedback-card p, .disclaimer, .stat span, .tile figcaption, .shot figcaption, .policy-card p, .policy-card li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
@media (max-width: 800px) {
  .hub-grid { grid-template-columns: 1fr; }
}
