/* FUMBL — Enhanced Glitch Theme with RGB Pixels */

:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 93%;
  --card: 0 0% 4%;
  --primary: 152 100% 50%;
  --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 6%;
  --secondary-foreground: 0 0% 70%;
  --muted: 0 0% 6%;
  --muted-foreground: 0 0% 40%;
  --border: 0 0% 12%;
  --destructive: 0 72% 51%;
  --radius: 0.5rem;
  --glow: 0 0 20px hsl(152 100% 50% / 0.15);
  --glow-strong: 0 0 40px hsl(152 100% 50% / 0.25);
  --accent-blue: 217 91% 60%;
  --accent-purple: 280 100% 70%;
  --glitch-red: #ff0040;
  --glitch-blue: #00d4ff;
  --glitch-white: #ffffff;
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

::selection {
  background: hsl(152 100% 50% / 0.2);
  color: hsl(0 0% 100%);
}

.hidden {
  display: none !important;
}

/* ——— RGB Pixel Glitch Canvas (subtle, no scanlines) ——— */

/* ——— Enhanced Glitch Text Effect ——— */
.glitch-text-enhanced {
  position: relative;
  animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch-text-enhanced::before,
.glitch-text-enhanced::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text-enhanced::before {
  left: 3px;
  text-shadow: -3px 0 var(--glitch-red);
  clip: rect(44px, 9999px, 56px, 0);
  animation: glitch-anim-enhanced 2s infinite linear alternate-reverse;
}

.glitch-text-enhanced::after {
  left: -3px;
  text-shadow: 3px 0 var(--glitch-blue);
  clip: rect(44px, 9999px, 56px, 0);
  animation: glitch-anim2-enhanced 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-enhanced {
  0% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.8deg); }
  5% { clip: rect(70px, 9999px, 71px, 0); transform: skew(0.4deg); }
  10% { clip: rect(29px, 9999px, 24px, 0); transform: skew(0.9deg); }
  15% { clip: rect(45px, 9999px, 56px, 0); transform: skew(0.2deg); }
  20% { clip: rect(62px, 9999px, 78px, 0); transform: skew(0.6deg); }
  25% { clip: rect(11px, 9999px, 43px, 0); transform: skew(0.1deg); }
  30% { clip: rect(88px, 9999px, 92px, 0); transform: skew(0.7deg); }
  35% { clip: rect(3px, 9999px, 18px, 0); transform: skew(0.4deg); }
  40% { clip: rect(56px, 9999px, 89px, 0); transform: skew(0.3deg); }
  45% { clip: rect(23px, 9999px, 34px, 0); transform: skew(0.5deg); }
  50% { clip: rect(78px, 9999px, 83px, 0); transform: skew(0.1deg); }
  55% { clip: rect(12px, 9999px, 67px, 0); transform: skew(0.8deg); }
  60% { clip: rect(45px, 9999px, 51px, 0); transform: skew(0.4deg); }
  65% { clip: rect(91px, 9999px, 96px, 0); transform: skew(0.6deg); }
  70% { clip: rect(34px, 9999px, 39px, 0); transform: skew(0.2deg); }
  75% { clip: rect(67px, 9999px, 72px, 0); transform: skew(0.5deg); }
  80% { clip: rect(8px, 9999px, 13px, 0); transform: skew(0.1deg); }
  85% { clip: rect(56px, 9999px, 61px, 0); transform: skew(0.7deg); }
  90% { clip: rect(23px, 9999px, 28px, 0); transform: skew(0.3deg); }
  95% { clip: rect(89px, 9999px, 94px, 0); transform: skew(0.6deg); }
  100% { clip: rect(45px, 9999px, 50px, 0); transform: skew(0.2deg); }
}

