/* ============================================================
   WhisperMap · 路极社 — Apple.com Exact Clone Design System
   White background, SF Pro, Apple's exact values
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── APPLE EXACT TOKENS ── */
:root {
  /* Font stack — SF Pro on Apple devices, Helvetica Neue elsewhere */
  --sf: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial", sans-serif;

  /* Apple.com exact colors */
  --apple-white:    #ffffff;
  --apple-bg:       #f5f5f7;   /* Apple's page background — NOT pure white */
  --apple-black:    #1d1d1f;   /* Apple's body text color */
  --apple-gray:     #6e6e73;   /* Apple's secondary text */
  --apple-gray-2:   #86868b;   /* Tertiary text */
  --apple-gray-3:   #d2d2d7;   /* Borders, dividers */
  --apple-gray-4:   #f5f5f7;   /* Tile backgrounds (same as page bg) */
  --apple-blue:     #0066cc;   /* Apple's link/CTA blue */
  --apple-blue-h:   #0077ed;   /* Hover state */

  /* Apple nav exact */
  --nav-h:    44px;
  --nav-bg:   rgba(255,255,255,0.72);
  --nav-blur: saturate(180%) blur(20px);

  /* Apple typography exact sizes */
  --t-hero:    80px;   /* iPhone hero headline */
  --t-title:   48px;   /* Section title */
  --t-24:      24px;
  --t-21:      21px;
  --t-19:      19px;
  --t-17:      17px;   /* Apple body default */
  --t-15:      15px;
  --t-14:      14px;
  --t-12:      12px;
  --t-11:      11px;

  /* Apple exact letter-spacing per size */
  --ls-hero:  -0.005em;
  --ls-title: 0em;
  --ls-body:  0em;

  /* Apple exact line-heights */
  --lh-hero:  1.05;
  --lh-title: 1.08;
  --lh-body:  1.47059;
  --lh-sub:   1.38095;

  /* Apple tile radius */
  --r-tile: 18px;
  --r-btn:  980px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── BODY ── */
body {
  background: var(--apple-white);
  color: var(--apple-black);
  font-family: var(--sf);
  font-size: var(--t-17);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── NAV — Apple.com exact ── */
.ac-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-nav__inner {
  width: 100%;
  max-width: 1024px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Apple logo mark */
.ac-nav__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t-17);
  font-weight: 400;
  color: var(--apple-black);
  letter-spacing: -0.022em;
  flex-shrink: 0;
}
.ac-nav__logo:hover { opacity: 0.7; }

.ac-nav__logo-icon {
  width: 15px; height: 18px;
  /* Apple  SVG path */
  background: var(--apple-black);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath d='M13.173 11.816c-.356.978-.527 1.415-1.01 2.28-.656 1.19-1.58 2.672-2.724 2.685-1.018.012-1.28-.665-2.661-.657-1.381.008-1.67.672-2.69.66-1.143-.013-2.02-1.368-2.676-2.557C-.745 11.24-.948 7.48 1.015 5.48c1.39-1.462 3.594-1.566 3.594-1.566s1.404-.24 2.623.88c.682.623 1.109.853 1.541.853.448 0 .876-.235 1.479-.763 1.185-1.03 2.466-1.091 2.466-1.091s2.05.14 3.208 1.963c-.2.126-1.914 1.12-1.894 3.339.02 2.663 2.34 3.55 2.34 3.55l-.199.17zM9.338.5C8.64 1.285 7.48 1.89 6.363 1.79 6.224.602 6.9-.415 7.547-1.05 8.283-1.784 9.51-2.36 10.513-2.39c.12 1.148-.337 2.28-1.175 2.89z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath d='M13.173 11.816c-.356.978-.527 1.415-1.01 2.28-.656 1.19-1.58 2.672-2.724 2.685-1.018.012-1.28-.665-2.661-.657-1.381.008-1.67.672-2.69.66-1.143-.013-2.02-1.368-2.676-2.557C-.745 11.24-.948 7.48 1.015 5.48c1.39-1.462 3.594-1.566 3.594-1.566s1.404-.24 2.623.88c.682.623 1.109.853 1.541.853.448 0 .876-.235 1.479-.763 1.185-1.03 2.466-1.091 2.466-1.091s2.05.14 3.208 1.963c-.2.126-1.914 1.12-1.894 3.339.02 2.663 2.34 3.55 2.34 3.55l-.199.17zM9.338.5C8.64 1.285 7.48 1.89 6.363 1.79 6.224.602 6.9-.415 7.547-1.05 8.283-1.784 9.51-2.36 10.513-2.39c.12 1.148-.337 2.28-1.175 2.89z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
}

.ac-nav__links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}
.ac-nav__links a {
  display: block;
  padding: 0 11px;
  font-size: var(--t-12);
  font-weight: 400;
  color: var(--apple-black);
  opacity: 1;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.ac-nav__links a:hover { opacity: 0.6; }
.ac-nav__links a.active { opacity: 1; font-weight: 500; }

.ac-nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ac-nav__action-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--apple-black);
  font-size: 16px;
  transition: background 0.15s;
  text-decoration: none;
}
.ac-nav__action-btn:hover { background: rgba(0,0,0,0.06); }

