/* ---------- VALDRIN CAPITAL — Design tokens & base ---------- */
:root {
  --navy-900: #070D17;
  --navy-800: #0B1320;
  --navy-700: #101A2B;
  --navy-600: #162338;
  --navy-500: #1E2E48;
  --navy-400: #2A3B57;
  --line: rgba(200, 169, 106, 0.22);
  --line-soft: rgba(200, 169, 106, 0.12);
  --line-strong: rgba(200, 169, 106, 0.55);

  --gold: #C8A96A;
  --gold-bright: #E6D19B;
  --gold-deep: #9A8147;
  --parchment: #F4ECD8;
  --ink: #E8EAF0;
  --ink-dim: #A7AFC2;
  --ink-faint: #6E7892;

  --ok: #6FBFA3;
  --alert: #D9835E;

  --f-display: "Cormorant", "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --w-page: 1280px;
  --w-narrow: 1040px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy-800);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.app-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(200, 169, 106, 0.08), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(200, 169, 106, 0.05), transparent 55%),
    radial-gradient(1400px 1000px at 50% 120%, rgba(7, 13, 23, 0.9), transparent 60%);
}
.app-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78   0 0 0 0 0.66   0 0 0 0 0.41   0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  mix-blend-mode: overlay;
}

.display { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.01em; }
.tracked-s  { letter-spacing: 0.12em; text-transform: uppercase; }
.tracked-m  { letter-spacing: 0.22em; text-transform: uppercase; }
.tracked-l  { letter-spacing: 0.28em; text-transform: uppercase; }
.tracked-xl { letter-spacing: 0.38em; text-transform: uppercase; }
.mono { font-family: var(--f-mono); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; }

.deco-frame { position: relative; }
.deco-frame::before, .deco-frame::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.deco-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.deco-frame::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.page-wrap { position: relative; z-index: 1; }
.container { max-width: var(--w-page); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 40px; }

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 23, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
  max-width: var(--w-page); margin: 0 auto; padding: 0 40px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.nav-brand .mark { width: 34px; height: 34px; }
.nav-brand .wordmark { font-family: var(--f-display); font-size: 20px; letter-spacing: 0.32em; }
.nav-brand .sub { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.42em; color: var(--gold); margin-top: 2px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 10px 14px;
  color: var(--ink-dim);
  position: relative;
  transition: color 0.2s var(--ease);
  cursor: pointer;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.nav-cta:hover { background: var(--gold); color: var(--navy-900); }

.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 13, 23, 0.7);
  overflow: hidden;
  position: relative; z-index: 30;
}
.ticker-track {
  display: flex; gap: 48px;
  padding: 10px 0;
  white-space: nowrap;
  animation: ticker 90s linear infinite;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
}
.ticker-item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-dim); }
.ticker-item .sym { color: var(--gold); letter-spacing: 0.2em; }
.ticker-item .up { color: var(--ok); }
.ticker-item .dn { color: var(--alert); }
.ticker-item .sep { color: var(--line-strong); }
@keyframes ticker { to { transform: translateX(-50%); } }

.hero { position: relative; padding: 100px 0 140px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.02; letter-spacing: -0.01em;
  margin: 24px 0 28px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .sub { font-size: 17px; line-height: 1.65; color: var(--ink-dim); max-width: 540px; }
.hero-meta {
  margin-top: 44px; display: flex; gap: 40px;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.hero-meta > div .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.hero-meta > div .v { font-family: var(--f-display); font-size: 24px; margin-top: 4px; }

.hero-viz { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }

.section { padding: 120px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  margin: 18px 0 24px;
  max-width: 780px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-kicker { color: var(--ink-dim); font-size: 16px; max-width: 640px; line-height: 1.65; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); margin-top: 64px; }
.grid-3 > * { background: var(--navy-800); padding: 36px 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); margin-top: 64px; }
.grid-2 > * { background: var(--navy-800); padding: 44px 40px; }

.tile .idx { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--gold); }
.tile h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin: 14px 0 12px; letter-spacing: 0.02em; }
.tile p { color: var(--ink-dim); font-size: 14px; line-height: 1.65; margin: 0; }
.tile ul { list-style: none; padding: 0; margin: 20px 0 0; }
.tile ul li { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-dim); padding: 8px 0; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; }
.tile ul li:first-child { border-top: 0; }
.tile ul li .val { color: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 64px; }
.split > div { background: var(--navy-800); padding: 56px 48px; }

.cta-band { padding: 100px 40px; text-align: center; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 80px; height: 1px; background: var(--gold); }
.cta-band::before { top: -1px; }
.cta-band::after { bottom: -1px; }

.footer { border-top: 1px solid var(--line-soft); background: var(--navy-900); padding: 80px 0 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; }
.footer h5 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin: 10px 0; font-size: 13px; color: var(--ink-dim); cursor: pointer; transition: color 0.2s; }
.footer ul li:hover { color: var(--ink); }
.footer .legal { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-faint); text-transform: uppercase; }
.footer .disclaimer { margin-top: 24px; font-size: 12px; line-height: 1.7; color: var(--ink-faint); max-width: 820px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.25s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--navy-900); }
.btn.solid { background: var(--gold); color: var(--navy-900); }
.btn.solid:hover { background: var(--gold-bright); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

.page-enter { animation: pageEnter 0.55s var(--ease); }
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 48px; }
.pipeline .node { background: var(--navy-800); padding: 28px 22px; position: relative; min-height: 180px; }
.pipeline .node .idx { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.28em; color: var(--gold); }
.pipeline .node h4 { font-family: var(--f-display); font-weight: 400; font-size: 20px; margin: 10px 0 8px; letter-spacing: 0.04em; }
.pipeline .node p { font-size: 12px; color: var(--ink-dim); line-height: 1.55; margin: 0; }

.tbl { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12px; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.tbl th { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.tbl td { color: var(--ink-dim); }
.tbl td.k { color: var(--ink); }

.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 300px;
  background: var(--navy-900);
  border: 1px solid var(--gold);
  padding: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tweaks-panel h4 { margin: 0 0 16px; font-family: var(--f-display); font-size: 18px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tweaks-panel .row { margin: 12px 0; }
.tweaks-panel .row > label { display: block; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.tweaks-panel select, .tweaks-panel input[type="text"] { width: 100%; background: var(--navy-700); color: var(--ink); border: 1px solid var(--line-soft); padding: 8px 10px; font-family: inherit; font-size: 11px; }
.tweaks-panel .seg { display: flex; gap: 1px; background: var(--line-soft); }
.tweaks-panel .seg button { flex: 1; padding: 8px; background: var(--navy-700); color: var(--ink-dim); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; transition: all 0.2s var(--ease); }
.tweaks-panel .seg button.on { background: var(--gold); color: var(--navy-900); }

.li-bg { background: #F3F2EF; color: #1B1F23; min-height: 100vh; }
.li-bg .li-container { max-width: 1128px; margin: 0 auto; padding: 24px 24px 60px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.field input, .field textarea, .field select { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--ink); font-family: var(--f-body); font-size: 15px; transition: border-color 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }

.muted { color: var(--ink-dim); }
.gold { color: var(--gold); }
.fade-in { animation: fadeIn 0.5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

::selection { background: var(--gold); color: var(--navy-900); }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .split, .footer-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
