@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
  --navy:        #0B1F3A;
  --navy-2:      #122848;
  --navy-3:      #1A3660;
  --navy-light:  #2A5298;
  --accent:      #1849A9;
  --accent-2:    #2563EB;
  --sky:         #EBF2FF;
  --sky-2:       #DBEAFE;
  --white:       #FFFFFF;
  --off-white:   #F8F9FC;
  --border:      #E2E8F0;
  --border-2:    #CBD5E1;
  --text:        #0F172A;
  --text-2:      #334155;
  --muted:       #64748B;
  --muted-2:     #94A3B8;
  --green:       #166534;
  --green-bg:    #DCFCE7;
  --green-text:  #15803D;
  --red:         #991B1B;
  --red-bg:      #FEE2E2;
  --red-text:    #DC2626;
  --amber:       #92400E;
  --amber-bg:    #FEF3C7;
  --amber-text:  #D97706;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --radius:       6px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(11,31,58,0.08), 0 1px 4px rgba(11,31,58,0.04);
  --shadow-lg:    0 12px 40px rgba(11,31,58,0.12), 0 4px 12px rgba(11,31,58,0.06);
  --max-w:        1180px;
  --transition:   0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px;
  color: var(--navy); letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--navy);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all var(--transition);
}
.nav-links a:hover { background: var(--sky); color: var(--accent); }
.nav-links a.active { color: var(--accent); background: var(--sky); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; border-radius: var(--radius);
  transition: all var(--transition); white-space: nowrap; padding: 8px 18px;
}
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-2); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-2); }
.btn-outline { background: white; color: var(--text); border: 1px solid var(--border-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--sky); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--sky); color: var(--accent); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-danger { background: var(--red-bg); color: var(--red-text); }

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: block;
}
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.1; color: var(--navy); }
.section-title { font-family: var(--font-display); font-size: clamp(28px,3.5vw,46px); font-weight: 400; line-height: 1.15; color: var(--navy); }
.section-body { font-size: 16px; color: var(--muted); line-height: 1.8; }
.navy-rule { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin: 20px 0; }

/* ─── LAYOUT ─── */
section { padding: 96px 40px; }
.container { max-width: var(--max-w); margin: 0 auto; }
.page { display: none; }
.page.active { display: block; }

/* ─── CARDS ─── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-elevated { box-shadow: var(--shadow); }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 4px; font-size: 11px; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: 0.03em;
}
.badge-buy  { background: var(--green-bg);  color: var(--green-text); }
.badge-sell { background: var(--red-bg);    color: var(--red-text);   }
.badge-preipo { background: var(--sky-2); color: var(--accent); }
.badge-series { background: var(--off-white); color: var(--muted); border: 1px solid var(--border); }
.badge-pending { background: var(--amber-bg); color: var(--amber-text); }

/* ─── TICKER ─── */
.ticker-bar {
  background: var(--navy); overflow: hidden; height: 38px;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: ticker 32s linear infinite; padding: 0 24px;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; }
.ticker-name { color: rgba(255,255,255,0.7); }
.ticker-price { color: white; }
.ticker-up   { color: #4ADE80; }
.ticker-down { color: #F87171; }

/* ─── TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted-2); padding: 0 16px 12px;
  text-align: left; border-bottom: 1px solid var(--border); font-weight: 400;
}
.data-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text); vertical-align: middle;
}
.data-table tbody tr { transition: background var(--transition); cursor: pointer; }
.data-table tbody tr:hover { background: var(--sky); }
.data-table tbody tr:last-child td { border-bottom: none; }
.co-cell { display: flex; align-items: center; gap: 12px; }
.co-initials {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; font-family: var(--font-mono);
}
.co-info-name { font-size: 14px; font-weight: 500; color: var(--text); }
.co-info-sub  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.price-cell   { font-family: var(--font-mono); font-size: 14px; }
.change-up    { color: var(--green-text); font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.change-down  { color: var(--red-text);   font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

/* ─── FORMS ─── */
.form-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 5px; letter-spacing: 0.01em;
}
.form-input, .form-select {
  width: 100%; padding: 9px 12px;
  background: white; border: 1px solid var(--border-2);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24,73,169,0.1);
}
.form-input::placeholder { color: var(--muted-2); }
.form-group { margin-bottom: 16px; }

/* ─── STAT GRID ─── */
.stat-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-cell { background: white; padding: 32px 28px; }
.stat-num  { font-family: var(--font-display); font-size: 40px; font-weight: 400; color: var(--navy); line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 48px;
}
.feature-cell {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.feature-cell:hover { box-shadow: var(--shadow); }
.feature-icon {
  width: 44px; height: 44px; background: var(--sky);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feature-cell h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.feature-cell p  { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── TESTIMONIALS ─── */
.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.testimonial { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial-quote { font-family: var(--font-display); font-size: 15px; font-style: italic; line-height: 1.75; color: var(--text); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 500; }
.testimonial-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 12px; color: var(--muted); }

/* ─── DASHBOARD ─── */
.dash-shell { display: flex; height: 100vh; padding-top: 64px; }
.dash-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--navy); border-right: none;
  display: flex; flex-direction: column; padding: 0; overflow-y: auto;
}
.dash-nav-section {
  font-family: var(--font-mono); font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.3);
  padding: 20px 20px 8px; margin-top: 8px;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 13.5px; color: rgba(255,255,255,0.6);
  cursor: pointer; transition: all var(--transition); border-left: 3px solid transparent;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.07); color: white; }
