:root{
  --bg-deep:#060b16;
  --bg-panel:#0f1729;
  --bg-panel-2:#141f38;
  --line:#1e2a45;
  --blue:#3b82f6;
  --teal:#22d3ee;
  --green:#34d399;
  --text:#f4f6fb;
  --muted:#8b96ac;
  --mono:'JetBrains Mono', monospace;
  --display:'Space Grotesk', sans-serif;
  --body:'Inter', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg-deep);
  color:var(--text);
  font-family:var(--body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none;}
img,svg{display:block;}
.wrap{max-width:1160px; margin:0 auto; padding:0 28px;}

/* background ambience */
body::before{
  content:"";
  position:fixed; inset:0;
  background:
    radial-gradient(600px 400px at 85% -10%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(500px 400px at 10% 20%, rgba(34,211,238,0.10), transparent 60%);
  pointer-events:none;
  z-index:0;
}

/* header */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(6,11,22,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:1160px; margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand-mark{
  width:34px; height:34px; border-radius:9px;
  object-fit:cover; display:block;
  background:#0f1729; border:1px solid var(--line);
}
.brand-name{font-family:var(--display); font-weight:600; font-size:18px; letter-spacing:0.2px;}
.nav-links{display:flex; gap:32px; font-size:14px; color:var(--muted);}
.nav-links a:hover{color:var(--text);}
.nav-cta{display:flex; align-items:center; gap:16px;}

/* buttons — appearance:none resets native <button> chrome (gray bg, extra border)
   so .btn-ghost buttons don't render with the browser's default gray box */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 20px; border-radius:8px;
  font-size:14px; font-weight:600;
  font-family:var(--body);
  border:1px solid transparent;
  background:transparent;
  appearance:none; -webkit-appearance:none;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:disabled{cursor:not-allowed; opacity:0.7;}
.btn-primary{background:var(--blue); color:#fff;}
.btn-primary:hover{background:#2f6fe0; transform:translateY(-1px);}
.btn-ghost{background:transparent; border-color:var(--line); color:var(--text);}
.btn-ghost:hover{border-color:var(--blue);}
@media (max-width:820px){ .nav-links{display:none;} }

/* hero */
.hero{position:relative; z-index:1; padding:96px 0 60px;}
.hero-grid{display:grid; grid-template-columns:1.05fr 1fr; gap:56px; align-items:center;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono); font-size:12px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--teal); border:1px solid rgba(34,211,238,0.3);
  background:rgba(34,211,238,0.06);
  padding:6px 12px; border-radius:999px; margin-bottom:20px;
}
.eyebrow-dot{width:6px; height:6px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal);}
h1{
  font-family:var(--display); font-weight:700;
  font-size:clamp(34px, 4.6vw, 52px);
  line-height:1.08; letter-spacing:-0.02em;
  margin-bottom:20px;
}
h1 span{
  background:linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{color:var(--muted); font-size:17px; max-width:480px; margin-bottom:32px;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:36px;}
.trust-line{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); font-family:var(--mono);}
.trust-line .stack{display:flex;}
.trust-line .stack span{
  width:26px; height:26px; border-radius:50%;
  background:var(--bg-panel-2); border:2px solid var(--bg-deep);
  margin-left:-8px; display:inline-block;
}
.trust-line .stack span:first-child{margin-left:0;}

/* mock dashboard card */
.mock{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:16px;
  box-shadow:0 30px 80px -30px rgba(59,130,246,0.35), 0 0 0 1px rgba(255,255,255,0.02);
  overflow:hidden; animation:float 6s ease-in-out infinite;
}
@keyframes float{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.mock-top{
  display:flex; align-items:center; gap:8px; padding:12px 16px;
  border-bottom:1px solid var(--line); background:var(--bg-panel-2);
}
.dot{width:9px; height:9px; border-radius:50%;}
.dot.r{background:#ef4444;} .dot.y{background:#f59e0b;} .dot.g{background:#34d399;}
.mock-url{
  margin-left:10px; font-family:var(--mono); font-size:11px; color:var(--muted);
  background:var(--bg-deep); padding:4px 10px; border-radius:6px; flex:1; max-width:220px;
}
.mock-body{padding:20px;}
.mock-greeting{font-family:var(--display); font-size:15px; font-weight:600; margin-bottom:14px;}
.mock-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px;}
.mock-card{background:var(--bg-panel-2); border:1px solid var(--line); border-radius:10px; padding:12px;}
.mock-card .mc-icon{
  width:24px; height:24px; border-radius:6px; margin-bottom:10px;
  background:linear-gradient(135deg, var(--blue), var(--teal)); opacity:0.85;
}
.mock-card .mc-val{font-family:var(--mono); font-size:15px; font-weight:600;}
.mock-card .mc-label{font-size:10px; color:var(--muted); margin-top:2px;}
.mock-row{
  display:flex; justify-content:space-between; align-items:center;
  background:var(--bg-panel-2); border:1px solid var(--line); border-radius:10px;
  padding:12px 14px; font-size:12px;
}
.mock-row .badge{
  font-family:var(--mono); font-size:10px; color:var(--green);
  background:rgba(52,211,153,0.1); padding:3px 8px; border-radius:999px;
}

/* sections */
section{position:relative; z-index:1;}
.section-head{max-width:560px; margin:0 auto 48px; text-align:center;}
.section-eyebrow{
  font-family:var(--mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--blue); margin-bottom:10px;
}
.section-head h2{
  font-family:var(--display); font-weight:600; font-size:clamp(26px,3vw,34px);
  letter-spacing:-0.01em; margin-bottom:12px;
}
.section-head p{color:var(--muted); font-size:15px;}

.modules{padding:88px 0;}
.module-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;}
@media (max-width:900px){ .module-grid{grid-template-columns:repeat(2,1fr);} .hero-grid{grid-template-columns:1fr;} }
@media (max-width:560px){ .module-grid{grid-template-columns:1fr;} .mock-cards{grid-template-columns:1fr 1fr;} }

.module-card{
  display:block;
  background:var(--bg-panel); border:1px solid var(--line); border-radius:14px;
  padding:24px; transition:border-color .15s ease, transform .15s ease;
}
.module-card:hover{border-color:var(--blue); transform:translateY(-3px);}
.module-icon{
  width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; background:var(--bg-panel-2); border:1px solid var(--line);
}
.module-card h3{font-family:var(--display); font-size:16px; font-weight:600; margin-bottom:8px;}
.module-card p{color:var(--muted); font-size:13.5px;}
.module-card .module-link{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--mono); font-size:12px; color:var(--blue);
  margin-top:14px;
}
.module-card:hover .module-link{color:var(--teal);}
.module-link .arrow{transition:transform .15s ease;}
.module-card:hover .module-link .arrow{transform:translateX(3px);}

