/* ============================================================
   EasyDeploy — Modern static site
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-2: #0f1830;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --ink: #0c1525;
  --ink-2: #2a3447;
  --muted: #5b6679;
  --line: #e6eaf2;
  --brand: #3b82f6;
  --brand-2: #2563eb;
  --brand-ink: #ffffff;
  --accent: #22d3ee;
  --good: #10b981;
  --warn: #f59e0b;
  --paypal: #ffc439;
  --paypal-ink: #111;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, .18);
  --container: 1140px;
  --gap: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f1726;
    --surface-alt: #0b1220;
    --ink: #e6ecf5;
    --ink-2: #c5cee0;
    --muted: #8a96ad;
    --line: #1f2a40;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 6px 16px rgba(0,0,0,.45);
    --shadow-lg: 0 24px 48px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Sharp corners on all images, everywhere — no exceptions */
img, picture, svg, video,
.brand img,
.hero-art img,
.card-image,
.card-image img,
.gallery-item,
.gallery-item img,
.lightbox img {
  border-radius: 0 !important;
}

/* Crisp image rendering across all images. Containers always constrain. */
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast; /* perceived sharpness boost in Chrome/Safari */
  -ms-interpolation-mode: bicubic;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }
a  { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: white; padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; z-index: 1000; }

/* ============================================================
   Header / Nav — single source of truth
   Desktop (>= 821px): brand left, links right. Hamburger and overlay hidden.
   Mobile  (<= 820px): brand left, hamburger right. Links hidden. Overlay opens via JS.
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(15, 23, 38, .85); }
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 700; font-size: 1rem; color: var(--ink); }
.brand-text em { font-style: normal; color: var(--muted); font-size: .78rem; }

/* ---------- Desktop nav ---------- */
.desktop-nav {
  display: flex; align-items: center; gap: 28px;
}
.desktop-nav a {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  text-decoration: none; padding: 6px 0;
  transition: color .15s ease;
}
.desktop-nav a:hover { color: var(--brand); }
.desktop-nav a.nav-cta {
  background: var(--brand); color: #fff;
  padding: 10px 18px;
  font-weight: 600;
}
.desktop-nav a.nav-cta:hover { background: var(--brand-2); color: #fff; }

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  background: none; border: 1px solid var(--line);
  width: 44px; height: 44px; padding: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  transition: background .15s ease;
}
.hamburger:hover { background: var(--surface-alt); }
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile overlay menu ---------- */
.mobile-menu {
  /* Off-screen by default — class swap (.is-open) shows it */
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--surface);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .25s ease, visibility 0s linear 0s;
}

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.mobile-menu-close {
  background: none; border: 1px solid var(--line);
  width: 44px; height: 44px; font-size: 26px; line-height: 1;
  color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.mobile-menu-close:hover { background: var(--surface-alt); }

.mobile-menu-links {
  display: flex; flex-direction: column;
  padding: 12px 20px 32px;
}
.mobile-menu-links a {
  color: var(--ink);
  padding: 18px 4px;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .15s ease, padding-left .15s ease;
}
.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible { color: var(--brand); padding-left: 8px; }
.mobile-menu-links a.mobile-cta {
  margin-top: 24px;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 16px 20px;
  border-bottom: 0;
  font-weight: 700;
}
.mobile-menu-links a.mobile-cta:hover { background: var(--brand-2); padding-left: 20px; }

/* Lock body scroll when overlay open */
body.menu-open { overflow: hidden; }

/* ---------- Responsive switch ---------- */
@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .hamburger   { display: flex; }
}
@media (min-width: 821px) {
  .mobile-menu { display: none; } /* Never present on desktop, period. */
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: var(--ink-2); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); }
.btn-block { display: flex; width: 100%; }
.btn-paypal { background: var(--paypal); color: var(--paypal-ink); border: 0; }
.btn-paypal:hover { background: #f0b929; color: var(--paypal-ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(800px 400px at -10% 10%, rgba(34,211,238,.16), transparent 60%),
    linear-gradient(180deg, var(--surface-alt) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
  padding: 72px 20px;
}
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-2); font-weight: 700; margin: 0 0 14px;
  background: rgba(59,130,246,.1); padding: 6px 10px; border-radius: 999px;
}
.lede { font-size: 1.15rem; max-width: 56ch; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px; }
.hero-stats {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap; color: var(--muted); font-size: .9rem;
}
.hero-stats span { display: block; color: var(--ink); font-weight: 700; font-size: 1.15rem; }

.hero-art {
  display: flex; justify-content: center; align-items: center;
}
.hero-art {
  width: 100%;
  display: flex; justify-content: center; align-items: center;
}
.hero-art img {
  max-width: 100%;
  width: auto;
  height: auto;
  box-shadow: var(--shadow-lg);
  /* No rotation/scale transforms — they cause subpixel blur on screenshots. */
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 20px; gap: 32px; text-align: left; }
  .hero-art { order: -1; }
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, #0b1220 0%, #1e3a8a 100%);
  color: #fff;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px 20px;
}
.cta-band h2 { color: #fff; margin-bottom: 4px; }
.cta-band p { color: #c8d4ea; margin: 0; }
@media (max-width: 700px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 8px; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* ============================================================
   Cards / lists
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card-image {
  padding: 8px;
  overflow: hidden;
  background: var(--surface);
  display: flex; justify-content: center; align-items: center;
}
.card-image img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

.subhead { margin-top: 24px; color: var(--ink); font-size: 1rem; }

ul.ticked { list-style: none; padding: 0; margin: 0; }
ul.ticked li {
  position: relative; padding: 6px 0 6px 28px; color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
ul.ticked li:last-child { border-bottom: 0; }
ul.ticked li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 14px; height: 14px; border-radius: 50%;
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: inset 0 0 0 3px var(--surface);
}
ul.ticked.subtle li::before {
  background: linear-gradient(135deg, var(--muted) 0%, #9aa3b7 100%);
}
ul.ticked em { color: var(--muted); font-style: normal; font-size: .85rem; }

/* ============================================================
   Donate
   ============================================================ */
.donate-form { display: flex; align-items: center; }

/* ============================================================
   Download section
   ============================================================ */
.section-download {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(34,211,238,.10), transparent 60%),
    var(--surface-alt);
}
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: .92rem;
  color: var(--ink-2);
}
.disclaimer h4 { margin: 0 0 8px; color: var(--warn); letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.disclaimer p { margin: 8px 0; }

.downloads {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 820px) { .downloads { grid-template-columns: 1fr; } }

.dl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.dl-card h3 { margin-top: 0; }
.dl-card .btn { margin: 12px 0; }
.dl-note { color: var(--muted); font-size: .88rem; margin: 0; }

.ad-slot {
  text-align: center; margin: 28px 0;
  min-height: 110px; display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Screenshots gallery
   ============================================================ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative; display: block; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); border-color: var(--brand); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: contain;          /* Show the whole screenshot, no cropping */
  object-position: center;
  display: block;
  padding: 8px;                  /* Breathing room so contained images don't kiss the border */
  background: var(--surface);
}
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 14, 28, .85) 100%);
  pointer-events: none;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; background: rgba(7, 14, 28, .92);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 95vw; max-height: 90vh; text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 0; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #c8d4ea; margin-top: 14px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  width: 44px; height: 44px; font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease;
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg);
  color: #c8d4ea;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.site-footer strong { color: #fff; font-size: 1.15rem; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer a { color: #c8d4ea; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-bottom { padding-top: 24px; font-size: .85rem; color: #8a96ad; }
.footer-bottom p { margin: 0; }
