/* ==========================================================================
   BEARO — stylesheet
   ========================================================================== */

:root {
  --bg: #0b0c10;
  --bg-soft: #101218;
  --panel: #14161d;
  --panel-2: #191c25;
  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.05);
  --text: #f4f1ea;
  --text-dim: #a7a9b4;
  --text-faint: #6b6d78;

  --amber: #ffb020;
  --amber-2: #ffd166;
  --amber-deep: #f79a1e;
  --cream: #fff3d6;

  --green: #3ddc84;
  --green-soft: rgba(61,220,132,0.14);
  --red: #ff5c72;
  --red-soft: rgba(255,92,114,0.14);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(255,176,32,0.15), 0 20px 60px -20px rgba(255,176,32,0.25);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #0b0c10;
    --bg-soft: #101218;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--amber-2), var(--amber), var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* film grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin-left: -240px; margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,0.10), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(var(--x, -500px), var(--y, -500px));
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber-2), var(--amber-deep));
  color: #1a1200;
  box-shadow: 0 12px 30px -10px rgba(255,176,32,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(255,176,32,0.7); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(11,12,16,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--amber);
  border: 2px solid rgba(255,255,255,0.15);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }
.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.nav-social:hover { color: var(--text); border-color: rgba(255,176,32,0.3); transform: translateY(-2px); }
.nav-burger { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 0;
  overflow: hidden;
}

.hero-blobs { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite;
}
.blob-a { width: 480px; height: 480px; background: radial-gradient(circle, var(--amber) 0%, transparent 70%); top: -120px; left: -100px; }
.blob-b { width: 420px; height: 420px; background: radial-gradient(circle, #ff7a59 0%, transparent 70%); bottom: -140px; right: -80px; animation-delay: -6s; }
.blob-c { width: 320px; height: 320px; background: radial-gradient(circle, #ffe08a 0%, transparent 70%); top: 30%; right: 20%; animation-delay: -12s; opacity: 0.3; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.particles { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,176,32,0.1);
  border: 1px solid rgba(255,176,32,0.25);
  color: var(--amber-2);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61,220,132,0.6);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.06;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-actions svg { transition: transform 0.2s ease; }
.hero-actions .btn:hover svg { transform: translateX(3px); }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--amber-2); }
.hstat-label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-art-ring {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(255,176,32,0.3);
  animation: spin 40s linear infinite;
}
.hero-art-ring::before, .hero-art-ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.hero-art-ring::before { top: -4px; left: 50%; }
.hero-art-ring::after { bottom: -4px; left: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bear {
  width: 320px;
  filter: drop-shadow(0 30px 50px rgba(255,176,32,0.35));
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
  transition: filter 0.6s ease;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.floaty {
  position: absolute;
  font-size: 1.6rem;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.floaty-1 { top: 8%; left: 4%; animation-delay: 0s; }
.floaty-2 { bottom: 12%; right: 2%; animation-delay: -2s; font-size: 1.3rem; }
.floaty-3 { top: 45%; right: -4%; animation-delay: -4s; color: var(--amber-2); }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

.mood-badge {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,22,29,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
  transition: border-color 0.4s ease, color 0.4s ease;
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
}

/* ---- Ticker tape ---- */
.tape {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}
.tape-track {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 14px 20px;
  animation: scroll-left 32s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.tape-item .sym { color: var(--text); font-weight: 700; }
.tape-item .chg.up { color: var(--green); }
.tape-item .chg.down { color: var(--red); }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

/* ==========================================================================
   Market section
   ========================================================================== */

.market { background: linear-gradient(180deg, transparent, var(--bg-soft) 12%, var(--bg-soft) 88%, transparent); }

.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
}
.data-badge::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-faint);
}
.data-badge.live { color: var(--green); border-color: rgba(61,220,132,0.3); }
.data-badge.live::before { background: var(--green); box-shadow: 0 0 0 3px rgba(61,220,132,0.2); }
.data-badge.demo { color: var(--amber-2); border-color: rgba(255,176,32,0.3); }
.data-badge.demo::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,32,0.2); }

.index-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-lg);
}
.index-label { font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.index-value { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; }
.index-change { font-family: var(--font-mono); font-weight: 600; margin-top: 4px; }
.index-change.up { color: var(--green); }
.index-change.down { color: var(--red); }
.index-visual { height: 80px; min-width: 200px; }
.index-spark { width: 100%; height: 100%; overflow: visible; }
.index-mood { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--border); }
.mood-emoji { font-size: 2.2rem; transition: transform 0.4s ease; }
.mood-text { font-size: 0.92rem; color: var(--text-dim); max-width: 14ch; }

@media (max-width: 820px) {
  .index-strip { grid-template-columns: 1fr; text-align: center; }
  .index-mood { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; justify-content: center; }
  .index-visual { min-width: 0; }
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.ticker-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ticker-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(255,176,32,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ticker-card:hover::before { opacity: 1; }
.ticker-card:hover { transform: translateY(-4px); border-color: rgba(255,176,32,0.25); box-shadow: var(--shadow-glow); }

.ticker-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.ticker-sym { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.ticker-name { font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }
.ticker-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.ticker-pill.up { background: var(--green-soft); color: var(--green); }
.ticker-pill.down { background: var(--red-soft); color: var(--red); }

.ticker-price { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; margin-bottom: 14px; }
.ticker-spark-wrap { height: 46px; }
.ticker-spark { width: 100%; height: 100%; overflow: visible; }

.flash-up { animation: flash-green 0.7s ease; }
.flash-down { animation: flash-red 0.7s ease; }
@keyframes flash-green { 0% { background-color: rgba(61,220,132,0.18); } 100% { background-color: transparent; } }
@keyframes flash-red { 0% { background-color: rgba(255,92,114,0.18); } 100% { background-color: transparent; } }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.art-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, border-color 0.3s ease;
  cursor: pointer;
}
.art-card:hover { border-color: rgba(255,176,32,0.35); }
.art-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.art-card:hover img { transform: scale(1.08); }
.art-card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateY(6px);
  opacity: 0.85;
}
.art-card-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 4px 10px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Lore
   ========================================================================== */

.lore { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.lore-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.lore-banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.lore-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 14px 0 18px; }
.lore-copy p { color: var(--text-dim); font-size: 1.02rem; margin-bottom: 22px; }
.lore-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.lore-list li {
  padding-left: 26px;
  position: relative;
  color: var(--text-dim);
  font-size: 0.96rem;
}
.lore-list li::before {
  content: '✦';
  position: absolute; left: 0; top: 0;
  color: var(--amber);
}
.lore-list strong { color: var(--text); }
.lore-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .lore-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Community
   ========================================================================== */

.community {
  background: radial-gradient(ellipse at top, rgba(255,176,32,0.08), transparent 60%), var(--bg);
}
.community-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}
.community-bear {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,176,32,0.35);
  margin-bottom: 20px;
  animation: float 5s ease-in-out infinite;
}
.community h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 12px 0 14px; }
.community p { color: var(--text-dim); margin-bottom: 30px; }
.community-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.social-pill {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-pill:hover { transform: translateY(-2px); border-color: rgba(255,176,32,0.3); background: var(--panel-2); }

.subscribe {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.subscribe input:focus { outline: none; border-color: var(--amber); }
.subscribe-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 16px; margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding: 50px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-copy { color: var(--text-faint); font-size: 0.86rem; margin: 6px 0 0; }
.footer-disclaimer { color: var(--text-faint); font-size: 0.76rem; opacity: 0.7; margin: 0; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
