:root {
  --navy: #0B1D33;
  --navy-2: #122848;
  --navy-3: #1a3354;
  --blue: #1A73E8;
  --blue-2: #2B8CFF;
  --blue-soft: #E8F1FD;
  --ink: #111827;
  --muted: #5B6573;
  --line: #E6E8EC;
  --cream: #F4F6F8;
  --white: #ffffff;
  --gold: #C9A227;
  --green: #0F9D58;
  --green-soft: #E6F6EE;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --red: #C0392B;
  --shadow: 0 10px 30px rgba(11, 29, 51, 0.08);
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); font-family: var(--font); }
button, input, select, textarea { font-family: inherit; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

.hidden { display: none !important; }
.demo-banner {
  background: #111827;
  color: #FDE68A;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  font-weight: 600;
}

/* MARKETING */
.m-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand img { height: 42px; width: auto; }
.brand-word { font-weight: 800; letter-spacing: .12em; color: var(--navy); }
.m-nav-links { display: flex; gap: 22px; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.m-nav-links span { cursor: pointer; }
.btn {
  border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--blue); color: white; }
.btn-navy { background: var(--navy); color: white; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.hero {
  background: linear-gradient(160deg, #0B1D33 0%, #16345c 55%, #1A73E8 160%);
  color: white; padding: 72px 40px 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
}
.kicker { color: #93C5FD; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { font-size: 52px; line-height: 1.05; margin: 12px 0 16px; letter-spacing: -1px; }
.hero p { color: #C9D4E0; font-size: 18px; max-width: 560px; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 18px; backdrop-filter: blur(8px);
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 40px; background: white; }
.stat { border-left: 3px solid var(--blue); padding-left: 14px; }
.stat b { display: block; font-size: 26px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 13px; }
.section { padding: 56px 40px; }
.section h2 { font-size: 32px; margin: 0 0 8px; color: var(--navy); letter-spacing: -0.4px; }
.section .lede { color: var(--muted); margin-bottom: 28px; max-width: 640px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-height: 320px; }
.price.featured { background: var(--navy); color: white; border-color: var(--navy); }
.price .name { font-weight: 800; letter-spacing: .02em; }
.price .amt { font-size: 36px; font-weight: 800; margin: 10px 0 0; color: var(--blue); }
.price.featured .amt { color: #93C5FD; }
.price .subamt { min-height: 22px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.price.featured .subamt { color: #C9D4E0; }
.price .who { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.price.featured .who { color: #93C5FD; }
.price ul { padding-left: 16px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.price.featured ul { color: #C9D4E0; }

/* APP SHELL */
.app { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  background: var(--navy); color: #C9D4E0; padding: 20px 14px; min-height: 100vh;
  position: sticky; top: 0; height: 100vh;
}
.side-logo { color: white; font-weight: 800; letter-spacing: .16em; font-size: 18px; padding: 8px 10px 18px; }
.side-logo small { display: block; color: #7A8B9C; letter-spacing: .08em; font-size: 10px; margin-top: 4px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  cursor: pointer; font-weight: 600; font-size: 14px; color: #B8C4D4;
}
.nav-item:hover, .nav-item.active { background: #16345c; color: white; }
.nav-item .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.role-switch { margin-top: 24px; padding: 12px; background: #122848; border-radius: 12px; }
.role-switch label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7A8B9C; margin-bottom: 8px; }
.role-switch select {
  width: 100%; background: var(--navy); color: white; border: 1px solid #2a4a73; border-radius: 8px; padding: 8px;
}
.main { padding: 22px 28px 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: 26px; color: var(--navy); letter-spacing: -0.4px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.chip.gold { background: #F8EFC8; color: #8A6D12; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.navy { background: var(--navy); color: white; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kpi b { display: block; font-size: 26px; margin-top: 6px; color: var(--navy); }

.player-hero {
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; margin-bottom: 18px;
}
.avatar {
  width: 92px; height: 92px; border-radius: 18px; display: grid; place-items: center;
  font-weight: 800; color: white; font-size: 28px;
  background: linear-gradient(160deg, #1A73E8, #0B1D33);
}
.meta h2 { margin: 0 0 4px; }
.meta .sub { color: var(--muted); font-size: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #FAFBFC; }

.film-wrap { display: grid; grid-template-columns: 1.5fr .9fr; gap: 16px; }
.player {
  background: #0B1220; border-radius: 16px; min-height: 380px; position: relative; overflow: hidden; color: white;
}
.player-field {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,29,51,.2), rgba(11,29,51,.75)),
    repeating-linear-gradient(90deg, #166534 0 28px, #15803d 28px 56px);
}
.playhead { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, #000); }
.timeline { height: 6px; background: #334155; border-radius: 99px; position: relative; margin: 8px 0 10px; }
.timeline .fill { width: 34%; height: 100%; background: var(--blue-2); border-radius: 99px; }
.timeline .pin { position: absolute; top: -6px; width: 2px; height: 18px; background: #FBBF24; }
.comments { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow: auto; }
.comment { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.comment .t { color: var(--blue); font-weight: 800; font-size: 12px; }

.report-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.trait { display: grid; grid-template-columns: 140px 1fr 36px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.bar { height: 8px; background: #E5E7EB; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }

.match { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fit { font-weight: 800; color: var(--green); }
.fit.mid { color: var(--amber); }
.fit.low { color: var(--red); }

.timeline-v { border-left: 2px solid var(--line); margin-left: 10px; padding-left: 18px; }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item:before {
  content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
}
.ok:before { background: var(--green); }
.warn:before { background: var(--amber); }

.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.col { background: #EEF2F6; border-radius: 14px; padding: 10px; min-height: 420px; }
.col h4 { margin: 4px 8px 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prospect {
  background: white; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(11,29,51,.06); cursor: pointer;
}
.prospect b { display: block; }
.prospect span { color: var(--muted); font-size: 12px; }

.search { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }

.toast {
  position: fixed; right: 20px; bottom: 20px; background: var(--navy); color: white;
  padding: 12px 16px; border-radius: 12px; display: none; z-index: 50;
}

footer.m-foot { background: var(--navy); color: #9BB0C4; padding: 28px 40px; font-size: 13px; }

@media (max-width: 1100px) {
  .hero, .app, .film-wrap, .report-grid, .price-grid, .stat-row, .kpi-row, .board { grid-template-columns: 1fr; }
  .app { display: block; }
  .sidebar { position: relative; height: auto; }
}
