/* ════════════════════════════════════════════════════════════════
   MERIDIAN INVESTMENTS — STYLESHEET
   • Global design tokens and color system
   • Component-based styling for all UI elements
   • Responsive breakpoints for mobile, tablet, desktop
════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #0B1A46;
  --secondary: #54595F;
  --tertiary:  #7A7A7A;
  --accent:    #3D66E1;
  --light-bg:  #E5E6F2;
  --blue-soft: #87A4FF;
  --white:     #FEFEFE;
  --glass:     rgba(122,122,122,0.26);
  --white-75:  rgba(254,254,254,0.46);
  --pink:      #EA4C89;
  --sky:       #87E3FF;

  /* semantic aliases */
  --ink:     var(--primary);
  --paper:   var(--light-bg);
  --gold:    var(--accent);
  --gold2:   var(--blue-soft);
  --up:      #1fc680;
  --down:    #e84040;
  --mid:     var(--secondary);
  --card-bg: var(--white);
  --border:  rgba(11,26,70,.09);
  --ticker-h: 44px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
}

/* ── TICKER TAPE ── */
.ticker-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--ticker-h);
  background: var(--primary);
  overflow: hidden;
  display: flex; align-items: center;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  padding: 0 16px;
  height: 100%;
  display: flex; align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 2px solid rgba(255,255,255,.1);
}
.ticker-track-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  animation: ticker-scroll 60s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px;
  font-size: 12px;
  color: var(--white-75);
  border-right: 1px solid rgba(255,255,255,.06);
}
.ticker-sym { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 11px; }
.ticker-price { color: var(--blue-soft); }
.ticker-chg.up   { color: var(--up); }
.ticker-chg.down { color: var(--down); }

/* ── NAV ── */
nav {
  position: fixed; top: var(--ticker-h); left: 0; right: 0; z-index: 100;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: white;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,26,70,.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: -.02em;
  color: #0b1a46;
}
.nav-logo span { color: #0b1a46; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(11,26,70,.6); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #0b1a46; }
.nav-links a.active { border-bottom: 2px solid var(--sky); padding-bottom: 2px; }
.nav-cta {
  background: #0b1a46 !important;
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--pink) !important; color: var(--white) !important; }

/* ── HERO ── */
.hero {
  margin-top: calc(var(--ticker-h) + 68px);
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 65% 40%, rgba(61,102,225,.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 2px; background: var(--accent);
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 5.5vw, 82px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 14px; line-height: 1.8; color: var(--mid);
  max-width: 420px; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: var(--white);
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 14px 32px; border-radius: 4px; transition: all .25s;
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--ink);
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 14px 32px; border-radius: 4px; transition: all .25s;
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO CHART ── */
.hero-chart-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.market-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.07);
}
.market-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.market-card-ticker {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 800;
  letter-spacing: .1em; color: var(--accent);
}
.market-card-name { font-size: 12px; color: var(--mid); margin-top: 3px; }
.market-card-price {
  font-family: 'DM Serif Display', serif;
  font-size: 42px; letter-spacing: -.02em;
  color: var(--ink); line-height: 1;
}
.market-card-change {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
}
.market-card-change.up   { background: rgba(31,198,128,.12); color: var(--up); }
.market-card-change.down { background: rgba(232,64,64,.1);   color: var(--down); }

canvas#heroChart {
  width: 100%; height: 130px;
  display: block;
}
.market-card-meta {
  display: flex; gap: 24px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.meta-item label {
  display: block; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 3px;
}
.meta-item span { font-size: 13px; font-weight: 500; color: var(--ink); }

/* ── LIVE DOT ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--up);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(31,198,128,.4); }
  50%      { opacity: .85; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(31,198,128,0); }
}

/* ── SECTION LAYOUT ── */
.section { padding: 80px 48px; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  letter-spacing: -.02em; line-height: 1.1;
}
.section-line {
  width: 40px; height: 3px; background: var(--accent);
  margin-bottom: 14px; border-radius: 2px;
}
.section-sub { font-size: 13px; color: var(--mid); max-width: 400px; line-height: 1.7; }

/* ── STOCK TABLE ── */
.stock-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.05);
}
.stock-table-toolbar {
  display: flex; gap: 12px; align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--mid); transition: all .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
table {
  width: 100%; border-collapse: collapse;
}
thead { background: rgba(0,0,0,.02); }
th {
  font-family: 'Syne', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mid);
  padding: 12px 28px; text-align: left;
}
th:last-child, td:last-child { text-align: right; padding-right: 28px; }
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(201,168,76,.04); }
td { padding: 16px 28px; font-size: 13px; }
.td-sym {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 13px; color: var(--ink);
}
.td-name { color: var(--mid); font-size: 12px; }
.td-price { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500; }
.td-chg {
  padding: 3px 10px; border-radius: 100px; display: inline-block;
}
.td-chg.up   { background: rgba(31,198,128,.1);  color: var(--up); }
.td-chg.down { background: rgba(232,64,64,.08);  color: var(--down); }
.mini-bar {
  width: 80px; height: 32px; display: inline-block; vertical-align: middle;
}

/* ── STRATEGIES GRID ── */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .strategies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .strategies-grid { grid-template-columns: 1fr; } }

.strat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  cursor: pointer;
  transition: all .25s;
  position: relative; overflow: hidden;
}
.strat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(61,102,225,.08) 0%, transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.strat-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(11,26,70,.12); }
.strat-card:hover::before { opacity: 1; }
.strat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #1a3a8f);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(11,26,70,.25);
  color: var(--white);
}
.strat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}
.strat-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
}
.strat-desc { font-size: 12px; color: var(--mid); line-height: 1.75; }
.strat-tag {
  display: inline-block; margin-top: 18px;
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--mid);
}

/* ── FOOTER ── */
footer {
  background: white; color: #0b1a46;
  padding: 60px 48px 32px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: #0b1a46;
  display: block;
}
.footer-logo span { color: #0b1a46; }
.footer-tagline { font-size: 12px; line-height: 1.8; max-width: 260px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: #0b1a46; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  text-decoration: none; font-size: 13px;
  color: rgba(11,26,70,.6); transition: color .2s;
}
.footer-col a:hover { color: #0b1a46; }
.footer-bottom {
  border-top: 1px solid rgba(11,26,70,.08);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: #0b1a46;
}
.footer-bottom a { color: rgba(11,26,70,.5); text-decoration: none; }
.footer-bottom a:hover { color: #0b1a46; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px; }
  .hero-chart-wrap { display: none; }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .section { padding: 60px 24px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer { padding: 40px 24px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5) { display: none; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── SPARKLINE TOOLTIP ── */
.sp-tooltip {
  position: fixed; background: var(--primary); color: var(--white);
  font-family: 'DM Mono', monospace; font-size: 11px;
  padding: 6px 12px; border-radius: 6px; pointer-events: none;
  opacity: 0; transition: opacity .15s; z-index: 9999;
}

/* ── SUCCESS HISTORY PAGE ── */
.content-block {
  max-width: 800px;
}
.content-block h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.content-block h3:first-child {
  margin-top: 0;
}
.content-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 24px;
}
.content-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.content-block ul li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}
.content-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1400px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
  }
}

@media (max-width: 1000px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}

@media (max-width: 600px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.05);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
