:root {
  --apple-red: #FF3B30;
  --graphite: #1C1C1E;
  --gold: #FFD700;
  --gold-grad: linear-gradient(135deg, #FFD700, #FF8C00);
  --mist: #F2F2F7;
  --gray-light: #E5E5EA;
  --gray: #8E8E93;
  --ink: #111111;
  --white: #FFFFFF;
  --blue: #007AFF;
  --header-h: 72px;
  --radius: 16px;
  --max-w: 1180px;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--graphite);
  color: var(--white);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 1em;
}

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

a:hover {
  color: var(--gold);
}

::selection {
  background: var(--apple-red);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
  color: var(--ink);
}

.container {
  width: min(var(--max-w), 100% - 48px);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 28, 30, 0);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}

.site-header.is-scrolled {
  background: rgba(24, 24, 26, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header__brand:hover {
  color: var(--gold);
}

.site-header__brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold-grad);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(255, 215, 0, .35);
}

.site-header__brand-text {
  font-size: 18px;
}

.site-header__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 8px;
  color: var(--gold);
  background: rgba(255, 215, 0, .08);
  border: 1px solid rgba(255, 215, 0, .5);
  border-radius: 999px;
}

.site-nav {
  display: flex;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.site-nav__item {
  margin: 0;
}

.site-nav__link {
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .06);
}

.site-nav__link[aria-current="page"] {
  color: var(--gold);
  background: rgba(255, 215, 0, .07);
  border-color: rgba(255, 215, 0, .25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--apple-red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 59, 48, .3);
}

.btn-primary:hover {
  background: #e6352b;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 59, 48, .4);
}

.btn-outline {
  background: rgba(255, 255, 255, .02);
  color: var(--white);
  border-color: rgba(255, 255, 255, .25);
}

.btn-outline:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-gold {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(255, 140, 0, .25);
}

.btn-gold:hover {
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(255, 140, 0, .35);
}

.site-header__cta {
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 14px;
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(2) {
  transform: rotate(-45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(3) {
  opacity: 0;
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 120;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--apple-red), var(--gold));
  box-shadow: 0 0 10px rgba(255, 59, 48, .6);
  pointer-events: none;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  border-top: 1px solid rgba(255, 215, 0, .15);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 48px;
  padding: 64px 0 32px;
}

.site-footer__brand {
  max-width: 38ch;
}

.site-footer__logo {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
}

.site-footer__tagline {
  color: rgba(255, 255, 255, .6);
  line-height: 1.8;
}

.site-footer__contact p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .7);
}

.site-footer__contact-label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__nav {
  min-width: 0;
}

.site-footer__nav-list {
  list-style: none;
}

.site-footer__nav-link {
  display: inline-block;
  padding: 6px 0;
  color: rgba(255, 255, 255, .7);
}

.site-footer__nav-link:hover {
  color: var(--gold);
}

.site-footer__nav-link[aria-current="page"] {
  color: var(--gold);
}

.site-footer__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
}

.site-footer__copy,
.site-footer__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.breadcrumb {
  margin: 0 0 32px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(255, 255, 255, .3);
}

.breadcrumb__link {
  color: rgba(255, 255, 255, .65);
}

.breadcrumb__link:hover {
  color: var(--gold);
}

.breadcrumb__current {
  color: var(--gold);
}

.section {
  padding: 80px 0;
}

.section-label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 24px;
  color: var(--white);
}

.section-description {
  max-width: 60ch;
  color: rgba(255, 255, 255, .65);
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .2s;
}

.card:hover {
  border-color: rgba(255, 215, 0, .35);
  transform: translateY(-4px);
}

.card__title {
  margin-bottom: 8px;
  font-size: 18px;
}

.card__text {
  color: rgba(255, 255, 255, .65);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  background: rgba(255, 215, 0, .08);
  border: 1px solid rgba(255, 215, 0, .25);
  border-radius: 999px;
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255, 59, 48, .28), transparent 60%),
    linear-gradient(145deg, rgba(255, 215, 0, .08), rgba(28, 28, 30, .8));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%);
  animation: media-shine 5s ease-in-out infinite;
}

@keyframes media-shine {
  30%, 100% {
    transform: translateX(100%);
  }
}

.tabs {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tabs__tab {
  display: inline-block;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.tabs__tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .06);
}

.tabs__tab[aria-selected="true"] {
  color: var(--gold);
  background: rgba(255, 215, 0, .08);
  border-color: rgba(255, 215, 0, .25);
}

.tabs__panel {
  padding: 24px;
  color: rgba(255, 255, 255, .75);
}

.mono {
  font-family: var(--font-mono);
}

.gradient-text {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-header__cta {
    margin-left: auto;
    padding: 9px 14px;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(50% - 50vw);
    width: 100vw;
    padding: 8px 24px 16px;
    margin-left: 0;
    background: rgba(20, 20, 22, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
  }

  .site-nav__link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__brand,
  .site-footer__nav {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .site-header__brand-text {
    font-size: 16px;
  }

  .site-header__badge {
    font-size: 10px;
  }

  .site-header__cta {
    font-size: 13px;
  }

  .section {
    padding: 56px 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 24px;
  }

  .site-footer__brand,
  .site-footer__nav {
    grid-column: auto;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .tabs__list {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .media-frame::after {
    animation: none;
  }
}
