/* =====================================================
   VYOVAM Homepage — Luxury Navy & Gold Aesthetic
   ===================================================== */

:root {
  /* Gold luxury palette */
  --bg-base: #07111f;
  --bg-elev: #0a1628;
  --bg-card: #0f1f3d;
  --bg-card-2: #16294d;
  --line: rgba(201, 169, 97, 0.12);
  --line-strong: rgba(201, 169, 97, 0.22);
  --acc-gold: #d4af37;
  --acc-gold-bright: #e8c25a;
  --acc-gold-deep: #9c8244;
  --acc-green: #10B981;
  --acc-red: #EF4444;
  --acc-amber: #F59E0B;
  --text-primary: #F5F1E8;
  --text-secondary: rgba(245, 241, 232, 0.65);
  --text-tertiary: rgba(245, 241, 232, 0.38);

  /* Legacy aliases so index.html gold tokens still resolve */
  --navy-900: #05090f;
  --navy-800: #07111f;
  --navy-700: #0f1f3d;
  --navy-600: #16294d;
  --navy-line: rgba(201, 169, 97, 0.14);
  --gold: #d4af37;
  --gold-bright: #e8c25a;
  --gold-deep: #9c8244;
  --parchment: #F5F1E8;
  --paper: #faf7f0;
  --ink: #07111f;
  --muted: rgba(245, 241, 232, 0.45);
  --muted-strong: rgba(245, 241, 232, 0.72);

  /* Convenience aliases used below */
  --acc-blue: #d4af37;
  --acc-blue-bright: #e8c25a;
}

body { background: var(--bg-base); color: var(--text-primary); }
.nav {
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
}

/* nav: auth buttons */
.nav-cta-row { display: flex; align-items: center; gap: 10px; }
.btn-ghost-sm {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
}
.btn-ghost-sm:hover { color: var(--text-primary); }
.btn-launch {
  padding: 10px 20px;
  background: var(--acc-gold);
  color: var(--bg-base);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.0);
}
.btn-launch:hover {
  background: var(--acc-gold-bright);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}

/* Hide legacy nav pill */
.nav-cta { display: none; }

/* "soon" tag on nav items */
.nav-soon {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc-gold);
  margin-left: 5px;
  vertical-align: super;
}

/* ticker constrained to the site's content width */
.ticker-wrap {
  display: flex;
  align-items: center;
}
.ticker-note {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  align-self: stretch;
  padding-right: 16px;
  margin-right: 24px;
  border-right: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-clip {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

/* contact line */
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.2);
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.4;
}
.contact-line a {
  color: var(--acc-gold-bright);
  font-weight: 600;
  border-bottom: 1px solid rgba(232,194,90,0.4);
  transition: color .2s, border-color .2s;
}
.contact-line a:hover { color: #f0d97a; border-color: #f0d97a; }
.contact-line-arrow {
  color: var(--acc-gold-bright);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
}

/* trust strip */
.trust-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  padding: 18px 24px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  background: rgba(212,175,55,0.02);
}
.ts-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.ts-logos { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.ts-logos span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  opacity: 0.8;
  transition: opacity .2s, color .2s;
}
.ts-logos span:hover { opacity: 1; color: var(--acc-gold-bright); }

/* sample-data disclaimer */
.data-disclaimer {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-align: center;
}

/* =====================================================
   HERO
   ===================================================== */
.fin-hero {
  position: relative;
  padding: 60px 0 72px;
  overflow: hidden;
}
.fin-hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% -10% -10%;
  background-image:
    linear-gradient(rgba(201,169,97,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, black 40%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
}
.fin-hero::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(212,175,55,0.12), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.fin-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 60px;
  align-items: center;
  z-index: 1;
}
@media (max-width: 1100px) { .fin-hero-grid { grid-template-columns: 1fr; gap: 56px; } }

/* pill badge */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.25);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.pill-dot {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  position: relative;
  background: rgba(16,185,129,0.15);
}
.pill-dot::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--acc-green);
}
.pill-dot::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(16,185,129,0.4);
  animation: pillPulse 2.4s infinite;
}
@keyframes pillPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pill strong { color: var(--text-primary); font-weight: 500; }

