/* home.css — VOLX marketing homepage. Prefix vh-. Reuses :root tokens from styles.css */

:root { --bg-darker: #0D0D1A; }

.vh-home { position: relative; }

/* entrance keyframes */
@keyframes vhFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vhFadeUp16 { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vhFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vhBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes vhTicker { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@keyframes vhSlideRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* scroll-reveal */
.vh-reveal { opacity: 0; }
.vh-reveal.visible { animation: vhFadeUp 0.7s ease forwards; }

/* ============================ Home nav ============================ */
.vh-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.vh-nav.scrolled { background: rgba(19,19,31,0.9); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.vh-nav-inner { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.vh-nav-links { display: flex; align-items: center; gap: 6px; }
.vh-nav-link { background: none; border: none; cursor: pointer; color: var(--text-muted); font-weight: 500; font-size: 14px; padding: 8px 14px; transition: color .15s; }
.vh-nav-link:hover { color: var(--text-pri); }
.vh-nav-right { display: flex; align-items: center; gap: 14px; }
.vh-nav-cta { background: var(--accent); color: var(--text-pri); border: none; cursor: pointer; font-weight: 600; font-size: 13px; padding: 10px 20px; border-radius: 6px; transition: transform .15s, filter .15s; display: inline-flex; align-items: center; gap: 6px; }
.vh-nav-cta:hover { transform: scale(1.03); filter: brightness(1.1); }
.vh-nav-burger { display: none; background: none; border: none; color: var(--text-sec); cursor: pointer; padding: 4px; }
.vh-mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 8px 16px 16px; border-top: 1px solid var(--border); background: rgba(19,19,31,0.97); }
.vh-mobile-menu .vh-nav-link { text-align: left; padding: 12px 8px; }

/* ============================ Hero ============================ */
.vh-hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-color: var(--bg-void);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px; padding: 120px 24px 80px; }
.vh-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vh-hero-inner { position: relative; z-index: 1; max-width: 760px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }

.vh-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-dim); border: 1px solid rgba(123,110,232,0.3); color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; padding: 6px 14px; border-radius: 20px; opacity: 0; animation: vhFadeUp16 0.6s ease forwards; }
.vh-pill .vh-livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--long); box-shadow: 0 0 0 3px var(--long-dim); animation: volx-pulse 2.4s infinite; }

.vh-h1 { font-family: Inter, sans-serif; font-weight: 900; font-size: 72px; letter-spacing: -3px; color: var(--text-pri); line-height: 1.0; margin: 28px 0 0; opacity: 0; animation: vhFadeUp 0.6s ease forwards; animation-delay: 0.1s; }
.vh-h1 .vh-accent { color: var(--accent); }
.vh-sub { font-family: Inter, sans-serif; font-weight: 300; font-size: 18px; color: var(--text-muted); line-height: 1.6; max-width: 540px; margin: 24px 0 0; opacity: 0; animation: vhFadeUp 0.6s ease forwards; animation-delay: 0.2s; }

.vh-cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: vhFadeUp 0.6s ease forwards; animation-delay: 0.3s; }
.vh-btn-primary { background: var(--accent); color: var(--text-pri); border: none; cursor: pointer; font-family: Inter, sans-serif; font-weight: 600; font-size: 15px; padding: 14px 32px; border-radius: 6px; transition: transform .15s, filter .15s; display: inline-flex; align-items: center; gap: 8px; }
.vh-btn-primary:hover { transform: scale(1.03); filter: brightness(1.12); }
.vh-btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; font-family: Inter, sans-serif; font-weight: 600; font-size: 15px; padding: 14px 32px; border-radius: 6px; transition: border-color .15s, color .15s; }
.vh-btn-secondary:hover { border-color: var(--accent); color: var(--text-pri); }

