/* SPDX-License-Identifier: MIT
   winpodx.org landing page — GitHub-Dark palette, matching the desktop app.
   Hand-written, no framework, no trackers. */

:root {
  --crust: #010409;
  --mantle: #0d1117;
  --base: #161b22;
  --surface0: #21262d;
  --surface1: #30363d;
  --surface2: #484f58;
  --text: #e6edf3;
  --subtext1: #c9d1d9;
  --subtext0: #8b949e;
  --overlay0: #656d76;
  --blue: #58a6ff;
  --sapphire: #388bfd;
  --green: #3fb950;
  --peach: #ffa657;
  --max: 1080px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--mantle);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- top nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface1);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav .brand img { width: 28px; height: 28px; }
.nav .links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav .links a { color: var(--subtext1); }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* ---- hero ---- */
.hero { text-align: center; padding: 72px 0 40px; }
.hero img.logo { width: 84px; height: 84px; margin-bottom: 22px; }
.hero h1 { font-size: 44px; line-height: 1.15; letter-spacing: -0.5px; }
.hero p.sub { color: var(--subtext1); font-size: 18px; max-width: 640px; margin: 18px auto 8px; }
.hero p.sub code {
  background: var(--surface0); border: 1px solid var(--surface1);
  border-radius: 6px; padding: 1px 6px; font-size: 15px;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 6px; }
.badge {
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--surface1); color: var(--subtext1); background: var(--surface0);
}
.badge.beta { color: var(--peach); border-color: var(--peach); }

/* ---- install block ---- */
.install { max-width: 760px; margin: 28px auto 0; text-align: left; }
.install .label { font-size: 13px; color: var(--subtext0); margin: 16px 0 6px; font-weight: 600; }
.code {
  position: relative; background: var(--crust); border: 1px solid var(--surface1);
  border-radius: var(--radius); padding: 16px 52px 16px 18px;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; color: var(--text); overflow-x: auto; white-space: pre;
}
.code .prompt { color: var(--green); user-select: none; }
.code button.copy {
  position: absolute; top: 10px; right: 10px;
  background: var(--surface0); color: var(--subtext1); border: 1px solid var(--surface1);
  border-radius: 6px; padding: 4px 9px; font-size: 12px; cursor: pointer;
}
.code button.copy:hover { color: var(--text); border-color: var(--blue); }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--surface1); cursor: pointer;
}
.btn.primary { background: var(--sapphire); color: var(--crust); border-color: var(--sapphire); }
.btn.primary:hover { background: var(--blue); text-decoration: none; }
.btn.ghost { background: var(--surface0); color: var(--text); }
.btn.ghost:hover { border-color: var(--blue); text-decoration: none; }

/* ---- screenshot ---- */
.shot { text-align: center; padding: 24px 0 8px; }
.shot img {
  max-width: 100%; border-radius: var(--radius); border: 1px solid var(--surface1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.shot .cap { color: var(--subtext0); font-size: 13px; margin-top: 12px; }

/* ---- sections ---- */
section { padding: 56px 0; }
section h2 { font-size: 28px; text-align: center; letter-spacing: -0.3px; }
section h2 + p.lead { text-align: center; color: var(--subtext1); margin: 10px auto 0; max-width: 620px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.card {
  background: var(--base); border: 1px solid var(--surface1); border-radius: var(--radius);
  padding: 22px 24px;
}
.card h3 { font-size: 17px; margin-bottom: 12px; color: var(--text); }
.card h3 .dot { color: var(--green); margin-right: 8px; }
.card ul { list-style: none; }
.card li { color: var(--subtext1); font-size: 14px; padding: 4px 0 4px 18px; position: relative; }
.card li::before { content: "›"; position: absolute; left: 2px; color: var(--blue); }
.card li code {
  background: var(--surface0); border-radius: 5px; padding: 1px 5px; font-size: 12.5px;
}

/* ---- distros ---- */
.distros { text-align: center; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.pill {
  background: var(--surface0); border: 1px solid var(--surface1); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--subtext1);
}

/* ---- requirements note ---- */
.note {
  max-width: 720px; margin: 28px auto 0; background: var(--base);
  border: 1px solid var(--surface1); border-left: 3px solid var(--peach);
  border-radius: var(--radius); padding: 16px 20px; color: var(--subtext1); font-size: 14px;
}
.note b { color: var(--text); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--surface1); padding: 40px 0; margin-top: 24px;
  color: var(--subtext0); font-size: 14px;
}
footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .links a { color: var(--subtext1); }
footer .legal { margin-top: 22px; font-size: 13px; color: var(--overlay0); }

@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .nav .links a:not(.gh) { display: none; }
}

/* ===== v2: multi-page + richer landing ===== */

/* gradient accent behind the hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px; z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(56, 139, 253, 0.18), transparent 70%);
  pointer-events: none;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--blue), var(--sapphire) 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* active nav link */
.nav .links a.active { color: var(--text); }
.nav .links a.active::after {
  content: ""; display: block; height: 2px; background: var(--blue);
  border-radius: 2px; margin-top: 3px;
}

/* sub-page hero (smaller) */
.page-hero { text-align: center; padding: 56px 0 8px; position: relative; }
.page-hero h1 { font-size: 36px; letter-spacing: -0.4px; }
.page-hero p { color: var(--subtext1); font-size: 17px; max-width: 640px; margin: 14px auto 0; }
.page-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}

