/* ===== Flowvest — Modern Dark Trading Theme ===== */
:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --bg-card: #111118;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(59,130,246,0.35);
  --text: #e8e8ed;
  --text-muted: #9a9aab;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59,130,246,0.25);
  --up: #22c55e;
  --down: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --header-h: 72px;
  --ticker-h: 40px;
}

*, *::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.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Ticker ===== */
.ticker-bar {
  height: var(--ticker-h);
  background: #0a0a10;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  padding: 0.55rem 0;
  width: max-content;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ticker-item i, .ticker-item .token {
  color: var(--primary);
  font-weight: 600;
}

.ticker-item .price { color: var(--text); font-weight: 500; }
.up { color: var(--up); }
.down { color: var(--down); }

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

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header.scrolled { background: rgba(5,5,8,0.95); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

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

.logo-mark svg { width: 40px; height: 40px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--ticker-h));
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(59,130,246,0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(29,78,216,0.08), transparent 50%),
    linear-gradient(180deg, #050508 0%, #08080f 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.28em;
  background: rgba(59,130,246,0.45);
  border-radius: 3px;
  z-index: -1;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.risk-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.asterisk { color: var(--primary); }

/* Hero visual card */
.hero-visual { display: flex; justify-content: center; }

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  width: min(380px, 100%);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.chart-mock {
  height: 160px;
  position: relative;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 4px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.chart-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--primary), rgba(59,130,246,0.25));
  border-radius: 4px 4px 0 0;
  animation: growBar 1.2s ease-out forwards;
  transform-origin: bottom;
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-stats-mini {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hero-stats-mini .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.hero-stats-mini strong {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ===== Feature pills ===== */
.feature-pills {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
}

/* ===== Sections common ===== */
.section { padding: 5rem 0; }

.section-header {
  margin-bottom: 3rem;
  max-width: 640px;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ===== Feature cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(59,130,246,0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59,130,246,0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.feature-card ul {
  margin-bottom: 1.5rem;
}

.feature-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.feature-card li i {
  color: var(--primary);
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

/* ===== Commitment + Stats ===== */
.commitment {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.stat-value .suffix { font-size: 1.5rem; }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 20px 40px -15px rgba(59,130,246,0.2);
}

.badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-tag {
  display: inline-block;
  background: rgba(59,130,246,0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  width: fit-content;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.price-features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.price-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.price-features li strong { color: var(--text); }

/* ===== Benefits strip ===== */
.benefits-strip {
  padding: 1.75rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.benefit i {
  color: var(--primary);
  font-size: 1rem;
}

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.step h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.center-cta { text-align: center; }

/* ===== Why choose ===== */
.why-section { background: var(--bg-elevated); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s;
}

.why-card:hover { border-color: var(--border-strong); }

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.why-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Announce ===== */
.announce {
  padding: 4rem 0;
  background:
    linear-gradient(135deg, rgba(59,130,246,0.15), rgba(29,78,216,0.05)),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.announce-inner {
  max-width: 640px;
}

.announce h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.announce p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
}

/* ===== Global stats ===== */
.global-stats {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.big-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 1.5rem;
}

.big-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.big-value span { font-size: 0.55em; }

.big-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.data-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Analysis ===== */
.analysis-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.analysis h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.analysis .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.analysis p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.mini-stats {
  display: flex;
  gap: 2.5rem;
}

.mini-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
}

.mini-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.glass-card {
  background: rgba(17,17,24,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.glass-header {
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.glass-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: #030306;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.footer ul li { margin-bottom: 0.5rem; }

.footer ul a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.risk-warning {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.risk-warning h5 {
  color: var(--down);
  margin-bottom: 0.5rem;
}

.risk-warning p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Chat button */
.chat-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
  z-index: 80;
  transition: transform 0.2s, background 0.2s;
}

.chat-btn:hover {
  transform: scale(1.08);
  background: var(--primary-hover);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: calc(var(--header-h) + var(--ticker-h));
    left: 0; right: 0;
    background: rgba(5,5,8,0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }

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

  .menu-toggle { display: flex; }

  .header-actions .btn-ghost { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }

  .cards-grid,
  .steps-grid,
  .why-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }

  .big-stats { flex-direction: column; gap: 2rem; text-align: center; }

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

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
}