.vh-hero-stats { display: flex; align-items: center; gap: 0; margin-top: 56px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: vhFade 0.8s ease forwards; animation-delay: 0.5s; }
.vh-hstat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 28px; }
.vh-hstat + .vh-hstat { border-left: 1px solid var(--border); }
.vh-hstat-num { font-family: 'IBM Plex Mono', monospace; font-size: 20px; color: var(--text-pri); font-variant-numeric: tabular-nums; }
.vh-hstat-label { font-family: Inter, sans-serif; font-size: 11px; color: var(--mid); text-transform: uppercase; letter-spacing: 0.05em; }

.vh-scroll-ind { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--mid); opacity: 0; animation: vhFade 1s ease forwards; animation-delay: 0.8s; }
.vh-scroll-arrow { animation: vhBounce 1.8s ease-in-out infinite; }

/* ============================ Ticker ============================ */
.vh-ticker { background: var(--bg-base); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); height: 52px; overflow: hidden; display: flex; align-items: center; }
.vh-ticker-inner { display: flex; align-items: center; white-space: nowrap; animation: vhTicker 28s linear infinite; will-change: transform; }
.vh-tick-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; font-size: 14px; }
.vh-tick-name { font-family: Inter, sans-serif; font-weight: 600; color: var(--text-pri); }
.vh-tick-price { font-family: 'IBM Plex Mono', monospace; color: var(--text-pri); }
.vh-tick-change { font-family: 'IBM Plex Mono', monospace; }
.vh-tick-sep { color: var(--border); padding: 0 4px; }

/* ============================ Generic section ============================ */
.vh-section { max-width: 1200px; margin: 0 auto; padding: 110px 24px; }
.vh-section.wide { max-width: none; }
.vh-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.vh-h2 { font-family: Inter, sans-serif; font-weight: 800; font-size: 42px; color: var(--text-pri); letter-spacing: -1px; line-height: 1.08; margin: 16px 0 0; }
.vh-body { font-family: Inter, sans-serif; font-weight: 400; font-size: 16px; color: var(--text-muted); line-height: 1.75; }