@keyframes glitch-anim2-enhanced {
  0% { clip: rect(65px, 9999px, 119px, 0); transform: skew(0.5deg); }
  5% { clip: rect(23px, 9999px, 31px, 0); transform: skew(0.3deg); }
  10% { clip: rect(88px, 9999px, 92px, 0); transform: skew(0.6deg); }
  15% { clip: rect(12px, 9999px, 18px, 0); transform: skew(0.1deg); }
  20% { clip: rect(45px, 9999px, 56px, 0); transform: skew(0.8deg); }
  25% { clip: rect(78px, 9999px, 84px, 0); transform: skew(0.4deg); }
  30% { clip: rect(34px, 9999px, 39px, 0); transform: skew(0.5deg); }
  35% { clip: rect(56px, 9999px, 62px, 0); transform: skew(0.2deg); }
  40% { clip: rect(91px, 9999px, 97px, 0); transform: skew(0.7deg); }
  45% { clip: rect(11px, 9999px, 17px, 0); transform: skew(0.1deg); }
  50% { clip: rect(67px, 9999px, 73px, 0); transform: skew(0.9deg); }
  55% { clip: rect(23px, 9999px, 29px, 0); transform: skew(0.4deg); }
  60% { clip: rect(89px, 9999px, 95px, 0); transform: skew(0.6deg); }
  65% { clip: rect(45px, 9999px, 51px, 0); transform: skew(0.2deg); }
  70% { clip: rect(12px, 9999px, 18px, 0); transform: skew(0.7deg); }
  75% { clip: rect(78px, 9999px, 84px, 0); transform: skew(0.1deg); }
  80% { clip: rect(56px, 9999px, 62px, 0); transform: skew(0.8deg); }
  85% { clip: rect(34px, 9999px, 40px, 0); transform: skew(0.4deg); }
  90% { clip: rect(91px, 9999px, 97px, 0); transform: skew(0.5deg); }
  95% { clip: rect(67px, 9999px, 73px, 0); transform: skew(0.2deg); }
  100% { clip: rect(23px, 9999px, 29px, 0); transform: skew(0.6deg); }
}

.glitch-text-sm {
  position: relative;
}

.glitch-text-sm::before,
.glitch-text-sm::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text-sm:hover::before {
  left: 2px;
  text-shadow: -2px 0 var(--glitch-red);
  animation: glitch-anim-sm 0.3s infinite linear alternate-reverse;
  opacity: 0.8;
}

.glitch-text-sm:hover::after {
  left: -2px;
  text-shadow: 2px 0 var(--glitch-blue);
  animation: glitch-anim2-sm 0.3s infinite linear alternate-reverse;
  opacity: 0.8;
}

@keyframes glitch-anim-sm {
  0%, 100% { clip-path: inset(0 0 100% 0); }
  20% { clip-path: inset(20% 0 60% 0); }
  40% { clip-path: inset(40% 0 40% 0); }
  60% { clip-path: inset(60% 0 20% 0); }
  80% { clip-path: inset(80% 0 0% 0); }
}

@keyframes glitch-anim2-sm {
  0%, 100% { clip-path: inset(0 0 100% 0); }
  25% { clip-path: inset(15% 0 65% 0); }
  50% { clip-path: inset(45% 0 35% 0); }
  75% { clip-path: inset(75% 0 5% 0); }
}

/* ——— Auto-glitch (fires at intervals, no hover needed) ——— */
.glitch-auto {
  position: relative;
  contain: layout style;
}

.glitch-auto::before,
.glitch-auto::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
}

.glitch-auto::before {
  text-shadow: -2px 0 var(--glitch-red);
  animation: glitch-auto-before 8s linear infinite;
}

.glitch-auto::after {
  text-shadow: 2px 0 var(--glitch-blue);
  animation: glitch-auto-after 8s linear infinite;
}

@keyframes glitch-auto-before {
  0%, 35%, 43%, 85%, 93%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  37%  { opacity: 0.85; clip-path: inset(10% 0 70% 0); transform: translateX(3px); }
  39%  { opacity: 0.85; clip-path: inset(55% 0 20% 0); transform: translateX(-1px); }
  41%  { opacity: 0.85; clip-path: inset(75% 0 5% 0); transform: translateX(2px); }
  87%  { opacity: 0.85; clip-path: inset(20% 0 60% 0); transform: translateX(-2px); }
  89%  { opacity: 0.85; clip-path: inset(50% 0 30% 0); transform: translateX(3px); }
  91%  { opacity: 0.85; clip-path: inset(70% 0 10% 0); transform: translateX(-1px); }
}

@keyframes glitch-auto-after {
  0%, 36%, 44%, 86%, 94%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  38%  { opacity: 0.85; clip-path: inset(30% 0 50% 0); transform: translateX(-2px); }
  40%  { opacity: 0.85; clip-path: inset(65% 0 15% 0); transform: translateX(1px); }
  42%  { opacity: 0.85; clip-path: inset(15% 0 75% 0); transform: translateX(-3px); }
  88%  { opacity: 0.85; clip-path: inset(40% 0 40% 0); transform: translateX(2px); }
  90%  { opacity: 0.85; clip-path: inset(10% 0 80% 0); transform: translateX(-1px); }
  92%  { opacity: 0.85; clip-path: inset(60% 0 25% 0); transform: translateX(3px); }
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(0deg); }
  21% { transform: skew(2deg); }
  22% { transform: skew(-2deg); }
  23% { transform: skew(0deg); }
  100% { transform: skew(0deg); }
}

