:root{
  --bg:#070b14;
  --bg2:#0b1222;
  --card:rgba(255,255,255,0.06);
  --card2:rgba(255,255,255,0.09);
  --border:rgba(255,255,255,0.14);
  --text:#eef3ff;
  --muted:rgba(238,243,255,0.72);
  --accent:#4ea2ff;
  --accent2:#22d3ee;
  --shadow:0 18px 40px rgba(0,0,0,0.35);
  --radius:16px;
  --max:1180px;
  --pad:20px;

  /* logo sizing + effects */
  --logoSize:100px;              /* general / hero */
  --logoSizeHeader:72px;         /* header-only */
  --logoRadius:18px;
  --logoGlowA: rgba(78,162,255,0.35);
  --logoGlowB: rgba(34,211,238,0.22);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 20% -10%, rgba(78,162,255,0.28), transparent 58%),
    radial-gradient(900px 520px at 85% 10%, rgba(34,211,238,0.16), transparent 58%),
    linear-gradient(180deg, var(--bg2), var(--bg) 70%);
  min-height:100vh;
}

a{color:inherit}
a:hover{text-decoration:underline}
.container{max-width:var(--max); margin:0 auto; padding:0 var(--pad);}

/* ================= Buttons ================= */

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.05);
  text-decoration:none;
  font-weight:700;
}
.btn:hover{ text-decoration:none; transform:translateY(-1px); transition:transform 120ms ease; }
.btn--sm{ padding:9px 12px; border-radius:12px; font-size:13px; }

.btn--primary{
  border:1px solid rgba(78,162,255,0.55);
  background:linear-gradient(135deg, rgba(78,162,255,0.95), rgba(34,211,238,0.55));
  color:#071018;
  box-shadow:0 14px 30px rgba(78,162,255,0.18);
}
.btn--ghost{ background:rgba(255,255,255,0.04); }

.link{ color:rgba(238,243,255,0.92); font-weight:800; text-decoration:none; }
.link:hover{ text-decoration:underline; }

/* ================= Top strip ================= */
/* Keep topstrip sticky (small) — if you want it to scroll too, change position:sticky -> position:relative */

.topstrip{
  position:sticky; top:0; z-index:50;
  background:rgba(7,11,20,0.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.topstrip__inner{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:10px 0;
}
.topstrip__right{
  display:flex; gap:10px; align-items:center;
  color:var(--muted); font-size:13px;
}
.topstrip__right a{color:var(--muted); text-decoration:none;}
.topstrip__right a:hover{color:var(--text)}
.dot{opacity:0.55}

.badge{
  display:inline-flex; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.05);
  color:rgba(238,243,255,0.78);
  font-size:12px;
  margin-right:8px;
}

/* ================= Header / Brand ================= */
/* IMPORTANT: header is NOT sticky so it scrolls with the page */

.header{
  position:relative;          /* was sticky */
  top:auto;
  z-index:40;
  background:rgba(7,11,20,0.62);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
}

/* Make the whole brand row hug content */
.brand{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  padding:0;
  margin:0;
  line-height:1;
}

/* Logo wrapper hugs image exactly */
.brand__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0;
  line-height:0;
  border-radius:var(--logoRadius);

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 18px 42px rgba(0,0,0,0.38);
}

/* Primary header logo sizing */
.brand__icon img{
  display:block;
  width:var(--logoSizeHeader);
  height:auto;
  border-radius:var(--logoRadius);
}

/* Bulletproof fallback: if your HTML uses img.brand_con, it still gets sized */
.header img.brand_con{
  width:var(--logoSizeHeader) !important;
  height:auto !important;
  max-width:var(--logoSizeHeader) !important;
  display:block !important;
  border-radius:var(--logoRadius) !important;
}

/* Extra fallback: if the logo img is inside .brand but not inside .brand__icon */
.header .brand > img{
  width:var(--logoSizeHeader);
  height:auto;
  max-width:var(--logoSizeHeader);
  display:block;
  border-radius:var(--logoRadius);
}