/* hero headline */
.fin-h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.fin-h1 .grad {
  background: linear-gradient(135deg, #e8c25a 0%, #d4af37 50%, #c9a061 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.fin-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}
.fin-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

/* primary CTA — gold */
.btn-primary-blue {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--acc-gold);
  color: var(--bg-base);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em;
  transition: all .2s;
  box-shadow: 0 8px 28px -8px rgba(212,175,55,0.5);
}
.btn-primary-blue:hover {
  background: var(--acc-gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -8px rgba(212,175,55,0.65);
}
.btn-secondary-glass {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  font-size: 14px; font-weight: 500;
  transition: all .2s;
  backdrop-filter: blur(8px);
}
.btn-secondary-glass:hover { background: rgba(212,175,55,0.06); border-color: var(--acc-gold); color: var(--acc-gold-bright); }

/* trust row */
.trust-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 8px;
}
.trust-row .ti {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.trust-row .ti svg { color: var(--acc-gold); }

/* =====================================================
   HERO DASHBOARD MOCK
   ===================================================== */
.dash-wrap {
  position: relative;
  perspective: 1600px;
}
.dash {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(64px, auto);
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15,31,61,0.7) 0%, rgba(7,17,31,0.92) 100%);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(212,175,55,0.06) inset;
  transform: rotateY(-4deg) rotateX(3deg);
}
@media (max-width: 1100px) { .dash { transform: none; } }

.card {
  background: linear-gradient(180deg, rgba(212,175,55,0.04) 0%, rgba(212,175,55,0.01) 100%);
  border: 1px solid var(--line);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.card.glow-blue  { border-color: rgba(212,175,55,0.28); box-shadow: 0 0 0 1px rgba(212,175,55,0.08), 0 12px 32px -16px rgba(212,175,55,0.3); }
.card.glow-green { border-color: rgba(16,185,129,0.2); }
.card.glow-red   { border-color: rgba(239,68,68,0.2); }

.k-row { display: flex; justify-content: space-between; align-items: center; }
.k-label { font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono); }
.k-value { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.k-value.up { color: var(--acc-green); }
.k-value.down { color: var(--acc-red); }
.k-delta { font-family: var(--mono); font-size: 11px; }
.k-delta.up { color: var(--acc-green); }
.k-delta.down { color: var(--acc-red); }

/* card spans */
.c-pnl    { grid-column: span 3; grid-row: span 2; }
.c-sharpe { grid-column: span 3; }
.c-orders { grid-column: span 3; grid-row: span 2; }
.c-risk   { grid-column: span 3; }
.c-alloc  { grid-column: span 3; grid-row: span 2; }
.c-broker { grid-column: span 3; }

.miniline { height: 40px; width: 100%; margin-top: 8px; }
.pnl-spark { width: 100%; height: 100px; margin-top: 12px; }

/* risk meter */
.meter {
  height: 5px;
  background: rgba(212,175,55,0.08);
  overflow: hidden;
  margin-top: 12px;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--acc-green), var(--acc-amber) 70%, var(--acc-red));
  width: 42%;
  transition: width 1s ease;
}
.meter-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono); font-size: 10px;
  color: var(--text-tertiary);
}

/* order log */
.orders {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 7px;
}
.order-row {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(212,175,55,0.03);
  border: 1px solid rgba(212,175,55,0.08);
  animation: orderIn 0.6s ease both;
}
.order-row .side { width: 4px; height: 16px; }
.order-row.buy  .side { background: var(--acc-green); }
.order-row.sell .side { background: var(--acc-red); }
.order-row .sym { color: var(--acc-gold-bright); font-weight: 500; letter-spacing: 0.04em; }
.order-row .qty { color: var(--text-secondary); }
.order-row .px  { color: var(--text-primary); }
@keyframes orderIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* allocation donut */
.donut { width: 76px; height: 76px; }
.alloc-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.alloc-legend { display: flex; flex-direction: column; gap: 7px; font-family: var(--mono); font-size: 11px; }
.alloc-legend .it { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.alloc-legend .swatch { width: 9px; height: 9px; }
.alloc-legend .pct { margin-left: auto; color: var(--text-primary); }

/* broker chips */
.broker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.broker-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: rgba(212,175,55,0.03);
  border: 1px solid rgba(212,175,55,0.1);
  font-size: 11px;
}
.broker-chip .dot { width: 6px; height: 6px; background: var(--acc-green); box-shadow: 0 0 6px var(--acc-green); }
.broker-chip .dot.dim { background: var(--acc-amber); box-shadow: 0 0 6px var(--acc-amber); }
.broker-chip .name { color: var(--text-secondary); font-family: var(--mono); letter-spacing: 0.06em; }

