:root{--bg:#0b1220;--card:#0f172a;--muted:#94a3b8;--text:#e5e7eb;--primary:#5b8def;--accent:#22c55e;--border:#273244}
html[data-theme="light"]{--bg:#f7fafc;--card:#ffffff;--muted:#475569;--text:#0f172a;--primary:#2563eb;--accent:#16a34a;--border:#e2e8f0}
*{box-sizing:border-box}
body{margin:0;color:var(--text);font:16px/1.5 Inter,system-ui,-apple-system,Segoe UI,Roboto;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(99,102,241,0.15), transparent 60%),
    linear-gradient(180deg,#0b1220,#0a0f1a 60%);
}
html[data-theme="light"] body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1000px 500px at 120% 10%, rgba(99,102,241,0.15), transparent 60%),
    linear-gradient(180deg,#f8fafc,#f1f5f9 70%);
}
.container{max-width:960px;margin:0 auto;padding:24px}
.site-header,.site-footer{background:var(--bg);border-bottom:1px solid var(--border)}
.site-footer{border-top:1px solid #1f2937;border-bottom:none}
.brand{color:var(--text);text-decoration:none;font-weight:700;display:flex;align-items:center;gap:8px}
.brand-logo{width:32px;height:32px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px rgba(15,23,42,.7),0 0 0 4px rgba(148,163,184,.35)}
nav a{color:var(--muted);margin-left:12px;text-decoration:none}
nav a:hover{color:var(--text)}
h1,h2,h3{margin:12px 0 8px}
.card{position:relative;background:rgba(15,23,42,0.4);border:1px solid rgba(255,255,255,0.12);border-radius:16px;padding:16px;margin:12px 0;
  -webkit-backdrop-filter:saturate(140%) blur(18px);backdrop-filter:saturate(140%) blur(18px);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
html[data-theme="light"] .card{background:rgba(255,255,255,0.6);border:1px solid rgba(255,255,255,0.6);box-shadow:0 10px 30px rgba(2,6,23,.06)}
.card::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,rgba(255,255,255,.4),rgba(255,255,255,.7),rgba(255,255,255,.4));
  opacity:.8;pointer-events:none
}
.card:hover{box-shadow:0 16px 40px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.04)}
.shadow-card{box-shadow:0 10px 30px rgba(91,141,239,.15), inset 0 0 0 1px rgba(255,255,255,.04)}
.shadow-glow{box-shadow:0 0 0 4px rgba(91,141,239,.15), 0 0 40px rgba(91,141,239,.15)}
.inline{display:flex;gap:10px;align-items:center}
label{display:block;margin:10px 0 4px;color:var(--muted)}
input,select,button{width:100%;padding:12px;border-radius:12px;border:1px solid var(--border);background:#0b1424;color:var(--text)}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] button{background:#fff}
.input:focus,input:focus,select:focus,button:focus{outline:none;box-shadow:0 0 0 2px rgba(255,255,255,.1), 0 0 0 4px rgba(99,102,241,.2)}
.btn{cursor:pointer}
.btn.primary{background:linear-gradient(180deg,#5b8def,#3b82f6);border:none}
.btn.primary:hover{filter:brightness(1.05)}
.hint{color:var(--muted);font-size:12px}
.grid{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:900px){.grid{grid-template-columns:1fr 1fr}}
.table{width:100%;border-collapse:collapse;margin-top:10px}
.table th,.table td{border-bottom:1px solid var(--border);padding:10px 12px;text-align:left}
.table thead th{position:sticky;top:0;background:rgba(255,255,255,.6);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:1;color:var(--muted)}
html[data-theme="dark"] .table thead th{background:rgba(15,23,42,.6)}
.table tbody tr{transition:background-color .15s ease}
.table tbody tr:hover{background:rgba(255,255,255,.06)}
.table-scroll{max-height:520px;overflow:auto;border-radius:16px}

/* KPI grid and headings */
.kpi-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:12px}
@media(min-width:900px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}
.pill-heading{display:inline-block;padding:6px 12px;border-radius:12px;background:rgba(255,255,255,.3);backdrop-filter:blur(6px)}
html[data-theme="dark"] .pill-heading{background:rgba(255,255,255,.05)}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .animate-float,.animate-fade-in,.animate-scale-in,.animate-slide-in{animation:none}
}
.input{width:100%;margin:6px 0}

/* Smooth Joy Theme utilities */
.bg-gradient-primary{background:linear-gradient(135deg,#5b8def 0%,#3b82f6 55%,#2563eb 100%);}
.bg-gradient-soft{background:radial-gradient(600px 240px at 10% 10%, rgba(91,141,239,.15), transparent 60%),radial-gradient(600px 240px at 90% 20%, rgba(34,197,94,.12), transparent 60%)}
.text-primary-foreground{color:#f8fafc}
.transition-smooth{transition:all .2s ease}
.transition-spring{transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.animate-float{animation:float 6s ease-in-out infinite}
.animate-fade-in{animation:fadeIn .6s ease both}
.animate-scale-in{animation:scaleIn .35s ease both}
.animate-slide-in{animation:slideIn .35s ease both}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes scaleIn{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
@keyframes slideIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.hero-brand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:16px}
.hero-badge{padding:14px;border-radius:16px;background:linear-gradient(135deg,rgba(91,141,239,.25),rgba(59,130,246,.25));box-shadow:0 0 40px rgba(91,141,239,.25)}
.brand-title{font-size:28px;font-weight:700;background:linear-gradient(135deg,#93c5fd,#fff);-webkit-background-clip:text;background-clip:text;color:transparent}
.input:focus{border-color:rgba(99,102,241,.4)}

/* Backdrop support fallback */
@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))){
  .card{background:rgba(255,255,255,0.08)}
}

/* Landing page */
.landing-hero{
  position:relative;
  border-radius:32px;
  padding:48px;
  margin-top:24px;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(14,116,144,.25),rgba(16,185,129,.2));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 60px rgba(13,20,33,.45);
}
.landing-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top left,rgba(99,102,241,.25),transparent 55%);
  opacity:.8;
}
.landing-hero .hero-content{position:relative;z-index:2;max-width:780px;margin:0 auto;text-align:center}
.hero-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;background:rgba(14,116,144,.2);color:#a5f3fc;font-weight:600;border:1px solid rgba(255,255,255,.2)}
.hero-text{font-size:1.1rem;color:#e2e8f0;line-height:1.6;margin:12px auto}
.cta-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:20px}
.cta-row .btn{width:auto;padding:14px 24px;border-radius:999px;font-weight:600}
.btn.whatsapp{background:linear-gradient(120deg,#10b981,#0ea5e9);border:none;color:#fff}
.btn.secondary{border:1px solid rgba(226,232,240,.6);color:var(--text);background:rgba(255,255,255,.08)}
.hero-floating{
  position:absolute;
  font-size:56px;
  font-weight:700;
  color:rgba(255,255,255,.08);
  text-shadow:0 0 30px rgba(15,23,42,.3);
}
.section-card{margin-top:16px}
.section-card h2{margin-top:0;margin-bottom:10px;font-size:1.5rem}
.section-card ul,.section-card ol{color:var(--muted);line-height:1.6}
.section-card ul li,.section-card ol li{margin-bottom:8px}
.icon-bullet{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--muted)}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.stat-card{padding:16px;border-radius:16px;background:rgba(15,23,42,.35);border:1px solid rgba(255,255,255,.08);box-shadow:0 12px 30px rgba(0,0,0,.25)}
html[data-theme="light"] .stat-card{background:rgba(255,255,255,.85);border:1px solid rgba(226,232,240,.8)}
.table-modern{width:100%;border-collapse:collapse;margin-top:12px;border-radius:16px;overflow:hidden}
.table-modern th,.table-modern td{padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
html[data-theme="light"] .table-modern th,html[data-theme="light"] .table-modern td{border-color:rgba(226,232,240,.9)}
.table-modern th{font-weight:600;text-transform:uppercase;font-size:.8rem;letter-spacing:.05em;background:rgba(15,23,42,.4)}
html[data-theme="light"] .table-modern th{background:rgba(226,232,240,.7)}
.contact-chip{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(15,23,42,.4);margin:6px 0;backdrop-filter:blur(8px)}
html[data-theme="light"] .contact-chip{background:rgba(226,232,240,.9)}
.legal-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:16px;color:var(--muted)}