/* Soft glow behind logo */
.brand::before{
  content:"";
  position:absolute;
  left:6px;
  top:50%;
  width:calc(var(--logoSizeHeader) * 1.05);
  height:calc(var(--logoSizeHeader) * 1.05);
  transform:translateY(-50%);
  border-radius:999px;

  background:
    radial-gradient(circle at 40% 35%, rgba(78,162,255,0.28), transparent 62%),
    radial-gradient(circle at 65% 60%, rgba(34,211,238,0.18), transparent 66%);

  filter:blur(14px);
  opacity:0.85;
  z-index:-1;
  pointer-events:none;
}

.brand__name{
  font-weight:900;
  letter-spacing:-0.2px;
  font-size:19px;
  line-height:1.05;
  margin:0;
}

.brand__sub{
  font-size:13px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.2;
}

/* ================= Nav ================= */

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1;
}

.nav__link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:rgba(238,243,255,0.86);
  font-size:14px;
  padding:6px 10px;           /* tighter */
  border-radius:10px;
  line-height:1;
}
.nav__link:hover{
  background:rgba(255,255,255,0.06);
  text-decoration:none;
}

.nav__dropdown{position:relative;}
.nav__dropbtn{
  background:transparent;
  border:none;
  cursor:pointer;
  font:inherit;
  padding:0;
  line-height:1;
}
.chev{opacity:0.75; margin-left:6px}

.nav__drop{
  position:absolute;
  top:44px;
  left:0;
  min-width:260px;
  background:rgba(7,11,20,0.92);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:10px;
  display:none;
}
.nav__dropdown.open .nav__drop,
.nav__dropdown.is-open .nav__drop{display:block;}

.nav__drop a{
  display:block;
  padding:10px;
  border-radius:12px;
  color:rgba(238,243,255,0.88);
  text-decoration:none;
}
.nav__drop a:hover{ background:rgba(255,255,255,0.06); }

/* ================= Mobile ================= */

.navbtn{
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  cursor:pointer;
}
.navbtn span{
  display:block;
  width:18px; height:2px;
  background:rgba(238,243,255,0.92);
  margin:5px auto;
  border-radius:999px;
}

.drawer{
  display:none;
  border-top:1px solid rgba(255,255,255,0.08);
  background:rgba(7,11,20,0.76);
  backdrop-filter:blur(14px);
}
.drawer.open{display:block;}
.drawer__inner{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 0 18px;
}
.drawer a{text-decoration:none; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,0.04);}
.drawer details summary{cursor:pointer; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,0.04);}
.drawer__links{display:flex; flex-direction:column; gap:10px; padding:10px 0 0;}
.drawer__links a{background:rgba(255,255,255,0.03);}

/* ================= Hero / Layout ================= */

.hero{padding:44px 0 34px;}
.hero__inner{display:grid; grid-template-columns:1.15fr 0.85fr; gap:22px; align-items:stretch;}

.kicker{
  margin:0 0 10px;
  font-size:13px; letter-spacing:0.6px;
  text-transform:uppercase;
  color:rgba(238,243,255,0.78);
}

h1{margin:0 0 14px; font-size:clamp(32px, 3.2vw, 48px); line-height:1.08; letter-spacing:-0.6px;}
.lead{margin:0; color:var(--muted); line-height:1.65; font-size:16px; max-width:62ch;}

.pillrow{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px;}
.pill{
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
  color:rgba(238,243,255,0.82);
  font-size:13px;
}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px;}

.stats{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px;}
.stat{
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  border-radius:14px;
  padding:10px 12px;
  min-width:170px;
}
.stat__n{font-weight:900}
.stat__l{margin-top:2px; font-size:12px; color:var(--muted);}

/* ================= Sections ================= */

