/* ==========================================================================
   VG Share Market — Global Stylesheet
   ========================================================================== */

:root {
  --navy-950: #060f1f;
  --navy-900: #0a1a30;
  --navy-800: #0e2340;
  --navy-700: #143156;
  --navy-600: #1c4270;
  --gold-600: #b3872a;
  --gold-500: #d4af37;
  --gold-400: #e6c765;
  --gold-100: #faf3dd;
  --green-600: #157a4a;
  --green-500: #1f9d55;
  --red-500: #d64545;
  --bg: #f8f6f1;
  --bg-alt: #f1ede2;
  --surface: #ffffff;
  --ink: #171b24;
  --ink-soft: #454c5a;
  --ink-mute: #767f8e;
  --border: #e4ded0;
  --shadow-sm: 0 2px 8px rgba(10, 26, 48, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 26, 48, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 26, 48, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--navy-900); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Utility ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #cfd7e3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; margin-top: 14px; }
.section-navy .section-head p { color: #a9b4c5; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212, 175, 55, 0.45); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-dark {
  border: 1.5px solid var(--navy-700);
  color: var(--navy-800);
}
.btn-outline-dark:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn-navy {
  background: var(--navy-900);
  color: #fff;
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pill-up { background: rgba(31, 157, 85, 0.12); color: var(--green-600); }
.pill-down { background: rgba(214, 69, 69, 0.12); color: var(--red-500); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
}

/* Top utility bar: login / register */
.topbar {
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 42px;
}
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-actions .btn-login { font-size: 0.82rem; }
.topbar-actions .btn-login svg { width: 15px; height: 15px; }
.topbar-actions .btn-gold { padding: 8px 18px; font-size: 0.78rem; }
@media (max-width: 1000px) {
}

/* Second row: logo + menu */
.header-main {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-main .brand { color: var(--navy-900); }
.header-main .brand-text span { color: var(--gold-600); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-top: 3px; }
.brand-logo { height: 44px; width: auto; display: block; }
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.footer-logo-chip .brand-logo { height: 34px; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  color: #d7dde7;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-400);
  transition: width 0.25s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
@media (min-width: 861px) {
  .header-main .main-nav a { color: var(--navy-700); }
  .header-main .main-nav a:hover, .header-main .main-nav a.active { color: var(--navy-950); }
}
.nav-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Ticker ---- */
.ticker-bar {
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.ticker-bar::before, .ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-bar::before { left: 0; background: linear-gradient(90deg, var(--navy-950), transparent); }
.ticker-bar::after { right: 0; background: linear-gradient(270deg, var(--navy-950), transparent); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
  padding: 11px 0;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  border-right: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #c3cbda;
  white-space: nowrap;
}
.ticker-item strong { color: #fff; font-weight: 600; }
.ticker-item .up { color: var(--green-500); font-weight: 600; }
.ticker-item .down { color: var(--red-500); font-weight: 600; }
.ticker-item .tag-live {
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(230,199,101,0.4);
  border-radius: 999px;
  padding: 2px 9px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-mute);
  padding: 6px 0;
  background: var(--bg-alt);
  letter-spacing: 0.02em;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, rgba(212,175,55,0.14), transparent 45%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
  padding: 96px 0 100px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.12rem;
  color: #b7c0d1;
  max-width: 500px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; }
.hero-stats div span { font-size: 0.8rem; color: #93a0b6; letter-spacing: 0.03em; }

/* ---- Hero slider ---- */
.hero-slider { position: relative; overflow: hidden; padding: 0; }
.hero-slides { position: relative; min-height: calc(100vh - 124px); }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  z-index: 1;
  overflow-y: auto;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slider .hero-inner { padding: 60px 0; width: 100%; }

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-slider-arrow:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.06); }
.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }
.hero-slider-arrow svg { width: 20px; height: 20px; }

.hero-slider-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin-top: 0;
}
.hero-slider-dots .ipo-dot { background: rgba(255,255,255,0.35); }
.hero-slider-dots .ipo-dot.active { background: var(--gold-500); }

@media (max-width: 600px) {
  .hero-slider-arrow { display: none; }
}

.hero-visual { position: relative; }
.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}
.chart-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.chart-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.chart-card-head h4 { color: #fff; font-size: 1rem; }
.chart-card-head span { color: #93a0b6; font-size: 0.78rem; }
.chart-value { font-family: var(--font-head); font-size: 1.9rem; color: #fff; }
.chart-value-sub { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: #93a0b6; margin-left: 8px; }
.chart-card svg { width: 100%; height: auto; }
.floating-badge {
  position: absolute;
  background: #fff;
  color: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.floating-badge.b1 { top: -22px; right: -18px; }
.floating-badge.b2 { bottom: -20px; left: -24px; }
.floating-badge .ic { width: 34px; height: 34px; border-radius: 8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.floating-badge.b1 .ic { background: rgba(31,157,85,0.12); color: var(--green-600); }
.floating-badge.b2 .ic { background: var(--gold-100); color: var(--gold-600); }
.floating-badge small { display:block; color: var(--ink-mute); font-weight: 500; font-size: 0.72rem; }
@media (max-width: 600px) {
  .floating-badge { padding: 10px 14px; font-size: 0.78rem; gap: 10px; }
  .floating-badge .ic { width: 28px; height: 28px; }
  .floating-badge.b1 { top: -14px; right: 0; }
  .floating-badge.b2 { bottom: -14px; left: 0; }
}

/* ---- Page hero (About / Contact) ---- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 68px 0 62px;
  position: relative;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { color: #b7c0d1; max-width: 560px; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: #93a0b6; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--gold-400); }

/* ---- Grids / Cards ---- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.card .icon-badge svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--ink-mute); font-size: 0.95rem; }
.card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: 0.04em;
}

/* ---- Image-led service cards ---- */
.card-media { padding: 0; overflow: hidden; }
.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block;border-radius: 15px; }
.card-media .card-body { padding: 26px 26px 30px; }

/* ---- Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-box {
  text-align: center;
  padding: 30px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-box:last-child { border-right: none; }
.stat-box strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--gold-400);
  margin-bottom: 6px;
}
.stat-box span { font-size: 0.85rem; color: #a9b4c5; letter-spacing: 0.02em; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 24px; background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold-500);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--ink-mute); font-size: 0.9rem; }
.step-arrow { display: none; }

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--gold-500); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 22px; font-style: italic; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.avatar-initials {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testi-person strong { display: block; font-size: 0.92rem; color: var(--ink); }
.testi-person span { font-size: 0.78rem; color: var(--ink-mute); }

/* ---- IPO Slider ---- */
.ipo-carousel-wrap { display: flex; align-items: center; gap: 16px; }
.ipo-viewport { overflow: hidden; flex: 1; }
.ipo-track { display: flex; }
.ipo-slide { flex-shrink: 0; }
.ipo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ipo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ipo-visual {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  overflow: hidden;
}
.ipo-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
}
.ipo-visual svg { width: 54px; height: 54px; color: var(--gold-400); opacity: 0.95; position: relative; z-index: 1; }
.ipo-status {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ipo-status.status-open { background: var(--gold-500); color: var(--navy-950); }
.ipo-status.status-upcoming { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.ipo-status.status-listed { background: var(--green-500); color: #fff; }
.ipo-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ipo-body h4 { font-size: 1.04rem; margin-bottom: 14px; }
.ipo-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.ipo-meta div span { display: block; font-size: 0.66rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.ipo-meta div strong { font-size: 0.84rem; color: var(--navy-900); }
.ipo-sub-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 0.85rem; }
.ipo-sub-row span { color: var(--ink-mute); }
.ipo-sub-row strong { color: var(--green-600); font-family: var(--font-head); font-size: 1.1rem; }
.ipo-sub-row strong.muted { color: var(--ink-mute); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; margin-top: auto; }

.ipo-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.ipo-arrow:hover { background: var(--navy-700); transform: scale(1.06); }
.ipo-arrow:disabled { opacity: 0.4; cursor: default; transform: none; }
.ipo-arrow svg { width: 20px; height: 20px; }

.ipo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.ipo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: background 0.25s ease, transform 0.25s ease; }
.ipo-dot.active { background: var(--gold-500); transform: scale(1.3); }

@media (max-width: 640px) {
  .ipo-arrow { width: 38px; height: 38px; }
  .ipo-arrow svg { width: 16px; height: 16px; }
}

/* ---- About page specific ---- */
.story-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  aspect-ratio: 4/3.2;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.story-media svg { width: 62%; opacity: 0.9; }

/* story-media reveal: a scanning beam sweeps left-to-right, uncovering the whole
   chart in one motion; afterward the candles tick gently like a live feed. */
.story-media.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.16, 1, .3, 1);
}
.story-media.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

.story-media .story-reveal-mask {
  transform-box: fill-box;
  transform-origin: left;
  transform: scaleX(0);
}
.story-media.reveal.in .story-reveal-mask {
  animation: story-sweep-reveal 1.3s cubic-bezier(.22, .61, .36, 1) 0.15s forwards;
}

.story-media .story-scan-bar {
  opacity: 0;
  transform: translateX(-6px);
}
.story-media.reveal.in .story-scan-bar {
  animation: story-scan-move 1.3s cubic-bezier(.22, .61, .36, 1) 0.15s forwards;
}

.story-media .candle .body { transform-box: fill-box; transform-origin: bottom; }
.story-media.reveal.in .candle-1 .body { animation: story-candle-tick 2.6s ease-in-out 1.5s infinite; }
.story-media.reveal.in .candle-2 .body { animation: story-candle-tick 3s ease-in-out 1.7s infinite; }
.story-media.reveal.in .candle-3 .body { animation: story-candle-tick 2.4s ease-in-out 1.6s infinite; }
.story-media.reveal.in .candle-4 .body { animation: story-candle-tick 3.2s ease-in-out 1.85s infinite; }
.story-media.reveal.in .candle-5 .body { animation: story-candle-tick 2.8s ease-in-out 1.75s infinite; }
.story-media.reveal.in .candle-6 .body { animation: story-candle-tick 2.5s ease-in-out 1.9s infinite; }

.story-media .trend-dot,
.story-media .trend-dot-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.story-media.reveal.in .trend-dot {
  animation: story-dot-pop 0.4s cubic-bezier(.34, 1.56, .64, 1) 1.45s forwards;
}
.story-media.reveal.in .trend-dot-ring {
  animation: story-ring-ping 2s ease-out 1.5s infinite;
}

@keyframes story-sweep-reveal { to { transform: scaleX(1); } }
@keyframes story-scan-move {
  0%   { opacity: 0; transform: translateX(-6px); }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(221px); }
}
@keyframes story-candle-tick {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.92); }
}
@keyframes story-dot-pop {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes story-ring-ping {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0;   transform: scale(3.2); }
}

@media (prefers-reduced-motion: reduce) {
  .story-media.reveal,
  .story-media .story-reveal-mask,
  .story-media .story-scan-bar,
  .story-media .candle .body,
  .story-media .trend-dot,
  .story-media .trend-dot-ring,
  .story-media.reveal.in .story-reveal-mask,
  .story-media.reveal.in .story-scan-bar,
  .story-media.reveal.in .candle .body,
  .story-media.reveal.in .trend-dot,
  .story-media.reveal.in .trend-dot-ring {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .story-media .story-scan-bar,
  .story-media .trend-dot-ring { opacity: 0 !important; }
}
/* ---- Contact page specific ---- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: flex-start; }
.policy-titles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.policy-titles li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-800);
}
.policy-titles li a { transition: color 0.2s ease; }
.policy-titles li a:hover { color: var(--gold-600); }
.policy-titles li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.info-card .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 48px; height: 48px; }
.info-card h4 { font-size: 0.98rem; margin-bottom: 5px; }
.info-card p, .info-card a { color: var(--ink-mute); font-size: 0.9rem; }
.info-card a:hover { color: var(--gold-600); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 0 0 10px;
  transition: border-color 0.2s ease;
}
.field-icon svg { width: 19px; height: 19px; color: var(--ink-mute); flex-shrink: 0; transition: color 0.2s ease; }
.field-icon input, .field-icon select {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
}
.field-icon input:focus, .field-icon select:focus { background: transparent; }
.field-icon:focus-within { border-color: var(--gold-500); }
.field-icon:focus-within svg { color: var(--gold-600); }
.field-icon select { appearance: none; cursor: pointer; }
.field-icon-top { align-items: flex-start; }
.field-icon-top svg { margin-top: 10px; }
.field-icon-top textarea {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  min-height: 90px;
}
.field-icon-top textarea:focus { background: transparent; }

.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.87rem; color: var(--ink-mute); margin: 22px 0 20px; line-height: 1.5; }
.field-check input { width: auto; accent-color: var(--gold-500); margin-top: 3px; flex-shrink: 0; }
.field-check a { color: var(--navy-800); font-weight: 600; }
.field-check a:hover { color: var(--gold-600); }

.field-note { font-size: 0.78rem; color: var(--ink-mute); margin-top: 8px; }
.form-status { font-size: 0.85rem; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(31,157,85,0.1); color: var(--green-600); }

.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 320px;
  position: relative;
  background:
    linear-gradient(0deg, rgba(10,26,48,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,26,48,0.04) 1px, transparent 1px),
    linear-gradient(160deg, #eef1f6, #e4e9f0);
  background-size: 28px 28px, 28px 28px, cover;
}
.map-box .pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.map-box .pin .dot {
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.map-box .pin .dot svg { transform: rotate(45deg); width: 20px; height: 20px; color: var(--gold-400); }
.map-box .pin .ring { width: 60px; height: 16px; margin-top: 6px; border-radius: 50%; background: rgba(10,26,48,0.15); filter: blur(2px); }
.map-box .pin-label {
  margin-top: 10px;
  background: #fff; padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 1rem;
  gap: 20px;
}
.faq-q .plus {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; background: var(--navy-800);
}
.faq-q .plus::before { width: 10px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 10px; transition: transform 0.25s ease; }
.faq-item.open .faq-q .plus { background: var(--gold-500); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background: var(--navy-950); }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { color: var(--ink-mute); font-size: 0.92rem; padding-top: 14px; max-width: 640px; }
.faq-item.open .faq-a { max-height: 200px; }

/* ---- Foundations of Investing (dark editorial accordion) ---- */
.section-found {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #cfd7e3;
}
.section-found h2 { color: #fff; }
.section-found .section-head p { color: #a9b4c5; }
.found-list { max-width: 820px; margin: 0 auto; }
.found-item.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 0;
}
.found-item.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.14); }
.found-q.faq-q { align-items: center; gap: 24px; padding: 30px 0; }
.found-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-400);
  flex-shrink: 0;
  width: 32px;
}
.found-title {
  flex: 1;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #fff;
}
.found-q .plus { background: rgba(255,255,255,0.1); }
.found-q .plus::before, .found-q .plus::after { background: #fff; }
.found-item.open .found-q .plus { background: var(--gold-500); }
.found-item.open .found-q .plus::before, .found-item.open .found-q .plus::after { background: var(--navy-950); }
.found-item .faq-a p { color: #a9b4c5; font-size: 1rem; padding-left: 56px; padding-bottom: 6px; max-width: 640px; }
.found-item.open .faq-a { max-height: 240px; }
@media (max-width: 600px) {
  .found-num { display: none; }
  .found-item .faq-a p { padding-left: 0; }
}

/* ---- Equity Market Education ---- */
.equity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.equity-points { display: flex; flex-direction: column; gap: 26px; margin-top: 34px; }
.equity-point { display: flex; gap: 16px; align-items: flex-start; }
.equity-point .icon-badge {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); flex-shrink: 0;
}
.equity-point .icon-badge svg { width: 23px; height: 23px; }
.equity-point h4 { font-size: 1.02rem; margin-bottom: 5px; }
.equity-point p { color: var(--ink-mute); font-size: 0.9rem; }

.equity-chart-card {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.equity-chart { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.chart-line {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s ease;
}
.chart-fill { opacity: 0; transition: opacity 1s ease 0.8s; }
.chart-marker {
  offset-path: path('M8,230 L70,205 L120,215 L175,150 L230,170 L285,110 L340,125 L400,55 L452,40');
  offset-distance: 0%;
  offset-rotate: 0deg;
  opacity: 0;
  transition: offset-distance 1.8s ease, opacity 0.3s ease 1.5s;
}
.marker-glow { fill: var(--gold-400); opacity: 0.35; filter: blur(2px); }
.marker-dot { fill: #fff; stroke: var(--gold-400); stroke-width: 2; }
.equity-chart-wrap.in .chart-line { stroke-dashoffset: 0; }
.equity-chart-wrap.in .chart-fill { opacity: 1; }
.equity-chart-wrap.in .chart-marker { offset-distance: 100%; opacity: 1; }
.equity-chart-labels {
  display: flex; justify-content: space-between;
  margin-top: 14px; font-size: 0.76rem; color: #7f8ba0;
}
@media (max-width: 980px) {
  .equity-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Pre-IPO Shares: horizontal icon timeline ---- */
.preipo-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.preipo-timeline::before,
.preipo-timeline::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 2px;
}
.preipo-timeline::before { background: var(--border); }
.preipo-timeline::after {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  width: 0;
  transition: width 1.6s ease;
}
.preipo-timeline.in::after { width: 100%; }

.preipo-step {
  position: relative;
  z-index: 2;
  width: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.preipo-timeline.in .preipo-step { opacity: 1; transform: scale(1); }
.preipo-timeline.in .preipo-step:nth-child(1) { transition-delay: 0.05s; }
.preipo-timeline.in .preipo-step:nth-child(2) { transition-delay: 0.55s; }
.preipo-timeline.in .preipo-step:nth-child(3) { transition-delay: 1.05s; }
.preipo-timeline.in .preipo-step:nth-child(4) { transition-delay: 1.55s; }

.preipo-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.preipo-icon svg { width: 30px; height: 30px; }
.preipo-timeline.in .preipo-step:nth-child(1) .preipo-icon { animation: preipo-pulse 2.6s ease-in-out 0.6s infinite; }
.preipo-timeline.in .preipo-step:nth-child(2) .preipo-icon { animation: preipo-pulse 2.6s ease-in-out 1.1s infinite; }
.preipo-timeline.in .preipo-step:nth-child(3) .preipo-icon { animation: preipo-pulse 2.6s ease-in-out 1.6s infinite; }
.preipo-timeline.in .preipo-step:nth-child(4) .preipo-icon { animation: preipo-pulse 2.6s ease-in-out 2.1s infinite; }
@keyframes preipo-pulse {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(212,175,55,0.35); }
  50% { box-shadow: var(--shadow-md), 0 0 0 10px rgba(212,175,55,0); }
}

.preipo-step h4 { font-size: 1rem; margin-bottom: 8px; padding: 0 4px; }
.preipo-step p { font-size: 0.85rem; color: var(--ink-mute); padding: 0 4px; }

@media (max-width: 800px) {
  .preipo-timeline { flex-direction: column; align-items: stretch; gap: 36px; margin-top: 30px; }
  .preipo-timeline::before, .preipo-timeline::after {
    top: 0; left: 36px; right: auto; bottom: 0;
    width: 2px; height: auto;
  }
  .preipo-timeline::before { height: 100%; }
  .preipo-timeline::after { height: 0; width: 2px; transition: height 1.6s ease; }
  .preipo-timeline.in::after { width: 2px; height: 100%; }
  .preipo-step { flex-direction: row; align-items: center; text-align: left; width: 100%; transform: scale(1) translateX(-14px); }
  .preipo-timeline.in .preipo-step { transform: scale(1) translateX(0); }
  .preipo-icon { margin-bottom: 0; margin-right: 20px; }
  .preipo-text { flex: 1; min-width: 0; }
  .preipo-step h4, .preipo-step p { padding: 0; }
}

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: #9aa5b7; padding: 44px 0; }
.footer-min-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- Header auth actions ---- */
.btn-login {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d7dde7;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 2px;
  transition: color 0.2s ease;
}
.btn-login svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-login:hover { color: var(--gold-400); }

/* ---- Auth pages (Login / Register) ---- */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.auth-panel {
  background: radial-gradient(circle at 15% 20%, rgba(212,175,55,0.14), transparent 45%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
  color: #fff;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-panel h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; max-width: 380px; }
.auth-panel > p { color: #b7c0d1; max-width: 380px; margin-bottom: 36px; }
.auth-points { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.auth-point { display: flex; gap: 14px; align-items: flex-start; }
.auth-point .ic {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}
.auth-point .ic svg { width: 19px; height: 19px; }
.auth-point span { font-size: 0.92rem; color: #cfd7e3; padding-top: 8px; }

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 40px;
  background: var(--bg);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card .eyebrow { margin-bottom: 12px; }
.auth-card h1 { font-size: 1.85rem; margin-bottom: 8px; }
.auth-card > p.lead-sm { color: var(--ink-mute); margin-bottom: 32px; font-size: 0.96rem; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--ink-mute); }
.auth-switch a { color: var(--gold-600); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

.form-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.form-between a { font-size: 0.85rem; color: var(--gold-600); font-weight: 600; }
.form-between a:hover { text-decoration: underline; }
.form-status.info { background: rgba(212,175,55,0.14); color: var(--gold-600); }

.divider-or { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--ink-mute); font-size: 0.8rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-wrap { padding: 56px 24px; }
}
@media (max-width: 480px) {
  .btn-login span { display: none; }
}

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-visual { order: -1; max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-box:nth-child(2) { border-right: none; }
  .stat-box { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .hero-slides { min-height: calc(100vh - 82px); }
  .main-nav { position: fixed; top: 82px; left: 0; right: 0; bottom: 0; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 30px 24px; gap: 26px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { display: block; padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; }
  .nav-mobile-only { display: block !important; margin-top: 10px; }
  .nav-mobile-only + .nav-mobile-only { margin-top: 16px; }
  .nav-mobile-only a { border-bottom: none !important; }
  .nav-mobile-only .btn-gold { display: inline-flex; padding: 12px 22px; font-size: 0.9rem; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* IPO hero badge animation — priority allotment seal */
.ipo-badge-svg {
  opacity: 0;
  animation: badgeSvgIn 0.4s ease-out forwards;
}

@keyframes badgeSvgIn {
  to { opacity: 1; }
}

.ipo-badge-svg .ipo-badge-drop {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: badgeDrop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes badgeDrop {
  0%   { opacity: 0; transform: translateY(-90px) scale(0.6); }
  55%  { opacity: 1; transform: translateY(6px) scale(1.04); }
  75%  { transform: translateY(-3px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

.ipo-badge-svg .ipo-badge-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: badgeFloat 3.2s ease-in-out 1.1s infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(1deg); }
}

.ipo-badge-svg .badge-ribbon-left,
.ipo-badge-svg .badge-ribbon-right {
  transform-box: fill-box;
  transform-origin: top;
  animation: badgeSwing 2.4s ease-in-out 1.1s infinite;
}
.ipo-badge-svg .badge-ribbon-left { animation-name: badgeSwingLeft; }
.ipo-badge-svg .badge-ribbon-right { animation-name: badgeSwingRight; }

@keyframes badgeSwingLeft {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(3deg); }
}

@keyframes badgeSwingRight {
  0%, 100% { transform: rotate(4deg); }
  50%      { transform: rotate(-3deg); }
}

.ipo-badge-svg .badge-check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: badgeCheckDraw 0.4s ease-out 0.85s forwards;
}

@keyframes badgeCheckDraw {
  to { stroke-dashoffset: 0; }
}

.ipo-badge-svg .badge-shine {
  animation: badgeShineSweep 3.2s ease-in-out 1.2s infinite;
}

@keyframes badgeShineSweep {
  0%   { transform: translateX(-30px); }
  55%  { transform: translateX(150px); }
  100% { transform: translateX(150px); }
}

.ipo-badge-svg .badge-glow {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: badgeGlowPulse 2.4s ease-in-out 1.1s infinite;
}

@keyframes badgeGlowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.12); }
}

.ipo-badge-svg .badge-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: badgeSparkleTwinkle 2.2s ease-in-out infinite;
}
.ipo-badge-svg .badge-sparkle-1 { animation-delay: 1.2s; }
.ipo-badge-svg .badge-sparkle-2 { animation-delay: 1.5s; }
.ipo-badge-svg .badge-sparkle-3 { animation-delay: 1.8s; }
.ipo-badge-svg .badge-sparkle-4 { animation-delay: 1.35s; }
.ipo-badge-svg .badge-sparkle-5 { animation-delay: 2.0s; }
.ipo-badge-svg .badge-sparkle-6 { animation-delay: 1.65s; }

@keyframes badgeSparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.3); }
  50%      { opacity: 1; transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .ipo-badge-svg,
  .ipo-badge-svg .ipo-badge-drop,
  .ipo-badge-svg .ipo-badge-float,
  .ipo-badge-svg .badge-ribbon-left,
  .ipo-badge-svg .badge-ribbon-right,
  .ipo-badge-svg .badge-check,
  .ipo-badge-svg .badge-shine,
  .ipo-badge-svg .badge-glow,
  .ipo-badge-svg .badge-sparkle {
    animation: none !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .ipo-badge-svg,
  .ipo-badge-svg .ipo-badge-drop,
  .ipo-badge-svg .badge-glow { opacity: 1 !important; }
  .ipo-badge-svg .badge-sparkle { opacity: 0 !important; }
}

/* Portfolio hero chart animation — ambient "living ticker" */
.portfolio-chart-svg {
  opacity: 0;
  animation: portfolioChartIn 0.8s ease-out forwards;
}

@keyframes portfolioChartIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portfolio-chart-svg .portfolio-area {
  animation: portfolioAreaWave 5s ease-in-out 0.4s infinite;
}

@keyframes portfolioAreaWave {
  0%, 100% { d: path('M0,140 L40,120 L80,132 L120,95 L160,105 L200,75 L240,90 L280,55 L320,65 L360,25 L400,35 L400,180 L0,180 Z'); }
  50%      { d: path('M0,146 L40,112 L80,138 L120,88 L160,111 L200,69 L240,96 L280,49 L320,71 L360,19 L400,41 L400,180 L0,180 Z'); }
}

.portfolio-chart-svg .portfolio-line {
  animation: portfolioLineWave 5s ease-in-out 0.4s infinite;
}

@keyframes portfolioLineWave {
  0%, 100% { d: path('M0,140 L40,120 L80,132 L120,95 L160,105 L200,75 L240,90 L280,55 L320,65 L360,25 L400,35'); }
  50%      { d: path('M0,146 L40,112 L80,138 L120,88 L160,111 L200,69 L240,96 L280,49 L320,71 L360,19 L400,41'); }
}

.portfolio-chart-svg .portfolio-shimmer {
  animation: portfolioShimmerSweep 3.4s ease-in-out 0.4s infinite;
}

@keyframes portfolioShimmerSweep {
  0%   { transform: translateX(0); }
  55%  { transform: translateX(560px); }
  100% { transform: translateX(560px); }
}

.portfolio-chart-svg .portfolio-flow-dot {
  offset-path: path('M0,140 L40,120 L80,132 L120,95 L160,105 L200,75 L240,90 L280,55 L320,65 L360,25 L400,35');
  offset-distance: 0%;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px #e6c765);
  animation: portfolioFlowMove 3.6s linear 0.4s infinite,
             portfolioFlowPulse 1.2s ease-in-out infinite;
}

@keyframes portfolioFlowMove {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

@keyframes portfolioFlowPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.85; }
  50%      { transform: scale(1.25); opacity: 1; }
}

.portfolio-chart-svg .portfolio-marker {
  transform-box: fill-box;
  transform-origin: center;
  animation: portfolioMarkerPulse 2.4s ease-in-out infinite;
}

@keyframes portfolioMarkerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

.portfolio-chart-svg .portfolio-marker-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: portfolioRingPulse 2.4s ease-out infinite;
}

@keyframes portfolioRingPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0;   transform: scale(3.2); }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-chart-svg,
  .portfolio-chart-svg .portfolio-area,
  .portfolio-chart-svg .portfolio-line,
  .portfolio-chart-svg .portfolio-shimmer,
  .portfolio-chart-svg .portfolio-flow-dot,
  .portfolio-chart-svg .portfolio-marker,
  .portfolio-chart-svg .portfolio-marker-ring {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .portfolio-chart-svg .portfolio-shimmer,
  .portfolio-chart-svg .portfolio-flow-dot,
  .portfolio-chart-svg .portfolio-marker-ring { opacity: 0 !important; }
}

/* Unlisted-shares hero certificate animation — stamp of approval impact */
.cert-svg .cert-paper {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: certPaperIn 0.5s ease-out both;
}

@keyframes certPaperIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.cert-svg .cert-paper-wrap {
  animation: certPaperShake 1.4s ease-out 0s both;
}

@keyframes certPaperShake {
  0%, 62%   { transform: translateX(0); }
  67%       { transform: translateX(-3px); }
  72%       { transform: translateX(3px); }
  77%       { transform: translateX(-2px); }
  82%, 100% { transform: translateX(0); }
}

.cert-svg .cert-content {
  opacity: 0;
  animation: certContentIn 0.5s ease-out 0.25s forwards;
}

@keyframes certContentIn {
  to { opacity: 1; }
}

.cert-svg .cert-stamp {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: certStampDrop 0.75s cubic-bezier(0.32, 0.1, 0.4, 1) 0.55s both;
}

@keyframes certStampDrop {
  0%   { opacity: 0; transform: translateY(-130px) scale(1.35) rotate(-16deg); }
  55%  { opacity: 1; transform: translateY(4px) scale(0.94) rotate(3deg); }
  75%  { transform: translateY(-2px) scale(1.04) rotate(-1deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.cert-svg .cert-seal-check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: certCheckDraw 0.35s ease-out 1.15s forwards;
}

@keyframes certCheckDraw {
  to { stroke-dashoffset: 0; }
}

.cert-svg .cert-shockwave {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: certShockwave 0.6s ease-out 1.02s forwards,
             certGlowPulse 2.4s ease-in-out 1.7s infinite;
}

@keyframes certShockwave {
  0%   { opacity: 0.8; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(2.1); }
}

@keyframes certGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0;   transform: scale(1.6); }
}

.cert-svg .cert-spark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: certSparkBurst 0.6s ease-out 1.02s forwards;
}
.cert-svg .cert-spark-1 { --sx: 34px;  --sy: 0px; }
.cert-svg .cert-spark-2 { --sx: 17px;  --sy: -29px; }
.cert-svg .cert-spark-3 { --sx: -17px; --sy: -29px; }
.cert-svg .cert-spark-4 { --sx: -34px; --sy: 0px; }
.cert-svg .cert-spark-5 { --sx: -17px; --sy: 29px; }
.cert-svg .cert-spark-6 { --sx: 17px;  --sy: 29px; }

@keyframes certSparkBurst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .cert-svg .cert-paper,
  .cert-svg .cert-paper-wrap,
  .cert-svg .cert-content,
  .cert-svg .cert-stamp,
  .cert-svg .cert-seal-check,
  .cert-svg .cert-shockwave,
  .cert-svg .cert-spark {
    animation: none !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .cert-svg .cert-paper,
  .cert-svg .cert-content,
  .cert-svg .cert-stamp { opacity: 1 !important; }
  .cert-svg .cert-shockwave,
  .cert-svg .cert-spark { opacity: 0 !important; }
}

/* "India's Pre-IPO investments" hero image animation */
.hero-img-in {
  opacity: 0;
  animation: heroImgIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroImgIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-img-float {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  animation: heroImgFloat 4s ease-in-out 1s infinite,
             heroImgGlow 4s ease-in-out 1s infinite;
}

@keyframes heroImgFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes heroImgGlow {
  0%, 100% { filter: drop-shadow(0 10px 16px rgba(212, 175, 55, 0.12)); }
  50%      { filter: drop-shadow(0 24px 32px rgba(212, 175, 55, 0.32)); }
}

.hero-img-float::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: heroImgShine 3.6s ease-in-out 1.6s infinite;
  pointer-events: none;
}

@keyframes heroImgShine {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img-in,
  .hero-img-float,
  .hero-img-float::after {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-img-in { opacity: 1 !important; }
  .hero-img-float::after { opacity: 0 !important; }
}