.ac-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}
.ac-nav__hamburger span {
  display: block;
  width: 17px; height: 1px;
  background: var(--apple-black);
  border-radius: 1px;
  transition: all 0.25s;
}

/* ── PAGE WRAPPER ── */
.ac-page {
  padding-top: var(--nav-h);
  background: var(--apple-white);
}

/* ── HOMEPAGE GRID — Apple exact ── */
/* Apple uses 980px max-width grid with 8px gap, tiles in 2 columns */
.ac-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.ac-grid__full  { grid-column: 1 / -1; }
.ac-grid__left  { grid-column: 1; }
.ac-grid__right { grid-column: 2; }

/* ── TILE — base ── */
.ac-tile {
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--apple-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 50px 40px 50px;
  min-height: 500px;
  transition: none;
}
.ac-tile--short { min-height: 340px; }
.ac-tile--tall  { min-height: 680px; }
.ac-tile--white { background: var(--apple-white); }
.ac-tile--black { background: #000000; color: var(--apple-white); }
.ac-tile--dark  { background: #1d1d1f; color: var(--apple-white); }
.ac-tile--blue  { background: #e8f0fe; }
.ac-tile--mint  { background: #e8f5e9; }
.ac-tile--yellow{ background: #fff8e1; }
.ac-tile--sky   { background: #e3f4fe; }

/* tile visual area (product image zone) */
.ac-tile__visual {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  min-height: 200px;
}
.ac-tile__visual img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
/* placeholder for product image */
.ac-tile__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.25;
}

.ac-tile__body {
  width: 100%;
  flex-shrink: 0;
}

/* Apple tile eyebrow */
.ac-tile__eyebrow {
  font-size: var(--t-17);
  font-weight: 600;
  line-height: 1.23536;
  letter-spacing: -0.022em;
  margin-bottom: 6px;
}
.ac-tile__eyebrow--sm {
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--apple-gray);
  margin-bottom: 4px;
}

/* Apple tile headline */
.ac-tile__headline {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  margin-bottom: 8px;
}
.ac-tile__headline--md {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.003em;
  margin-bottom: 8px;
}

/* Apple tile subhead */
.ac-tile__sub {
  font-size: var(--t-19);
  font-weight: 400;
  line-height: 1.42105;
  letter-spacing: -0.012em;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 18px;
}
.ac-tile__sub--sm {
  font-size: var(--t-17);
  line-height: var(--lh-body);
  letter-spacing: -0.022em;
  opacity: 0.75;
  margin-bottom: 14px;
}

/* Apple link style — blue, inline */
.ac-tile__links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.ac-link {
  font-size: var(--t-17);
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--apple-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.ac-link:hover { color: var(--apple-blue-h); }
.ac-link::after { content: ' ›'; }

.ac-link--white { color: #fff; }
.ac-link--white:hover { color: rgba(255,255,255,0.8); }

/* Apple pill button */
.ac-btn {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-17);
  font-weight: 400;
  letter-spacing: -0.022em;
  border-radius: var(--r-btn);
  padding: 10px 21px;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.ac-btn--blue {
  background: var(--apple-blue);
  color: #fff;
}
.ac-btn--blue:hover { background: var(--apple-blue-h); }
.ac-btn--white {
  background: #fff;
  color: var(--apple-black);
}
.ac-btn--white:hover { background: rgba(255,255,255,0.88); }
.ac-btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.68);
}
.ac-btn--outline-white:hover { background: rgba(255,255,255,0.08); }
.ac-btn--outline-black {
  background: transparent;
  color: var(--apple-black);
  border: 1px solid rgba(0,0,0,0.35);
}
.ac-btn--outline-black:hover { background: rgba(0,0,0,0.04); }

/* ── SECTION TYPOGRAPHY ── */
.ac-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}
.ac-section--center { text-align: center; }
.ac-section--bg {
  background: var(--apple-bg);
  max-width: 100%;
  padding: 80px 40px;
}

.ac-headline {
  font-size: clamp(32px, 5vw, var(--t-title));
  font-weight: 600;
  line-height: var(--lh-title);
  letter-spacing: -0.003em;
  color: var(--apple-black);
  margin-bottom: 8px;
}
.ac-subhead {
  font-size: var(--t-21);
  font-weight: 400;
  line-height: var(--lh-sub);
  letter-spacing: -0.012em;
  color: var(--apple-gray);
  max-width: 600px;
  margin: 0 auto 24px;
}
.ac-body {
  font-size: var(--t-17);
  line-height: var(--lh-body);
  color: var(--apple-gray);
  max-width: 560px;
}

/* ── FEATURE ROW (like apple.com/iphone) ── */
.ac-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 80px 40px;
}
.ac-feature-row--flip { direction: rtl; }
.ac-feature-row--flip > * { direction: ltr; }

/* ── SPEC TABLE ── */
.ac-specs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  max-width: 1024px;
  margin: 0 auto;
  border-top: 1px solid var(--apple-gray-3);
}
.ac-spec {
  padding: 32px 24px;
  border-bottom: 1px solid var(--apple-gray-3);
  border-right: 1px solid var(--apple-gray-3);
}
.ac-spec:nth-child(3n) { border-right: none; }
.ac-spec__label {
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-gray);
  margin-bottom: 8px;
}
.ac-spec__value {
  font-size: var(--t-24);
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--apple-black);
  line-height: 1.1;
}

