/* "Coming to macOS" band on the landing page, and the /mac page. */

/* ---------- landing band ---------- */

.mac {
  padding: 0 0 var(--space-7);
}

.mac__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--bg-2), var(--bg-3));
}

.mac__copy {
  display: grid;
  gap: 6px;
  max-width: 62ch;
}

.mac__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mac__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 168, 90, 0.18);
}

.mac__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  color: var(--text);
}

.mac__body {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
}

.mac__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.mac__link:hover,
.mac__link:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mac__link span[aria-hidden="true"] {
  transition: transform 160ms var(--ease);
}

.mac__link:hover span[aria-hidden="true"] {
  transform: translateX(3px);
}

/* ---------- /mac page ---------- */

/* The home page's near-black, with a single red glow in the top corner. Nothing else. */
.mac-page {
  position: relative;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 128px)) 0 var(--space-8);
  background:
    radial-gradient(1200px 620px at 82% -12%, rgba(229, 57, 47, 0.2), transparent 62%),
    var(--bg);
}

.mac-page__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}

.mac-page__copy {
  max-width: 56ch;
}

/* Development label: just the words, set like a small caption. */
.mac-page__badge {
  margin: 0 0 26px;
  color: #d9b978;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mac-page__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.024em;
  text-wrap: balance;
  color: #fff;
  /* The Apple move: white fading into warm grey on black. Unsupported clients keep the solid colour. */
  background: linear-gradient(180deg, #ffffff 10%, #f5f1ea 52%, #c9c3b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mac-page__lead {
  margin: 0;
  max-width: 50ch;
  color: #cfc9bf;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.mac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.mac-chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: #eae6de;
  font-size: 0.885rem;
  line-height: 1.3;
}

.mac-chips svg {
  color: var(--accent);
  flex: none;
}

.mac-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 34px 0 26px;
}

/* A quiet, editorial note instead of a card: a label, a hairline, the sentence. */
.mac-page__status {
  max-width: 52ch;
  margin: 2px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mac-page__status-label {
  margin: 0 0 7px;
  color: #918c82;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mac-page__status-text {
  margin: 0;
  color: #b8b3a9;
  font-size: 0.95rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.mac-page__note {
  margin: 18px 0 0;
  color: #8a857c;
  font-size: 0.87rem;
}

/* Entrance: the hero assembles in a short stagger; the MacBook settles in from the right. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes mac-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes mac-visual {
    from { opacity: 0; transform: translate3d(18px, 12px, 0) scale(0.99); }
    to { opacity: 1; transform: none; }
  }

  .js .mac-page__badge { animation: mac-rise 0.55s var(--ease) 0.05s both; }
  .js .mac-page__title { animation: mac-rise 0.8s var(--ease) 0.12s both; }
  .js .mac-page__lead { animation: mac-rise 0.8s var(--ease) 0.2s both; }
  .js .mac-chips { animation: mac-rise 0.7s var(--ease) 0.28s both; }
  .js .mac-page__actions { animation: mac-rise 0.7s var(--ease) 0.36s both; }
  .js .mac-page__status { animation: mac-rise 0.7s var(--ease) 0.44s both; }
  .js .mac-page__note { animation: mac-rise 0.7s var(--ease) 0.5s both; }
  .js .mac-mock { animation: mac-visual 0.95s var(--ease) 0.16s both; }
}

/* ---------- feature cards ("same player, new platform") ---------- */

.mac-section {
  margin-top: clamp(84px, 11vw, 140px);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 88px);
}

.mac-section__head {
  max-width: 680px;
  margin-bottom: var(--space-7);
}

.mac-section__eyebrow {
  margin: 0 0 var(--space-5);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mac-section__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

.mac-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mac-card {
  padding: 26px 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, #121214 0%, #0b0b0d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}

.mac-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .mac-card,
  .mac-card:hover {
    transition: none;
    transform: none;
  }
}

.mac-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #ff8a84;
  background: linear-gradient(180deg, rgba(229, 57, 47, 0.16), rgba(229, 57, 47, 0.06));
  box-shadow: inset 0 0 0 1px rgba(229, 57, 47, 0.3);
}

.mac-card__title {
  margin: 0;
  color: #f5f1ea;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mac-card__body {
  margin: 8px 0 0;
  color: #b6b1a7;
  font-size: 0.94rem;
  line-height: 1.62;
}

/* Quiet closing line, Apple-product-tour style: hairlines fading out left and right. */
.mac-foot {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 30px);
  margin: clamp(72px, 9vw, 112px) 0 0;
  color: var(--text-2);
  font-size: 0.98rem;
  text-align: center;
}

.mac-foot__line {
  flex: 1 1 0;
  min-width: 28px;
  align-self: stretch;
  background:
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.14) calc(50% - 0.5px), rgba(255, 255, 255, 0.14) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}

