:root {
  --primary: #2F6BFF;
  --primary-deep: #1f4fd8;
  --bg: #FFFFFF;
  --bg-alt: #F2F4F7;
  --ink: #1F2937;
  --ink-soft: #5c6573;
  --muted: #8A94A6;
  --line: #E3E7EE;
  --success: #1DB954;
  --dock: rgba(255, 255, 255, 0.82);
  --radius: 28px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SF Mono", Menlo, monospace;
  --shadow: 0 18px 50px rgba(15, 30, 60, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --bg-alt: #1a1d24;
    --bg-glow: rgba(47, 107, 255, 0.14);
    --ink: #E8EAED;
    --ink-soft: #a8b0c0;
    --muted: #8A94A6;
    --line: rgba(227, 231, 238, 0.10);
    --dock: rgba(35, 38, 46, 0.78);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(47, 107, 255, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 8.5rem;
}

/* ——— Hero ——— */
.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 0 2.2rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.badge-mac {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.6rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

h1 span {
  color: var(--primary);
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
}

.lede {
  margin: 0;
  max-width: 35rem;
  font-size: 1.08rem;
  line-height: 1.60;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.lede strong { color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  align-items: center;
}

.btn-appstore {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-appstore img {
  display: block;
  width: 156px;
  height: auto;
}

.btn-appstore:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.84rem 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.32);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.84rem 1.15rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.90rem;
  text-decoration: none;
}

.fineprint {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Shots ——— */
.shots {
  margin: 2rem 0 3rem;
  text-align: center;
}

.shots-frame {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: #0e1116;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shots-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shots-placeholder {
  background: linear-gradient(180deg, #1a1d24 0%, #111318 100%);
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.menubar-mock {
  width: min(560px, 90%);
  background: #1f2937;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.menubar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: #2a2f3a;
  color: #E8EAED;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.menubar-body {
  padding: 1.1rem 1rem 1rem;
  text-align: left;
}

.menubar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(47, 107, 255, 0.10);
  border: 1px solid rgba(47, 107, 255, 0.18);
}

.menubar-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(29, 185, 84, 0.16);
  flex-shrink: 0;
}

.menubar-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.menubar-label small {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.shots-caption {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Panels ——— */
.panel {
  padding: 3.2rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.panel.narrow {
  max-width: 40rem;
  margin-inline: auto;
}

.panel h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.panel h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}

.kicker {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.panel a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.panel a:hover { text-decoration: underline; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.cards article {
  padding: 1.25rem 1.3rem;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.cards h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cards h3 i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.cards p {
  margin: 0;
  font-size: 0.93rem;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.list-check li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.list-check li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.12);
  color: var(--success);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.callout {
  margin: 1.2rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.callout i {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-style: normal;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.callout p { margin: 0; font-size: 0.92rem; }

.maker-mark-link {
  display: block;
  width: fit-content;
  margin: 1.25rem auto 0;
  line-height: 0;
}

.maker-mark {
  display: block;
  height: 64px;
  width: auto;
  opacity: 0.9;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .legal {
  margin: 0.6rem auto 0;
  max-width: 36rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ——— Dock ——— */
.dock {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  width: min(560px, calc(100% - 1.25rem));
  pointer-events: none;
}

.dock-glass {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.45rem 0.45rem 0.55rem;
  border-radius: 999px;
  background: var(--dock);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(20, 30, 50, 0.12);
  backdrop-filter: saturate(1.4) blur(18px);
}

.dock-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.dock-arrow,
.dock-center {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.dock-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
}

.dock-arrow:hover { background: rgba(0,0,0,0.06); color: var(--ink); }

.dock-center {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  padding: 0.25rem 0.4rem;
  min-width: 0;
}

.dock-label {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-sub {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.dock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.90rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(47,107,255,0.32);
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

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