:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #121614;
  --muted: #5f6a64;
  --line: #e2e6e3;
  --accent: #1f9d55;
  --accent-soft: #e3f5ea;
  --shadow: 0 20px 50px -20px rgb(16 40 26 / 0.35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d100e;
    --surface: #161a18;
    --text: #eef2ef;
    --muted: #93a099;
    --line: #262c29;
    --accent: #45d07f;
    --accent-soft: #15291d;
    --shadow: 0 20px 60px -20px rgb(0 0 0 / 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 56px 0 48px; }
.hero-icon { width: 132px; height: 132px; margin: 0 auto 24px; filter: drop-shadow(0 18px 30px rgb(31 157 85 / 0.35)); }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
.tagline { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); margin: 0 auto 28px; max-width: 30ch; }
.pill { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; }

/* Showcase */
.mac-hero { margin: 8px auto 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
section.platform { padding: 88px 0 0; }
section.platform h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.02em; margin: 0 0 24px; text-align: center; }

.strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 32px; margin: 0 -16px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip img {
  flex: 0 0 auto; width: 230px; border-radius: 30px; scroll-snap-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
@media (min-width: 1100px) { .strip { justify-content: center; overflow: visible; } .strip img { width: 136px; border-radius: 18px; } }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid img { border-radius: 14px; box-shadow: var(--shadow); }
.grid .wide { grid-column: 1 / -1; }

/* Prose pages */
.page { padding: 40px 0 24px; }
.page h1 { font-size: clamp(34px, 5vw, 44px); }
.page .lead { color: var(--muted); font-size: 19px; margin: 0 0 36px; }
.page h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 20px; }
.page li { margin: 6px 0; }
.muted { color: var(--muted); }

.contact {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
  padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.contact strong { display: block; font-size: 18px; }
.button { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .button { color: #062012; } }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
footer { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid { grid-template-columns: 1fr; } }