/* ——— Scroll Reveal with Glitch In (smoother, GPU-optimized) ——— */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

[data-scroll-reveal].revealed {
  animation: glitch-reveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes glitch-reveal {
  0% {
    opacity: 0;
    transform: translateY(30px) skewX(0deg);
  }
  20% {
    opacity: 0.3;
    transform: translateY(20px) skewX(-4deg);
  }
  40% {
    opacity: 0.6;
    transform: translateY(10px) skewX(3deg);
  }
  60% {
    opacity: 0.8;
    transform: translateY(5px) skewX(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewX(0deg);
  }
}

/* ——— View Container ——— */
.view {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Candlestick Chart Background ——— */
#chart-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.13;
  pointer-events: none;
}

.view {
  position: relative;
  z-index: 1;
}

/* ——— Header (Hidden Initially) ——— */
.token-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--foreground) / 0.05);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.token-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.token-header.header-visible {
  transform: translateY(0);
  opacity: 1;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  text-decoration: none;
  text-shadow: none;
  letter-spacing: -0.04em;
}

.logo-link .logo-mark {
  height: 1.35em;
  width: auto;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: hue-rotate(32deg);
}

.logo-glitch {
  position: relative;
  display: inline-block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.logo-glitch::before,
.logo-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.logo-link:hover .logo-glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--glitch-red);
  animation: logo-glitch 0.3s infinite;
  opacity: 0.8;
}

.logo-link:hover .logo-glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--glitch-blue);
  animation: logo-glitch 0.3s infinite reverse;
  opacity: 0.8;
}

@keyframes logo-glitch {
  0%, 100% { clip-path: inset(0 0 100% 0); }
  25% { clip-path: inset(20% 0 60% 0); }
  50% { clip-path: inset(40% 0 40% 0); }
  75% { clip-path: inset(60% 0 20% 0); }
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--foreground));
  background: transparent;
  border: 1px solid hsl(var(--foreground) / 0.15);
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: var(--radius);
}

.header-btn:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.1);
}

.connect-btn {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
}

.connect-btn:hover {
  background: hsl(var(--primary) / 0.2);
  border-color: hsl(var(--primary));
}

.header-nav-dropdown {
  position: relative;
}

.header-nav-trigger {
  background: transparent;
  border: 1px solid hsl(var(--foreground) / 0.15);
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-nav-trigger:hover,
.header-nav-dropdown.open .header-nav-trigger {
  border-color: hsl(var(--primary) / 0.6);
  color: hsl(var(--primary));
}

.header-nav-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 0.75rem;
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  backdrop-filter: blur(16px);
}

