/* ===== Theme: Clean Light ===== */
:root{
  --bg-0:#f7f8fb;
  --bg-1:#ffffff;
  --ink-0:#0f172a;
  --ink-1:#334155;
  --accent:#0ea5e9;
  --surface: #ffffff;
  --surface-border: rgba(2,6,23,.08);
  --radius: 16px;
  --shadow: 0 10px 20px rgba(2,6,23,.06);
}

html,body{height:100%}
body{
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14,165,233,.08), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, rgba(99,102,241,.07), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--ink-0);
}

.section, section, .card, .panel, .container-card{
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

a, .link { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }

/* Optional hero overlay if a hero background image exists */
.hero, #hero, .hero-section{
  position: relative;
}
.hero::before, #hero::before, .hero-section::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.65) 60%, rgba(255,255,255,.9));
  pointer-events:none;
}

/* Container max-widths */
.container, .wrapper, main{ max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
h1{ letter-spacing:-.02em }
/* === Custom overrides per user request === */
nav a, header a {
  text-decoration-thickness: .12em;
  text-underline-offset: 2px;
  text-decoration-color: #ef4444; /* red underline */
}
nav a:hover, header a:hover {
  text-decoration: underline;
  text-decoration-color: #ef4444; /* enforce red only */
  border-bottom: none !important;
  box-shadow: none !important;
}
/* Neutralize any competing underline/border indicators from other styles */
nav a::after, header a::after {
  background: none !important;
  border: 0 !important;
}

/* sticky header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

/* hero polish */
.hero {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 3vw, 24px);
}
.hero-inner{ max-width: 980px; margin: 0 auto; text-align: center; }
.hero-title{
  color: var(--ink-0);
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.hero-subtitle{
  color: #475569; /* solid slate for readability */
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 820px;
}
.hero-ctas{
  margin-top: 24px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.btn{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  text-decoration: none;
}
.btn-primary{
  background: #0ea5e9;
  color: white;
  border-color: rgba(14,165,233,.8);
}
.btn-primary:hover{ filter: brightness(0.95); }
.btn-ghost{
  background: #fff;
  color: var(--ink-0);
}
.btn-ghost:hover{ background: #f8fafc; }

/* rotator fade effect */
#rotator{ display:inline-block; transition: opacity .35s ease; }
#rotator.fade{ opacity: 0; }

/* kill brand pseudo */
.site-header .navbar-brand::before,
.site-header .navbar-brand::after{ content:none !important; display:none !important; }

/* nav spacing tidy */
.nav.site-header{ display:flex; align-items:center; gap: 12px; padding: 10px 16px; }
.site-header .navbar-brand{ display:block; margin-right: 8px; }
.site-header .nav-links{ display:flex; align-items:center; gap: 28px; margin-left: 6px; }
.site-header .nav-links a{ padding: 6px 8px; }

/* nav sans brand */
.nav.site-header{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; }
.site-header .nav-links{ display:flex; align-items:center; gap:28px; }
.site-header .nav-links a{ padding: 6px 8px; }

/* hero revamp */
.hero{ 
  position: relative;
  padding: clamp(54px, 8vw, 110px) clamp(16px, 4vw, 24px);
  overflow: hidden;
}
.hero::before{
  content:""; position:absolute; inset:-20% -10% -10% -10%;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(239,68,68,.10), transparent 55%),
    radial-gradient(700px 380px at 100% 10%, rgba(249,115,22,.12), transparent 60%);
  pointer-events:none;
}
.hero-inner{ position: relative; max-width: 980px; margin: 0 auto; text-align: center; }
.hero-title{ color: var(--ink-0); font-size: clamp(34px, 6.2vw, 58px); line-height:1.1; letter-spacing:-.02em; margin:0 0 12px; }
.hero-subtitle{ color: #334155; font-size: clamp(16px, 2.2vw, 20px); line-height:1.7; margin:0 auto; max-width: 860px; }
.hero-ctas{ margin-top: 24px; display: inline-flex; gap: 12px; align-items: center; justify-content: center; }

.btn{ display:inline-block; padding: 13px 20px; border-radius: 14px; border: 1px solid var(--surface-border); text-decoration:none; font-weight:600; }
.btn-primary{ background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; border-color: rgba(239,68,68,.65); }
.btn-primary:hover{ filter: brightness(.97); }
.btn-outline{ background:#fff; color: var(--ink-0); border:1px solid rgba(2,6,23,.12); }
.btn-outline:hover{ background:#f8fafc; }