/* ── TEAM GRID ── */
.ac-team-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 1px;
  background: var(--apple-gray-3);
  border-radius: var(--r-tile);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
.ac-team-card {
  background: var(--apple-white);
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.2s;
}
.ac-team-card:hover { background: var(--apple-bg); }
.ac-team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--apple-bg);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.ac-team-avatar img { width:100%; height:100%; object-fit:cover; }
.ac-team-role {
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-gray);
  margin-bottom: 4px;
}
.ac-team-name {
  font-size: var(--t-17);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
  color: var(--apple-black);
}
.ac-team-bio {
  font-size: var(--t-12);
  color: var(--apple-gray-2);
  line-height: 1.6;
}
.replace-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 9px;
  color: var(--apple-gray-3);
  border: 1px solid var(--apple-gray-3);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── BIZ LIST ── */
.ac-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--apple-gray-3);
  border-radius: var(--r-tile);
  overflow: hidden;
  max-width: 1100px;
  margin: 40px auto 0;
}
.ac-biz-item {
  background: var(--apple-white);
  padding: 32px 32px;
  transition: background 0.2s;
}
.ac-biz-item:hover { background: var(--apple-bg); }
.ac-biz-num {
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--apple-gray);
  margin-bottom: 8px;
}
.ac-biz-title {
  font-size: var(--t-19);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--apple-black);
  margin-bottom: 6px;
  line-height: 1.3;
}
.ac-biz-desc {
  font-size: var(--t-15);
  color: var(--apple-gray);
  line-height: 1.6;
}

