:root{
  --bg:#070A10;
  --panel:#0B1020;
  --panel2:#0A0F1C;
  --border:rgba(255,255,255,.08);
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --muted2:rgba(234,240,255,.55);

  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);

  --radius: 18px;
  --radius2: 14px;

  --cta1:#6D5BFF;
  --cta2:#2F8CFF;
  --cta3:#19D3C5;
  --focus: 0 0 0 4px rgba(109,91,255,.18), 0 0 0 1px rgba(255,255,255,.10) inset;
}

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

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);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(109,91,255,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(47,140,255,.14), transparent 55%),
    radial-gradient(800px 600px at 65% 110%, rgba(25,211,197,.10), transparent 60%),
    linear-gradient(180deg, #060813 0%, #05070F 55%, #04060C 100%);
  letter-spacing: .2px;
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1120px; margin:0 auto; padding: 0 22px; }

/* -------------------------------------------------
   Shared Top Bar (supports BOTH existing .topbar AND injected .lx-topbar)
   ------------------------------------------------- */

/* Existing topbar (kept) */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,10,16,.58);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
  gap: 12px;
}

/* New injected topbar (nav.js) */
.lx-topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 18px;
  backdrop-filter: blur(14px);
  background: rgba(7,10,16,.58);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Brand (shared) */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  text-decoration: none;
  color: inherit;
}

.brand-mark{
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
}

/* Support both: .brand .name (old) and .brand-name (new) */
.brand .name,
.brand-name{
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Nav containers */
.nav-actions,
.lx-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Existing nav-links (kept) */
.nav-links{
  display:flex;
  gap: 14px;
  align-items:center;
  color: rgba(234,240,255,.78);
  font-size: 13px;
}
.nav-links a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.92);
}

/* New nav links style (nav.js uses .navlink) */
.lx-nav{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
}

.navlink{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(234,240,255,.78);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

.navlink:hover{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.92);
}

.navlink.active{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(234,240,255,.95);
}

/* Utility used by nav.js */
.is-hidden{ display:none !important; }

/* -------------------------------------------------
   Buttons
   ------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:44px;
  padding:0 16px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:650;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(0px); }
.btn:focus-visible{ outline:none; box-shadow: var(--focus); }

.btn-primary{
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(109,91,255,.92), rgba(47,140,255,.85));
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(109,91,255,.98), rgba(47,140,255,.92));
  box-shadow: 0 22px 48px rgba(0,0,0,.42);
}

/* Optional: ghost button (nav.js can use btn btn-ghost) */
.btn-ghost{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(234,240,255,.88);
}
.btn-ghost:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

/* Hero */
.hero{ padding: 64px 0 36px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

.headline{
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
  font-weight: 720;
}
.subtext{
  margin: 0 0 22px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.hero-card h3{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .3px;
  color: rgba(234,240,255,.9);
}
.hero-card p{
  margin: 0;
  color: var(--muted2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Pills */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(234,240,255,.78);
  font-size: 12.5px;
  margin-bottom: 12px;
}
.dot{
  width:8px; height:8px; border-radius: 50%;
  background: rgba(25,211,197,.95);
  box-shadow: 0 0 0 3px rgba(25,211,197,.12);
}

/* Section */
.section{ padding: 34px 0; }
.section-title{
  margin:0 0 14px;
  font-size: 13px;
  letter-spacing: .7px;
  color: rgba(234,240,255,.62);
  text-transform: uppercase;
}

.value-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
  min-height: 122px;
}
.card h4{
  margin:0 0 8px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: .2px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* OS Module Grid */
.modules{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.module{
  display:block;
  padding: 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.module:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.module h4{ margin:0 0 6px; font-size:14px; font-weight:700; }
.module p{ margin:0; color: var(--muted); font-size:13px; line-height:1.55; }
.module .tag{
  display:inline-flex;
  margin-top: 10px;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(234,240,255,.78);
  background: rgba(255,255,255,.03);
}

/* How it works */
.how{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.num{
  width:28px;
  height:28px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  background: rgba(109,91,255,.14);
  border:1px solid rgba(109,91,255,.20);
  color: rgba(234,240,255,.92);
  flex: 0 0 auto;
}
.step h5{ margin:0 0 5px; font-size: 14.5px; font-weight: 680; }
.step p{ margin:0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Footer */
footer{
  padding: 40px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 22px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(234,240,255,.72);
  font-size: 13px;
}
.footer-links a:hover{ color: rgba(234,240,255,.92); }
.copyright{
  color: rgba(234,240,255,.55);
  font-size: 13px;
}

/* Ensure background FX never block clicks */
.bg, .bg * ,
.glow, .glow * ,
.backdrop, .backdrop * ,
.fx, .fx * {
  pointer-events: none !important;
}

/* Ensure top nav always stays above everything */
.topbar, .lx-topbar, header, nav{
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .value-grid{ grid-template-columns: 1fr; }
  .modules{ grid-template-columns: 1fr; }
  .how{ grid-template-columns: 1fr; }
  .topbar-inner{ height: 68px; }
  .lx-topbar{ padding: 12px 14px; }
  .brand{ min-width: auto; }
}
