:root {
  --apple-header-fg: #1d1d1f;
  --apple-header-muted: #6e6e73;
  --apple-header-line: rgba(0, 0, 0, 0.08);
  --apple-header-glass: rgba(255, 255, 255, 0.74);
  --apple-header-panel: rgba(245, 245, 247, 0.88);
}

.dark {
  --apple-header-fg: #f5f5f7;
  --apple-header-muted: #a1a1a6;
  --apple-header-line: rgba(255, 255, 255, 0.12);
  --apple-header-glass: rgba(22, 22, 24, 0.72);
  --apple-header-panel: rgba(28, 28, 30, 0.82);
}

.apple-style-header {
  color: var(--apple-header-fg);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.14), transparent 38%),
    linear-gradient(180deg, var(--apple-header-panel), transparent);
  border-bottom: 1px solid var(--apple-header-line);
}

.apple-style-header__bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(980px, calc(100% - 32px));
  min-height: 44px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  background: var(--apple-header-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.apple-style-header__brand,
.apple-style-header__nav a {
  color: var(--apple-header-fg);
  text-decoration: none;
}

.apple-style-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
}

.apple-style-header__mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #0071e3, #7dd3fc 50%, #34c759),
    #0071e3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.apple-style-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  color: var(--apple-header-muted);
}

.apple-style-header__nav a {
  color: var(--apple-header-muted);
  transition: color 160ms ease;
}

.apple-style-header__nav a:hover {
  color: var(--apple-header-fg);
}

.apple-style-header__pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  color: white;
  background: #0071e3;
  font-size: 12px;
  white-space: nowrap;
}

.apple-style-header__hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 44px;
  text-align: center;
}

.apple-style-header__eyebrow {
  margin: 0 0 10px;
  color: var(--apple-header-muted);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.apple-style-header__hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--apple-header-fg);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 700;
}

.apple-style-header__copy {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--apple-header-muted);
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.35;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .apple-style-header__bar {
    width: min(100% - 24px, 980px);
    gap: 12px;
  }

  .apple-style-header__nav {
    display: none;
  }

  .apple-style-header__pill {
    margin-left: auto;
  }

  .apple-style-header__hero {
    width: min(100% - 24px, 980px);
    padding: 42px 0 32px;
    text-align: left;
  }

  .apple-style-header__hero h1,
  .apple-style-header__copy {
    margin-left: 0;
    margin-right: 0;
  }
}
