:root {
  /* Superman-inspired (enterprise-safe) palette */
  --primary: #1E3A8A;   /* deep trust blue */
  --accent:  #B91C1C;   /* muted strength red */
  --gold:    #F59E0B;   /* optional highlight */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1120px;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 14px 28px rgba(2, 6, 23, 0.55);
  --transition: 160ms ease;
}

/* THEME TOKENS */
html[data-theme="dark"]{
  --bg: #020617;
  --bg2:#000000;
  --panel: rgba(15, 23, 42, 0.94);
  --panel2: rgba(2, 6, 23, 0.82);
  --text: #F9FAFB;
  --muted:#9CA3AF;
  --border: rgba(148, 163, 184, 0.40);
  --border-strong: rgba(148, 163, 184, 0.70);
  --cta-surface: #F9FAFB;
  --cta-text: #020617;
}

html[data-theme="light"]{
  --bg: #F8FAFC;
  --bg2:#EEF2FF;
  --panel: rgba(255, 255, 255, 0.92);
  --panel2: rgba(255, 255, 255, 0.78);
  --text: #0B1220;
  --muted:#4B5563;
  --border: rgba(2, 6, 23, 0.12);
  --border-strong: rgba(2, 6, 23, 0.18);
  --cta-surface: #0B1220;
  --cta-text: #F9FAFB;
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5;
  background:
    radial-gradient(circle at top, var(--bg2) 0, var(--bg) 55%, var(--bg) 100%);
  color: var(--text);
}
a{text-decoration:none;color:inherit}
.page{min-height:100vh;display:flex;flex-direction:column}

/* HEADER */
header{
  position:sticky; top:0; z-index:50;
  padding: 14px 18px 10px;
  background: linear-gradient(to bottom, var(--panel2), rgba(0,0,0,0));
  backdrop-filter: blur(10px);
}
.nav{
  max-width: var(--max-width);
  margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:10px; min-width:auto}