.header-nav-dropdown.open .header-nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-nav-item {
  display: block;
  padding: 0.55rem 0.875rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.header-nav-item:hover {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.header-live-stat {
  cursor: default;
  pointer-events: none;
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  gap: 0.4rem;
}

.connect-dot {
  width: 6px;
  height: 6px;
  background: hsl(var(--primary));
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ——— Landing Section (Initial View) ——— */
.landing-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.landing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  margin: -400px 0 0 -400px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(0 0% 0% / 0.07) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
}

.landing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.landing-title {
  display: inline-block;
  max-width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.75rem, 11vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  word-spacing: -0.18em;
  line-height: 1.05;
  margin: 0;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(152 80% 70%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px hsl(0 0% 0% / 0.4);
}

/* Match gradient on glitch layers so echoes span full wordmark */
.landing-title.glitch-text-enhanced::before,
.landing-title.glitch-text-enhanced::after {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(152 80% 70%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-tagline {
  color: hsl(var(--muted-foreground));
  font-size: 1.5rem;
  margin: 0;
}

.landing-cta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.landing-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
}

.landing-cta-logo {
  height: 3.25rem;
  width: auto;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  filter: drop-shadow(0 0 14px hsl(152 100% 50% / 0.35));
}

/* Tappy Slap Character (2.5x size) */
.tappy-slap {
  position: absolute;
  width: 250px;
  height: 250px;
  left: calc(50% - 375px);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

/* ——— Section Scroll Hint ——— */
.section-scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ——— Landing Scroll Hint ——— */
.landing-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transition: opacity 0.4s ease;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.landing-scroll-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: hsl(152 100% 50% / 0.65);
  margin: 0;
  white-space: nowrap;
  animation: pulseSub 3s ease-in-out infinite;
}

.landing-scroll-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 1.125rem;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 50%;
  cursor: pointer;
  animation: bounce-arrow 1.5s ease-in-out infinite;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.landing-scroll-arrow:hover {
  background: hsl(var(--primary) / 0.18);
  border-color: hsl(var(--primary) / 0.7);
  animation-play-state: paused;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.4; }
}

.landing-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 4rem;
  padding: 0 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.125rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 20px hsl(0 0% 0% / 0.05), 0 4px 30px hsl(0 0% 0% / 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.landing-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.landing-cta-btn:hover::before {
  transform: translateX(100%);
}

.landing-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px hsl(0 0% 0% / 0.08), 0 12px 40px hsl(0 0% 0% / 0.12);
}

.landing-cta-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.landing-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ——— Scroll Content (Hidden Initially) ——— */
.scroll-content {
  opacity: 0;
  transition: opacity 0.5s ease;
  -webkit-overflow-scrolling: touch;
}

.scroll-content.visible {
  opacity: 1;
}

/* ——— Hero Section ——— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  min-height: 30vh;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(0 0% 0% / 0.4) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* tappy-lottie removed */

.hero-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: hsl(152 100% 50% / 0.7);
  margin: 0;
  animation: fadeIn 0.6s ease-out;
  text-shadow: 0 0 40px hsl(0 0% 0% / 0.6);
  transition: opacity 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseSub {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ——— Stats Section ——— */
.stats-section {
  padding: 4rem 2rem;
  border-top: 1px solid hsl(var(--foreground) / 0.05);
  border-bottom: 1px solid hsl(var(--foreground) / 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-value {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ——— Section Tags & Titles ——— */
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.375rem 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 2rem;
  margin: 0;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
}

/* ——— Portfolio Section ——— */
.portfolio-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 5rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.portfolio-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
}

.portfolio-left .section-title {
  text-align: left;
  width: auto;
}

.portfolio-left .section-tag {
  text-align: left;
}

.portfolio-left .landing-cta-btn {
  align-self: flex-start;
}

.portfolio-left .section-desc {
  max-width: 100%;
  margin: 0;
}

.section-desc {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 400px;
}

.analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--foreground) / 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.analyze-btn:hover {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.analyze-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Portfolio Preview Image */
.portfolio-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-preview-image {
  position: relative;
}

.portfolio-img {
  display: block;
  width: 100%;
  max-width: 385px;
  height: auto;
  border-radius: 1.5rem;
}


.portfolio-img-overlay {
  display: none;
}

/* ——— Process Section ——— */
.process-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
  text-align: center;
  background: hsl(var(--background));
}

#process-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.22;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.process-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 960px;
  text-align: center;
}

.process-desc {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  gap: 1.25rem;
  margin: 0 auto;
  justify-content: center;
}

.process-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--foreground) / 0.08);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.process-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px hsl(var(--primary) / 0.1);
}

.process-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 0.75rem;
  color: hsl(var(--primary));
  margin: 0 0 1.25rem;
}

.process-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
}

.process-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* ——— Tweets Section ——— */
.tweets-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}

.tweets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  gap: 0.875rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  justify-content: center;
  align-items: start;
}

.tweet-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tweet-card:hover {
  border-color: hsl(var(--foreground) / 0.2);
  transform: translateY(-3px);
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tweet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.tweet-avatar-img {
  object-fit: cover;
}

.tweet-media-crop {
  width: 100%;
  overflow: hidden;
  border-radius: 0.625rem;
  border: 1px solid hsl(var(--foreground) / 0.08);
}

.tweet-media-crop .tweet-media {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: 50% 35%;
  border-radius: 0;
  border: none;
  display: block;
}

.tweet-media {
  width: 100%;
  height: auto;
  border-radius: 0.625rem;
  display: block;
  border: 1px solid hsl(var(--foreground) / 0.08);
}

.tweet-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.tweet-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tweet-verified {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tweet-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.tweet-x-logo {
  width: 18px;
  height: 18px;
  color: hsl(var(--muted-foreground));
  margin-left: auto;
  flex-shrink: 0;
}

.tweet-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  line-height: 1.55;
  margin: 0;
}

.tweet-mention {
  color: hsl(217 91% 60%);
}

.tweet-highlight {
  color: hsl(var(--primary));
  font-weight: 700;
}

.tweet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--foreground) / 0.06);
}

.tweet-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}

.tweet-stats {
  display: flex;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}