/* ── DOWNLOAD BADGE ── */
.ac-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.ac-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--apple-black);
  color: var(--apple-white);
  border-radius: 12px;
  padding: 13px 20px;
  transition: opacity 0.15s;
}
.ac-badge:hover { opacity: 0.85; }
.ac-badge__icon { font-size: 28px; line-height: 1; }
.ac-badge__sub {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.ac-badge__name {
  display: block;
  font-size: var(--t-17);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1;
}

/* ── DIVIDER ── */
.ac-divider {
  height: 1px;
  background: var(--apple-gray-3);
  margin: 0 40px;
}

/* ── FOOTER — Apple.com exact ── */
.ac-footer {
  background: var(--apple-bg);
  padding: 20px 22px 24px;
  font-size: var(--t-12);
  color: var(--apple-gray);
  line-height: 1.6;
}
.ac-footer__top {
  max-width: 1024px;
  margin: 0 auto;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--apple-gray-3);
  font-size: var(--t-12);
  color: var(--apple-gray);
}
.ac-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1024px;
  margin: 24px auto 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--apple-gray-3);
}
.ac-footer__col-title {
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--apple-black);
  margin-bottom: 12px;
}
.ac-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-footer__col a {
  font-size: var(--t-12);
  color: var(--apple-gray);
  transition: color 0.15s;
}
.ac-footer__col a:hover { color: var(--apple-black); }
.ac-footer__bottom {
  max-width: 1024px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ac-footer__copy { font-size: var(--t-12); color: var(--apple-gray); }
.ac-footer__icp a { font-size: var(--t-12); color: var(--apple-gray); transition: color 0.15s; }
.ac-footer__icp a:hover { color: var(--apple-black); }

/* ── VIDEO WRAP ── */
.ac-video-wrap {
  max-width: 400px;
  margin: 40px auto 0;
  aspect-ratio: 9/16;
  border-radius: var(--r-tile);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--apple-gray-3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.ac-video-wrap iframe,
.ac-video-wrap video { width:100%; height:100%; border:none; }
.ac-video-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--apple-gray);
}
.ac-play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer;
  transition: background 0.2s;
}
.ac-play-btn:hover { background: rgba(255,255,255,0.2); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }
.reveal-d4 { transition-delay: 0.24s; }
.reveal-d5 { transition-delay: 0.30s; }

/* ── PAGE FADE ── */
.page-in { animation: pageIn 0.35s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── ANNA ORB (white bg version) ── */
.anna-orb-white {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,204,0.15) 0%, rgba(0,102,204,0.04) 50%, transparent 70%);
  animation: orbBreath 4s ease-in-out infinite;
  position: relative;
  margin: 0 auto;
}
.anna-orb-white::before,
.anna-orb-white::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 0.5px solid rgba(0,102,204,0.15);
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  animation: orbRing 4s ease-out infinite;
}
.anna-orb-white::before { width:260px; height:260px; animation-delay:0s; }
.anna-orb-white::after  { width:340px; height:340px; animation-delay:1s; }
@keyframes orbBreath {
  0%,100% { transform:scale(1); }
  50%      { transform:scale(1.06); }
}
@keyframes orbRing {
  0%   { transform:translate(-50%,-50%) scale(0.7); opacity:0.4; }
  100% { transform:translate(-50%,-50%) scale(1.3); opacity:0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1068px) {
  .ac-grid { padding: 0 4px; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 768px) {
  .ac-grid { grid-template-columns: 1fr; }
  .ac-grid__full,.ac-grid__left,.ac-grid__right { grid-column: 1; }
  .ac-nav__links { display: none; }
  .ac-nav__hamburger { display: flex; }
  .ac-nav__actions { display: none; }
  .ac-feature-row { grid-template-columns: 1fr; padding: 60px 24px; }
  .ac-feature-row--flip { direction: ltr; }
  .ac-team-grid { grid-template-columns: repeat(2,1fr); }
  .ac-biz-grid { grid-template-columns: 1fr; }
  .ac-footer__grid { grid-template-columns: 1fr 1fr; }
  .ac-specs { grid-template-columns: 1fr; }
  .ac-tile { min-height: 380px; padding: 40px 24px; }
  .ac-tile--tall { min-height: 500px; }
  .ac-section { padding: 60px 24px; }
  .ac-divider { margin: 0 24px; }
}
@media (max-width: 480px) {
  .ac-team-grid { grid-template-columns: 1fr 1fr; }
  .ac-footer__grid { grid-template-columns: 1fr; }
}
