/* ══════════════════════════════════════════════════════════
   CVWon — Brand CSS v1.0
   Corporate Brutalism. Bloomberg × Stripe × Linear.
   Load BEFORE Tailwind so brand tokens are always available.
   ══════════════════════════════════════════════════════════ */

:root {
  /* ── Brand Palette ── */
  --black:      #0a0a0a;
  --white:      #ffffff;
  --g50:        #fafafa;
  --g100:       #f4f4f4;
  --g200:       #e8e8e8;
  --g300:       #d4d4d4;
  --g400:       #a3a3a3;
  --g500:       #737373;
  --g600:       #525252;
  --g800:       #262626;
  --g900:       #171717;

  /* Brand Green — the only colour */
  --green:      #16a34a;
  --green-dk:   #14532d;
  --green-lt:   #f0fdf4;
  --green-br:   #bbf7d0;
  --green-mid:  #22c55e;

  /* Fonts */
  --font-d: 'Syne', sans-serif;
  --font-b: 'IBM Plex Sans', sans-serif;
  --font-m: 'IBM Plex Mono', monospace;

  /* Border radius — 4px max everywhere */
  --r: 4px;
}

/* ── RESET ADDITIONS ── */
::selection { background: var(--green); color: white; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--g300); }

/* ── LAYOUT ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .wrap { padding: 0 20px; } }

/* ── TYPOGRAPHY ── */
.h1 { font-family: var(--font-d); font-size: clamp(32px,4vw,52px); font-weight: 800; letter-spacing: -2px; line-height: 1.04; color: var(--black); }
.h2 { font-family: var(--font-d); font-size: clamp(24px,3vw,38px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.05; color: var(--black); }
.h3 { font-family: var(--font-d); font-size: 22px; font-weight: 700; letter-spacing: -.5px; color: var(--black); }
.h4 { font-family: var(--font-d); font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--black); }

.label-upper {
  font-family: var(--font-m); font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--green);
}

.body-lg { font-family: var(--font-b); font-size: 16px; font-weight: 300; color: var(--g600); line-height: 1.7; }
.body-sm { font-family: var(--font-b); font-size: 13px; font-weight: 400; color: var(--g500); }
.mono-sm { font-family: var(--font-m); font-size: 13px; color: var(--g500); letter-spacing: .3px; }

/* Headline weight-contrast system */
.h-light { font-family: var(--font-b); font-weight: 300; font-style: italic; color: var(--g500); letter-spacing: -.3px; }
.h-bold  { font-family: var(--font-d); font-weight: 800; }
.h-accent{ color: var(--green); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-b); font-size: 13px; font-weight: 500;
  padding: 9px 18px; cursor: pointer; border-radius: var(--r);
  transition: all .15s; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; line-height: 1.4;
}
.btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm  { font-size: 12px; padding: 6px 14px; }
.btn-lg  { font-size: 15px; padding: 12px 24px; }

.btn-black   { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: var(--g800); }
.btn-green   { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: #15803d; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--g300); }
.btn-outline:hover { border-color: var(--black); }
.btn-ghost-w { background: transparent; color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.15); }
.btn-ghost-w:hover { color: white; border-color: rgba(255,255,255,.3); }
.btn-text    { background: transparent; color: var(--green); border: none; padding-left: 0; font-weight: 600; }
.btn-text:hover { color: var(--green-dk); }

/* ── BADGES ── */
.bdg {
  font-family: var(--font-b); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 2px; letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 5px;
}
.bdg-green { background: var(--green-lt); border: 1px solid var(--green-br); color: var(--green); }
.bdg-black { background: var(--black); color: var(--white); }
.bdg-gray  { background: var(--g100); border: 1px solid var(--g200); color: var(--g600); }
.bdg-red   { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.bdg-dot   { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(1.8)} }