/* ——— Ticker Section ——— */
.ticker-section {
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--foreground) / 0.05);
  border-bottom: 1px solid hsl(var(--foreground) / 0.05);
  overflow: hidden;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  gap: 3rem;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ticker-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.ticker-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.ticker-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.ticker-change.up {
  color: hsl(var(--primary));
}

.ticker-change.down {
  color: hsl(var(--destructive));
}

/* ——— Final CTA Section ——— */
.final-cta-section {
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
}

.final-cta-card {
  text-align: center;
  max-width: 600px;
  padding: 2.5rem 3rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px hsl(0 0% 0% / 0.3);
}

.final-cta-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
}

.final-cta-text {
  text-shadow: 0 0 40px hsl(0 0% 0% / 0.6);
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem;
}

.final-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 2rem;
  height: 4rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--glow);
  transition: all 0.3s ease;
}

.final-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

.final-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ——— Footer ——— */
.main-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid hsl(var(--foreground) / 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand-block {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: hue-rotate(32deg);
}

.footer-brand-block a {
  display: flex;
  align-items: center;
  transition: filter 0.2s ease;
}

.footer-brand-block a:hover {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.footer-brand-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(var(--primary));
  letter-spacing: -0.03em;
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}

.footer-terms {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
}

.footer-terms a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-terms a:hover {
  color: hsl(var(--primary));
}

.footer-terms-sep {
  margin: 0 0.35rem;
  color: hsl(var(--muted-foreground) / 0.6);
}

.footer-x-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.footer-x-link {
  display: flex;
  align-items: center;
  color: hsl(var(--primary));
  text-decoration: none;
  transition: filter 0.2s ease;
}

.footer-x-link:hover {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.footer-creator-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-creator-btn:hover {
  color: hsl(var(--primary));
}

/* ——— Creator Gate Button ——— */
.creator-gate-btn {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: default;
  z-index: 10;
}

/* ——— Modal Styles ——— */
.overlay {
  position: fixed;
  inset: 0;
  background: hsl(0 0% 0% / 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem;
}

.modal-sub {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 50%;
  color: hsl(var(--muted-foreground));
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

/* OTP Modal */
.creator-otp-modal {
  width: 320px;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.otp-slot {
  width: 50px;
  height: 60px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  background: hsl(var(--secondary));
  border: 2px solid hsl(var(--foreground) / 0.1);
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}

.otp-slot:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.otp-error {
  text-align: center;
  color: hsl(var(--destructive));
  font-size: 0.875rem;
  margin: 0;
}

/* Creator Modal */
.creator-modal-full {
  width: 900px;
}

.creator-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.creator-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creator-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creator-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.creator-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}

.creator-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.creator-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.creator-chain-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.creator-chain-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.creator-chain-btn img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.creator-chain-btn span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--foreground));
}

.creator-chain-btn .chain-price {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

.creator-chain-btn:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.creator-chain-btn.active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}

.creator-logo-drop {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--secondary));
  border: 2px dashed hsl(var(--foreground) / 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.creator-logo-drop:hover,
.creator-logo-drop:focus {
  border-color: hsl(var(--primary) / 0.5);
  outline: none;
}

.creator-logo-drop:focus {
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.creator-logo-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-logo-placeholder {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.creator-logo-placeholder small {
  display: block;
  font-size: 0.625rem;
  opacity: 0.7;
}

/* Creator Preview */
.creator-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creator-preview-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.creator-preview-box {
  position: relative;
  background: linear-gradient(135deg, hsl(var(--card)), hsl(0 0% 2%));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  min-height: 300px;
}

.creator-preview-logo-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-preview-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-preview-logo-placeholder {
  width: 40px;
  height: 40px;
  background: hsl(var(--foreground) / 0.1);
  border-radius: 50%;
}

.creator-preview-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 0 0 0.5rem;
}

.creator-preview-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
}

.creator-preview-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.5rem;
}

.creator-preview-line .primary {
  color: hsl(var(--primary));
}

.creator-preview-usd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 1rem 0 0.5rem;
}

.creator-preview-missed {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--destructive));
  margin: 0;
}

.creator-preview-chain-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  padding: 0.2rem 0.45rem 0.2rem 0.35rem;
  border-radius: 0.35rem;
}

.creator-preview-chain-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid hsl(var(--foreground) / 0.12);
}

.creator-preview-chain-icon.hidden {
  display: none;
}

.creator-preview-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--foreground) / 0.08);
}

