:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --text:#e8eefc;
  --muted:#b8c6e6;
  --line:rgba(232,238,252,.12);
  --accent:#6aa6ff;
  --accent2:#7cf0d6;
  --radius:16px;
  --shadow:0 12px 30px rgba(0,0,0,.35);
  --max:1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(106,166,255,.18), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(124,240,214,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
a:focus-visible{
  outline:2px solid rgba(106,166,255,.85);
  outline-offset:3px;
  border-radius:10px;
}

.container{max-width:var(--max);margin:0 auto;padding:24px}

.skip-link{
  position:absolute;
  top:-40px;
  left:0;
  z-index:100;
  padding:8px 16px;
  background:var(--accent);
  color:#08101d;
  font-weight:700;
  border-radius:8px;
}
.skip-link:focus{top:0}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(11,18,32,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:var(--max);
  margin:0 auto;
  padding:14px 24px;
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  font-weight:700;
  letter-spacing:.2px;
}

.brand-link{
  display:inline-flex;
  align-items:center;
}

.logo{
  height:40px;
  width:auto;
  display:block;
}

.badge{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  max-width:720px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.links a{
  color:var(--muted);
  font-weight:600;
  font-size:14px;
  position:relative;
  padding:6px 0;
}

/* Active nav indicator (static: set aria-current="page" in the HTML) */
.links a.active,
.links a[aria-current="page"]{color:var(--text)}

.links a.active::after,
.links a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity:.95;
}

/* Mobile header layout: logo row 1; badge + links row 2 */
@media (max-width: 980px){
  .nav{
    display:grid;
    grid-template-columns:auto 1fr;
    grid-template-rows:auto auto;
    gap:10px 12px;
    align-items:center;
    padding:14px 16px;
  }

  .brand{display:contents}

  .brand-link{
    grid-column:1 / -1;
    grid-row:1;
    justify-self:start;
  }

  .logo{height:34px}

  .badge{
    grid-column:1;
    grid-row:2;
    max-width:100%;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .links{
    grid-column:2;
    grid-row:2;
    justify-content:flex-end;
    gap:10px;
  }

  .links a{font-size:13px}
}

/* Page layout helpers */
.stack{display:grid;gap:14px}
.stack--lg{gap:22px}

/* Home page: keep layout compact on desktop */
.home-layout{display:grid;gap:14px}
.home-sidebar{display:grid;gap:14px}

@media (min-width: 980px){
  .home-layout{
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
  }
  .hero{padding:26px 0 0}
}

/* Core components */
.hero{
  padding:42px 0 22px;
  display:grid;
  gap:18px;
}

.hero--compact{
  padding:24px 0 10px;
  gap:12px;
}

.kicker{
  color:var(--muted);
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  font-size:12px;
}

.h1{
  font-size:42px;
  line-height:1.08;
  margin:0;
  max-width:18ch;
}

.h1--sm{
  font-size:34px;
  max-width:none;
}

.sub{
  color:var(--muted);
  font-size:18px;
  max-width:70ch;
  margin:0;
}

.small{color:var(--muted);font-size:14px}

.ctas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
}

.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, rgba(106,166,255,1), rgba(124,240,214,1));
  color:#08101d;
}

.grid{display:grid;gap:14px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-4{grid-template-columns:repeat(4,1fr)}
.hero-sectors{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:16px}
.hero-sectors .ctas{flex-direction:column;align-items:flex-start}
.hero-sectors .btn{width:100%;box-sizing:border-box}

@media (max-width: 980px){
  .grid.cols-3{grid-template-columns:1fr}
  .grid.cols-4{grid-template-columns:1fr}
  .hero-sectors{grid-template-columns:1fr}
  .h1{font-size:36px}
  .h1--sm{font-size:30px}
}

.card{
  background: rgba(15,26,46,.78);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0;color:var(--muted)}
.card .ctas{margin-top:12px}

.tag{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:800;
  color: rgba(232,238,252,.92);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:10px;
}

hr.sep{border:0;border-top:1px solid var(--line);margin:22px 0}

.section-title{font-size:18px;margin:0 0 10px}

.clean{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.clean li{margin:6px 0}

/* Embeds */
.embed{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.embed iframe{
  display:block;
  width:100%;
  height:760px;
  border:0;
}

@media (max-width: 980px){
  .embed iframe{height:900px}
}

/* Footer */
.site-footer{
  margin-top: 14px;
  padding: 16px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-grid{
  display: grid;
  gap: 14px;
}

@media (min-width: 980px){
  .footer-grid{
    grid-template-columns: 1.2fr 1fr 0.8fr;
    align-items: start;
  }
}

.footer-brand{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-logo{
  height: 34px;
  width: auto;
  display: block;
}

.footer-title{
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}

.footer-links{
  display: grid;
  gap: 6px;
}

.footer-links a{
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover{
  text-decoration: underline;
}

.smallprint{
  font-size: 12px;
  color: rgba(184,198,230,.95);
}

.footer-bottom{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-legal{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-legal .sep{opacity: .8}
