/* Clean, dark, professional */
:root{
  --bg: #070b14;
  --panel: rgba(255,255,255,.05);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --line: rgba(255,255,255,.10);
  --accent: #6ee7ff;
  --gold: #f7d46a;
  --green: #6cf0b7;
  --shadow: 0 12px 40px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(110,231,255,.15), transparent 60%),
              radial-gradient(1200px 700px at 80% 20%, rgba(247,212,106,.10), transparent 55%),
              linear-gradient(180deg, #050914, #060a12 55%, #050914);
}

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

.topbar{
  position: sticky;
  top:0;
  z-index:10;
  background: rgba(2,4,10,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:40px;height:40px;border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(110,231,255,.35), rgba(247,212,106,.25));
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
}
.brandname{font-weight:800}
.brandtag{color:var(--muted); font-size:12px; margin-top:2px}

.nav{display:flex; gap:18px; font-size:14px}
.nav a{color:var(--muted)}
.nav a:hover{color:var(--text)}

.wrap{max-width:1100px; margin:0 auto; padding:28px 18px 60px}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  padding:18px 0 12px;
  align-items:stretch;
}
@media (max-width: 920px){
  .hero{grid-template-columns: 1fr}
}

h1{font-size:44px; line-height:1.05; margin:0 0 10px}
@media (max-width: 600px){ h1{font-size:34px} }

.lede{color:var(--muted); font-size:16px; line-height:1.45; margin:0 0 14px}
.micro{color:var(--muted); font-size:12px; margin-top:10px}

.btn{
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  box-shadow: none;
}
.btn:hover{background: rgba(255,255,255,.10)}
.btn.primary{
  background: linear-gradient(135deg, rgba(110,231,255,.25), rgba(247,212,106,.20));
  border-color: rgba(255,255,255,.22);
}
.btn.ghost{background: transparent}
.btn.sm{padding:7px 10px; border-radius:10px; font-size:13px}
.ctaRow{display:flex; gap:10px; flex-wrap:wrap}

.card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
}

.heroCard{padding:14px}
.cover{
  width:100%;
  display:block;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.15);
}
.coverMeta{margin-top:10px}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  font-weight:700;
}
.sub{color:var(--muted); font-size:13px; margin-top:8px}

.section{padding:28px 0}
.section h2{margin:0 0 10px; font-size:26px}
.muted{color:var(--muted)}
.tiny{font-size:12px}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 900px){ .grid3{grid-template-columns:1fr} }
.card{padding:16px}
.card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted); line-height:1.45}

.thermoHeader{
  display:flex; gap:14px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap;
}
.pillRow{display:flex; gap:10px; flex-wrap:wrap}
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-size:13px;
}
.pill.green{border-color: rgba(108,240,183,.35); color: rgba(210,255,235,.95)}
.pill.gold{border-color: rgba(247,212,106,.35); color: rgba(255,244,211,.95)}

.viewer{padding:14px}
.viewerTop{
  display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  padding-bottom:10px; border-bottom:1px solid var(--line); margin-bottom:12px;
}
.viewerTitle{font-weight:700; color:rgba(255,255,255,.86)}
.viewerBtns{display:flex; gap:8px; flex-wrap:wrap}

.viewerStage{
  width:100%;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 280px;
}
#mainImage{
  width:100%;
  height:auto;
  max-height: 520px;
  object-fit: contain;
  display:block;
}

.thumbRail{
  margin-top:12px;
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:6px;
}
.thumbRail::-webkit-scrollbar{height:10px}
.thumbRail::-webkit-scrollbar-thumb{background: rgba(255,255,255,.18); border-radius:999px}

.thumb{
  flex:0 0 auto;
  width:130px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  position:relative;
}
.thumb img{
  width:100%;
  height:78px;
  object-fit: cover;
  display:block;
}
.thumb .cap{
  padding:8px 10px;
  font-size:12px;
  color:rgba(255,255,255,.80);
}
.thumb.active{
  outline:2px solid rgba(110,231,255,.55);
  border-color: rgba(110,231,255,.45);
}

.form{padding:16px}
label{display:block; font-size:13px; color:rgba(255,255,255,.82); margin:10px 0}
input, textarea{
  width:100%;
  margin-top:7px;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color:var(--text);
}
textarea{resize:vertical}

.row2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 700px){ .row2{grid-template-columns:1fr} }

.formFooter{display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:8px}
.hidden{display:none}

.footer{
  margin-top:18px;
  padding:16px 0 6px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  font-size:13px;
}

/* Lightbox */
.lightbox{position:fixed; inset:0; display:none; z-index:50}
.lightbox.show{display:block}
.lightboxBackdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
}
.lightboxPanel{
  position:absolute;
  inset: 22px;
  margin:auto;
  max-width: 1200px;
  max-height: calc(100vh - 44px);
  background: rgba(10,14,26,.92);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
@media (max-width: 700px){
  .lightboxPanel{inset: 12px}
}
.lightboxTop{
  display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
}
.lightboxStage{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.20);
}
#lbImage{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.lightboxHint{padding:10px 12px; border-top:1px solid var(--line)}