/* ============================ What is VOLX ============================ */
.vh-whatis { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.vh-whatis-text .vh-body { margin-top: 24px; max-width: 460px; }
.vh-whatis-text .vh-body + .vh-body { margin-top: 18px; }
.vh-cardstack { position: relative; height: 420px; }
.vh-stackcard { position: absolute; left: 0; right: 0; border-radius: 10px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.vh-stackcard-1 { top: 0; transform: translateX(36px) rotate(-2deg); background: var(--bg-active); border: 1px solid var(--border); z-index: 1; }
.vh-stackcard-2 { top: 110px; transform: translateX(-8px) rotate(1deg); background: var(--bg-base); border: 1px solid var(--border); z-index: 2; }
.vh-stackcard-3 { top: 250px; transform: translateX(20px); background: var(--bg-void); border: 1px solid rgba(123,110,232,0.4); z-index: 3; }
.vh-sc-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--mid); letter-spacing: 0.08em; text-transform: uppercase; }
.vh-sc-main { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--text-pri); margin-top: 8px; }
.vh-sc-sub { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.vh-mini-ob { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.vh-mini-row { display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.vh-mini-row.ask { color: var(--short); }
.vh-mini-row.bid { color: var(--long); }
.vh-mini-spread { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-muted); text-align: center; padding: 3px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 3px 0; }
.vh-reveal-stack .vh-stackcard { opacity: 0; }
.vh-reveal-stack.visible .vh-stackcard-1 { animation: vhSlideRight 0.6s ease forwards; animation-delay: 0.05s; }
.vh-reveal-stack.visible .vh-stackcard-2 { animation: vhSlideRight 0.6s ease forwards; animation-delay: 0.18s; }
.vh-reveal-stack.visible .vh-stackcard-3 { animation: vhSlideRight 0.6s ease forwards; animation-delay: 0.31s; }

/* ============================ Features ============================ */
.vh-features-head { text-align: center; margin-bottom: 48px; }
.vh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vh-feature { position: relative; background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 28px 24px 30px; overflow: hidden; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.vh-feature:hover { border-color: rgba(123,110,232,0.5); background: var(--bg-active); transform: translateY(-2px); }
.vh-feature-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.vh-feature-title { font-family: Inter, sans-serif; font-weight: 700; font-size: 19px; color: var(--text-pri); margin: 18px 0 10px; }
.vh-feature-body { font-family: Inter, sans-serif; font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.vh-feature-accent { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .3s ease; }
.vh-feature:hover .vh-feature-accent { width: 100%; }

/* ============================ Markets preview ============================ */
.vh-mp-head { margin-bottom: 40px; }
.vh-mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vh-mp-card { background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 20px; transition: border-color .2s ease, transform .2s ease; }
.vh-mp-card:hover { border-color: rgba(123,110,232,0.4); transform: translateY(-2px); }
.vh-mp-top { display: flex; align-items: flex-start; justify-content: space-between; }
.vh-mp-name { font-family: Inter, sans-serif; font-weight: 700; font-size: 15px; color: var(--text-pri); }
.vh-mp-change { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.vh-mp-price { font-family: 'IBM Plex Mono', monospace; font-size: 28px; color: var(--text-pri); margin: 10px 0 14px; letter-spacing: -0.01em; }
.vh-mp-spark { width: 100%; height: 40px; display: block; margin-bottom: 14px; }
.vh-mp-spark polyline { transition: all .8s ease; }
.vh-mp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vh-mp-meta { display: flex; gap: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--mid); flex-wrap: wrap; }
.vh-mp-trade { background: none; border: none; cursor: pointer; font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.vh-mp-trade:hover { text-decoration: underline; }

/* ============================ Canton ============================ */
.vh-canton { background: var(--bg-base); }
.vh-canton-inner { max-width: 760px; margin: 0 auto; padding: 110px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.vh-canton .vh-h2 { font-size: 48px; letter-spacing: -1.5px; }
.vh-canton-sub { font-family: Inter, sans-serif; font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 580px; margin: 20px 0 0; }
.vh-logos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; }
.vh-logo-pill { background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 10px 20px; border-radius: 4px; font-family: Inter, sans-serif; font-weight: 500; font-size: 13px; color: var(--text-muted); }
.vh-validators { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--mid); margin-top: 18px; }
.vh-canton-stats { margin-top: 52px; }

/* ============================ CTA banner ============================ */
.vh-cta-banner { position: relative; overflow: hidden; background: var(--bg-darker); text-align: center; padding: 100px 24px; display: flex; flex-direction: column; align-items: center; }
.vh-cta-h { font-family: Inter, sans-serif; font-weight: 900; font-size: 56px; letter-spacing: -2px; color: var(--text-pri); position: relative; z-index: 1; line-height: 1.05; }
.vh-cta-sub { font-family: Inter, sans-serif; font-weight: 300; font-size: 18px; color: var(--text-muted); margin: 20px 0 0; position: relative; z-index: 1; }
.vh-cta-banner .vh-btn-primary { margin-top: 36px; padding: 16px 40px; font-size: 16px; position: relative; z-index: 1; }
.vh-cta-tags { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--mid); margin-top: 26px; position: relative; z-index: 1; }

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .vh-whatis { grid-template-columns: 1fr; gap: 40px; }
  .vh-features { grid-template-columns: 1fr; }
  .vh-mp-grid { grid-template-columns: 1fr; }
  .vh-h1 { font-size: 52px; letter-spacing: -2px; }
  .vh-h2, .vh-canton .vh-h2 { font-size: 34px; }
  .vh-cta-h { font-size: 40px; }
  .vh-section { padding: 80px 24px; }
}
@media (max-width: 767px) {
  .vh-nav-links { display: none; }
  .vh-nav-burger { display: flex; }
  .vh-mobile-menu.open { display: flex; }
  .vh-h1 { font-size: 44px; }
  .vh-hero-stats { gap: 0; }
  .vh-hstat { padding: 10px 18px; }
  .vh-hstat:nth-child(odd) { border-left: none; }
}
