:root {
  --bg: #FFFBF3;
  --bg-tint: #FBF1DD;
  --surface: #FFFFFF;
  --ink: #2E2416;
  --ink-soft: #5C4D3A;
  --muted: #7A6A55;
  --line: #EADBC0;
  --amber: #F2B84B;
  --amber-soft: #FDE8B8;
  --brown: #5A452A;
  --brown-soft: #D2B57F;
  --green: #556B4F;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 12px 32px -12px rgba(60, 40, 10, .18);
  --radius: 20px;
  --logo-front: #5A452A;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120B;
    --bg-tint: #1F1810;
    --surface: #251D13;
    --ink: #F6EBD7;
    --ink-soft: #DCCBAE;
    --muted: #AE9B7E;
    --line: #3A2E1F;
    --amber-soft: #3A2B12;
    --brown: #F2B84B;
    --brown-soft: #8A6F43;
    --green: #9BB08F;
    --logo-front: #F2B84B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code {
  font: 500 .88em/1 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--amber-soft);
  color: var(--ink);
  padding: .2em .45em;
  border-radius: 6px;
  white-space: nowrap;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .95rem; margin-top: 14px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-primary { background: var(--amber); color: #2E2416; box-shadow: 0 8px 20px -8px rgba(242, 184, 75, .8); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brown-soft); }
.btn-dark { background: #2E2416; color: #FFF5E0; }
.btn-dark svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo { position: relative; width: 28px; height: 28px; display: inline-block; }
.logo i { position: absolute; border-radius: 50%; width: 18px; height: 18px; }
.logo i:first-child { right: 0; top: 2px; background: var(--brown-soft); }
.logo i:last-child { left: 0; bottom: 2px; background: var(--logo-front); box-shadow: 0 0 0 2px var(--bg); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* hero */
.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--amber) 32%, transparent), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--amber-soft) 80%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.badges li { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-amber { background: var(--amber); }
.dot-brown { background: var(--brown-soft); }
.dot-green { background: var(--green); }

.hero-visual { position: relative; height: 560px; }
.orb { position: absolute; border-radius: 50%; }
.orb-back { width: 300px; height: 300px; right: 2%; top: 4%; background: var(--brown-soft); opacity: .55; }
.orb-front { width: 300px; height: 300px; left: 4%; bottom: 2%; background: #5A452A; opacity: .9; }
.phone {
  position: absolute;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(40, 25, 5, .45), 0 0 0 1px rgba(0, 0, 0, .06);
  background: #DDD3C0;
}
.phone img { width: 100%; height: 100%; }
.phone-main { width: 280px; aspect-ratio: 9 / 16; left: 50%; top: 10px; transform: translateX(-62%) rotate(-3deg); z-index: 2; }
.phone-side { width: 236px; aspect-ratio: 9 / 16; left: 50%; top: 90px; transform: translateX(18%) rotate(5deg); z-index: 1; }

/* intro */
.intro { padding: 56px 0 24px; text-align: center; }
.intro p { font-size: 1.22rem; color: var(--ink-soft); }
.intro-note { margin-top: 18px !important; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.35rem !important; color: var(--brown) !important; }

/* gallery */
.gallery { padding: 32px 0 24px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; background: var(--bg-tint); }
.shots figcaption { margin-top: 12px; text-align: center; font-weight: 600; color: var(--muted); font-size: .92rem; }

/* sections */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .muted { margin-top: 14px; font-size: 1.08rem; }
.narrow .section-head { margin-inline: auto; text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--amber-soft);
  color: var(--brown);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-accent { background: linear-gradient(150deg, #FFE7AE, #F2B84B); border-color: transparent; }
.card-accent h3, .card-accent p { color: #2E2416; }
.card-accent .icon { background: rgba(255, 255, 255, .55); color: #5A452A; }

/* independent */
.indie {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start;
  padding: 44px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.indie-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.indie-body h3 { margin-bottom: 10px; }
.indie-body p { color: var(--ink-soft); font-size: .98rem; }

.card-wide { grid-column: span 2; }

/* spotlight */
.spot-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.spot-shot { margin: 0; justify-self: center; width: min(340px, 100%); }
.spot-shot img { width: 100%; border-radius: 28px; box-shadow: 0 30px 60px -24px rgba(40, 25, 5, .45); }
.spot-grid h2 { margin-bottom: 18px; }
.spot-lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2416' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks code { white-space: nowrap; }
.spot-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.tags li:first-child { background: var(--amber); border-color: transparent; color: #2E2416; }

/* duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.duo-card h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.5rem; margin: 18px 0 12px; }
.duo-card p { color: var(--ink-soft); }
.duo-card p + p { margin-top: 10px; }

/* sync */
.sync-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.sync-grid h2 { margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.steps span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #5A452A; color: #FFF5E0; }
.steps p { padding-top: 4px; color: var(--ink-soft); }
.steps b { color: var(--ink); }

/* download */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.dl h3 { margin: 0; font-size: 1.5rem; font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.dl .btn { align-self: flex-start; margin-top: auto; }
.dl .btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl .dl-meta { margin-top: -6px; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.qr { display: flex; gap: 16px; align-items: center; padding-top: 18px; border-top: 1px dashed var(--line); }
.qr img { flex: none; width: 132px; height: 132px; padding: 6px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); }
.qr p { font-size: .88rem !important; color: var(--muted) !important; }
.dl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); border: 1px solid var(--line); }
.pill-amber { background: var(--amber); color: #2E2416; border-color: transparent; }

/* table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--bg-tint); }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-soft); }

/* contribute */
.contrib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.chip-card { padding: 22px 24px; border-radius: 18px; border: 1px dashed var(--brown-soft); }
.chip-card h3 { margin-bottom: 6px; }
.chip-card p { color: var(--ink-soft); font-size: .96rem; }

/* sponsor */
.sponsor {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 48px; border-radius: 28px;
  background: linear-gradient(135deg, #FFF0CC 0%, #F2B84B 100%);
  color: #2E2416;
}
.sponsor .eyebrow { color: #5A452A; }
.sponsor h2 { margin-bottom: 14px; }
.sponsor p { max-width: 40em; color: #4A3A24; }
.sponsor a:not(.btn) { color: #2E2416; font-weight: 600; }

/* contact */
.contact-text { margin: 16px auto 28px; max-width: 40em; font-size: 1.08rem; }
.btn-primary svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* info */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info-grid h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.35rem; margin-bottom: 12px; }
.info-grid p { color: var(--ink-soft); font-size: .98rem; }
.info-grid code { white-space: normal; word-break: break-all; }

.stars { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stars img { width: 100%; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer p { color: var(--muted); font-size: .88rem; max-width: 52em; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .hero-grid, .sync-grid, .spot-grid, .duo { grid-template-columns: 1fr; }
  .spot-grid { gap: 40px; }
  .hero { padding-top: 48px; }
  .hero-visual { height: 480px; max-width: 480px; width: 100%; margin-inline: auto; }
  .phone-main { width: 230px; }
  .phone-side { width: 196px; top: 70px; }
  .orb-back, .orb-front { width: 230px; height: 230px; }
  .features, .contrib, .downloads { grid-template-columns: 1fr 1fr; }
  .dl-fdroid { grid-column: 1 / -1; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; gap: 32px; }
  .indie { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .sponsor { flex-direction: column; align-items: flex-start; padding: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner > .btn { margin-left: auto; }
  .hero-visual { height: 400px; }
  .phone-main { width: 190px; }
  .phone-side { width: 160px; top: 60px; }
  .orb-back, .orb-front { width: 180px; height: 180px; }
  .features, .contrib, .downloads, .indie-body { grid-template-columns: 1fr; }
  .card-wide, .dl-fdroid { grid-column: auto; }
  .qr { flex-direction: column; align-items: flex-start; }
  .duo-card { padding: 26px 22px; }
  .ticks code { white-space: normal; }
  .indie { padding: 26px 22px; }
  .shots { gap: 12px; }
  .section { padding: 64px 0; }
  .sponsor { padding: 28px 22px; border-radius: 22px; }
  .dl { padding: 24px; }
  th, td { padding: 12px 14px; }
  code { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