/* floating widgets */
.float-widget {
  position: absolute;
  z-index: 2;
  background: rgba(10, 22, 48, 0.94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  padding: 12px 14px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fw-1 { top: -20px; left: -28px; animation-delay: -2s; }
.fw-2 { bottom: -24px; right: -30px; animation-delay: -4s; }
@media (max-width: 1100px) { .fw-1, .fw-2 { display: none; } }
.fw-row { display: flex; align-items: center; gap: 10px; }
.fw-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(212,175,55,0.12);
  color: var(--acc-gold-bright);
}
.fw-icon.green { background: rgba(16,185,129,0.12); color: var(--acc-green); }
.fw-meta { display: flex; flex-direction: column; }
.fw-title { font-size: 12px; color: var(--text-primary); font-weight: 500; }
.fw-sub { font-family: var(--mono); font-size: 10px; color: var(--text-secondary); }

/* =====================================================
   SECTION CHROME
   ===================================================== */
.fin-section { padding: 72px 0; position: relative; }
.fin-section-head { text-align: center; margin-bottom: 48px; }
.fin-section-head .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--acc-gold);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.fin-section-head .eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--acc-gold); }
.fin-section-head .eyebrow::after  { content: ''; width: 28px; height: 1px; background: var(--acc-gold); }
.fin-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.08;
  margin: 0 auto 18px;
  max-width: 800px;
  color: var(--text-primary);
}
.fin-section-head h2 em { color: var(--acc-gold-bright); font-style: italic; }
.fin-section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   TRUST METRICS
   ===================================================== */
.tmetrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .tmetrics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tmetrics-grid { grid-template-columns: 1fr; } }
.tmetric {
  padding: 36px 28px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: all .25s;
}
.tmetric:hover { background: var(--bg-card-2); }
.tm-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--acc-gold);
  color: var(--acc-gold);
  display: inline-grid; place-items: center;
  margin-bottom: 18px;
}
.tmetric h4 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 6px; color: var(--text-primary); }
.tmetric p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.tm-big {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--acc-gold);
}

/* =====================================================
   FEATURE GRID
   ===================================================== */
.fgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .fgrid { grid-template-columns: 1fr; } }
.fcard {
  padding: 32px 28px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: all .25s;
  min-height: 210px;
  display: flex; flex-direction: column;
}
.fcard:hover { background: var(--bg-card-2); }
.fcard:hover::before { opacity: 1; }
.fcard::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(212,175,55,0.08), transparent 40%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.f-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--acc-gold);
  color: var(--acc-gold);
  display: inline-grid; place-items: center;
  margin-bottom: 20px;
}
.fcard h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.fcard p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* =====================================================
   ARCHITECTURE FLOW
   ===================================================== */
.arch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 56px 0;
}
@media (max-width: 1100px) {
  .arch-node .core { width: 72px; height: 72px; }
  .arch-node h4 { font-size: 12.5px; }
  .arch-node p { font-size: 10.5px; }
  .arch-detail { font-size: 10.5px; max-width: 150px; }
  .arch-line { top: 62px; }
}
@media (max-width: 700px) {
  .arch { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 24px 26px; border-left: 1px solid var(--line-strong); }
  .arch-node { text-align: left; }
  .arch-node .core { margin: 0 0 14px; }
  .arch-detail { margin: 10px 0 0; opacity: 1; transform: none; }
  .arch-line { display: none; }
}
.arch-node {
  position: relative;
  text-align: center;
  z-index: 2;
  transition: transform .25s ease;
}
.arch-node:hover { transform: translateY(-4px); }
.arch-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--acc-gold);
  margin-bottom: 10px;
}
.arch-detail {
  max-width: 180px;
  margin: 10px auto 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.arch-node:hover .arch-detail { opacity: 1; transform: translateY(0); }
.arch-node .core {
  width: 96px; height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  position: relative;
  color: var(--acc-gold);
}
.arch-node .core::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
  animation: archPulse 3s infinite;
}
@keyframes archPulse {
  0%   { transform: scale(0.96); opacity: 0.8; }
  100% { transform: scale(1.2);  opacity: 0; }
}
.arch-node:nth-child(2) .core::before { animation-delay: -0.6s; }
.arch-node:nth-child(3) .core::before { animation-delay: -1.2s; }
.arch-node:nth-child(4) .core::before { animation-delay: -1.8s; }
.arch-node:nth-child(5) .core::before { animation-delay: -2.4s; }
.arch-node h4 { font-family: var(--serif); font-size: 15px; font-weight: 400; color: var(--text-primary); margin-bottom: 4px; }
.arch-node p { font-size: 12px; color: var(--text-secondary); font-family: var(--mono); letter-spacing: 0.04em; }

