:root {
  color-scheme: light dark;
  --ink: #11161f;
  --muted: #526070;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --line: #d8e0e7;
  --space: #182033;
  --signal: #ff6b4a;
  --aqua: #2fb7b2;
  --mint: #71c98a;
  --gold: #e9ad35;
  --link: #0f6f91;
  --shadow: 0 18px 50px rgba(17, 22, 31, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f7f9fc;
    --muted: #b8c3cf;
    --paper: #0d1118;
    --surface: #161d27;
    --surface-soft: #202936;
    --line: #2b3644;
    --space: #0b0f16;
    --signal: #ff7a5e;
    --aqua: #5bd5d0;
    --mint: #8bd9a0;
    --gold: #f0bf57;
    --link: #78d7f1;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: var(--link);
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.brand-mark::before {
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 12px -6px 0 var(--aqua), -9px 9px 0 var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  max-width: 100%;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero {
  min-height: min(820px, 92vh);
  display: grid;
  align-items: end;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 56px) clamp(36px, 7vw, 80px);
  background:
    linear-gradient(90deg, rgba(13, 17, 24, 0.84), rgba(13, 17, 24, 0.56) 43%, rgba(13, 17, 24, 0.18)),
    image-set(url("assets/screenshots/mac-library.png") 1x);
  background-position: center;
  background-size: cover;
  color: white;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 13vw, 8.5rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.lede {
  width: min(680px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.64);
  background: transparent;
  color: white;
}

.hero .button {
  border-color: white;
  background: white;
  color: var(--space);
}

.band {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.band.alt {
  background: var(--surface);
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head p,
.content-page header p {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1.3fr);
  gap: 18px;
  align-items: start;
}

.shot-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-panel.tall {
  max-height: 760px;
}

.shot-panel.tall img {
  width: 100%;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.proof {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.proof strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.proof span {
  color: var(--muted);
}

.content-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0;
}

.content-page header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.content-page h1 {
  color: var(--ink);
  font-size: clamp(3rem, 10vw, 6.4rem);
}

.content-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.content-section p,
.content-section li {
  color: var(--muted);
}

.content-section ul {
  padding-left: 22px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-tile {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-table th,
.summary-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .feature-grid,
  .proof-list,
  .shot-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    gap: 10px 14px;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 720px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 11vw, 3.4rem);
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-actions,
  .page-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
