:root{
  --bg: #0b0d10;
  --card: #11151a;
  --text: #e8eef5;
  --muted: #9fb2c7;
  --brand: #2fd27a;
  --brand-2:#2fb7d2;
  --accent:#ffd166;
  --border:#1b2230;
  --link:#8ccaff;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.6}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:1.25rem}
.site-header{position:sticky;top:0;background:rgba(11,13,16,.8);backdrop-filter:saturate(180%) blur(8px);border-bottom:1px solid var(--border);z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:700}
.brand .logo{height:34px;width:34px}
.brand-text{letter-spacing:.3px}
.nav a{margin-left:1rem;color:var(--text);opacity:.9}
.nav a:hover{opacity:1}
.site-footer{border-top:1px solid var(--border);margin-top:3rem}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;color:var(--muted)}
.foot-links a{margin-left:1rem}

/* ---------- HERO SECTION ---------- */

.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:2rem;
  align-items:center;
  padding:2rem 0;
}
.hero-copy h1{font-size:clamp(2rem,4vw,3rem);margin:.2rem 0}
.tagline{color:var(--brand)}
.lede{color:var(--muted);max-width:60ch}
.cta{display:flex;gap:.75rem;margin:1rem 0 1.2rem}
.button{display:inline-block;border:1px solid var(--border);padding:.7rem 1rem;border-radius:.9rem;background:var(--card);color:var(--text)}
.button-primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));border:0;color:#00140b;font-weight:700}
.bullets{list-style:disc;margin-left:1.2rem;color:var(--muted)}

/* Optimized hero image styling */
.hero-art {
  display:flex;
  justify-content:center;
  align-items:center;
}
.hero-art .hero-img {
  width:100%;
  max-width:1200px;           /* fits nicely in the container */
  height:auto;
  aspect-ratio:16 / 9;        /* maintain 1920×1080 proportion */
  border:1px solid var(--border);
  border-radius:1rem;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  object-fit:cover;
  background:var(--card);
  display:block;
  margin:0 auto;
}

/* ---------- FEATURES & CARDS ---------- */

.features{margin-top:1rem}
.features h2{margin-bottom:.5rem}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1rem}
.feature-card{background:var(--card);border:1px solid var(--border);border-radius:1rem;padding:1rem}
.feature-card img{height:36px;width:36px;opacity:.95}
.feature-card h3{margin:.5rem 0}

.card{background:var(--card);border:1px solid var(--border);border-radius:1rem;padding:1rem;margin:1rem 0}
.legal h1,.support h1,.about h1{margin-top:.2rem}
.legal h2{margin-top:1.25rem}
details{background:var(--card);border:1px solid var(--border);border-radius:.7rem;padding:.7rem;margin:.5rem 0}
summary{cursor:pointer;font-weight:600}

.callout{margin-top:2rem;background:linear-gradient(180deg,#101521,#0b0d10);border:1px solid var(--border);border-radius:1rem;padding:1.2rem;text-align:center}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */

@media (max-width: 960px){
  .hero{grid-template-columns:1fr}
  .hero-art .hero-img{
    max-width:100%;
    aspect-ratio:auto;        /* let it grow vertically on narrow screens */
  }
  .feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 640px){
  .feature-grid{grid-template-columns:1fr}
  .nav{display:none}
}

/* ---------- MISC ---------- */

.grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid{grid-template-columns:1fr}}

.card img{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px
}
.card-alt h3 img{
  max-height:40px;
  width:auto;
  display:inline-block;
  vertical-align:middle;
  margin-right:.5rem;
  border:0;
  border-radius:6px;
}
.app_card{
  max-height:40px;
  width:auto;
  display:inline-block;
  vertical-align:middle;
  margin-right:.5rem;
  border:0;
  border-radius:6px;
}
.app_card h3 img{
  max-height:120px;
  height:auto;
  width:auto;
  max-width:120px;
  display:inline-block;
  vertical-align:middle;
  margin-right:.5rem;
}
a.button{
  display:inline-block;
  padding:.6rem .9rem;
  border-radius:10px;
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none
}
img.app-logo{
  width:50px;
  height:auto;
  display:inline-block;
}
.app-logo{
  max-height:40px;
  width:auto;
  display:inline-block;
  vertical-align:middle;
  margin-right:.5rem;
  border:0;
}
.card-alt2 h3 img.app-logo,
.app-logo{
  max-height:306px!important;
  height:auto!important;
  width:auto!important;
  max-width:306px!important;
  display:inline-block!important;
}

/* Screenshot grid thumbnails */
.screenshot-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:flex-start;
}
.screenshot-grid figure{
  flex:1 1 300px;
  max-width:360px;
  margin:0;
}
.screenshot-grid img{
  width:100%;
  height:auto;
  display:block;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  cursor:zoom-in;
}

/* Lightbox overlay for full-size screenshots */
.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,6,10,0.85);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.lightbox{
  position:relative;
  padding:1rem;
  max-width:95vw;
  max-height:95vh;
}
.lightbox img{
  display:block;
  max-width:100%;
  max-height:100%;
  height:auto;
  border-radius:8px;
  box-shadow:0 40px 120px rgba(0,0,0,.6);
}
.lightbox-close{
  position:absolute;
  top:.5rem;
  right:.5rem;
  background:rgba(255,255,255,0.06);
  color:var(--text);
  border:0;
  padding:.25rem .6rem;
  font-size:1.25rem;
  border-radius:6px;
  cursor:pointer;
}