/* ── SECTION SPACING ── */
.section-pad { padding: 80px 0; }
@media (max-width: 768px) { .section-pad { padding: 56px 0; } }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g200); height: 56px;
}
.nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  height: 56px; display: flex; align-items: center; gap: 8px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; margin-right: 16px; text-decoration: none; }
.nav-logo-mark {
  width: 24px; height: 24px; background: var(--black);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-word {
  font-family: var(--font-d); font-size: 15px; font-weight: 800;
  letter-spacing: -.4px; color: var(--black);
}
.nav-logo-word span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--g600);
  padding: 6px 12px; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px; transition: color .15s;
  text-decoration: none; font-family: var(--font-b);
}
.nav-link:hover { color: var(--black); }
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white; border: 1px solid var(--g200); min-width: 280px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08); z-index: 100;
  display: flex; flex-direction: column;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-dd-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--g100);
  transition: background .12s;
}
.nav-dd-item:last-child { border-bottom: none; }
.nav-dd-item:hover { background: var(--g50); }
.nav-dd-icon {
  width: 28px; height: 28px; border: 1px solid var(--g200);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.nav-dd-icon svg { width: 13px; height: 13px; stroke: var(--g500); fill: none; stroke-width: 1.8; }
.nav-dd-title { font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.nav-dd-sub   { font-size: 11px; font-weight: 300; color: var(--g500); }
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-toggle svg { width: 22px; height: 22px; stroke: var(--g600); fill: none; stroke-width: 1.8; }

@media (max-width: 768px) {
  .nav-links, .nav-auth { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-wrap { padding: 0 20px; }
}

/* Mobile full-screen menu */
.nav-mobile {
  position: fixed; inset: 56px 0 0 0; z-index: 999;
  background: var(--black); padding: 24px 24px 32px;
  display: flex; flex-direction: column; gap: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-mobile-section {
  padding: 8px 0 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-mobile-section:last-of-type { border-bottom: none; }
.nav-mobile-heading {
  font-family: var(--font-m); font-size: 10px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.25); padding: 8px 0 4px;
}
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,.7); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .15s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a:active { color: white; }
.nav-mobile-arrow { font-size: 14px; color: rgba(255,255,255,.2); }
.nav-mobile-auth {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.nav-mobile-signin {
  text-align: center; font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,.35); text-decoration: none;
}
.nav-mobile-signin span { color: var(--green); font-weight: 500; }

/* ── FOOTER ── */
.site-footer { background: var(--black); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px; padding-bottom: 48px;
}
.footer-heading {
  font-family: var(--font-m); font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px;
}
.footer-link {
  display: block; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.45);
  text-decoration: none; padding: 4px 0; transition: color .15s;
}
.footer-link:hover { color: var(--green); }
.footer-brand-tagline {
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  font-style: italic; color: rgba(255,255,255,.25); margin-top: 12px; line-height: 1.6;
}
.footer-trust {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-trust-items { display: flex; gap: 24px; }
.footer-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.3);
  font-family: var(--font-b);
}
.footer-trust-item svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.25); fill: none; stroke-width: 1.8; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s; text-decoration: none;
}
.footer-social a:hover { border-color: rgba(255,255,255,.3); }
.footer-social svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.35); fill: none; stroke-width: 1.8; }
.footer-copyright {
  text-align: center; padding: 16px 0; font-size: 12px;
  color: rgba(255,255,255,.15); border-top: 1px solid rgba(255,255,255,.04);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-trust { flex-direction: column; gap: 16px; }
}

/* ── SCORE RING ── */
.score-ring { position: relative; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--g100); stroke-width: 6; }
.score-ring .fill  { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; color: var(--green);
}

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--g200);
  border-radius: var(--r); padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card-dark {
  background: var(--black); border-color: var(--g800);
  color: white;
}

/* ── SCROLL REVEAL ── */
.rev {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.rev.visible { opacity: 1; transform: translateY(0); }

/* ── FORM INPUTS ── */
.input {
  width: 100%; font-family: var(--font-b); font-size: 14px;
  padding: 10px 14px; border: 1px solid var(--g200); border-radius: var(--r);
  background: var(--white); color: var(--black); transition: border-color .15s;
  outline: none;
}
.input:focus { border-color: var(--black); }
.input::placeholder { color: var(--g400); }
.input-dark {
  background: var(--g900); border-color: var(--g800); color: white;
}
.input-dark:focus { border-color: var(--g600); }

.input-label {
  display: block; font-family: var(--font-b); font-size: 13px;
  font-weight: 500; color: var(--black); margin-bottom: 6px;
}

/* ── FLASH MESSAGES ── */
.flash {
  position: fixed; top: 64px; right: 16px; z-index: 1100;
  width: 320px; padding: 14px 16px; border-radius: var(--r);
  font-size: 13px; line-height: 1.5; border: 1px solid;
}
.flash-success { background: var(--green-lt); border-color: var(--green-br); color: var(--green-dk); }
.flash-error   { background: var(--black); border-color: var(--g800); color: white; }
.flash-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.flash-info    { background: var(--g50); border-color: var(--g200); color: var(--g600); }

/* ── COOKIE CONSENT ── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
  background: var(--black); border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cookie-bar p {
  font-family: var(--font-b); font-weight: 300; font-size: 13px;
  color: rgba(255,255,255,.7); line-height: 1.5;
}
.cookie-bar a { color: var(--green); }
.cookie-bar-btns { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 768px) {
  .cookie-bar { flex-direction: column; padding: 16px 20px; gap: 12px; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-b); font-size: 12px; color: var(--g400);
  padding: 12px 0;
}
.breadcrumb a { color: var(--g400); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb .current { color: var(--black); font-weight: 500; }
.breadcrumb svg { width: 10px; height: 10px; stroke: var(--g300); fill: none; stroke-width: 2; }

/* ── SCROLL REVEAL OBSERVER ── */
@media (prefers-reduced-motion: no-preference) {
  /* JS handles adding .visible class */
}
