:root {
  --bg: #f6f3ee;
  --bg-soft: #efe9e0;
  --mist: #eadfd4;
  --accent: #3e8cc4;
  --accent-deep: #2870a5;
  --ink: #1c2e42;
  --ink-soft: #5a6b7d;
  --card: #fffdf9;
  --radius: 18px;
  --shadow: 0 18px 45px -18px rgba(28, 46, 66, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  z-index: -1;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-a {
  width: 46vw; height: 46vw;
  top: -14vw; right: -12vw;
  background: radial-gradient(circle, #bcd9ee 0%, transparent 70%);
}
.blob-b {
  width: 40vw; height: 40vw;
  bottom: -16vw; left: -12vw;
  background: radial-gradient(circle, var(--mist) 0%, transparent 70%);
  animation-delay: -11s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 3vw) scale(1.12); }
}

/* Header */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 6vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(246, 243, 238, 0.78);
  border-bottom: 1px solid rgba(28, 46, 66, 0.07);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 8px; display: block; }
.nav-links {
  display: flex; gap: 22px; margin-left: auto;
}
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 500; font-size: 15px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(28, 46, 66, 0.16);
  border-radius: 10px;
}
.langs a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 8px;
}
.langs a[aria-current="true"] { background: var(--ink); color: #fbf8f4; }
.langs a:hover { color: var(--accent-deep); }
.langs a[aria-current="true"]:hover { color: #fbf8f4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent); color: #fbf8f4;
  box-shadow: 0 10px 24px -10px rgba(62, 140, 196, 0.7);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary {
  background: var(--card); color: var(--ink);
  border: 1px solid rgba(28, 46, 66, 0.14);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(28, 46, 66, 0.16);
  padding: 9px 16px; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn.wide { width: 100%; justify-content: center; font-size: 14px; padding: 13px 14px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 6vw, 72px) 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.pill {
  display: inline-block;
  background: var(--mist);
  color: var(--accent-deep);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hint { font-size: 13.5px; color: var(--ink-soft); }
.hero-shot {
  justify-self: center;
  max-width: 400px;
}
.hero-shot img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(28, 46, 66, 0.06);
  display: block;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0.4deg); }
  50%      { transform: translateY(-14px) rotate(-0.4deg); }
}

/* Sections */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) clamp(20px, 6vw, 72px) 20px;
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 44em;
  margin: 12px auto 44px;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid rgba(28, 46, 66, 0.07);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(62, 140, 196, 0.12);
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); }

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.shot {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(28, 46, 66, 0.07);
  padding: 14px 14px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.shot img,
.hero-shot img {
  cursor: zoom-in;
}
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid rgba(28, 46, 66, 0.08);
  transition: transform 0.35s ease;
}
.shot:hover img { transform: scale(1.015); }
.shot figcaption {
  margin-top: 12px;
  font-size: 14px; color: var(--ink-soft);
  text-align: center;
}

/* Download */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.dl-card {
  background: var(--card);
  border: 1px solid rgba(28, 46, 66, 0.07);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.dl-card h3 { font-size: 20px; font-weight: 700; }
.dl-desc { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0 20px; }
.meta { margin-top: 20px; display: grid; gap: 12px; }
.meta dt {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.meta dd { font-size: 14px; }
.hash { display: flex; align-items: center; gap: 8px; }
.hash code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 6px 10px;
  flex: 1;
}
.copy {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(28, 46, 66, 0.14);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  display: grid; place-items: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy:hover { color: var(--accent-deep); border-color: var(--accent); }
.gh-note { text-align: center; margin-top: 34px; color: var(--ink-soft); font-size: 15px; }
.gh-note a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.gh-note a:hover { text-decoration: underline; }
.license-note {
  text-align: center;
  max-width: 46em;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.license-note a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.license-note a:hover { text-decoration: underline; }

/* Footer */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 20px 48px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}
.footer a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer img { border-radius: 6px; }

/* Entrance animations — pure CSS, no JS dependency */
.reveal {
  animation: rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.cards .card:nth-child(2), .shots .shot:nth-child(2), .dl-grid .dl-card:nth-child(2) { animation-delay: 0.12s; }
.cards .card:nth-child(3), .shots .shot:nth-child(3) { animation-delay: 0.24s; }
.cards .card:nth-child(4) { animation-delay: 0.36s; }
.cards .card:nth-child(5) { animation-delay: 0.48s; }
.cards .card:nth-child(6) { animation-delay: 0.6s; }
.hero-shot { animation: rise 0.9s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1) both, float 7s 1.2s ease-in-out infinite; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f4ef;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop {
  background: rgba(14, 22, 32, 0.78);
  backdrop-filter: blur(18px);
}
.lightbox-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(920px, calc(100vw - 40px));
  animation: lightbox-in 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  background: #fffdf9;
}
.lightbox-frame figcaption {
  font-size: 15px;
  text-align: center;
  color: rgba(247, 244, 239, 0.86);
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 0;
  color: #f7f4ef;
  background: rgba(255, 253, 249, 0.14);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 253, 249, 0.26); transform: scale(1.06); }
.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  translate: 0 -50%;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox.is-closing .lightbox-frame { animation: lightbox-out 0.24s ease forwards; }
.lightbox[open]::backdrop { animation: lightbox-fade 0.35s ease; }
.lightbox.is-closing::backdrop { animation: lightbox-fade-out 0.24s ease forwards; }
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.94) translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes lightbox-out {
  to { opacity: 0; transform: scale(0.96) translateY(12px); }
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightbox-fade-out {
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-shot { animation: none; }
  .blob { animation: none; }
  html { scroll-behavior: auto; }
  .shot img, .lightbox-close, .lightbox-nav { transition: none; }
  .lightbox-frame,
  .lightbox[open]::backdrop,
  .lightbox.is-closing .lightbox-frame,
  .lightbox.is-closing::backdrop { animation: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-shot { max-width: 330px; }
  .nav-links { display: none; }
}