.arch-line {
  position: absolute;
  top: 74px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, var(--line-strong) 10%, var(--line-strong) 90%, transparent 96%);
  z-index: 1;
}
.arch-line::after {
  content: '';
  position: absolute;
  top: -1px; left: 4%;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--acc-gold-bright), transparent);
  filter: blur(1px);
  animation: archFlow 5s linear infinite;
}
@keyframes archFlow {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw - 60px)); }
}
@media (max-width: 700px) { .arch-line { display: none; } }

/* =====================================================
   DASHBOARD SHOWCASE
   ===================================================== */
.show-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .show-grid { grid-template-columns: 1fr; } }
.show-panel {
  background: var(--bg-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
}
.show-panel:hover { background: var(--bg-card-2); }
.show-panel header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.show-panel .title { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--text-primary); }
.show-panel .sub { font-family: var(--mono); font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }
.show-panel .body { height: 180px; position: relative; }
.show-foot {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--text-secondary);
}
.show-foot .v { color: var(--acc-gold-bright); }

/* =====================================================
   WHY VYOVAM
   ===================================================== */
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .why-list { grid-template-columns: 1fr; } }
.why-row {
  background: var(--bg-card);
  padding: 32px;
  display: flex; gap: 16px; align-items: start;
  transition: background .2s;
}
.why-row:hover { background: var(--bg-card-2); }
.why-row .ic {
  width: 32px; height: 32px;
  border: 1px solid var(--acc-gold);
  color: var(--acc-gold);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.why-row h4 { font-family: var(--serif); font-size: 18px; font-weight: 400; margin-bottom: 6px; color: var(--text-primary); }
.why-row p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* =====================================================
   SECURITY
   ===================================================== */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 980px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-card {
  padding: 32px 28px;
  background: var(--bg-card);
  display: flex; gap: 14px; align-items: start;
  transition: background .2s;
}
.sec-card:hover { background: var(--bg-card-2); }
.sec-card .ic { width: 36px; height: 36px; border: 1px solid rgba(16,185,129,0.5); color: var(--acc-green); display: grid; place-items: center; flex-shrink: 0; }
.sec-card h4 { font-family: var(--serif); font-size: 18px; font-weight: 400; margin-bottom: 6px; color: var(--text-primary); }
.sec-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .3s;
  min-height: 240px;
}
.prod-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(212,175,55,0.12), transparent 50%);
  opacity: 0.5; transition: opacity .3s;
  pointer-events: none;
}
.prod-card:hover { border-color: rgba(212,175,55,0.35); transform: translateY(-3px); }
.prod-card:hover::before { opacity: 1; }
.prod-card .pc-head {
  display: flex; justify-content: space-between; align-items: start;
  gap: 12px; position: relative; z-index: 1;
}
.prod-card .pc-ic {
  width: 42px; height: 42px;
  border: 1px solid var(--acc-gold);
  color: var(--acc-gold);
  display: grid; place-items: center;
}
.prod-card .pc-path {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.prod-card h3 {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 22px 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.prod-card p {
  position: relative; z-index: 1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.prod-card .pc-foot {
  position: relative; z-index: 1;
  margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prod-card .pc-foot .arrow { color: var(--acc-gold); font-size: 14px; transition: transform .2s; }
.prod-card:hover .pc-foot .arrow { transform: translateX(4px); }

.pc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: rgba(16,185,129,0.10);
  color: var(--acc-green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.pc-tag.soon  { background: rgba(212,175,55,0.10); color: var(--acc-gold); }
.pc-tag.beta  { background: rgba(167,139,250,0.12); color: #c4b5fd; }

/* =====================================================
   HEATMAP / EXECUTION FEED
   ===================================================== */
.heatmap { display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 1fr; gap: 3px; width: 100%; height: 100%; }
.heatmap .hc { transition: transform .2s; }
.heatmap .hc:hover { transform: scale(1.15); }

.exec-feed { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; }
.exec-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  background: rgba(212,175,55,0.02);
  border: 1px solid rgba(212,175,55,0.07);
}
.exec-row .t  { color: var(--text-tertiary); }
.exec-row .s  { color: var(--text-primary); font-weight: 500; }
.exec-row .a.buy  { color: var(--acc-green); }
.exec-row .a.sell { color: var(--acc-red); }
.exec-row .v  { color: var(--acc-gold-bright); }

/* uptime bars */
.uptime-row { display: grid; grid-template-columns: 80px 1fr 50px; gap: 12px; align-items: center; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; }
.uptime-row .n { color: var(--text-primary); letter-spacing: 0.04em; }
.uptime-bar { display: flex; gap: 2px; height: 16px; }
.uptime-bar i { flex: 1; background: var(--acc-green); opacity: 0.85; }
.uptime-bar i.off { background: var(--acc-red); }
.uptime-bar i.deg { background: var(--acc-amber); }
.uptime-row .v { color: var(--text-secondary); text-align: right; }

/* =====================================================
   ONE CORE, THREE PRODUCTS
   ===================================================== */
.core-diagram { margin-bottom: 8px; }
.cd-core { display: flex; justify-content: center; }
.cd-core-node {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  box-shadow: 0 0 50px -10px rgba(212,175,55,0.3);
}
.cd-core-node svg { color: var(--acc-gold); }
.cd-lines { display: block; width: 100%; height: 70px; }
.cd-line { fill: none; stroke-width: 1.5; stroke-dasharray: 400; stroke-dashoffset: 0; }
.fin-reveal:not(.in) .cd-line { stroke-dashoffset: 400; }
.fin-reveal.in .cd-line { animation: cdDraw 1.1s ease forwards; }
@keyframes cdDraw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.cd-line-blue  { stroke: rgba(232,194,90,0.5); }
.cd-line-green { stroke: rgba(16,185,129,0.45); }
.cd-line-coral { stroke: rgba(232,194,90,0.4); }

.cd-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.cd-branch {
  display: flex; gap: 14px; align-items: start;
  padding: 28px;
  background: var(--bg-card);
  border: none;
  transition: background .25s, transform .25s;
}
.cd-branch:hover { background: var(--bg-card-2); transform: translateY(-2px); }
.cd-dot { width: 8px; height: 8px; margin-top: 5px; flex-shrink: 0; }
.cd-blue .cd-dot  { background: var(--acc-gold-bright); box-shadow: 0 0 10px rgba(232,194,90,0.6); }
.cd-green .cd-dot { background: var(--acc-green); box-shadow: 0 0 10px rgba(16,185,129,0.6); }
.cd-coral .cd-dot { background: var(--acc-gold); box-shadow: 0 0 10px rgba(212,175,55,0.6); }
.cd-branch h5 { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--text-primary); margin-bottom: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cd-branch p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 900px) {
  .cd-lines { display: none; }
  .cd-branches { grid-template-columns: 1fr; margin-top: 20px; }
  .cd-core { margin-bottom: 4px; }
}

/* Products section bg */
#our-products  { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#dashboard     { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#security      { background: var(--bg-base) !important; }

/* =====================================================
   HP PRODUCTS CARDS
   ===================================================== */
.hp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1100px) { .hp-products { grid-template-columns: 1fr; } }
.hp-prod {
  position: relative;
  display: flex; flex-direction: column;
  padding: 40px 36px;
  background: var(--bg-card);
  transition: background .25s, transform .25s;
}
.hp-prod:hover { background: var(--bg-card-2); transform: translateY(-2px); }
.hp-prod-coral, .hp-prod-green { background: var(--bg-card); }
.hp-prod-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.hp-prod .pc-ic {
  width: 42px; height: 42px;
  border: 1px solid var(--acc-gold);
  color: var(--acc-gold);
  display: grid; place-items: center;
}
.hp-prod h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--text-primary); margin-bottom: 10px; }
.hp-prod > p { font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.hp-prod-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hp-prod-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================
   CENTERED HERO VARIANT
   ===================================================== */
.fin-hero-center {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.fin-hero-center .fin-h1 { margin-left: auto; margin-right: auto; }

/* =====================================================
   FINAL CTA
   ===================================================== */
.final-cta {
  position: relative;
  text-align: center;
  padding: 120px 48px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  margin: 80px 0 0;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,97,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 auto 22px;
  max-width: 720px;
  color: var(--text-primary);
}
.final-cta h2 .grad {
  background: linear-gradient(135deg, #e8c25a, #d4af37);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.final-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.final-cta .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* =====================================================
   FOOTER OVERRIDES
   ===================================================== */
footer { background: var(--navy-900); border-top: 1px solid var(--line); }
footer .footer-col h5 { color: var(--acc-gold); }
footer .footer-col a:hover { color: var(--acc-gold-bright); }
footer .footer-bottom .socials a { color: var(--text-tertiary); border-color: var(--line-strong); }
footer .footer-bottom .socials a:hover { color: var(--acc-gold); border-color: var(--acc-gold); }

/* =====================================================
   REVEAL
   ===================================================== */
.fin-reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.fin-reveal.in { opacity: 1; transform: translateY(0); }

/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  transition: all .2s;
}
.nav-burger:hover { border-color: var(--acc-gold); color: var(--acc-gold); }
.nav-mobile { display: none; }

@media (max-width: 900px) {
  .nav .nav-links { display: none; }
  .nav .nav-burger { display: inline-flex; }
  .nav .nav-inner { height: 76px; }
  .nav .logo-mark-svg { width: 60px; height: 51px; }
  .nav .logo-word { font-size: 24px; }
  .nav .logo-sub { font-size: 8.5px; letter-spacing: 0.26em; }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    padding: 4px 24px 16px;
    border-top: 1px solid var(--line);
  }
  .nav-mobile-link {
    padding: 15px 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--line);
  }
  .nav-mobile-link:last-child { border-bottom: none; }
  .nav-mobile-link.active { color: var(--acc-gold); }
}

/* =====================================================
   SMALL-SCREEN LAYOUT FIXES
   ===================================================== */
@media (max-width: 720px) {
  /* hero dashboard: one card per row */
  .c-pnl, .c-sharpe, .c-orders, .c-risk, .c-alloc, .c-broker { grid-column: span 6; }
  .fin-section { padding: 52px 0; }
  .fin-hero { padding: 36px 0 56px; }
  .fin-section-head { margin-bottom: 36px; }
  .final-cta { padding: 72px 24px; }
}
@media (max-width: 540px) {
  /* Footer: brand on top (full width), then Navigate / Products / Company
     side-by-side to save vertical space */
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 10px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col h5 { font-size: 10.5px; margin-bottom: 14px; }
  .footer-col ul { gap: 10px; }
  .footer-col a, .footer-col li {
    font-size: 11.5px; line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .broker-grid { grid-template-columns: 1fr 1fr; }
  .theme-toggle { margin-left: 6px; }

  /* Hero CTAs: stack full-width so they line up cleanly */
  .fin-cta-row { flex-direction: column; align-items: stretch; }
  .fin-cta-row a { width: 100%; justify-content: center; }

  /* Trust checks: one per row instead of an uneven 2 + 1 wrap */
  .trust-row { flex-direction: column; gap: 12px; }
}

/* =====================================================
   THEME TOGGLE (Day / Night / Auto)
   ===================================================== */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 14px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all .2s;
  min-width: 76px;
  justify-content: center;
}
.theme-toggle:hover { border-color: var(--acc-gold); color: var(--acc-gold); }
.theme-toggle svg { display: block; flex-shrink: 0; }
@media (max-width: 860px) {
  .theme-toggle { min-width: 0; padding: 8px 10px; }
  .theme-toggle .tt-label { display: none; }
}

/* =====================================================
   LIGHT THEME (day view) — overrides every color token
   ===================================================== */
:root { color-scheme: dark; }

html[data-theme="light"] {
  color-scheme: light;
  --bg-base: #faf7f0;
  --bg-elev: #f3eee1;
  --bg-card: #ffffff;
  --bg-card-2: #f8f4ea;
  --line: rgba(122, 101, 53, 0.18);
  --line-strong: rgba(122, 101, 53, 0.34);
  --acc-gold: #9c8244;
  --acc-gold-bright: #a8862f;
  --acc-gold-deep: #7a6535;
  --acc-green: #0f9d63;
  --acc-red: #dc2626;
  --text-primary: #0a1628;
  --text-secondary: rgba(10, 22, 40, 0.68);
  --text-tertiary: rgba(10, 22, 40, 0.45);
  --navy-900: #efe9da;
  --navy-800: #faf7f0;
  --navy-700: #ffffff;
  --navy-600: #f3eee1;
  --navy-line: rgba(122, 101, 53, 0.2);
  --gold: #9c8244;
  --gold-bright: #a8862f;
  --gold-deep: #7a6535;
  --parchment: #0a1628;
  --paper: #07111f;
  --ink: #f5f1e8;
  --muted: rgba(10, 22, 40, 0.52);
  --muted-strong: rgba(10, 22, 40, 0.74);
  --acc-blue: #9c8244;
  --acc-blue-bright: #a8862f;
}

/* components with hardcoded dark backgrounds */
html[data-theme="light"] .nav { background: rgba(250, 247, 240, 0.86); }
html[data-theme="light"] .dash {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(250,247,240,0.97) 100%);
  box-shadow:
    0 30px 80px -30px rgba(10,22,40,0.28),
    0 0 0 1px rgba(122,101,53,0.1) inset;
}
html[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 100%);
}
html[data-theme="light"] .float-widget {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px -20px rgba(10,22,40,0.3);
}
html[data-theme="light"] .fm-chip { background: rgba(10, 22, 40, 0.04); }

