/* MacShow landing — dark macOS-inspired, no external assets */

:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --bg-elevated: #161618;
  --bg-card: #1c1c1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-subtle: #6e6e73;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-pressed: #0066cc;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(10, 132, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 120, 128, 0.12), transparent);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Hero */

.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero__icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 1.5rem;
  border-radius: 28px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin: 0 auto 2rem;
  max-width: 28rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn--primary:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.hero__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.hero__meta a {
  color: var(--text-muted);
}

.hero__meta a:hover {
  color: var(--accent);
}

/* Screenshots */

.shots {
  padding: 1rem 0 4rem;
}

.shots__lead {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.shots__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .shots__grid {
    grid-template-columns: 1fr;
  }

  .shots__grid--secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.shot--hero img {
  width: 100%;
}

.shot figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
}

/* Features */

.section-head {
  margin: 0 0 2rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.features {
  padding: 3rem 0 4rem;
}

.features__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.feature:hover {
  border-color: var(--border-strong);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Install */

.install {
  padding: 2rem 0 4rem;
}

.install__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 700px) {
  .install__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.install__steps li {
  counter-increment: step;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.install__steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(10, 132, 255, 0.2);
  border-radius: 50%;
}

.install__steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.install__steps p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.install__note {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.site-footer .links a {
  color: var(--text-muted);
}

.site-footer .links a:hover {
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feature code {
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.feature strong {
  font-weight: 600;
  color: var(--text);
}

.shots__grid + .shots__grid {
  margin-top: 1.25rem;
}