.creator-preview-site-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.creator-preview-site-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.creator-preview-chain-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.creator-preview-chain-strip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid hsl(var(--foreground) / 0.12);
  opacity: 0.38;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.creator-preview-chain-strip img.creator-strip-icon--active {
  opacity: 1;
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
}

.creator-preview-site-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  margin: 0.65rem 0 0;
}

.creator-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.creator-download-btn:hover {
  box-shadow: var(--glow);
}

/* Wallet Modal */
.wallet-security-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.5;
}

.wallet-modal {
  width: 430px;
  background:
    radial-gradient(circle at 20% -10%, hsl(152 100% 50% / 0.12), transparent 45%),
    radial-gradient(circle at 100% 0%, hsl(217 91% 60% / 0.12), transparent 38%),
    linear-gradient(140deg, hsl(var(--card)), hsl(0 0% 2%));
  border: 1px solid hsl(var(--primary) / 0.22);
  box-shadow: 0 24px 72px hsl(0 0% 0% / 0.6), 0 0 0 1px hsl(var(--primary) / 0.1);
}

/* ——— Network select (Connect Wallet) ——— */
#network-select-modal.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  box-sizing: border-box;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: hsl(0 0% 0% / 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#network-select-modal.modal-backdrop.open {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100dvh;
  min-height: 100vh;
}

#network-select-modal .nw-modal {
  position: relative;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width: 100%;
  justify-self: center;
  align-self: center;
  max-height: min(90dvh, calc(100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 80px hsl(0 0% 0% / 0.55), 0 0 0 1px hsl(var(--primary) / 0.08);
}

#network-select-modal .nw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

#network-select-modal .nw-modal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

#network-select-modal .nw-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: 50%;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#network-select-modal .nw-modal-close:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.08);
}

#network-select-modal .nw-modal-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
  margin: 0 0 1.25rem;
}

#network-select-modal .nw-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#network-select-modal .network-btn {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--foreground) / 0.12);
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#network-select-modal .network-btn:hover {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--primary) / 0.06);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.12);
}

#network-select-modal .network-btn:active {
  transform: scale(0.99);
}

#network-select-modal .network-btn.secondary-btn {
  /* same base; hook for variants */
}

#network-select-modal .network-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: hsl(var(--foreground) / 0.06);
  border: 1px solid hsl(var(--foreground) / 0.1);
}

#network-select-modal .network-btn-label {
  flex: 1;
  min-width: 0;
}

#network-select-modal .network-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

#network-select-modal .network-arrow {
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  opacity: 0.85;
}

#network-select-modal .network-btn:hover .network-arrow {
  color: hsl(var(--primary));
  opacity: 1;
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  padding: 0.95rem 1rem;
  background: hsl(0 0% 100% / 0.01);
  border: 1px solid hsl(var(--foreground) / 0.16);
  border-radius: 0.7rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wallet-option:hover {
  border-color: hsl(var(--primary) / 0.65);
  background: hsl(var(--primary) / 0.08);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.24);
  transform: translateY(-1px);
}

.wallet-option:active {
  transform: scale(0.99);
}

.wallet-option img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid hsl(var(--foreground) / 0.2);
}

.wallet-option span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
}

.wallet-leading {
  width: 154px;
  min-width: 154px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wallet-label {
  flex: 1;
  text-align: right;
}

.wallet-option.connect-sol {
  border-color: hsl(152 100% 50% / 0.35);
  background: linear-gradient(90deg, hsl(152 100% 50% / 0.12), hsl(0 0% 100% / 0.01));
}

.wallet-option.interact-button {
  border-color: hsl(217 91% 60% / 0.35);
  background: linear-gradient(90deg, hsl(217 91% 60% / 0.12), hsl(0 0% 100% / 0.01));
}

.wallet-option.connect-sol:hover {
  box-shadow: 0 0 0 1px hsl(152 100% 50% / 0.3), 0 0 24px hsl(152 100% 50% / 0.12);
}

.wallet-option.connect-evm,
.wallet-option.interact-button {
  border-color: hsl(217 91% 60% / 0.35);
  background: linear-gradient(90deg, hsl(217 91% 60% / 0.12), hsl(0 0% 100% / 0.01));
}

.wallet-option.connect-evm:hover,
.wallet-option.interact-button:hover {
  box-shadow: 0 0 0 1px hsl(217 91% 60% / 0.3), 0 0 24px hsl(217 91% 60% / 0.12);
}

.evm-chain-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.evm-chain-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid hsl(var(--foreground) / 0.22);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}

.evm-chain-logos img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid hsl(var(--foreground) / 0.22);
  object-fit: cover;
}