.stats{
  padding:64px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(59,130,246,0.04), transparent);
}
.stats-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center;}
@media (max-width:700px){ .stats-grid{grid-template-columns:1fr 1fr;} }
.stat-num{font-family:var(--mono); font-size:30px; font-weight:600; color:var(--text);}
.stat-num.acc{color:var(--green);}
.stat-label{font-size:12.5px; color:var(--muted); margin-top:6px;}

.cta-band{padding:100px 0; text-align:center;}
.cta-band h2{
  font-family:var(--display); font-weight:700; font-size:clamp(28px,3.6vw,40px);
  max-width:600px; margin:0 auto 16px; letter-spacing:-0.01em;
}
.cta-band p{color:var(--muted); max-width:460px; margin:0 auto 32px;}
.cta-band.compact{padding:72px 0;}

footer{border-top:1px solid var(--line); padding:40px 0; position:relative; z-index:1;}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;}
.footer-links{display:flex; gap:24px; font-size:13px; color:var(--muted);}
.footer-links a:hover{color:var(--text);}
.copyright{font-size:12.5px; color:var(--muted); font-family:var(--mono);}

/* breadcrumb + page hero (module pages) */
.breadcrumb{
  display:flex; align-items:center; gap:8px;
  font-family:var(--mono); font-size:12.5px; color:var(--muted);
  padding-top:28px;
}
.breadcrumb a:hover{color:var(--text);}
.breadcrumb .sep{color:var(--line);}
.breadcrumb .current{color:var(--teal);}

.page-hero{padding:24px 0 56px;}
.page-hero-top{
  display:flex; align-items:center; gap:16px; margin-bottom:18px;
}
.page-icon{
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:24px;
  background:var(--bg-panel); border:1px solid var(--line);
}
.page-hero h1{font-size:clamp(28px, 3.6vw, 40px); margin-bottom:0;}
.page-hero .lead{max-width:640px; margin-top:6px;}
.page-count{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--mono); font-size:12px; color:var(--muted);
  border:1px solid var(--line); padding:5px 12px; border-radius:999px;
  margin-top:18px;
}

