@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Patrick+Hand&display=swap');

:root {
  --bg: #f0f6ff;
  --bg-card: #ffffff;
  --border: #c8ddf0;
  --border-active: #a0c0e0;
  --text: #1a2a3a;
  --text-muted: #4a6a8a;
  --text-dim: #8aa0b8;
  --blue: #4a9eff;
  --blue-deep: #2070d0;
  --cyan: #00c8ff;
  --green: #22c55e;
  --purple: #8b5cf6;
  --font: 'Patrick Hand', 'Gaegu', cursive;
  --font-heading: 'Gaegu', 'Patrick Hand', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(74,158,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,200,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139,92,246,0.05) 0%, transparent 60%);
}

a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(240, 246, 255, 0.92);
  border-bottom: 3px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  color: var(--text);
}
.nav-logo img { width: 36px; height: 36px; }
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 16px; color: var(--text-muted);
  font-family: var(--font);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--blue); }
.nav-actions { display: flex; gap: 10px; }
.nav-btn {
  padding: 6px 16px; border: 2px solid var(--border);
  font-size: 15px; color: var(--text-muted);
  font-family: var(--font); border-radius: 20px;
  transition: all 0.2s;
}
.nav-btn:hover { border-color: var(--text); color: var(--text); }
.nav-btn-primary {
  border-color: var(--blue); color: var(--blue); font-weight: 700;
}
.nav-btn-primary:hover { background: var(--blue); color: white; }

/* HERO / BUBBLE */
#bubble {
  padding: 120px 0 40px; text-align: center;
}
.bubble-section h1 {
  font-family: var(--font-heading);
  font-size: 72px; font-weight: 700;
  line-height: 1; margin-bottom: 4px;
  color: var(--blue-deep);
}
.hero-tagline {
  font-size: 18px; color: var(--text-muted);
  margin-bottom: 32px; font-style: italic;
}

/* ANIMATED BUBBLE */
.bubble-wrap {
  display: flex; justify-content: center; align-items: center;
  padding: 20px 0 24px;
}
.bubble-container {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bubble-img {
  width: 200px; height: 200px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 30px rgba(74,158,255,0.3));
  animation: bubble-float 4s ease-in-out infinite;
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.bubble-mcap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-family: var(--font-heading); font-weight: 700;
  font-size: 28px; color: var(--blue-deep);
  text-shadow: 0 1px 4px rgba(255,255,255,0.8);
  pointer-events: none;
  transition: font-size 0.8s ease;
}
.bubble-label {
  margin-top: 8px;
  font-family: var(--font); font-size: 16px;
  color: var(--text-muted); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.5s;
}

.bubble-scale {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.scale-item {
  font-size: 11px; color: var(--text-dim); text-align: center;
  padding: 4px 10px; border: 2px solid var(--border); border-radius: 10px;
  line-height: 1.3; font-family: var(--font);
}

.hero-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 10px 24px; font-size: 16px; font-family: var(--font);
  border-radius: 20px; font-weight: 700;
  transition: all 0.2s; display: inline-block;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue); color: white; border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-deep); color: white; border-color: var(--blue-deep); }
