:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --bg-glow: rgba(0, 122, 255, 0.14);
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0a84ff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-glow: rgba(10, 132, 255, 0.22);
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f5f5f7;
    --muted: #98989d;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 48px; }

header.site { margin-bottom: 40px; }
header.site h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); letter-spacing: -0.03em; margin: 0 0 6px; }
header.site p { margin: 0; color: var(--muted); font-size: 1.15rem; }

h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 40px 0 14px; }

.card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: inherit;
  transition: transform 0.2s ease;
}
a.card:hover { transform: translateY(-2px); text-decoration: none; }
.card img { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); flex: none; }
.card h3 { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card .chev { margin-left: auto; color: var(--muted); font-size: 1.6rem; }

.hero { text-align: center; padding: 8px 0 12px; }
.hero img { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3rem); letter-spacing: -0.03em; margin: 18px 0 4px; }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.features b { display: block; margin-bottom: 2px; }
.features span { color: var(--muted); font-size: 0.95rem; }

.prose { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 8px 26px 22px; }
.prose h2 { margin-top: 26px; }
.prose li { margin: 6px 0; }

footer { margin-top: 56px; color: var(--muted); font-size: 0.9rem; display: flex; gap: 18px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 20px; }


.stage {
  position: relative;
  padding: 44px 0 40px;
  border-radius: 28px;
  background:
    radial-gradient(520px 300px at 25% 20%, var(--bg-glow), transparent 70%),
    radial-gradient(420px 260px at 85% 90%, rgba(120, 90, 255, 0.16), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.dev-mac { display: block; width: 80%; height: auto; margin-right: 12%; }
.dev-iphone {
  position: absolute;
  right: 4%;
  bottom: 16px;
  width: 24%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

@media (max-width: 560px) {
  .stage { padding: 28px 0 28px; }
  .dev-mac { width: 88%; margin-right: 8%; }
  .dev-iphone { right: 2%; width: 30%; bottom: 14px; }
}

.stage.single { padding: 36px 0 32px; }
.stage.single .dev-mac { width: min(86%, 520px); margin-right: 0; }
.card + .card { margin-top: 14px; }

.win-stage { display: flex; justify-content: center; padding: 28px 0; }
.win { display: block; width: min(100%, 640px); height: auto; filter: drop-shadow(0 18px 36px rgba(0,0,0,.28)) drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
