:root {
  /* Stabilo/highlighter palette: neon lime background (matches the HStocks
     logo), white cards for readable content, Robinhood green accent, black text */
  --bg: #C6F521;
  --bg-alt: #b9e81c;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --border: rgba(0, 0, 0, 0.15);
  --text: #000000;
  --muted: #454545;
  --fine: #565656;
  --accent: #00c805;
  --accent-dim: #00a604;
  --accent-text: #0a6b1f; /* darker green for readable text on light/neon backgrounds */
  --accent-glow: rgba(0, 200, 5, 0.16);
  --down: #ff5000;
  --down-glow: rgba(255, 80, 0, 0.12);
  --radius: 16px;
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.mobile-only { display: none; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { max-width: 560px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }

.muted { color: var(--muted); font-size: 16px; }
.fine { color: var(--fine); font-size: 12.5px; line-height: 1.6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #05170a;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-dim); box-shadow: 0 0 24px var(--accent-glow); }
.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--ghost { background: transparent; color: var(--text); padding: 11px 16px; }
.btn--ghost:hover { color: var(--accent-text); }
.btn--lg { padding: 14px 28px; font-size: 15.5px; }
.btn.full { width: 100%; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__links a.disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); }

/* HERO */
.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero__title { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin-bottom: 20px; }
.hero__sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 80px; }

.stats {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 40px 24px 56px;
}
.stats__label { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-align: center; margin-bottom: 28px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat__num, .stat__suffix, .stat__text {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--accent-text);
}
.stat__desc { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ABOUT */
.about { padding: 100px 0; border-top: 1px solid var(--border); }
.about__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.about__copy h2 { margin-bottom: 20px; }
.about__copy p { margin-bottom: 16px; }
.chains {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.chains__label { color: var(--muted); font-size: 13px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.chains__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.chains__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.chains__list li:last-child { border-bottom: none; }
.chains__more { color: var(--muted); font-weight: 500; font-size: 13.5px; }

/* PRODUCTS */
.products { padding: 100px 0; border-top: 1px solid var(--border); }
.products h2 { max-width: 500px; margin: 0 auto 24px; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 auto 40px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
.live-dot.stale { background: var(--fine); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 200, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); }
}

.stock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.stock-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.stock-card__top { display: flex; align-items: center; gap: 12px; }
.stock-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  flex-shrink: 0;
  color: #06120d;
  overflow: hidden;
  background: var(--surface-2);
}
.stock-card__icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
}
.stock-card__info { min-width: 0; }
.stock-card__ticker { font-weight: 700; font-size: 15px; }
.stock-card__name { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stock-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.stock-card__price {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
.stock-card__price.pending { color: var(--fine); font-weight: 500; font-size: 14px; }
.stock-card__change {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.stock-card__change.up { color: var(--accent-text); background: var(--accent-glow); }
.stock-card__change.down { color: var(--down); background: var(--down-glow); }
.stock-card__change.flat { color: var(--muted); background: var(--surface-2); }

.flash-up, .flash-down { animation: flashPulse 0.6s ease; }
.stock-card__price.flash-up { color: var(--accent-text); }
.stock-card__price.flash-down { color: var(--down); }
.ticker-item__price.flash-up { color: var(--accent-dim); }
.ticker-item__price.flash-down { color: var(--down); }
@keyframes flashPulse {
  0% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ECOSYSTEM */
.ecosystem { padding: 100px 0; border-top: 1px solid var(--border); }
.ecosystem h2 { margin-bottom: 12px; }
.eco__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.eco__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.eco__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.link-arrow { color: var(--accent-text); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 14px; }

/* PARTNER */
.partner { padding: 100px 0; border-top: 1px solid var(--border); text-align: center; }
.partner__inner { max-width: 640px; margin: 0 auto; }
.partner h2 { margin: 16px 0 20px; }
.partner .fine { margin: 20px 0 32px; }

/* TESTIMONIALS */
.testimonials { padding: 100px 0; border-top: 1px solid var(--border); }
.quote-slider { max-width: 720px; margin: 0 auto; text-align: center; min-height: 160px; position: relative; }
.quote { display: none; }
.quote.active { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.quote__text { font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; line-height: 1.4; margin-bottom: 20px; }
.quote__author { font-weight: 700; margin: 0; }
.quote__role { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }
.quote-dots { display: flex; justify-content: center; gap: 8px; margin: 28px 0 56px; }
.quote-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; }
.quote-dots span.active { background: var(--accent); }
.logos {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 40px;
  color: var(--fine); font-weight: 700; letter-spacing: 0.02em; font-size: 15px;
}

/* NEWS */
.news { padding: 100px 0; border-top: 1px solid var(--border); }
.news h2 { margin-bottom: 48px; }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.18s ease;
}
.news-card:hover { border-color: var(--accent); }
.news-card__tag { color: var(--accent-text); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.news-card h3 { margin: 12px 0 10px; font-size: 17px; }
.news-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.news-card__date { color: var(--fine); font-size: 12.5px; }

/* CONTACT */
.contact { padding: 100px 0; border-top: 1px solid var(--border); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact__copy h2 { margin: 16px 0 16px; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 14.5px; }
.contact__list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.contact__form { display: flex; flex-direction: column; gap: 16px; }
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.contact__form input, .contact__form select, .contact__form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 400;
  resize: vertical;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--accent);
}
.form__note { color: var(--accent-text); font-size: 13.5px; min-height: 18px; text-align: center; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 48px 0; }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 13.5px; }
.footer__links a:hover { color: var(--accent-text); }
.footer .fine { margin-top: 8px; max-width: 900px; }

/* SCROLL PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* LIVE TICKER TAPE */
.ticker-tape {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.ticker-tape__track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee 38s linear infinite;
}
.ticker-tape:hover .ticker-tape__track { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ticker-item__symbol { color: #ffffff; }
.ticker-item__price { color: #cfcfcf; }
.ticker-item__change.up { color: var(--accent); }
.ticker-item__change.down { color: #ff6a3d; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 150;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* NAV MOBILE OVERLAY */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.nav.open ~ .nav__overlay { opacity: 1; visibility: visible; }

/* Animated burger -> X */
.nav__burger span { transition: transform 0.25s ease, opacity 0.25s ease; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Button ripple */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}
.btn--outline .ripple, .btn--ghost .ripple { background: var(--accent-glow); }
@keyframes ripple { to { transform: scale(3); opacity: 0; } }

/* Card entrance stagger for JS-rendered grids */
.stock-card.reveal, .news-card.reveal { transition-duration: 0.6s; }

/* Hero floating accents */
.hero__glow { animation: drift 10s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(-50%, 0) scale(1); }
  to { transform: translate(-46%, 12px) scale(1.06); }
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}
.hero__orb--1 { width: 10px; height: 10px; background: #000000; opacity: 0.55; top: 22%; left: 12%; animation-delay: 0s; }
.hero__orb--2 { width: 6px; height: 6px; background: #ffffff; opacity: 0.8; top: 65%; left: 8%; animation-delay: 1.2s; }
.hero__orb--3 { width: 8px; height: 8px; background: #ffffff; opacity: 0.7; top: 30%; right: 10%; animation-delay: 0.6s; }
.hero__orb--4 { width: 5px; height: 5px; background: #000000; opacity: 0.4; top: 70%; right: 14%; animation-delay: 1.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-tape__track { animation: none; }
  .hero__glow, .hero__orb, .live-dot, .back-to-top { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .eco__grid, .news__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .mobile-only { display: block; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; z-index: 101; }
  .nav.open { box-shadow: 0 1px 0 var(--border); }
  .nav.open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.25s ease;
  }
  .nav.open .nav__cta {
    display: flex; flex-direction: column;
    position: absolute; top: calc(72px + 190px); left: 0; right: 0;
    background: var(--bg); padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease;
  }
  .nav__cta .btn { width: 100%; }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  body.nav-locked { overflow: hidden; }
  .hero { padding-top: 64px; }
  .hero__actions { margin-bottom: 56px; }
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 18px; }
  .hero__title { line-height: 1.1; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .stock-card__top { gap: 10px; }
  .ticker-tape__track { animation-duration: 26s; }
}

@media (hover: none) {
  .stock-card:hover, .news-card:hover, .btn--outline:hover, .link-arrow:hover {
    transform: none;
  }
}
