:root{
  /* default = dark */
  --bg: #0b1220;
  --bg2:#060916;
  --text:#eaf0ff;
  --muted:#a9b6d6;
  --line:rgba(255,255,255,.10);

  --brand:#7c5cff;
  --brand2:#41d1ff;
  --ok:#2ee59d;

  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1080px;
}

/* Light theme overrides */
[data-theme="light"]{
  --bg: #f7f9fc;
  --bg2:#eef2f8;
  --text:#0b1220;
  --muted:#526079;
  --line: rgba(11,18,32,.12);

  --shadow: 0 12px 40px rgba(11,18,32,.10);
}



*{box-sizing:border-box}
html,body{height:100%}

/* Body base */
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  line-height:1.55;
  background: var(--bg2);
  overflow-x:hidden;
}

/* Background layer (dark + light variants) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;

  /* dark default */
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.25), transparent 55%),
    radial-gradient(900px 500px at 85% 10%, rgba(65,209,255,.18), transparent 55%),
    linear-gradient(180deg, #070b14, var(--bg) 22%, var(--bg2));
  background-repeat:no-repeat;
  background-size:cover;
}

/* Light theme background: cleaner, softer */
[data-theme="light"] body::before{
  background:
    radial-gradient(1100px 600px at 15% 0%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(65,209,255,.12), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg) 22%, var(--bg2));
}

/* Buttons adapt automatically because they use vars, but make “ghost” buttons nicer in light */
[data-theme="light"] .btn{
  background: rgba(11,18,32,.03);
}

/* Theme toggle icon */
.themeIcon{
  width:18px;
  height:18px;
  border-radius: 8px;
  display:inline-block;
  margin-right:8px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 1px solid var(--line);
}

a{color:inherit; text-decoration:none}

.wrap{max-width:var(--max); margin:0 auto; padding:28px 20px 80px}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:10px 0 22px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
.logo{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 30px rgba(124,92,255,.25);
  position:relative;
}
.logo:after{
  content:""; position:absolute; inset:9px;
  border-radius:7px; background:rgba(10,14,30,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.navlinks{display:flex; gap:14px; flex-wrap:wrap}
.navlinks a{
  color:var(--muted); font-weight:600; font-size:14px;
  padding:8px 10px; border-radius:12px;
}
.navlinks a:hover{color:var(--text); background:rgba(255,255,255,.05)}

.ctaRow{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text); font-weight:700; font-size:14px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18)}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#061024;
  box-shadow: 0 18px 50px rgba(124,92,255,.22);
}

.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  color:var(--muted); font-weight:700; font-size:12px;
  width:fit-content;
}
.dot{width:8px; height:8px; border-radius:99px; background:var(--ok); box-shadow:0 0 0 4px rgba(46,229,157,.10)}

