:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --border: #e8ddca;
  --text: #2b2115;
  --muted: #8a775e;
  --accent: #b45309;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(180, 83, 9, 0.09), transparent 65%),
    radial-gradient(700px 460px at 88% 22%, rgba(217, 119, 6, 0.04), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

code, pre, kbd { font-family: var(--mono); }

img { max-width: 100%; display: block; }

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

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(180, 83, 9, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(180, 83, 9, 0.4);
}
.btn-small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: rgba(180, 83, 9, 0.5);
  box-shadow: 0 8px 28px rgba(180, 83, 9, 0.12);
}

/* Layout */

main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4.5rem 0 1rem; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(146, 120, 80, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 120, 80, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 25%, transparent 72%);
  pointer-events: none;
}

.hero > * { position: relative; }

.pill {
  display: inline-block;
  padding: 0.32rem 0.95rem;
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.07);
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}

.hero-logo {
  width: 230px;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 14px 44px rgba(180, 83, 9, 0.22));
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.accent {
  background: linear-gradient(90deg, #b45309, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 1.6rem;
}

.cta { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

.platforms { color: var(--muted); font-size: 0.9rem; margin: 1.2rem 0 3.2rem; }

.hero-shot { width: 100%; max-width: 880px; }

/* Clickable screenshots */

.shot-link { display: block; cursor: zoom-in; }

.shot-link .window { transition: transform 0.15s ease, border-color 0.15s ease; }

.shot-link:hover .window {
  transform: translateY(-3px);
  border-color: rgba(180, 83, 9, 0.45);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: rgba(24, 16, 8, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox:target { display: flex; }

.lightbox img {
  max-width: min(1400px, 96vw);
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.lightbox-backdrop { position: absolute; inset: 0; cursor: zoom-out; }

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.lightbox-close:hover { text-decoration: none; border-color: rgba(180, 83, 9, 0.5); }

/* Fake window frame */

.window {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 30px 80px rgba(88, 60, 25, 0.16),
    0 0 60px rgba(180, 83, 9, 0.05);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.window-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e4d8c2;
}
.window-bar span:first-child { background: #f66; }
.window-bar span:nth-child(2) { background: #fc3; }
.window-bar span:nth-child(3) { background: #4c4; }

.window-light { background: #f6f2e9; }

/* Why cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.5), transparent);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 83, 9, 0.4);
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.05rem 0.35rem;
  font-size: 0.85em;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.feature {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.1rem;
}
.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(180, 83, 9, 0.35);
  background: rgba(180, 83, 9, 0.07);
  border-radius: 9px;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.feature-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Screenshots gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem 1.4rem;
}

.gallery figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.7rem;
  text-align: center;
}

/* Shortcuts table */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(180, 83, 9, 0.06); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem;
     text-transform: uppercase; letter-spacing: 0.06em; }

kbd {
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.1rem 0.45rem;
  font-size: 0.82em;
  white-space: nowrap;
}

/* Install & build from source */

.pill-version { color: #b45309; }

#install h3, #source h3 { margin: 1.6rem 0 0.6rem; font-size: 1.05rem; }
#install ul, #source ul { margin: 0 0 0.6rem 1.2rem; color: var(--muted); }
#install .install-lead, #source .install-lead { color: var(--muted); }

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 1rem;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.download:hover {
  text-decoration: none;
  border-color: rgba(180, 83, 9, 0.55);
  transform: translateY(-2px);
}
.dl-os { font-weight: 600; }
.dl-meta { color: var(--muted); font-size: 0.85rem; }

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  margin: 0 0 1rem;
}
.note {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
}
.note strong { display: block; color: var(--text); margin-bottom: 0.15rem; }

.flatpak-panel {
  border-color: rgba(180, 83, 9, 0.4);
  background:
    linear-gradient(rgba(180, 83, 9, 0.05), rgba(180, 83, 9, 0.05)),
    var(--surface);
  margin: 1.4rem 0 1rem;
}
.flatpak-panel p { margin-bottom: 0.2rem; }
.flatpak-panel pre { margin: 0.6rem 0 0.2rem; }

.fine {
  color: var(--muted);
  font-size: 0.88rem;
}

pre {
  background: #2b2118;
  border: 1px solid #43351f;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.92rem;
  margin: 0.6rem 0 1rem;
  color: #f3ead9;
}

/* Footer */

footer {
  margin-top: 5rem;
  padding: 2.4rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-logo { width: 44px; margin: 0 auto 0.8rem; opacity: 0.9; }
footer p + p { margin-top: 0.4rem; }

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .shot-link .window { transition: none; }
  .btn:hover, .card:hover, .shot-link:hover .window { transform: none; }
}

/* Responsive */

@media (max-width: 880px) {
  html { scroll-padding-top: 10.5rem; }
  .hero-logo { width: 180px; }
  .gallery { grid-template-columns: 1fr; }
  section { padding-top: 3.2rem; }
  #shortcuts table {
    display: block;
    overflow-x: auto;
  }
}