.btn-secondary {
  background: var(--cyan); color: #1a1a1a; border-color: var(--cyan);
}
.btn-secondary:hover { background: #00a8dd; color: white; }
.btn-outline {
  background: transparent; color: var(--text-muted); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }

/* SECTIONS */
section { padding: 60px 0; }
section h2 {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.section-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; max-width: 600px; }
.about-desc { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; max-width: 640px; }
.about-desc strong { color: var(--text); }
.divider { border-top: 2px dashed var(--border); margin: 40px 0; }

/* AI STOCK CARDS */
.folio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 20px;
}
.folio-card {
  background: var(--bg-card); border: 3px solid var(--border);
  border-radius: 14px; padding: 20px;
  transition: border-color 0.3s, transform 0.2s;
}
.folio-card:hover { border-color: var(--border-active); transform: translateY(-2px); }
.folio-card-highlight { border-color: var(--green); background: #f0fdf4; }
.folio-card-highlight:hover { border-color: #16a34a; }

.folio-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.stock-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  color: white;
}
.stock-openai { background: #10a37f; }
.stock-anthropic { background: #d97757; }
.stock-nvidia { background: #76b900; }

.folio-stock-name-big { font-size: 18px; font-weight: 700; color: var(--text); display: block; }
.folio-stock-name { font-size: 13px; color: var(--text-muted); display: block; margin-top: -2px; }

.folio-card-body { }
.folio-row {
  display: flex; justify-content: space-between; font-size: 15px;
  padding: 4px 0; color: var(--text);
}
.folio-note {
  font-size: 12px; color: var(--text-dim); font-style: italic;
  border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 6px;
}

/* CHART CARD */
.chart-card {
  background: #1a1a1a; border-radius: 16px;
  padding: 24px; color: #e0e0e0;
  border: 3px solid #333;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.chart-info { display: flex; align-items: center; gap: 12px; }
.chart-coin-img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #444; }
.chart-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; display: block; }
.chart-badges { display: flex; gap: 8px; margin-top: 2px; }
.badge {
  font-size: 12px; padding: 2px 10px; border-radius: 20px;
  border: 1px solid #444; color: #aaa; font-family: var(--font);
}
.badge-reward { color: var(--cyan); border-color: var(--cyan); }
.chart-x-link { font-size: 20px; color: #777; }
.chart-x-link:hover { color: #fff; }

#sparkChart {
  width: 100%; height: 180px; margin-bottom: 20px;
  border-radius: 8px;
}

.chart-stats-row {
  display: flex; justify-content: space-between; margin-bottom: 12px;
}
.chart-stat-label { font-size: 11px; color: #777; letter-spacing: 0.05em; display: block; }
.chart-stat-val { font-size: 28px; font-weight: 700; color: #fff; font-family: var(--font-heading); }
.chart-stat-right { text-align: right; }

.chart-bar-wrap {
  width: 100%; height: 8px; background: #333; border-radius: 4px;
  margin-bottom: 16px; overflow: hidden;
}
.chart-bar {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 70%, #666 70%, #666 80%, #555 80%, #555 95%, var(--blue) 95%);
  transition: width 0.5s;
}

.chart-breakdown { margin-bottom: 16px; }
.chart-breakdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; font-size: 14px; color: #aaa;
  border-bottom: 1px solid #2a2a2a;
}
.chart-breakdown-item:last-child { border-bottom: none; }
.chart-breakdown-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 8px;
}
.chart-breakdown-left { display: flex; align-items: center; }

.chart-footer-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-top: 1px solid #333;
}
.chart-footer-label { font-size: 11px; color: var(--cyan); letter-spacing: 0.05em; display: block; }
.chart-footer-val { font-size: 22px; font-weight: 700; color: #fff; font-family: var(--font-heading); }
.chart-footer-right { text-align: right; }

.chart-meta-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid #333;
}
.meta-box { text-align: center; }
.meta-label { font-size: 10px; color: #666; letter-spacing: 0.05em; display: block; text-transform: uppercase; }
.meta-val { font-size: 16px; font-weight: 700; color: #ddd; font-family: var(--font-heading); }

/* STEPS */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-box {
  padding: 20px; border: 3px solid var(--border);
  border-radius: 14px; background: var(--bg-card);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.3s;
}
.step-box:hover { border-color: var(--border-active); }
.step-num { font-size: 12px; color: var(--text-dim); }
.step-title { font-size: 20px; font-weight: 700; color: var(--text); font-family: var(--font-heading); }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* FOOTER */
#footer {
  padding: 28px 0; border-top: 3px solid var(--border);
  margin-top: 20px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--text-dim);
}
.footer-brand { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-status { color: var(--text-dim); }

/* RESPONSIVE */
@media (max-width: 700px) {
  .bubble-section h1 { font-size: 48px; }
  .folio-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .chart-meta-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .bubble-scale { gap: 8px; }
  .bubble-img { width: 150px; height: 150px; }
}
