:root {
  --bg: #faf7f3;
  --bg-band: #f3ece3;
  --surface: #ffffff;
  --ink: #1f1b17;
  --ink-soft: #6b6157;
  --line: #e7ddd1;
  --clay: #c8613f;
  --clay-strong: #b0512f;
  --green: #3f9b5b;
  --orange: #d98b23;
  --red: #cf4b3e;
  --radius: 16px;
  --shadow: 0 24px 60px -30px rgba(60, 40, 25, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --bg-band: #1f1913;
    --surface: #221c16;
    --ink: #f2ece3;
    --ink-soft: #a99e90;
    --line: #352c23;
    --clay: #e2825c;
    --clay-strong: #ec9270;
    --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.75);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-band);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  color: var(--ink);
}
.brand img { color: var(--clay); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.site-nav a { color: var(--ink-soft); font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--clay);
  color: #fff !important;
  padding: 7px 15px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--clay-strong); }

/* Layout */
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
section { padding: clamp(56px, 9vw, 104px) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--clay);
  margin: 0 0 14px;
}
.eyebrow i { margin-right: 5px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34ch; margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn i { margin-right: 7px; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 10px 24px -12px var(--clay); }
.btn-primary:hover { background: var(--clay-strong); }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; border-radius: 14px; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-strong); }
.fineprint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 22px; }

/* Menubar mockup */
.hero-visual { display: flex; justify-content: center; }
.menubar { width: 100%; max-width: 360px; }
.menubar-strip {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  height: 26px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--ink) 88%, #000);
  border-radius: 8px 8px 0 0;
  color: #f4efe8;
  font-size: 0.8rem;
}
.menubar-strip .menubar-item + .menubar-item { margin-left: -6px; }
.menubar-item { display: inline-flex; align-items: center; gap: 6px; }
.menubar-item.robot { font-variant-numeric: tabular-nums; gap: 7px; }
.menubar-item.robot .fa-robot { color: inherit; }
.menubar-item.wifi, .menubar-item.battery { opacity: 0.8; font-size: 0.85rem; }
.menubar-item.clock { opacity: 0.85; }

.panel {
  margin: 8px auto 0;
  width: 90%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.panel-head .fa-robot { color: var(--ink); }
.panel-title { font-weight: 650; white-space: nowrap; }
.panel-model { margin-left: auto; font-size: 0.75rem; color: var(--ink-soft); }

.row { margin-bottom: 14px; }
.row-top { display: flex; justify-content: space-between; font-size: 0.9rem; }
.row-top .far { color: var(--ink-soft); margin-right: 6px; width: 15px; text-align: center; }
.panel-foot .far { margin-right: 5px; }
.pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 999px; background: var(--bg-band); margin: 6px 0 5px; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 999px; }
.row-sub { font-size: 0.72rem; color: var(--ink-soft); }
.panel-foot { font-size: 0.72rem; color: var(--ink-soft); padding-top: 4px; }

.panel-sep { height: 1px; background: var(--line); margin: 12px 0; }
.panel-actions { display: flex; flex-direction: column; gap: 12px; }
.panel-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink); }
.panel-check .box {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1px solid var(--ink-soft);
  background: var(--bg-band);
}
.panel-buttons { display: flex; justify-content: space-between; align-items: center; }
.panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.panel-btn .fa-redo-alt { color: var(--ink-soft); font-size: 0.72rem; }

.green { color: var(--green); } i.green { background: var(--green); }
.orange { color: var(--orange); } i.orange { background: var(--orange); }
.red { color: var(--red); } i.red { background: var(--red); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: 1.25rem;
  color: var(--clay);
  background: color-mix(in srgb, var(--clay) 12%, transparent);
}
.feature h3 { font-size: 1.12rem; margin: 0; }
.feature p { grid-column: 1 / -1; color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* Privacy band */
.band { background: var(--bg-band); }
.band-inner { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.band-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; margin: 18px 0 24px; }
.assurances { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.assurances li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.assurances li .fa-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green);
  font-size: 0.72rem;
}

/* How it works */
.section-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin: 14px 0 40px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--clay);
  color: #fff;
  font-weight: 700;
}
.steps h3 { font-size: 1.08rem; margin: 0; }
.steps p { grid-column: 1 / -1; color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
.note { margin-top: 26px; color: var(--ink-soft); font-size: 0.95rem; max-width: 66ch; }

/* Setup */
.setup-list { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; margin-top: 28px; }
.setup-list li { counter-increment: s; position: relative; padding-left: 46px; }
.setup-list li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--bg-band);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--clay);
}
pre {
  background: color-mix(in srgb, var(--ink) 92%, #000);
  color: #f0e9df;
  padding: 16px 18px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 12px 0 0;
}
pre code { background: none; padding: 0; color: inherit; font-size: 0.85rem; line-height: 1.5; }

/* Download */
.download { text-align: center; }
.download-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  margin-bottom: 18px;
  font-size: 1.9rem;
  color: #fff;
  background: linear-gradient(150deg, var(--clay), var(--clay-strong));
  box-shadow: 0 14px 30px -14px var(--clay);
}
.download p { color: var(--ink-soft); font-size: 1.08rem; }
.download .hero-actions { justify-content: center; margin-top: 22px; }

/* Other projects */
.projects { border-top: 1px solid var(--line); }
.projects h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.projects h2 .fa-layer-group { color: var(--clay); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.project-card:hover {
  text-decoration: none;
  border-color: var(--clay);
  transform: translateY(-2px);
}
.project-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
}
.project-icon.todo { background: linear-gradient(150deg, #6366f1, #8b5cf6); }
.project-icon.games { background: linear-gradient(150deg, #a855f7, #6d28d9); }
.project-icon.count { background: linear-gradient(150deg, #22c55e, #15a34a); }
.project-body { display: flex; flex-direction: column; gap: 4px; }
.project-name { font-weight: 650; font-size: 1.05rem; }
.project-desc { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px clamp(20px, 5vw, 40px);
  text-align: center;
}
.site-footer p { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features, .steps { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .lead { max-width: none; }
}
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
}
