:root{
  --bg0:#05070d;
  --bg1:#0b1020;
  --card: rgba(15,22,41,.72);
  --card2: rgba(255,255,255,.03);
  --text:#e8eefc;
  --muted:#a7b0c0;
  --line: rgba(255,255,255,.09);
  --shadow: 0 18px 55px rgba(0,0,0,.50);
  --radius: 18px;

  --accent:#7aa7ff;
  --accent2:#7dffb2;

  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 18% -10%, rgba(122,167,255,.22), transparent 60%),
    radial-gradient(900px 520px at 82% 5%, rgba(125,255,178,.12), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, var(--bg0));
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

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

.sep{ height:1px; background: rgba(255,255,255,.08); margin: 14px 0; border:0; }
.hide{ display:none !important; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.68);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

/* Brand / Logo */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 170px;
  color: var(--text);
  text-decoration:none;
}
.brand:hover{ text-decoration:none; }
.logo{
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 0 7px rgba(122,167,255,.10);
  overflow:hidden;
  background: linear-gradient(135deg, rgba(122,167,255,.25), rgba(125,255,178,.12));
  border: 1px solid rgba(255,255,255,.10);
  display:grid; place-items:center;
}
.logo svg{ width: 22px; height: 22px; display:block; }
.brand-name{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name strong{ font-weight: 800; letter-spacing: .2px; font-size: 14.5px; }
.brand-name span{ font-size: 12px; color: var(--muted); }

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 16px;
}
.nav a{
  color: var(--muted);
  font-weight: 650;
  font-size: 13.5px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration:none;
}
.nav a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.nav a.active{
  color: var(--text);
  border-color: rgba(122,167,255,.22);
  background: rgba(122,167,255,.08);
}

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

/* Buttons */
.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13.5px;
  cursor:pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space:nowrap;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.20);
  text-decoration:none;
}
.btn.primary{
  border: 1px solid rgba(122,167,255,.35);
  background: linear-gradient(135deg, rgba(122,167,255,.18), rgba(125,255,178,.08));
}
.btn.primary:hover{ border-color: rgba(122,167,255,.55); }
.btn.ghost{
  background: transparent;
  box-shadow:none;
}
.btn.danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
}

/* Burger */
.burger{
  display:none;
  width: 44px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap: 6px;
  flex-direction:column;
}
.burger:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.20); }
.burger span{
  display:block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(232,238,252,.85);
  transition: transform .2s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-panel{
  display:none;
  border-top: 1px solid var(--line);
  padding: 10px 0 14px;
}
.mobile-panel.open{ display:block; }
.mobile-panel .stack{ display:flex; flex-direction:column; gap: 8px; }
.mobile-panel a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration:none;
  font-weight: 800;
}
.mobile-panel a small{ color: var(--muted); font-weight: 650; }

/* Footer */
.site-footer{
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: rgba(7,10,18,.35);
}
.footer-inner{
  padding: 18px 0 26px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:start;
}
.footer-brand{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.footer-brand .logo{ width: 34px; height: 34px; }
.footer-brand strong{ display:block; font-size: 14px; letter-spacing: .2px; }
.footer-brand span{ color: var(--muted); font-size: 13px; line-height:1.55; }

.footer-links{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.footer-links a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(232,238,252,.92);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
}
.footer-links a small{ color: var(--muted); font-weight: 650; }
.footer-bottom{
  padding-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 980px){
  .footer-inner{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .nav{ display:none; }
  .burger{ display:flex; }
}
@media (max-width: 480px){
  .brand{ min-width: auto; }
  .brand-name span{ display:none; }
  .footer-links{ grid-template-columns: 1fr; }
}