/* alternating section background */
section.alt { background: var(--base); border-block: 1px solid var(--surface1); }

/* how-it-works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.step { background: var(--base); border: 1px solid var(--surface1); border-radius: var(--radius); padding: 24px; }
section.alt .step { background: var(--mantle); }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-weight: 700;
  background: var(--surface0); color: var(--blue); border: 1px solid var(--blue); margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--subtext1); font-size: 14px; }
.step code { background: var(--surface0); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }

/* comparison table */
.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--surface1); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--surface1); }
table.cmp thead th { background: var(--surface0); color: var(--text); font-size: 13px; }
table.cmp tbody th { color: var(--subtext1); font-weight: 600; }
table.cmp td { color: var(--subtext1); }
table.cmp .yes { color: var(--green); font-weight: 700; }
table.cmp .no { color: var(--overlay0); }
table.cmp col.win { background: rgba(56, 139, 253, 0.06); }
table.cmp tbody tr:last-child td, table.cmp tbody tr:last-child th { border-bottom: none; }

/* feature deep-dive blocks */
.feat { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.feat .block {
  background: var(--base); border: 1px solid var(--surface1); border-radius: var(--radius);
  border-left: 3px solid var(--blue); padding: 22px 24px;
}
.feat .block h3 { font-size: 18px; margin-bottom: 8px; }
.feat .block p { color: var(--subtext1); font-size: 14.5px; }
.feat .block p + p { margin-top: 8px; }
.feat .block code { background: var(--surface0); border-radius: 5px; padding: 1px 6px; font-size: 13px; }

/* install / get-started blocks */
.dist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.dist .item { background: var(--base); border: 1px solid var(--surface1); border-radius: var(--radius); padding: 18px 20px; }
.dist .item h3 { font-size: 15px; margin-bottom: 10px; color: var(--text); }
.dist .item .code { font-size: 13px; padding: 12px 14px; }

/* FAQ */
.faq { max-width: 800px; margin: 32px auto 0; }
.faq details {
  background: var(--base); border: 1px solid var(--surface1); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--surface2); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { color: var(--subtext1); font-size: 14.5px; padding: 0 0 16px; }
.faq .a code { background: var(--surface0); border-radius: 5px; padding: 1px 6px; font-size: 13px; }
.faq .a a { color: var(--blue); }

@media (max-width: 720px) {
  .steps, .dist { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 28px; }
}

/* ===== v3: inline SVG icons + motion polish ===== */
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* accent icon chip (cards, sections) */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: rgba(56, 139, 253, 0.12); color: var(--blue);
  border: 1px solid rgba(56, 139, 253, 0.25);
}
.ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.green { background: rgba(63, 185, 80, 0.12); color: var(--green); border-color: rgba(63,185,80,0.28); }
.ico.peach { background: rgba(255, 166, 87, 0.12); color: var(--peach); border-color: rgba(255,166,87,0.28); }

/* card header with icon */
.card h3, .step h3, .feat .block h3, .secttl { display: flex; align-items: center; gap: 12px; }
.card h3 .ico, .feat .block h3 .ico { width: 34px; height: 34px; border-radius: 9px; }
.card h3 .ico svg, .feat .block h3 .ico svg { width: 19px; height: 19px; }

/* section title with icon (centered) */
.secttl { justify-content: center; }

/* inline svg sizing for nav/footer/buttons */
.isvg { width: 16px; height: 16px; vertical-align: -3px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* motion: cards/steps lift on hover */
.card, .step, .feat .block, .dist .item, .pill { transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.card:hover, .step:hover, .feat .block:hover, .dist .item:hover { transform: translateY(-3px); border-color: var(--surface2); }
.pill:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--text); }
.btn { transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .card, .step, .feat .block, .dist .item, .pill, .btn { transition: none; }
  .card:hover, .step:hover, .feat .block:hover, .dist .item:hover, .pill:hover, .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* step: number + icon row */
.step .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step .head .n { margin-bottom: 0; }
