/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg-base:       #0f0f0f;
  --bg-surface:    #1a1a1a;
  --bg-elevated:   #242424;
  --bg-hover:      #2e2e2e;
  --border:        #363636;
  --text-primary:  #f0f0f0;
  --text-secondary:#c8c8c8;
  --text-muted:    #909090;
  --accent:        #4a7c59;
  --accent-bright: #5c9e6e;
  --accent-dim:    #2d4d37;
  --accent-text:   #b8e8c8;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:     0 6px 16px rgba(0,0,0,0.45);
  --shadow-lg:     0 14px 34px rgba(0,0,0,0.55);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --site-width:    1220px;
  --nav-height:    64px;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(74,124,89,0.18), transparent 22%),
    linear-gradient(180deg, #111 0%, #0f0f0f 30%, #0d0d0d 100%);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img    { max-width: 100%; display: block; }
a      { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul     { margin: 0; padding-left: 20px; }
p      { margin: 0; }

/* ── Layout ────────────────────────────────────────────────── */
.site-shell {
  width: min(calc(100% - 32px), var(--site-width));
  margin: 0 auto;
}

/* ── Navigation ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-height);
  margin: 12px 0 0;
  padding: 0 20px;
  background: rgba(20,20,20,0.72);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.04rem;
  flex-shrink: 0;
}

.brand img,
.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.topbar-links > a:not(.btn) {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.topbar-links > a:not(.btn):hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-bottom: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 48px;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero-text {
  color: var(--text-secondary);
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta-subtext {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.9rem;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.meta-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.87rem;
}

.meta-pill-version {
  background: rgba(45,77,55,0.55);
  border-color: rgba(184,232,200,0.28);
  color: var(--accent-text);
  font-weight: 700;
}

.hero-shot {
  background: linear-gradient(180deg, rgba(36,36,36,0.97), rgba(22,22,22,0.97));
}

.hero-shot img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ── Eyebrow label ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(184,232,200,0.22);
  background: rgba(45,77,55,0.55);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: rgba(26,26,26,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.card-elevated {
  background: rgba(26,26,26,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: 56px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.highlight-copy h2,
.download-panel h2,
.support-card h2 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-heading p,
.highlight-copy p,
.download-panel p,
.support-card p {
  color: var(--text-secondary);
  max-width: 64ch;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Feature grid ──────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.feature-card ul {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.feature-card li + li {
  margin-top: 8px;
}

/* ── Highlight band ────────────────────────────────────────── */
.highlight-band {
  padding: 40px 0;
}

.highlight-grid-polished {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stat-row-vertical {
  margin-top: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-row-vertical .stat {
  justify-content: center;
  min-height: 120px;
}

.stat strong {
  font-size: 1.3rem;
  color: var(--accent-text);
}

.stat span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ── Wizard gallery ────────────────────────────────────────── */
.wizard-gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: linear-gradient(180deg, rgba(23,23,23,0.98), rgba(15,15,15,0.98));
}

.wizard-card {
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--text-primary);
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.wizard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92,158,110,0.75);
  box-shadow: 0 0 0 1px rgba(92,158,110,0.22), var(--shadow-md);
}

.wizard-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wizard-card span {
  display: block;
  padding: 12px 14px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── Carousel ──────────────────────────────────────────────── */
.carousel {
  background: linear-gradient(180deg, rgba(28,28,28,0.98), rgba(16,16,16,0.98));
}

.carousel-stage {
  position: relative;
}

.carousel-main {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.carousel-main img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(12,12,12,0.82);
  color: var(--text-primary);
  z-index: 2;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: background 0.18s, border-color 0.18s;
}

.carousel-arrow:hover {
  background: rgba(32,32,32,0.95);
  border-color: rgba(92,158,110,0.55);
}

.carousel-arrow-left  { left: 14px; }
.carousel-arrow-right { right: 14px; }

.carousel-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 18px 4px 4px;
}

.carousel-meta h3 {
  margin: 12px 0 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -0.02em;
}

.carousel-meta p {
  color: var(--text-secondary);
  max-width: 68ch;
  margin-top: 10px;
  font-size: 0.98rem;
}

.carousel-status-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 160px;
  flex-shrink: 0;
}

.carousel-count {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.18);
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
}

.carousel-dot.active {
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(92,158,110,0.14);
  transform: scale(1.15);
}

/* ── Download panel ────────────────────────────────────────── */
.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.install-step {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.install-step strong {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(74,124,89,0.18);
  border: 1px solid rgba(92,158,110,0.28);
  color: var(--accent-text);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-actions-stack {
  min-width: 200px;
  flex-direction: column;
  align-items: stretch;
}

/* ── Support ───────────────────────────────────────────────── */
.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.support-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
}

.support-text  { max-width: 760px; }
.support-action { display: flex; align-items: center; flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  font-size: 0.95rem;
}

.footer-brand span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: color 0.15s, background 0.15s;
}

.footer-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
  text-decoration: none;
}

.btn:hover  { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.btn-coffee {
  background: linear-gradient(135deg, #3f7f59, #2f5d42);
  color: #fff;
  border-color: rgba(184,232,200,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.btn-coffee:hover {
  background: linear-gradient(135deg, #4b9568, #397250);
  box-shadow: 0 12px 26px rgba(0,0,0,0.36);
}

.btn-coffee-compact {
  padding-inline: 14px;
  min-height: 40px;
  font-size: 0.88rem;
}

.coffee-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  width: min(1240px, calc(100% - 28px));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(18,18,18,0.98);
  color: var(--text-primary);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.lightbox::backdrop {
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(4px);
}

.lightbox-close-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover { background: var(--bg-hover); }

.lightbox-content h3 {
  margin: 6px 0 12px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid,
  .highlight-grid-polished,
  .download-panel,
  .support-card,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid,
  .stat-row,
  .wizard-gallery {
    grid-template-columns: 1fr;
  }

  .carousel-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-status-row,
  .carousel-dots {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .download-actions-stack {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--site-width));
  }

  /* On mobile keep it simple — static so it doesn't eat into the small viewport */
  .topbar {
    position: static;
    top: auto;
    border-radius: var(--radius-lg);
    margin: 12px 0;
  }

  .topbar-links {
    width: 100%;
    justify-content: flex-end;
  }

  .hero { padding-bottom: 32px; }
  .hero-grid { padding-top: 16px; gap: 20px; }
  .section  { padding: 36px 0; }

  .card,
  .card-elevated { padding: 16px; }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .carousel-arrow-left  { left: 8px; }
  .carousel-arrow-right { right: 8px; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