/* resource grid (list of features inside a module) */
.resource-section{padding-bottom:88px;}
.resource-group{margin-bottom:44px;}
.resource-group:last-child{margin-bottom:0;}
.resource-group-head{
  display:flex; align-items:baseline; gap:10px;
  margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid var(--line);
}
.resource-group-head h2{font-family:var(--display); font-size:19px; font-weight:600;}
.resource-group-head .count{font-family:var(--mono); font-size:12px; color:var(--muted);}
.resource-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px;}
@media (max-width:900px){ .resource-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .resource-grid{grid-template-columns:1fr;} }

.resource-card{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:12px;
  padding:18px; display:flex; gap:12px; align-items:flex-start;
}
.resource-icon{
  flex:0 0 auto; width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; font-size:16px;
  background:var(--bg-panel-2); border:1px solid var(--line);
}
.resource-card h3{font-family:var(--display); font-size:14.5px; font-weight:600; margin-bottom:4px;}
.resource-card p{color:var(--muted); font-size:12.5px; line-height:1.45;}

.empty-state{
  text-align:center; padding:64px 24px;
  background:var(--bg-panel); border:1px dashed var(--line); border-radius:16px;
}
.empty-state .page-icon{margin:0 auto 20px;}
.empty-state h2{font-family:var(--display); font-size:20px; margin-bottom:10px;}
.empty-state p{color:var(--muted); font-size:14px; max-width:420px; margin:0 auto;}

/* modal */
.modal-overlay{
  position:fixed; inset:0; z-index:100;
  background:rgba(4,8,16,0.72);
  backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  padding:20px; opacity:0; pointer-events:none; transition:opacity .18s ease;
}
.modal-overlay.open{opacity:1; pointer-events:auto;}
.modal{
  position:relative; width:100%; max-width:560px; max-height:90vh; overflow-y:auto;
  background:var(--bg-panel); border:1px solid var(--line); border-radius:16px; padding:32px;
  box-shadow:0 40px 100px -30px rgba(0,0,0,0.6);
  transform:translateY(12px) scale(0.98); transition:transform .18s ease;
}
.modal-overlay.open .modal{transform:translateY(0) scale(1);}
.modal-close{
  position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:8px;
  background:var(--bg-panel-2); border:1px solid var(--line); color:var(--muted);
  appearance:none; -webkit-appearance:none;
  cursor:pointer; font-size:14px;
}
.modal-close:hover{color:var(--text); border-color:var(--blue);}
.modal-eyebrow{
  font-family:var(--mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--teal); margin-bottom:8px;
}
.modal h3{font-family:var(--display); font-size:22px; font-weight:600; margin-bottom:6px;}
.modal-sub{color:var(--muted); font-size:13.5px; margin-bottom:24px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width:520px){ .field-row{grid-template-columns:1fr;} }
.field{margin-bottom:16px;}
.field label{display:block; font-size:12.5px; color:var(--muted); margin-bottom:6px;}
.field input, .field textarea{
  width:100%; background:var(--bg-panel-2); border:1px solid var(--line);
  border-radius:8px; padding:10px 12px; color:var(--text);
  font-family:var(--body); font-size:14px; resize:vertical;
}
.field input:focus, .field textarea:focus{outline:none; border-color:var(--blue);}
.checks{display:flex; flex-wrap:wrap; gap:10px;}
.check{
  display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text);
  background:var(--bg-panel-2); border:1px solid var(--line);
  padding:7px 10px; border-radius:999px; cursor:pointer;
}
.check input{width:14px; height:14px; accent-color:var(--blue);}
.modal-submit{width:100%; padding:12px; font-size:15px; margin-top:6px;}
.modal-error{display:none; color:#f87171; font-size:13px; margin-top:10px; text-align:center;}
.modal-error.show{display:block;}
.modal-success-view{text-align:center; padding:20px 0;}
.success-icon{
  width:52px; height:52px; margin:0 auto 18px; border-radius:50%;
  background:rgba(52,211,153,0.12); color:var(--green);
  border:1px solid rgba(52,211,153,0.35);
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.modal-success-view h3{margin-bottom:8px;}
.modal-success-view .btn{margin-top:12px;}
