/* Palette and type follow apple.com: near-black text, off-white panels, one blue accent. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-on-dark: #f5f5f7;
  --muted-on-dark: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --link-on-dark: #2997ff;
  --card: #ffffff;
  --line: #d2d2d7;
  --nav-bg: rgba(245, 245, 247, 0.8);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101010;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --link: #2997ff;
    --card: #1d1d1f;
    --line: #424245;
    --nav-bg: rgba(22, 22, 23, 0.8);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 48px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }

/* Nav: thin, translucent, blurred — the apple.com global nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: 1000px;
  height: 44px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.nav-logo:hover { text-decoration: none; opacity: 0.7; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); opacity: 0.8; font-size: 12px; letter-spacing: -0.01em; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* Hero */
.hero {
  background: var(--bg-alt);
  text-align: center;
  padding: 120px 22px 110px;
}
.hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1.05; letter-spacing: -0.03em; }
.hero-sub {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(90deg, #0071e3, #8e44ec 55%, #e0457b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-body { max-width: 560px; margin: 20px auto 0; font-size: 21px; color: var(--text-muted); }

.cta { margin-top: 32px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
}
.btn-fill { background: var(--accent); color: #fff; }
.btn-fill:hover { background: var(--accent-hover); text-decoration: none; }
.link-more { font-size: 17px; }
.link-more::after { content: " \203A"; }

/* Full-width tiles */
.tile { text-align: center; padding: 100px 22px; }
.tile h2 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.07; }
.tile-body { max-width: 640px; margin: 20px auto 0; font-size: 21px; line-height: 1.38; color: var(--text-muted); }
.eyebrow { margin: 0 0 8px; font-size: 21px; font-weight: 600; color: var(--text-muted); }

.tile-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.tile-dark .eyebrow, .tile-dark .tile-body { color: var(--muted-on-dark); }
.tile-light { background: var(--bg); }

.chips { margin: 36px auto 0; max-width: 720px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span {
  padding: 8px 16px;
  border: 1px solid #424245;
  border-radius: 980px;
  font-size: 14px;
  color: var(--text-on-dark);
}

.stats {
  margin: 56px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stats div { margin: 0; }
.stats dt { font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.1; }
.stats dd { margin: 6px 0 0; color: var(--text-muted); font-size: 15px; }

/* Card grid */
.grid-section { background: var(--bg-alt); padding: 100px 22px; }
.section-title { text-align: center; font-size: clamp(32px, 5.2vw, 56px); line-height: 1.07; margin-bottom: 48px; }
.grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: scale(1.015); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); }
.card .eyebrow { font-size: 14px; }
.card h3 { font-size: 32px; line-height: 1.12; }
.card p:not(.eyebrow) { margin: 12px 0 16px; color: var(--text-muted); }

.contact { padding-bottom: 120px; }

/* Footer: Apple-style fine print, then legal links */
.footer { background: var(--bg-alt); color: var(--text-muted); font-size: 12px; line-height: 1.34; }
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 18px 22px 22px; }
.footer p { margin: 0; }
.footnotes { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.footnotes p + p { margin-top: 8px; }
.footer-legal { padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.footer-links { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links li + li { border-left: 1px solid var(--line); margin-left: 8px; padding-left: 8px; }
.footer-links a { color: var(--text); opacity: 0.85; }
.footer-country { margin-left: auto !important; }

/* Legal pages */
.legal { max-width: 740px; margin: 0 auto; padding: 72px 22px 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.08; }
.legal .updated { margin: 12px 0 0; color: var(--text-muted); font-size: 14px; }
.legal .lang { margin: 8px 0 0; font-size: 14px; }
.legal .lede { margin: 28px 0 0; font-size: 21px; line-height: 1.38; }
.legal h2 { font-size: 24px; line-height: 1.17; margin: 44px 0 0; }
.legal h3 { font-size: 19px; margin: 24px 0 0; }
.legal p, .legal li { color: var(--text); }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.table-wrap { overflow-x: auto; }

@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav-links { gap: 18px; }
  .hero { padding: 80px 16px 72px; }
  .hero-body, .tile-body { font-size: 19px; }
  .tile, .grid-section { padding: 72px 16px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 32px 28px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { padding: 18px 16px 22px; }
  .footer-country { margin-left: 0 !important; width: 100%; }
  .legal { padding: 48px 16px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
.hero-full { min-height: 100vh; }