.mac-foot__line--flip {
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}

.mac-foot a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 57, 47, 0.55);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.mac-foot a:hover,
.mac-foot a:focus-visible {
  color: #fff;
  border-color: var(--accent);
}

/* ---------- MacBook mockup (front view) ---------- */

.mac-mock {
  position: relative;
  margin: 0;
}

.mac-mock__glow {
  position: absolute;
  inset: -16% -12% -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 57, 47, 0.28), rgba(229, 57, 47, 0.08) 52%, transparent 76%);
  pointer-events: none;
}

.macbook {
  position: relative;
  z-index: 1;
}

/* Ground shadow under the laptop base. */
.macbook::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -4%;
  right: -4%;
  bottom: -24px;
  height: 52px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.88), transparent 72%);
  pointer-events: none;
}

/* ----- lid: Space Black aluminium rim, black glass bezel, notch ----- */

.macbook__lid {
  position: relative;
  z-index: 2;
  width: 90%;
  margin: 0 auto;
  padding: 2px 2px 0;
  border-radius: 17px 17px 3px 3px;
  background:
    linear-gradient(155deg, #64646e 0%, #303036 18%, #18181b 55%, #44444c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 34px 68px -28px rgba(0, 0, 0, 0.95);
}

.macbook__display {
  position: relative;
  padding: 6px 6px 0;
  border-radius: 15px 15px 2px 2px;
  background: #040405;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.macbook__panel {
  position: relative;
  overflow: hidden;
  border-radius: 7px 7px 2px 2px;
  background: #000;
}

.macbook__shot {
  display: block;
  width: 100%;
  height: auto;
}

.macbook__notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 66px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: #040405;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Soft glass reflection across the display. */
.macbook__glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(4, 4, 6, 0.26), transparent 11%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.02) 22%, transparent 40%);
  pointer-events: none;
}

.macbook__chin {
  display: block;
  height: 13px;
  background: linear-gradient(180deg, #050506 0%, #09090b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ----- front-edge aluminum base, thumb indent, feet ----- */

.macbook__base {
  position: relative;
  z-index: 3;
  height: 15px;
  margin-top: -1px;
  border-radius: 2px 2px 12px 12px;
  background:
    linear-gradient(90deg,
      #1b1b1f 0%,
      #3e3e46 4%,
      #27272c 16%,
      #34343b 50%,
      #27272c 84%,
      #3e3e46 96%,
      #1b1b1f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 2px 3px rgba(255, 255, 255, 0.09),
    inset 0 -3px 5px rgba(0, 0, 0, 0.72),
    0 12px 26px -8px rgba(0, 0, 0, 0.9);
}

.macbook__indent {
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  min-width: 56px;
  max-width: 96px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #0d0d10 0%, #1c1c21 100%);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.22);
}

.macbook__feet {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  width: 82%;
  margin: 0 auto;
}

.macbook__feet i {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #0a0a0c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mac-mock__floor {
  position: relative;
  z-index: 0;
  height: 34px;
  margin: -4px 4% 0;
  background: radial-gradient(52% 130% at 50% 0%, rgba(229, 57, 47, 0.16), transparent 74%);
}

.mac-mock__caption {
  position: relative;
  z-index: 2;
  margin: 6px 2px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .mac-page__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mac-mock {
    order: -1;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }

  .mac-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .mac-section {
    margin-top: clamp(64px, 10vw, 96px);
  }
}

@media (max-width: 560px) {
  .mac-page {
    padding-top: calc(var(--header-h) + 32px);
  }

  .mac-page__badge {
    margin-bottom: 18px;
    letter-spacing: 0.16em;
  }

  .mac-chips li {
    padding: 8px 13px;
    font-size: 0.84rem;
  }

  .mac-page__actions .btn {
    width: 100%;
  }

  .macbook__lid {
    width: 92%;
    padding: 1.5px 1.5px 0;
    border-radius: 13px 13px 3px 3px;
  }

  .macbook__display {
    padding: 4px 4px 0;
    border-radius: 11px 11px 2px 2px;
  }

  .macbook__panel {
    border-radius: 5px 5px 1px 1px;
  }

  .macbook__notch {
    width: 48px;
    height: 8px;
  }

  .macbook__chin {
    height: 9px;
  }

  .macbook__base {
    height: 11px;
    border-radius: 2px 2px 9px 9px;
  }

  .macbook__indent {
    height: 4px;
    min-width: 42px;
  }

  .macbook__feet i {
    width: 24px;
    height: 2px;
  }

  .mac-mock__caption {
    text-align: left;
  }

  .mac-cards {
    gap: 14px;
  }

  .mac-card {
    padding: 22px 20px 24px;
  }

  .mac-foot {
    flex-direction: column;
    gap: 14px;
  }

  .mac-foot__line {
    display: none;
  }
}