.brand img{width:34px; height:34px; object-fit:contain}
.brand-text{
  display:flex; flex-direction:column; gap:2px;
}
.brand-name{
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  font-size:12px;
  color: var(--muted);
}
.brand-tag{
  font-size:11px;
  color: var(--muted);
}
.nav-links{margin-left:auto;
  display:flex; align-items:center; gap:16px;
  font-size:13px;
}
.nav-link{color:var(--muted); font-weight:600}
.nav-link:hover{color:var(--text)}
.nav-actions{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  font-weight:700;
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size:12px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  background: transparent;
  color: var(--text);
}
.btn:hover{transform:translateY(-1px); border-color: var(--border-strong)}
.btn-primary{
  background: var(--primary);
  color:#fff;
  border-color: rgba(255,255,255,0.10);
}
.btn-primary:hover{background: #2547a8}
.icon-btn{
  width:38px; height:38px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}
.icon-btn:hover{border-color: var(--border-strong); transform: translateY(-1px)}

/* THEME SWITCH */
.theme-switch{display:inline-flex;align-items:center;cursor:pointer}
.theme-switch input{position:absolute;opacity:0;width:1px;height:1px}
.theme-switch .track{
  width:44px;height:26px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,0.10);
  display:inline-flex;align-items:center;padding:3px;
  transition: background var(--transition), border-color var(--transition);
}
.theme-switch .thumb{
  width:20px;height:20px;border-radius:999px;
  background: var(--text);
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
html[data-theme="dark"] .theme-switch .track{background: rgba(30,58,138,0.35); border-color: var(--border-strong)}
html[data-theme="dark"] .theme-switch .thumb{transform: translateX(18px); background: #F9FAFB}
html[data-theme="light"] .theme-switch .track{background: rgba(185,28,28,0.10); border-color: var(--border-strong)}
html[data-theme="light"] .theme-switch .thumb{transform: translateX(0); background: #0B1220}

.hamburger{display:none}

/* MOBILE MENU */
.mobile-drawer{z-index:100;
  position:fixed; inset:0;
  background: rgba(2,6,23,0.62);
  display:none;
}
.mobile-drawer.open{display:block}
.drawer-panel{z-index:101;
  position:absolute; right:12px; top:12px;
  width:min(360px, calc(100% - 24px));
  background: var(--panel);
  border:1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.drawer-header{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.drawer-links{display:flex; flex-direction:column; gap:8px; margin: 8px 0 12px}
.drawer-links a{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
}
.drawer-links a:hover{border-color: var(--border-strong)}
.drawer-actions{display:flex; gap:10px; flex-wrap:wrap}

/* HERO */
.hero{padding: 22px 18px 34px}
.hero-inner{
  max-width: var(--max-width);
  margin:0 auto;
  background: linear-gradient(135deg, var(--panel), rgba(15,23,42,0.86));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display:grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 22px;
  align-items:center;
}
.eyebrow{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.16em;
  color: #93C5FD;
  margin-bottom:10px;
}
.h1{
  font-size: clamp(28px, 3.8vw, 40px);
  line-height:1.12;
  margin-bottom:12px;
}
.sub{
  font-size:14px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 16px;
}
.ctas{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.note{margin-top:10px; font-size:11px; color: var(--muted)}
.badges{margin-top:12px; display:flex; gap:8px; flex-wrap:wrap}
.badge{
  font-size:10px;
  padding: 5px 10px;
  border-radius:999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0,0,0,0.06);
}
.hero-visual{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  padding: 14px;
  background:
    radial-gradient(circle at top, rgba(30,58,138,0.25), rgba(2,6,23,0.92) 58%);
  overflow:hidden;
}
.visual-inner{
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 12px 12px 14px;
  background: rgba(0,0,0,0.14);
}
.visual-top{
  display:flex; justify-content:space-between; align-items:center;
  font-size:11px; color: var(--muted);
  margin-bottom: 10px;
}
.dots{display:flex; gap:5px}
.dot{width:6px;height:6px;border-radius:999px;background: rgba(148,163,184,0.8)}
.matrix{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:4px;
  margin-bottom: 10px;
}
.cell{
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(55,65,81,0.55);
  background: rgba(15,23,42,0.35);
}
.cell.hot{
  border-color: rgba(185,28,28,0.85);
  box-shadow: 0 0 0 1px rgba(185,28,28,0.35);
}
.pills{display:flex; gap:8px; flex-wrap:wrap}
.pill{
  border-radius:999px;
  border:1px solid var(--border);
  padding: 6px 9px;
  font-size:11px;
  color: var(--text);
  display:flex; gap:6px; align-items:center;
  background: rgba(0,0,0,0.10);
}
.pip{width:6px;height:6px;border-radius:999px;background: var(--accent)}

/* SECTIONS */
main{padding: 6px 18px 40px; flex:1}
.section{max-width: var(--max-width); margin: 0 auto 28px}
.section-head{display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:12px}
.h2{font-size:16px; font-weight:800}
.lead{font-size:13px; color: var(--muted); max-width: 760px}

/* GRID CARDS */
.grid-3{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:14px}
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover{
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.kicker{font-size:10px; text-transform:uppercase; letter-spacing:0.14em; color: var(--muted); margin-bottom:8px}
.card h3{font-size:15px; margin-bottom:8px}
.card p{font-size:12px; color: var(--muted); margin-bottom:10px}
.card a{font-size:11px; color: #93C5FD; font-weight:700}

/* PRICING */
.price{
  display:flex; align-items:baseline; gap:8px; margin: 8px 0 10px;
}
.price strong{font-size:22px}
.price span{font-size:12px; color: var(--muted)}
.ul{list-style:none; display:flex; flex-direction:column; gap:8px; margin-top:10px}
.ul li{font-size:12px; color: var(--muted)}
.tag{
  display:inline-flex; align-items:center;
  font-size:10px;
  padding: 4px 8px;
  border-radius:999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0,0,0,0.06);
}

/* CONTACT */
.contact-grid{
  display:grid; grid-template-columns: minmax(0,1fr); gap:14px;
}
.contact-card{
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.contact-card h3{font-size:15px; margin-bottom:6px}
.contact-card p{font-size:12px; color: var(--muted); margin-bottom:12px}
.contact-ways{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px}
.way{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: rgba(0,0,0,0.06);
}
.way b{display:block; font-size:12px; margin-bottom:4px}
.way a{font-size:12px; color: var(--text)}
.way small{display:block; font-size:11px; color: var(--muted); margin-top:2px}
.cta-strip{
  background: var(--cta-surface);
  color: var(--cta-text);
  border-radius: 20px;
  padding: 16px;
  display:flex; justify-content:space-between; align-items:center; gap:14px;
}
.cta-strip h3{font-size:16px; margin-bottom:4px}
.cta-strip p{font-size:13px; opacity:0.78}
.cta-strip .btn-primary{background: var(--cta-text); color: var(--cta-surface)}
.cta-strip .btn-primary:hover{background: #111827}

/* FOOTER */
footer{
  max-width: var(--max-width);
  margin: 0 auto 22px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
  font-size:11px; color: var(--muted);
}
.footer-left{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.footer-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 9px;
  border-radius:999px;
  border: 1px solid var(--border);
  font-size:10px;
}

/* RESPONSIVE */
@media (max-width: 920px){
  .hero-inner{grid-template-columns: minmax(0,1fr)}
  .hero-visual{order:-1}
  .grid-3{grid-template-columns:minmax(0,1fr)}
  .contact-grid{grid-template-columns:minmax(0,1fr)}
  .contact-ways{grid-template-columns:minmax(0,1fr)}
}
@media (max-width: 880px){
  .nav-links{margin-left:auto;display:none}
  .hamburger{display:inline-flex}
}

/* Logo visibility on light theme */
html[data-theme="light"] .brand img,
html[data-theme="light"] .drawer-panel img{
  filter: invert(1) contrast(1.05);
}