/* green/red ticks need deeper shades on light backgrounds */
html[data-theme="light"] .ticker-item .chg.up,
html[data-theme="light"] .market-card .chg.up { color: #15803d; }
html[data-theme="light"] .ticker-item .chg.down,
html[data-theme="light"] .market-card .chg.down { color: #b91c1c; }

/* Custom market marquee — theme-native (no third-party widget) */
html[data-theme="dark"] .ticker  { background: var(--bg-elev); }
html[data-theme="light"] .ticker { background: var(--bg-elev); }

.mkt-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  white-space: nowrap;
  padding: 14px 0;
  animation: mktScroll linear infinite;
  will-change: transform;
}
.mkt-track:hover { animation-play-state: paused; }
@keyframes mktScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mkt-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.mkt-name  { color: var(--text-secondary); letter-spacing: 0.06em; }
.mkt-price { color: var(--text-primary); font-weight: 500; }
.mkt-chg.up   { color: var(--acc-green); }
.mkt-chg.down { color: var(--acc-red); }
.mkt-chg.flat { color: var(--text-tertiary); }
.mkt-sep { color: var(--line-strong); margin-left: 6px; }
html[data-theme="light"] .mkt-chg.up   { color: #15803d; }
html[data-theme="light"] .mkt-chg.down { color: #b91c1c; }
.mkt-loading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 15px 0;
}
@media (prefers-reduced-motion: reduce) { .mkt-track { animation: none; } }

/* gold text gradients: deeper stops for contrast on light */
html[data-theme="light"] .fin-h1 .grad,
html[data-theme="light"] .ip-hero h1 .grad,
html[data-theme="light"] .final-cta h2 .grad,
html[data-theme="light"] .cn-info h2 .grad {
  background-image: linear-gradient(135deg, #a8862f 0%, #9c8244 50%, #7a6535 100%);
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .marquee-track,
  .pill-dot::after, .live-dot::before,
  .arch-node .core::before, .arch-line::after,
  .float-widget, .fm-phone, .fm-mic,
  .fin-reveal, .reveal, .cd-line { animation: none !important; }
  .fin-reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fin-reveal:not(.in) .cd-line { stroke-dashoffset: 0; }
  .dash { transform: none; }
  * { scroll-behavior: auto !important; }
}
