/* ═══ COINSIGNAL — SHARED STYLES ══════════════════════════════ */

:root {
  --sol-green: #14F195;
  --sol-purple: #9945FF;
  --bg: #050509;
  --surface: #0c0c18;
  --surface2: #111127;
  --border: #1e1e3a;
  --text: #e8e8f8;
  --muted: #6b6b90;
  --radius: 12px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
::selection { background: rgba(153,69,255,0.4); }
img { max-width: 100%; display: block; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--sol-purple), var(--sol-green)); border-radius: 2px; }

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028; pointer-events: none; z-index: 9990; mix-blend-mode: overlay;
}

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
  transform-origin: left; transform: scaleX(0); z-index: 200;
}

/* ─── PAGE TRANSITION ─── */
.page-overlay { position: fixed; inset: 0; z-index: 9995; pointer-events: none; }
.page-panel {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sol-purple) 0%, #050509 70%);
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.77,0,0.18,1);
}
.page-overlay.page-out .page-panel { transform: translateX(100%); }

/* ─── CURSOR ─── */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 7px; height: 7px; background: var(--sol-green);
  border-radius: 50%; pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 12px var(--sol-green);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(153,69,255,0.55);
  border-radius: 50%; pointer-events: none; z-index: 9996;
  transform: translate(-50%,-50%);
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo), border-color 0.3s;
}
.cursor-dot.is-hover { width: 14px; height: 14px; background: var(--sol-purple); }
.cursor-ring.is-hover { width: 52px; height: 52px; border-color: rgba(20,241,149,0.45); }
.cursor-dot.is-click { transform: translate(-50%,-50%) scale(0.65); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(5,5,9,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.5px;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--sol-green), var(--sol-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; color: #000;
  box-shadow: 0 0 20px rgba(20,241,149,0.3); flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s; white-space: nowrap;
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--sol-green), var(--sol-purple));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-expo);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ─── HAMBURGER / MOBILE MENU ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(5,5,9,0.97); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px); padding: 24px 32px;
  flex-direction: column; gap: 20px; z-index: 99;
  transform: translateY(-10px); opacity: 0;
  transition: transform 0.3s var(--ease-expo), opacity 0.3s;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--text); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600; border: none; cursor: none;
  transition: transform 0.25s var(--ease-back), box-shadow 0.25s;
  position: relative; overflow: hidden; white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sol-green), #0fd68a);
  color: #000;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(20,241,149,0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(153,69,255,0.5); background: rgba(153,69,255,0.05); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 0.95rem; border-radius: 11px; }
.btn-xl { padding: 20px 48px; font-size: 1.05rem; border-radius: 14px; }

/* ─── BOOKMARKLET BUTTON ─── */
.bookmarklet-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 38px; border-radius: 14px; cursor: grab;
  background: linear-gradient(135deg, var(--sol-green) 0%, #0fd68a 100%);
  color: #000; font-weight: 800; font-size: 1rem;
  border: none; user-select: none;
  animation: glow-pulse 2.5s ease infinite;
  transition: transform 0.25s var(--ease-back);
  font-family: 'Inter', sans-serif;
}
.bookmarklet-btn:active { cursor: grabbing; }
.bookmarklet-btn:hover { transform: translateY(-4px); }
.bookmarklet-btn.xl { padding: 22px 56px; font-size: 1.15rem; border-radius: 16px; }
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 24px rgba(20,241,149,0.45), 0 6px 30px rgba(0,0,0,0.45); }
  50% { box-shadow: 0 0 64px rgba(20,241,149,0.75), 0 6px 30px rgba(0,0,0,0.45); }
}

/* ─── LAYOUT ─── */
.section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-sm { padding: 72px 48px; max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--sol-purple); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 540px; line-height: 1.8; }
.grad-text {
  background: linear-gradient(90deg, var(--sol-green), #a78bfa 50%, var(--sol-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── CARD BASE ─── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-expo), box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(153,69,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(153,69,255,0.06);
}
.tilt-shine {
  position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 1;
}

/* ─── TICKER ─── */
.ticker-wrap {
  overflow: hidden; padding: 14px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ticker-track { display: flex; gap: 52px; white-space: nowrap; animation: ticker-scroll 30s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.ticker-up { color: var(--sol-green); }
.ticker-down { color: #f43f5e; }
.ticker-coin { color: var(--text); font-weight: 600; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; } .d5 { transition-delay: 0.5s; } .d6 { transition-delay: 0.6s; }

/* ─── RIPPLE ─── */
.ripple-wrap { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.22); transform: scale(0); animation: ripple-out 0.65s ease-out forwards; pointer-events: none; }
@keyframes ripple-out { to { transform: scale(4); opacity: 0; } }

/* ─── TERMINAL ─── */
.terminal { background: #0a0a14; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.term-bar { background: #111125; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { color: var(--muted); font-size: 0.72rem; margin-left: auto; font-family: 'JetBrains Mono', monospace; }
.term-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; line-height: 1.85; min-height: 220px; }
.t-line { display: flex; gap: 8px; }
.t-prompt { color: var(--sol-purple); }
.t-dim { color: #44445a; } .t-muted { color: #6b6b90; }
.t-green { color: var(--sol-green); } .t-yellow { color: #fbbf24; } .t-red { color: #f87171; }
.t-white { color: var(--text); font-weight: 600; }
.t-cursor { display: inline-block; width: 7px; height: 13px; background: var(--sol-green); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 2px; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 40px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--muted); font-size: 0.825rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-right { color: var(--muted); font-size: 0.72rem; text-align: right; line-height: 1.7; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .section { padding: 72px 24px; }
  .section-sm { padding: 56px 24px; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 56px 20px; }
  nav { padding: 14px 20px; }
}