.hero{
  display:grid; grid-template-columns: 1.1fr .9fr;
  gap:26px; align-items:start;
  padding-top:10px;
}
h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing:-.02em;
  line-height:1.05;
}
.sub{
  color:var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  margin: 0 0 16px;
  max-width: 62ch;
}
.heroActions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.mini{
  margin-top:14px;
  color: var(--text);
  font-size:13px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* each pill */
.mini span{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid var(--line);
  font-weight:600;
}

/* light theme override */
[data-theme="light"] .mini span{
  background: rgba(11,18,32,.04);
  border-color: rgba(11,18,32,.12);
}

.mini i{
  width:18px; height:18px; border-radius:6px; display:inline-block;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  position:relative;
}
.mini i:after{
  content:""; position:absolute; inset:5px;
  border-radius:4px; background:linear-gradient(135deg, rgba(124,92,255,.8), rgba(65,209,255,.8));
  opacity:.85;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardHeader{
  padding:16px 16px 12px;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.cardHeader strong{font-size:14px}
.cardHeader p{margin:6px 0 0; color:var(--muted); font-size:13px}
.cardBody{padding:16px}

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.metric{
  padding:12px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.10);
}
.metric b{display:block; font-size:13px}
.metric small{color:var(--muted); font-weight:650}

.tagrow{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}

.tag{
  /* keep the same shape */
  padding:7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);

  /* was fixed light color */
  color: var(--text);

  font-size:12px; font-weight:700;
}

section{margin-top:44px}
.sectionTitle{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  margin-bottom:14px;
}
h2{margin:0; font-size:22px; letter-spacing:-.01em}
.hint{color:var(--muted); font-size:14px; margin:0}

.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.feat{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  min-height: 150px;
}
.feat h3{margin:0 0 6px; font-size:16px}
.feat p{margin:0; color:var(--muted); font-size:14px}

.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.step{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(0,0,0,.10);
}
.num{
  width:30px; height:30px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:900;
  background: linear-gradient(135deg, rgba(124,92,255,.8), rgba(65,209,255,.75));
  color:#071026;
  margin-bottom:10px;
}
.step h3{margin:0 0 6px; font-size:16px}
.step p{margin:0; color:var(--muted); font-size:14px}

.split{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:12px;
}
.panel{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.panel h3{margin:0 0 6px; font-size:16px}
.panel p{margin:0; color:var(--muted); font-size:14px}

.list{
  margin:12px 0 0; padding:0; list-style:none;
  display:grid; gap:10px;
}
.list li{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);

  font-size:14px;
  display:flex; gap:10px; align-items:flex-start;
}
[data-theme="light"] .list li{
  background: rgba(11,18,32,.03);
  border-color: rgba(11,18,32,.12);
}

.check{
  width:18px; height:18px; border-radius:7px;
  background: rgba(46,229,157,.14);
  border:1px solid rgba(46,229,157,.30);
  margin-top:2px;
  position:relative;
  flex: 0 0 auto;
}
.check:after{
  content:"";
  position:absolute; left:5px; top:3px;
  width:6px; height:10px;
  border: solid rgba(46,229,157,.95);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

input[type="email"],
input[type="text"],
textarea{
  flex: 1 1 220px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);

  background: rgba(255,255,255,.10);
  color: var(--text);

  outline:none;
  font-weight:600;
}

/* Placeholder */
input::placeholder,
textarea::placeholder{
  color: var(--muted);
}

input:focus,
textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}

/* Light theme input = white, clean */
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="text"],
[data-theme="light"] textarea{
  background: #ffffff;
  border-color: rgba(11,18,32,.16);
}

textarea{min-height:120px; resize:vertical; flex: 1 1 100%}
input::placeholder, textarea::placeholder{color:rgba(169,182,214,.8)}

.fineprint{color:var(--muted); font-size:13px; margin:10px 0 0}
details{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:14px 14px;
}

[data-theme="light"] .panel,
[data-theme="light"] .card,
[data-theme="light"] details{
  background: rgba(255,255,255,.72);
  border-color: rgba(11,18,32,.12);
}

summary{cursor:pointer; font-weight:800}
details p{color:var(--muted); margin:10px 0 0; font-size:14px}
.faq{display:grid; gap:10px}

footer{
  margin-top:50px;
  border-top:1px solid var(--line);
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}
.footbrand{font-weight:850; color:rgba(233,240,255,.9)}
.footmuted{margin-top:6px}
.footlinks{display:flex; gap:12px; flex-wrap:wrap}
footer a{ color: var(--text); font-weight:750}

.linkbtn{
  background:none;
  border:none;
  color:rgba(233,240,255,.82);
  font-weight:750;
  padding:0;
  cursor:pointer;
}

/* Modal */
.modalOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}

/* Support old "active" class pattern */
.modalOverlay.active{ display:flex; }

/* If you still have .open in CSS, it can stay too */
.modalOverlay.open{ display:flex; }

/* Modal */
.modal{
  width:min(720px, 100%);
  border-radius: var(--radius);
  border:1px solid var(--line);

  /* ✅ opaque base so it’s NOT transparent */
  background: #0b1220;

  /* keep the nice sheen */
  background-image:
    radial-gradient(900px 500px at 20% 0%, rgba(124,92,255,.18), transparent 55%),
    radial-gradient(700px 420px at 90% 10%, rgba(65,209,255,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));

  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  overflow:hidden;
}

.modalOverlay{
  background: rgba(0,0,0,.68);
}

.modalHead{
  padding:16px;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.modalHead strong{font-size:14px}
.modalClose{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.modalBody{padding:16px}

@media (max-width: 900px){
  .hero{grid-template-columns:1fr;}
  .features{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .navlinks{display:none}
}