/* ——— Landing Stats Strip ——— */
.landing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--foreground) / 0.07);
  border-bottom: 1px solid hsl(var(--foreground) / 0.07);
  width: max-content;
  max-width: 100%;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0 2rem;
}

.landing-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  letter-spacing: -0.03em;
}

.landing-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.landing-stat-sep {
  width: 1px;
  height: 2.25rem;
  background: hsl(var(--foreground) / 0.1);
  flex-shrink: 0;
}

/* ——— Landing Audit Badge ——— */
.landing-free-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.75);
  letter-spacing: 0.03em;
}

.landing-audit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.landing-audit-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
}

.landing-audit-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.04em;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-left {
    align-items: center;
    text-align: center;
  }

  .section-desc {
    max-width: 100%;
  }

  .creator-modal-full {
    width: 100%;
  }

  .creator-modal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4.5rem 1.25rem 2.5rem;
    min-height: auto;
  }

  .stats-section {
    padding: 3rem 1.25rem;
  }

  .portfolio-section {
    padding: 3.5rem 1.25rem;
  }

  .process-section {
    padding: 3.5rem 1.25rem 5rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .final-cta-section {
    padding: 3.5rem 1.25rem;
  }

  .final-cta-card {
    padding: 2.5rem 1.5rem;
  }

  .ticker-content {
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .landing-title {
    font-size: clamp(2.475rem, 9vw + 0.525rem, 4.275rem);
    line-height: 1.08;
    margin-bottom: 0;
  }

  .landing-tagline {
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
    padding: 0 0.25rem;
  }

  .landing-cta-wrap {
    flex-direction: column;
    width: 100%;
    max-width: min(22rem, 100%);
    margin: 0 auto;
  }

  .landing-cta-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .landing-cta-btn {
    flex: 1;
    min-width: 0;
    height: 3.5rem;
    padding: 0 1rem;
    font-size: 0.9375rem;
    justify-content: center;
  }

  .landing-cta-logo {
    height: 3.5rem;
    max-height: 56px;
    width: auto;
    flex-shrink: 0;
  }

  .tappy-slap {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: 0 auto 0.75rem;
    width: min(220px, 70vw);
    height: min(220px, 70vw);
  }

  .token-header {
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.65rem max(0.75rem, env(safe-area-inset-left));
  }

  .logo-link {
    font-size: clamp(0.75rem, 3.2vw + 0.35rem, 1rem);
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
  }

  .logo-link .logo-mark {
    max-height: 30px;
    height: 1.25em;
  }

  .header-btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.625rem;
    white-space: nowrap;
  }

  .connect-dot {
    width: 5px;
    height: 5px;
  }

  #network-select-modal .nw-modal {
    padding: 1.25rem 1rem 1.1rem;
    border-radius: 0.875rem;
  }

  #network-select-modal .nw-modal-title {
    font-size: 1rem;
    line-height: 1.25;
  }

  #network-select-modal .nw-modal-sub {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  #network-select-modal .network-btn {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }

  #network-select-modal .network-logo {
    width: 40px;
    height: 40px;
  }

  #network-select-modal .network-name {
    font-size: 0.875rem;
  }

  .modal {
    padding: 1.25rem max(1rem, env(safe-area-inset-right)) 1.5rem max(1rem, env(safe-area-inset-left));
    width: 100%;
    max-width: min(100% - 2rem, 520px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.875rem;
  }

  .modal-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 36px;
    height: 36px;
  }

  .creator-chain-select {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .creator-chain-btn {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.4rem;
    gap: 0.35rem;
  }

  .creator-chain-btn img {
    width: 18px;
    height: 18px;
  }

  .creator-chain-btn span {
    font-size: 0.6875rem;
  }

  .creator-chain-btn .chain-price {
    width: 100%;
    text-align: center;
    font-size: 0.5625rem;
  }

  .creator-preview-box {
    padding: 1.25rem 1rem 1.5rem;
    min-height: auto;
  }

  .creator-preview-chain-badge {
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.5625rem;
    padding: 0.15rem 0.35rem;
    gap: 0.25rem;
  }

  .creator-preview-chain-icon {
    width: 15px;
    height: 15px;
  }

  .creator-preview-name {
    font-size: 1.25rem;
    padding-right: 4.5rem;
  }

  .creator-preview-chain-strip {
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 100%;
  }

  .creator-preview-chain-strip img {
    width: 22px;
    height: 22px;
  }

  .creator-preview-footer-brand {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .section-title {
    font-size: clamp(1.2rem, 5vw, 1.65rem);
    word-break: break-word;
  }

  .section-desc,
  .process-desc,
  .final-cta-text {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .analyze-btn {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
  }

  .final-cta-card {
    padding: 1.75rem 1.1rem;
    border-radius: 1rem;
  }

  .final-cta-btn {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  .main-footer {
    padding: 1.5rem max(1rem, env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    gap: 0.85rem;
  }

  .footer-brand-text {
    font-size: 0.875rem;
  }

  .footer-creator-btn {
    max-width: 100%;
    line-height: 1.45;
    padding: 0 0.25rem;
    font-size: 0.6875rem;
  }

  .footer-terms {
    font-size: 0.625rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .footer-x-link {
    font-size: 0.625rem;
  }

  .landing-stats {
    margin-top: -1.5rem;
    padding: 0.75rem 0;
    transform: scale(0.8925);
    transform-origin: center;
  }

  .landing-stat {
    padding: 0 1.25rem;
  }

  .landing-stat-value {
    font-size: 1.125rem;
  }

  .landing-stat-label {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
  }

  .landing-stat-sep {
    height: 1.75rem;
  }
}

@media (max-width: 600px) and (hover: none) {
  .landing-cta-btn:hover,
  .landing-cta-btn:active {
    transform: none;
  }
}

/* ——— Mobile Optimizations ——— */
@media (max-width: 768px) {

  /* Use dynamic viewport height to account for mobile browser chrome */
  .landing-section,
  .portfolio-section,
  .process-section,
  .tweets-section {
    min-height: 100dvh;
  }

  /* Hero */
  .landing-section {
    padding: 4rem 1.5rem 4rem;
    justify-content: center;
  }

  .landing-inner {
    gap: 1.5rem;
  }

  .landing-tagline {
    font-size: 1.0625rem;
  }

  .landing-cta-btn {
    width: auto;
    max-width: 15rem;
    justify-content: center;
    height: 3rem;
    padding: 0 1.5rem;
    margin-top: -0.75rem;
  }

  .landing-audit {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    transform: scale(0.847);
    transform-origin: center;
  }

  /* Hero quote — hidden on mobile */
  .hero {
    display: none;
  }

  /* Portfolio section — single column, center aligned */
  .portfolio-section {
    padding: 4rem 1.25rem;
  }

  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-left {
    align-items: center;
    text-align: center;
  }

  .portfolio-container {
    gap: 1.25rem;
  }

  .portfolio-section .portfolio-img {
    transform: scale(0.75);
    transform-origin: center top;
  }

  .portfolio-left .section-title,
  .portfolio-left .section-tag {
    text-align: center;
  }

  .portfolio-section .section-title,
  .process-section .section-title,
  .tweets-section .section-title {
    font-size: clamp(1.2rem, 5vw, 1.65rem);
  }


  .portfolio-left .landing-cta-wrap {
    width: 100%;
  }

  .portfolio-left .section-desc {
    transform: scale(0.85);
    transform-origin: center;
  }

  .portfolio-right {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  /* Process section */
  .process-section {
    padding: 4rem 1.25rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    width: 100%;
  }

  .process-card {
    padding: 1.5rem 1.125rem;
    border-radius: 0.9rem;
  }

  .process-card .process-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0.9rem;
    border-radius: 0.6rem;
  }

  .process-card .process-icon svg {
    width: 21px;
    height: 21px;
  }

  .process-card .process-title {
    font-size: 0.9rem;
    margin-bottom: 0.525rem;
  }

  .process-card .process-text {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  /* Tweets section — single column */
  .tweets-section {
    padding: 8rem 1.25rem 4rem;
  }

  .tweets-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  .tweet-media-crop {
    height: auto;
    max-height: 260px;
  }

  .tweet-media-crop .tweet-media,
  .tweet-media {
    max-height: 260px;
    object-fit: cover;
  }

  .tweet-card {
    padding: 1rem;
  }

  /* Scroll arrows — hidden on mobile */
  .landing-scroll-hint {
    display: none;
  }

  .footer-brand-block a:hover,
  .footer-x-link:hover {
    filter: none;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .header-actions {
    display: none;
  }

  .token-header {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
  }

  .token-header .logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: none;
    white-space: nowrap;
  }

  /* Final CTA */
  .final-cta-section {
    padding: 3rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-text-enhanced,
  .glitch-text-enhanced::before,
  .glitch-text-enhanced::after {
    animation: none !important;
  }

  .ticker-content {
    animation: none;
  }
}