.dash-nav-item.active { background: rgba(255,255,255,0.1); color: white; border-left-color: #60A5FA; }
.dash-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; }
.dash-footer {
  margin-top: auto; padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.dash-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 600; color: white; flex-shrink: 0;
}
.dash-avatar-name  { font-size: 13px; font-weight: 500; color: white; }
.dash-avatar-role  { font-size: 11px; color: rgba(255,255,255,0.4); }

.dash-main { flex: 1; overflow-y: auto; background: var(--off-white); }
.dash-topbar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 56px; display: flex; align-items: center;
  justify-content: space-between; box-shadow: var(--shadow-sm);
}
.dash-topbar-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.dash-content { padding: 28px 32px; }

.dash-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.dash-metric {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.dash-metric-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.dash-metric-val   { font-family: var(--font-display); font-size: 28px; color: var(--navy); line-height: 1; }
.dash-metric-delta { font-size: 12px; margin-top: 5px; display: flex; align-items: center; gap: 3px; }

.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.dash-panel {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.dash-panel-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.dash-panel-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.dash-panel-body { padding: 0; }

.order-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  transition: background var(--transition); cursor: pointer;
}
.order-row:hover { background: var(--sky); }
.order-row:last-child { border-bottom: none; }
.order-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.order-dot-buy  { background: var(--green-text); }
.order-dot-sell { background: var(--red-text);   }
.order-dot-pend { background: var(--amber-text);  }
.order-info { flex: 1; }
.order-name  { font-size: 13px; font-weight: 500; color: var(--text); }
.order-meta  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.order-amount { font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-align: right; }

.holding-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.holding-row:last-child { border-bottom: none; }
.holding-logo {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.holding-name  { font-size: 13px; font-weight: 500; color: var(--text); }
.holding-sub   { font-size: 11px; color: var(--muted); margin-top: 1px; }
.holding-val   { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--navy); text-align: right; }
.holding-gain  { font-size: 11px; text-align: right; margin-top: 2px; }

/* ─── PORTFOLIO CHART PLACEHOLDER ─── */
.chart-placeholder {
  height: 180px; background: var(--sky); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; margin: 0;
}
.chart-svg { width: 100%; height: 100%; }

/* ─── APPLY PAGE ─── */
.apply-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding-top: 64px; }
.apply-left {
  background: var(--navy); padding: 60px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.apply-right { background: white; padding: 60px 56px; overflow-y: auto; }
.apply-form-title { font-family: var(--font-display); font-size: 26px; color: var(--navy); margin-bottom: 24px; }
.apply-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.apply-radio-btn {
  padding: 7px 14px; border: 1px solid var(--border-2);
  border-radius: var(--radius); font-size: 13px; color: var(--muted);
  cursor: pointer; transition: all var(--transition); background: white; font-family: var(--font-body);
}
.apply-radio-btn.selected { border-color: var(--accent); color: var(--accent); background: var(--sky); font-weight: 500; }
.apply-checkbox { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.apply-checkbox input { accent-color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.apply-checkbox label { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.apply-submit { width: 100%; padding: 13px; background: var(--navy); color: white; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--transition); font-family: var(--font-body); }
.apply-submit:hover { background: var(--navy-2); }
.progress-steps { display: flex; gap: 0; margin-bottom: 32px; }
.progress-step { flex: 1; }
.progress-step-inner { display: flex; align-items: center; }
.progress-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.progress-num.done { background: var(--accent); color: white; }
.progress-num.active { background: white; color: var(--navy); border: 2px solid white; }
.progress-num.todo { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }
.progress-line { flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
.progress-label { font-size: 11px; margin-top: 6px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── FOOTER ─── */
footer { background: var(--navy); padding: 64px 40px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: var(--max-w); margin: 0 auto 48px; }
.footer-logo { font-family: var(--font-display); font-size: 20px; color: white; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); max-width: var(--max-w); margin: 0 auto; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.fade-up   { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.12s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.24s ease both; }
.fade-up-4 { animation: fadeUp 0.6s 0.36s ease both; }

@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  section { padding: 64px 20px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .apply-layout { grid-template-columns: 1fr; }
  .apply-left { display: none; }
  .dash-sidebar { display: none; }
  .dash-metrics { grid-template-columns: repeat(2,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ─── VANTRA BRAND OVERRIDES ─── */
:root {
  --navy:        #0A1628;
  --navy-2:      #0F1F38;
  --navy-3:      #162844;
  --navy-light:  #1E3A5F;
  --accent:      #0057FF;
  --accent-2:    #2B7AFF;
  --sky:         #EBF2FF;
  --sky-2:       #D6E8FF;
}

/* Vantra logo mark — V diamond */
.vantra-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vantra-mark svg { width: 18px; height: 18px; fill: white; }

.vantra-wordmark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 20px; font-weight: 400;
  letter-spacing: -0.02em; color: var(--navy);
}

/* Hero tagline italic accent */
.hero h1 em { color: #7EB3FF; }

/* Accent button tweak */
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-2); }

/* Nav logo on dark hero */
.hero .vantra-wordmark { color: white; }

/* Footer brand */
.footer-vantra-word { color: white; }
