:root{
  --bg-main:#060914;
  --bg-panel:rgba(14,18,40,.86);
  --glass-border:rgba(255,255,255,.12);

  --accent:#3b82f6;
  --accent-alt:#7c3aed;

  --success:#22c55e;

  --text-main:#e8ecff;
  --text-muted:#9aa8c7;

  --radius-lg:22px;
  --radius-md:16px;

  --cursor-x:50vw;
  --cursor-y:50vh;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  color:var(--text-main);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(59,130,246,.25), transparent 60%),
    radial-gradient(800px 600px at 85% 15%, rgba(124,58,237,.22), transparent 65%),
    linear-gradient(180deg,#05070f,#090d1c);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:radial-gradient(
    520px at var(--cursor-x) var(--cursor-y),
    rgba(124,58,237,.16),
    transparent 60%
  );
  z-index:-2;
}

.neural-bg{
  position:fixed;
  inset:0;
  z-index:-3;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,.16), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(124,58,237,.16), transparent 45%);
  animation:neuralDrift 22s linear infinite alternate;
}
@keyframes neuralDrift{
  from{filter:hue-rotate(0deg)}
  to{filter:hue-rotate(30deg)}
}

.app{
  max-width:1300px;
  margin:48px auto;
  padding:0 24px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:34px;
}

.brand-line{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:9px 16px;
  border-radius:999px;
  background:rgba(8,12,30,.55);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  text-decoration:none;
  color:var(--text-main);
}

.brand-dot{
  width:9px;height:9px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent-alt));
  box-shadow:0 0 18px rgba(124,58,237,.8);
}

.brand-text{
  font-size:12px;
  font-weight:900;
  letter-spacing:1.6px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav-link{
  text-decoration:none;
  color:rgba(154,168,199,.9);
  font-weight:850;
  font-size:13px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.nav-link:hover{
  color:var(--text-main);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.10);
  transform:translateY(-1px);
}

.nav-link.active{
  color:#fff;
  background:linear-gradient(135deg, rgba(59,130,246,.25), rgba(124,58,237,.25));
  border-color:rgba(255,255,255,.14);
}

.panel{
  background:linear-gradient(180deg, rgba(20,25,60,.92), rgba(12,16,40,.92));
  border-radius:var(--radius-lg);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(20px);
  box-shadow:0 50px 120px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  padding:28px;
  margin-bottom:28px;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.section-header h2{
  margin:0;
  font-size:20px;
  font-weight:950;
  letter-spacing:-.2px;
}

.tag{
  padding:6px 12px;
  font-size:11px;
  font-weight:950;
  letter-spacing:1px;
  border-radius:999px;
  border:1px solid var(--glass-border);
  background:rgba(8,12,30,.55);
}

.tag.success{
  color:var(--success);
  border-color:rgba(34,197,94,.35);
}

.muted{color:var(--text-muted)}
.small{font-size:12.5px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 18px;
  border-radius:var(--radius-md);
  font-weight:950;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn.primary{
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-alt));
  box-shadow:0 18px 50px rgba(59,130,246,.38);
}

.btn.primary:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 70px rgba(59,130,246,.52);
}

.btn.secondary{
  color:var(--text-main);
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
}

.btn.secondary:hover{transform:translateY(-2px)}

.chip{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(229,236,248,.92);
}

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

.loader{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  background:#05070f;
  z-index:9999;
}

.boot{ text-align:center; }
.boot-ring{
  width:90px;height:90px;border-radius:50%;
  border:3px solid transparent;
  border-top:3px solid var(--accent);
  border-right:3px solid var(--accent-alt);
  animation:spin 1.2s linear infinite;
  margin:0 auto 18px;
}
@keyframes spin{to{transform:rotate(360deg)}}
.boot-text span{
  display:block;
  font-weight:950;
  letter-spacing:1.2px;
}
.boot-text small{
  display:block;
  margin-top:6px;
  color:var(--text-muted);
}

.page-fx{
  position:fixed;
  inset:0;
  background:#05070f;
  opacity:0;
  pointer-events:none;
  z-index:9998;
  transition:opacity .35s ease;
}
.page-fx.on{
  opacity:1;
  pointer-events:auto;
}

.footer{
  position: relative;
  margin-top: 80px;
  padding: 40px 0 24px;

  text-align: center;
  font-size: 15px;
  opacity: .75;

  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 900px){
  .topbar{flex-direction:column;align-items:flex-start}
  .nav{justify-content:flex-start}
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,.5) rgba(10,14,36,.8);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10,14,36,.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(59,130,246,.7),
    rgba(124,58,237,.7)
  );
  border-radius: 999px;
  border: 2px solid rgba(10,14,36,.8);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(99,102,241,.9),
    rgba(168,85,247,.9)
  );
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}