/* QHItech Demo Site — Static ZIP (FASE 1 compatible)
   - No external deps
   - Responsive
   - Works with header/footer partials via JS includes
*/
:root{
  --bg0:#060B16;
  --bg1:#070F22;
  --panel:#0B1430;
  --panel2:#0E1B3F;
  --text:#EAF0FF;
  --muted:#A9B5DA;
  --muted2:#7E89B0;
  --line:rgba(255,255,255,.08);
  --brand1:#7C8CFF;
  --brand2:#3BE6FF;
  --ok:#54FFD6;
  --warn:#FFD36E;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:26px;
  --max:1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 5%, rgba(124,140,255,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(59,230,255,.20), transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg0));
  line-height:1.45;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:rgba(0,0,0,.8); border:1px solid var(--line);
  border-radius:12px; z-index:9999;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,15,34,.62);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{ height:38px; width:auto; display:block; }
.nav{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nav a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color:var(--line);
  background: rgba(255,255,255,.03);
}
.nav a.is-active{
  color:var(--text);
  background: rgba(124,140,255,.14);
  border-color: rgba(124,140,255,.25);
}
.actions{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,.06); }
.btn.primary{
  border-color: rgba(124,140,255,.35);
  background: linear-gradient(90deg, rgba(124,140,255,.28), rgba(59,230,255,.18));
}
.btn.primary:hover{
  background: linear-gradient(90deg, rgba(124,140,255,.35), rgba(59,230,255,.24));
}

.hero{
  position:relative;
  padding:64px 0 30px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset: -40px -40px auto -40px;
  height: 440px;
  background:
    radial-gradient(700px 260px at 30% 50%, rgba(124,140,255,.18), transparent 70%),
    radial-gradient(520px 280px at 80% 20%, rgba(59,230,255,.14), transparent 70%),
    url("../img/hero-stars.svg");
  background-size: auto, auto, cover;
  background-position: center, center, center;
  border-bottom:1px solid var(--line);
  filter:saturate(1.1) contrast(1.05);
  opacity:.95;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:24px;
  align-items:end;
}
@media (max-width: 900px){
  .hero-inner{ grid-template-columns:1fr; }
}
.h-title{
  font-size: clamp(30px, 3.2vw, 48px);
  line-height:1.1;
  margin:0 0 14px;
  letter-spacing: -0.02em;
}
.h-sub{
  margin:0 0 18px;
  color:var(--muted);
  font-size: 16px;
  max-width: 62ch;
}
.hero-cta{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
}
.kpi{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
@media (max-width: 520px){
  .kpi{ grid-template-columns:1fr; }
}
.kpi .box{
  border:1px solid var(--line);
  background: rgba(11,20,48,.55);
  border-radius: 16px;
  padding:12px 12px;
}
.kpi .n{
  font-weight:800;
  font-size:16px;
}
.kpi .l{
  color:var(--muted);
  font-size:12px;
}

.panel{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,20,48,.72), rgba(11,20,48,.48));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.panel h3{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.02em;
}
.panel p{ margin:0; color:var(--muted); }

.section{
  padding: 26px 0 56px;
}
.section-head{
  display:flex; align-items:end; justify-content:space-between; gap:18px;
  margin-bottom:18px;
}
.section-title{
  font-size: 20px;
  margin:0;
}
.section-note{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--line);
  background: rgba(11,20,48,.55);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  min-height: 100%;
}
.card img{
  width:100%; height: 160px; object-fit:cover; display:block;
  background: rgba(255,255,255,.02);
}
.card .body{ padding:14px 14px 16px; display:flex; flex-direction:column; gap:10px; }
.card h4{ margin:0; font-size:16px; }
.card p{ margin:0; color:var(--muted); font-size:13px; }
.card .meta{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:auto;
}
.price{
  display:flex; flex-direction:column;
}
.price .from{ font-size:11px; color:var(--muted2); }
.price .val{ font-weight:800; letter-spacing:-0.01em; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  color:var(--text);
  background: rgba(255,255,255,.03);
  font-size:12px;
}
.dot{
  width:8px; height:8px; border-radius:99px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 0 4px rgba(124,140,255,.12);
}

.footer{
  border-top:1px solid var(--line);
  background: rgba(7,15,34,.6);
  padding: 30px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns:1fr; }
}
.footer .small{ color:var(--muted); font-size:13px; }
.footer a{ color:var(--muted); }
.footer a:hover{ color:var(--text); }

.subpage-hero{
  padding: 34px 0 12px;
}
.subpage-hero h1{ margin:0 0 10px; font-size: clamp(24px, 2.4vw, 34px); }
.subpage-hero p{ margin:0; color:var(--muted); max-width: 70ch; }

.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top: 18px;
}
@media (max-width: 900px){ .feature-grid{ grid-template-columns:1fr; } }
.feature{
  border:1px solid var(--line);
  background: rgba(11,20,48,.45);
  border-radius: 18px;
  padding:14px;
}
.feature .t{ font-weight:800; margin-bottom:6px; }
.feature .d{ color:var(--muted); font-size:13px; }
