:root{
  --bg:#071428;
  --bg2:#0b1d36;
  --panel:#132b4f;
  --panel2:#1a2f57;
  --line:rgba(255,255,255,0.08);
  --text:#eaf1ff;
  --muted:#9fb5d9;
  --accent:#f97316;
  --radius:18px;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,var(--bg),#08182f);
  color:var(--text);
}

a{
  color:#cfe0ff;
  text-decoration:none;
}

a:hover{
  color:#fff;
}

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

/* HEADER */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(11,29,54,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}

.site-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:72px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
  min-width:0;
}

.brand:hover{
  color:#fff;
}

.brand-badge{
  width:48px;
  height:48px;
  min-width:48px;
  min-height:48px;
  flex-shrink:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--accent),#fb923c);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:900;
  font-size:22px;
}

.brand-copy{
  min-width:0;
}

.brand-title{
  font-weight:800;
  font-size:18px;
  line-height:1.05;
}

.brand-subtitle{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.2;
}

/* NAV */

.nav{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}

.nav a{
  color:#dce8ff;
  font-weight:700;
}

.nav a:hover{
  color:#fff;
}

.nav-outline{
  padding:8px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}

.desktop-nav{
  display:flex;
}

/* VIEW TOGGLE */

.view-toggle,
.mobile-view-toggle{
  display:flex;
  gap:6px;
  margin-left:8px;
}

.view-toggle-btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:#dce8ff;
  font-weight:700;
  font-size:13px;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
}

.view-toggle-btn:hover{
  background:rgba(255,255,255,.08);
}

.view-toggle-btn.active{
  background:#2563eb;
  color:#fff;
}

/* MOBILE MENU */

.mobile-menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  border-radius:12px;
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-shrink:0;
}

.mobile-menu-toggle span{
  width:18px;
  height:2px;
  background:#fff;
  display:block;
  transition:all .18s ease;
}

.mobile-menu-toggle.open span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2){
  opacity:0;
}

.mobile-menu-toggle.open span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

.mobile-nav-wrap{
  display:none;
  padding-bottom:14px;
}

.mobile-nav-wrap.open{
  display:block;
}

.mobile-nav{
  display:grid;
  gap:10px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.mobile-nav a{
  padding:12px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  color:#dce8ff;
  font-weight:700;
}

.mobile-nav a:hover{
  background:rgba(255,255,255,.08);
}

/* PAGE */

.page-shell{
  padding:26px 0 40px;
}

.page-header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}

.page-header h1{
  margin:0;
  font-size:32px;
}

.subtitle{
  color:var(--muted);
}

.small{
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}

/* HERO */

.hero{
  padding:10px 0 20px;
}

.hero h1{
  font-size:40px;
  font-weight:800;
  margin:0 0 14px;
  line-height:1.12;
}

.hero p{
  max-width:760px;
  color:#d7e3fa;
  line-height:1.6;
}

.hero-actions{
  display:flex;
  justify-content:center;
  margin-top:24px;
  margin-bottom:40px;
}

.hero-buttons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}

/* BUTTONS */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  border:0;
}

.btn.orange{
  background:var(--accent);
  color:#fff;
}

.btn.orange:hover{
  background:#fb923c;
}

.btn.dark{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:#fff;
}

.btn.small{
  padding:9px 12px;
  font-size:13px;
}

/* PANELS / CARDS */

.panel,
.card{
  background:linear-gradient(180deg, rgba(19,43,79,.96), rgba(12,29,56,.98));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}

.panel{
  padding:20px;
}

.card{
  padding:18px;
}

/* GRID */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  margin:22px 0 10px;
}

/* FORMS */

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:700;
}

input,
select,
textarea{
  width:100%;
  background:rgba(255,255,255,.05);
  color:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  margin-bottom:14px;
}

textarea{
  min-height:120px;
}

/* SELECT FIX */

select{
  background:#1c2f52;
  color:#fff;
}

select option{
  background:#fff;
  color:#000;
}

/* TABLES */

.compare{
  width:100%;
  border-collapse:collapse;
  margin-top:18px;
}

.compare th,
.compare td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.compare th{
  font-size:12px;
  text-transform:uppercase;
  color:#9fb5d9;
}

/* ALERTS */

.notice,
.error{
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:14px;
  border:1px solid var(--line);
}

.notice{
  background:rgba(34,197,94,.12);
}

.error{
  background:rgba(239,68,68,.12);
}

/* FOOTER */

.footer{
  margin-top:60px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,#0b1d36,#071428);
  padding:40px 0;
}

.footer-inner{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:40px;
}

.footer p{
  color:var(--muted);
  line-height:1.6;
}

.footer a{
  color:#9fb5d9;
}

.footer a:hover{
  color:#fff;
}

.footer .logo{
  width:34px;
  height:34px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),#fb923c);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

/* MOBILE PREVIEW MODE */

.force-mobile-view .container{
  width:min(430px, calc(100% - 20px));
}

.force-mobile-view .desktop-nav{
  display:none;
}

.force-mobile-view .mobile-menu-toggle{
  display:flex;
}

.force-mobile-view .site-header-inner{
  min-height:68px;
}

.force-mobile-view .brand{
  gap:10px;
}

.force-mobile-view .brand-badge{
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  font-size:18px;
  border-radius:12px;
}

.force-mobile-view .brand-title{
  font-size:16px;
}

.force-mobile-view .brand-subtitle{
  font-size:11px;
}

.force-mobile-view .grid,
.force-mobile-view .stats{
  grid-template-columns:1fr;
}

.force-mobile-view .form-row{
  grid-template-columns:1fr;
}

.force-mobile-view .footer-inner{
  grid-template-columns:1fr;
  width:min(430px, calc(100% - 20px));
}

.force-mobile-view .hero h1{
  font-size:30px;
  line-height:1.12;
}

.force-mobile-view .hero p{
  line-height:1.7;
}

.force-mobile-view .hero-buttons{
  flex-direction:column;
  width:100%;
  max-width:340px;
  margin:0 auto;
}

.force-mobile-view .hero-buttons .btn{
  width:100%;
}

.force-mobile-view .page-header{
  flex-direction:column;
}

/* RESPONSIVE */

@media (max-width:900px){
  .desktop-nav{
    display:none;
  }

  .mobile-menu-toggle{
    display:flex;
  }

  .container{
    width:min(100% - 20px, 1180px);
  }

  .site-header-inner{
    min-height:68px;
  }

  .brand-badge{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    font-size:18px;
    border-radius:12px;
  }

  .brand-title{
    font-size:16px;
  }

  .brand-subtitle{
    font-size:11px;
  }

  .hero h1{
    font-size:30px;
  }

  .form-row{
    grid-template-columns:1fr;
  }

  .grid,
  .stats{
    grid-template-columns:1fr;
  }

  .footer-inner{
    width:min(100% - 20px, 1180px);
    grid-template-columns:1fr;
  }
}