.section{padding:44px 0;}
.section--alt{
  border-top:1px solid rgba(255,255,255,0.06);
  border-bottom:1px solid rgba(255,255,255,0.06);
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
}
.section__head{margin-bottom:16px;}
.section__head h2{margin:0 0 6px; font-size:26px; letter-spacing:-0.2px;}
.section__head p{margin:0; color:var(--muted); line-height:1.6;}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.grid2{display:grid; grid-template-columns:repeat(2,1fr); gap:16px;}

/* Status box subtle state styling (JS toggles these classes) */
.formstatus{ transition: border-color 160ms ease, background 160ms ease; }
.formstatus.is-success{
  border-color: rgba(140,255,180,0.35);
  background: rgba(140,255,180,0.06);
}
.formstatus.is-error{
  border-color: rgba(255,120,120,0.35);
  background: rgba(255,120,120,0.06);
}
#formStatus:focus{ outline: 2px solid rgba(78,162,255,0.55); outline-offset: 3px; border-radius: 10px; }

/* ================= Cards ================= */

.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
  box-shadow:var(--shadow);
  padding:16px;
}
.card--flat{box-shadow:none; background:rgba(255,255,255,0.04);}

.card__icon{
  width:40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  margin-bottom:10px;
  font-weight:900;
}

/* ================= Carousel ================= */

.carousel{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow:var(--shadow);
  padding:14px;
  overflow:hidden;
}

.carousel__track{
  display:flex;
  gap:0;
  transition:transform 360ms ease;
  will-change:transform;
}

.carousel__slide{
  flex:0 0 100%;
  min-width:100%;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  padding:14px;
}

.carousel__slide h3{margin:0 0 8px; font-size:18px;}
.carousel__slide p{margin:0 0 10px; color:var(--muted); line-height:1.6;}
.carousel__slide ul{margin:0 0 10px; padding-left:18px; color:rgba(238,243,255,0.82);}

.carousel__controls{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:10px;
}

.iconbtn{
  width:38px; height:38px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}
.iconbtn:hover{background:rgba(255,255,255,0.08)}

.dots{display:flex; gap:8px; align-items:center; justify-content:center; flex:1;}
.dotbtn{
  width:10px; height:10px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.10);
  cursor:pointer;
}
.dotbtn.active{
  background:linear-gradient(135deg, rgba(78,162,255,0.95), rgba(34,211,238,0.75));
  border-color:transparent;
}
.dots .dot{
  width:10px; height:10px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.10);
  cursor:pointer;
  padding:0;
}
.dots .dot.active,
.dots .dot[aria-current="true"]{
  background:linear-gradient(135deg, rgba(78,162,255,0.95), rgba(34,211,238,0.75));
  border-color:transparent;
}

/* ================= CTA / Footer ================= */

.cta{ padding:34px 0 44px; }
.cta__inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  border-radius:var(--radius);
  padding:18px;
}
.cta__inner h2{margin:0 0 6px; font-size:22px;}
.cta__inner p{margin:0; color:var(--muted)}
.cta__actions{display:flex; gap:10px; flex-wrap:wrap;}

.footer{
  border-top:1px solid rgba(255,255,255,0.06);
  background:rgba(7,11,20,0.55);
  padding:18px 0;
}
.footer__inner{display:flex; justify-content:space-between; gap:12px; align-items:flex-start;}
.footer__brand{font-weight:900}
.footer__sub{color:var(--muted); font-size:13px; margin-top:4px;}
.footer__right{color:var(--muted); font-size:13px;}

/* ================= Responsive ================= */

@media (max-width: 980px){
  .hero__inner{grid-template-columns:1fr;}
  .grid3{grid-template-columns:1fr;}
  .grid2{grid-template-columns:1fr;}
  .cta__inner{flex-direction:column; align-items:flex-start;}
}

@media (max-width: 860px){
  :root{
    --logoSize:72px;            /* general */
    --logoSizeHeader:64px;      /* header */
  }
  .brand__sub{display:none;}
  .header__inner{ padding:10px 0; }
}

@media (max-width: 520px){
  :root{
    --logoSize:64px;
    --logoSizeHeader:56px;
  }
}
