:root {
  color-scheme: dark;
  --bg: #0e1110;
  --ink: #f3efe5;
  --muted: #b9b0a0;
  --line: rgba(243, 239, 229, 0.16);
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --accent: #b7ff4a;
  --accent-2: #ff5f2f;
  --cyan: #72e5da;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(114, 229, 218, 0.12), transparent 30rem),
    radial-gradient(circle at 80% 5%, rgba(183, 255, 74, 0.13), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 16, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a,
.social-links a {
  text-decoration: none;
}

nav a:hover,
.social-links a:hover {
  color: var(--accent);
}

.section-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 48px);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: clamp(18px, 4vw, 48px);
  z-index: -1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 17, 16, 0.92), rgba(14, 17, 16, 0.44) 48%, rgba(14, 17, 16, 0.88));
}

.hero-image {
  position: absolute;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.hero-image-a {
  inset: 0 18% 12% 0;
  width: 72%;
  height: 82%;
}

.hero-image-b {
  right: 0;
  bottom: 0;
  width: min(54%, 620px);
  height: 46%;
  object-position: 50% 32%;
}

.hero-content {
  max-width: 780px;
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(19px, 2.3vw, 26px);
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #11150c;
}

.button.secondary {
  background: var(--panel);
}

.button:hover {
  transform: translateY(-1px);
}

.intro-grid,
.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro-grid > div > p,
.mac-panel p,
.support-hero p,
.support-grid p,
.mac-features p {
  color: var(--muted);
  font-size: 17px;
}

.ios-image-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: clamp(420px, 47vw, 610px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.ios-image-board::before {
  content: "";
  position: absolute;
  inset: -20% 35% 35% -12%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 95, 47, 0.24), transparent 58%);
}

.ios-image-board img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(243, 239, 229, 0.18);
  border-radius: 6px;
  object-fit: cover;
  background: #080a09;
}

.ios-image-board img:nth-child(1) {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  object-position: 46% 50%;
}

.ios-image-board img:nth-child(2) {
  grid-column: 4 / span 3;
  grid-row: 1;
  object-position: 50% 48%;
}

.ios-image-board img:nth-child(3) {
  grid-column: 4 / span 3;
  grid-row: 2;
  object-position: 50% 50%;
}

.ios-image-board img:nth-child(4) {
  grid-column: 1 / span 2;
  grid-row: 3;
  object-position: 52% 50%;
}

.ios-image-board img:nth-child(5) {
  grid-column: 3 / span 4;
  grid-row: 3;
  object-position: 50% 46%;
}

.mac-features article,
.support-grid article,
.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.video-embed {
  grid-column: 1 / -1;
  margin-top: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #050706;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.mac-section {
  display: grid;
  gap: 22px;
}

.mac-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.mac-copy {
  align-self: center;
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.platform-label .eyebrow {
  margin: 0;
}

.app-icon {
  width: 54px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
}

.mac-showcase {
  position: relative;
  display: grid;
  gap: 12px;
}

.mac-showcase::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 22%;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 95, 47, 0.28), transparent 62%);
}

.mac-screen {
  position: relative;
  width: 100%;
  border: 1px solid rgba(243, 239, 229, 0.22);
  border-radius: 8px;
  background: #181818;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.mac-screen-main {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.mac-screen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mac-screen-pair .mac-screen {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.small-note {
  color: var(--muted);
  font-size: 14px;
}

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

.tune-hero .hero-image-a,
.support-hero {
  min-height: 520px;
}

.support-card {
  align-self: center;
}

.policy-page {
  max-width: 860px;
}

.policy-card p {
  color: var(--muted);
  font-size: 18px;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

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

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav,
  .social-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image-a {
    width: 88%;
    height: 70%;
  }

  .hero-image-b {
    width: 70%;
    height: 38%;
  }

  .intro-grid,
  .support-hero,
  .mac-panel {
    grid-template-columns: 1fr;
  }

  .mac-features,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ios-image-board {
    height: 520px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 56px;
  }

  .section-band {
    padding-block: 56px;
  }

  .hero-media {
    inset: 16px;
  }

  .mac-features,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .ios-image-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 170px;
    height: auto;
  }

  .ios-image-board img:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .ios-image-board img:first-child {
    grid-column: 1 / -1;
  }

  .button {
    width: 100%;
  }

  .mac-screen-pair {
    grid-template-columns: 1fr;
  }
}
