:root{
  --bg:#ffffff;
  --surface:#f8fafc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;
  --brand:#2563eb;
  --brand2:#0ea5e9;
  --ok:#16a34a;

  --radius:18px;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{width:min(var(--max), calc(100% - 40px)); margin:auto}

/* =========================
   TOPBAR / NAV
========================= */
.topbar{
  background:#ffffff;
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900;
  letter-spacing:-.02em;
}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow: var(--shadow);
}
.brand-name{font-size:18px}
.navlinks{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.navlinks a{
  color:var(--muted);
  font-weight:700;
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
}
.navlinks a:hover{background:var(--surface); color:var(--text)}
.nav-cta{
  display:flex; align-items:center; gap:10px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
  cursor:pointer;
  transition:.15s ease;
}
.btn-primary{
  border-color:transparent;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
}
.btn-ghost{
  background:transparent;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(1px)}

.mobile-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
}
.mobile-toggle span{
  display:block;
  width:18px; height:2px;
  background:#0f172a;
  margin:4px auto;
  border-radius:2px;
}

/* =========================
   HERO
========================= */
.hero{
  background:
    radial-gradient(900px 260px at 10% 0%, rgba(37,99,235,.12), transparent 60%),
    radial-gradient(900px 260px at 90% 0%, rgba(14,165,233,.12), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
  padding:52px 0 36px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:center;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}
.badge-dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--ok);
  box-shadow: 0 0 0 4px rgba(22,163,74,.15);
}
h1{
  font-size:42px;
  line-height:1.1;
  letter-spacing:-.03em;
  margin:14px 0 10px;
}
.lead{
  color:var(--muted);
  font-size:16px;
  margin:0 0 18px;
  max-width:58ch;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}
.hero-note{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
}
.hero-note a{text-decoration:underline;color:var(--brand)}
.hero-card{
  border:1px solid var(--line);
  background:#fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-card .media{
  aspect-ratio: 4/3;
  background:#e2e8f0;
}
.hero-card .media img{width:100%; height:100%; object-fit:cover}
.hero-card .meta{
  padding:16px 16px 18px;
}
.hero-card .meta h3{margin:0 0 6px; font-size:16px}
.hero-card .meta p{margin:0; color:var(--muted); font-size:13px}

/* =========================
   SECTIONS / CARDS
========================= */
.section{padding:44px 0}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.section-head h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.02em;
}
.section-head p{margin:0; color:var(--muted); max-width:65ch}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.card{
  grid-column: span 4;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:var(--card);
  padding:18px;
  box-shadow: 0 1px 0 rgba(2,6,23,.03);
}
.card h3{margin:10px 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}

.icon{
  width:42px; height:42px;
  border-radius:14px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#f8fafc);
}
.icon svg{width:22px;height:22px}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:var(--surface);
  padding:18px;
}
.panel ul{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.panel li{margin:6px 0}

.kpis{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:12px;
  margin-top:12px;
}
.kpi{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:14px;
}
.kpi strong{display:block; font-size:16px}
.kpi span{color:var(--muted); font-size:13px}

/* =========================
   DISCLOSURE BOX
========================= */
.disclosure{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  padding:16px;
  color:var(--muted);
  font-size:13px;
}
.disclosure a{color:var(--brand); text-decoration:underline}

/* =========================
   FOOTER
========================= */
.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  color:var(--muted);
  font-size:14px;
}
.footer a{color:var(--muted); text-decoration:underline}
.footer .row{
  display:flex; flex-wrap:wrap;
  align-items:center; justify-content:space-between;
  gap:12px;
}

/* =========================
   PAGE TEMPLATE (LEGAL PAGES)
   privacy.html / terms.html / disclosure.html / about.html etc.
========================= */
.page{
  padding: 34px 0 44px;
}
.page-title{
  padding:28px 0 10px;
}
.page-title h1{
  font-size:34px;
  margin:0 0 6px;
  letter-spacing:-.03em;
}
.page-title p{
  margin:0;
  color:var(--muted);
  max-width:70ch;
}

.content{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  margin-top:16px;
}

.prose{
  border:1px solid var(--line);
  background:#fff;
  border-radius: var(--radius);
  padding:20px;
  box-shadow: var(--shadow);
}
.prose h2{
  margin: 0 0 8px;
  font-size:20px;
  letter-spacing:-.02em;
}
.prose h3{
  margin: 16px 0 6px;
  font-size:16px;
}
.prose p{
  margin: 0 0 12px;
  color: var(--muted);
}
.prose ul{
  margin: 10px 0 14px;
  padding-left: 18px;
  color: var(--muted);
}
.prose li{margin:6px 0}
.prose a{color:var(--brand); text-decoration:underline}

.alert{
  border:1px solid rgba(37,99,235,.25);
  background: rgba(37,99,235,.06);
  border-radius: var(--radius);
  padding:14px 16px;
  color: var(--muted);
  font-size:14px;
}
.alert strong{color:var(--text)}

.legal-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.legal-card{
  grid-column: span 6;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  padding:18px;
}
.legal-card h3{margin:0 0 6px}
.legal-card p{margin:0;color:var(--muted)}
.legal-card a{color:var(--brand); text-decoration:underline}

/* =========================
   TABLE / PILLS (OPTIONAL)
========================= */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
}
.table th,.table td{
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:14px;
}
.table th{background:var(--surface); color:#0f172a}
.table tr:last-child td{border-bottom:none}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
  font-size:12px;
  color:var(--muted);
}

/* =========================
   FORMS (OPTIONAL)
========================= */
.form{display:grid; gap:12px}
.field{display:grid; gap:6px}
label{font-weight:800; font-size:13px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font:inherit;
}
textarea{min-height:120px; resize:vertical}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  h1{font-size:36px}
  .card{grid-column: span 6}
  .split{grid-template-columns:1fr}
  .legal-card{grid-column: span 12}
}
@media (max-width: 640px){
  .container{width:calc(100% - 28px)}
  .navlinks{display:none}
  .mobile-toggle{display:inline-block}
  .navlinks.open{
    display:flex;
    width:100%;
    padding:10px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
  }
  .nav{flex-wrap:wrap}
  .card{grid-column: span 12}
  .kpis{grid-template-columns:1fr}
}
