:root {
  --bg: #080e12;
  --surface: #0d1519;
  --surface-alt: #121e23;
  --border: #1e2b31;
  --text: #e9f2f1;
  --dim: #9bb3b0;
  --faint: #6a8582;
  --accent: #2dd4bf;
  --accent-2: #0891b2;
  --kofi: #ff5e5b;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans", "Cantarell", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code, pre {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, 5vw);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.nav nav {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--dim);
}

.nav nav a { color: var(--dim); }
.nav nav a:hover { color: var(--text); }

.nav-gh {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 84px max(24px, 5vw) 72px;
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(45, 212, 191, 0.20), transparent 70%),
    radial-gradient(500px 280px at 80% 10%, rgba(8, 145, 178, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-copy { position: relative; }

.pill {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), #5eead4 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 46ch;
  color: var(--dim);
  font-size: 1.02rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); color: inherit; }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(45, 212, 191, 0.75);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn.ghost:hover { border-color: var(--accent); }

.btn.kofi {
  background: rgba(255, 94, 91, 0.12);
  border-color: rgba(255, 94, 91, 0.4);
  color: #ffb4b3;
}

.btn.kofi:hover { background: rgba(255, 94, 91, 0.2); color: #fff; }

.btn.kofi.big { font-size: 1rem; padding: 14px 26px; }

.fineprint {
  color: var(--faint);
  font-size: 0.82rem;
}

.hero-shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

/* ------------------------------------------------------------- sections */

.section {
  padding: 72px max(24px, 5vw);
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 62ch;
  color: var(--dim);
  margin: 0 0 32px;
}

.shots {
  display: grid;
  gap: 22px;
}

.shots figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shots img { display: block; width: 100%; }

.shots figcaption {
  padding: 14px 18px;
  color: var(--dim);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.shots figcaption strong { color: var(--text); }

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

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
}

.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--dim); font-size: 0.92rem; }

.card code {
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 6px;
}

/* -------------------------------------------------------------- install */

.install-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.install-block {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.install-block h3 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-block p { color: var(--dim); font-size: 0.9rem; margin: 0 0 14px; }

.tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
}

pre {
  margin: 0;
  padding: 14px 16px;
  background: #0b0b12;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  color: #c9c9dd;
}

/* -------------------------------------------------------------- support */

.support { padding-top: 0; }

.support-card {
  padding: 40px;
  border-radius: 22px;
  border: 1px solid rgba(255, 94, 91, 0.25);
  background:
    radial-gradient(500px 200px at 15% 0%, rgba(255, 94, 91, 0.12), transparent 70%),
    var(--surface);
  text-align: center;
}

.support-card h2 { margin-top: 0; }

.support-card p {
  max-width: 58ch;
  margin: 0 auto 22px;
  color: var(--dim);
}

/* --------------------------------------------------------------- footer */

footer {
  padding: 34px max(24px, 5vw) 48px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.88rem;
  text-align: center;
}

footer a { color: var(--text); }
footer .fineprint { margin-top: 10px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }
  .nav nav a:not(.nav-gh) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
