/* Apple-adjacent: system fonts, cool neutrals, restrained motion */
:root {
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.08);
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --radius-card: 20px;
  --radius-pill: 980px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --hero-gradient: radial-gradient(120% 80% at 50% 0%, #e8f2ff 0%, #f5f0ff 35%, #fbfbfd 70%);
  --accent-coral: #ff3b30;
  --accent-violet: #5856d6;
  --accent-mint: #34c759;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: var(--text);
  color: #fff;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
}

.nav__label {
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link--about {
  margin-left: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Hero: primary headline + subhead (no app icon row) */
.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 88px;
  text-align: center;
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.12), transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 920px;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
}

.hero__subtitle {
  margin: 0 auto;
  max-width: 560px;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__chev {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-tertiary);
  animation: hero-float 2.5s ease-in-out infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }
}

/* Language */
.lang-switch {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  gap: 2px;
}

.lang-switch .lang-btn {
  margin: 0;
  padding: 5px 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch .lang-btn:hover {
  color: var(--text);
}

.lang-switch .lang-btn.is-active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.lang-switch .lang-btn:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 1px;
}

section[id] {
  scroll-margin-top: 72px;
}

/* Sections */
.section {
  padding: 88px 24px;
}

.product-section--alt {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.wrap--narrow {
  max-width: 720px;
  text-align: center;
}

.product-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .product-head {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}

.product-head__icon {
  width: 80px;
  height: 80px;
  border-radius: 22%;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.product-head__text {
  flex: 1;
}

.product-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.product-tagline {
  margin: 0;
  font-size: 19px;
  color: var(--text-secondary);
}

/* Grid */
.product-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .product-grid--flip .device-wrap {
    order: -1;
  }
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.card__icon--coral {
  background: rgba(255, 59, 48, 0.1);
  color: var(--accent-coral);
}

.card__icon--violet {
  background: rgba(88, 86, 214, 0.12);
  color: var(--accent-violet);
}

.card__icon--mint {
  background: rgba(52, 199, 89, 0.12);
  color: var(--accent-mint);
}

/* Device mockups */
.device-wrap {
  display: flex;
  justify-content: center;
}

/* Product promo posters — same frame on all products (iPhone-style proportion, Apple-like depth) */
.product-promo {
  margin: 0;
  position: relative;
  /* Cap width so height never exceeds ~78vh; all three promos share identical outer size */
  width: min(300px, 82vw, calc(78vh * 9 / 19.5));
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.06);
}

.product-promo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.device {
  position: relative;
}

.device--phone {
  width: min(280px, 78vw);
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(145deg, #e2e4e8, #c5c8d0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08);
}

.device__screen {
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #000;
}

.device__screen--calendar {
  background: linear-gradient(160deg, #fff5f2 0%, #ffe8e0 40%, #fff 100%);
}

.device__screen--horoscope {
  background: linear-gradient(160deg, #f4f0ff 0%, #ebe4ff 45%, #fff 100%);
}

.mock-ui {
  height: 100%;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-ui__bar {
  height: 10px;
  width: 36%;
  margin: 0 auto;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
}

.mock-ui__month {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.mock-ui__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  flex: 1;
  align-content: start;
}

.mock-ui__grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}

.mock-ui__grid .is-today {
  background: var(--accent-coral);
  opacity: 0.85;
}

.mock-ui--horo {
  align-items: center;
  justify-content: flex-start;
  padding-top: 32px;
}

.mock-ui__sign {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-violet);
}

.mock-ui__sparkles {
  width: 80%;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(88, 86, 214, 0.15), rgba(0, 113, 227, 0.12));
  margin-top: 8px;
}

/* Watch */
.device--watch {
  width: min(200px, 50vw);
}

.device__bezel {
  border-radius: 48px;
  padding: 14px;
  background: linear-gradient(160deg, #3a3a3c, #1c1c1e);
  box-shadow: var(--shadow-card);
}

.device__screen--watch {
  aspect-ratio: 1;
  border-radius: 38px;
  background: radial-gradient(circle at 30% 20%, #2c2c2e, #0d0d0f);
}

.mock-watch {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.mock-watch__pulse {
  width: 88%;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(90deg, transparent, rgba(52, 199, 89, 0.5), transparent);
  opacity: 0.9;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.mock-watch__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
}

.cta-row {
  margin-top: 48px;
  text-align: center;
}

.btn-apple {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-apple:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-apple:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 4px;
}

.btn-apple__mark {
  flex-shrink: 0;
}

/* Hero CTA: frosted glass (Apple-style vibrancy + blur) */
.btn-apple--blue {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.38);
  color: var(--apple-blue);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 6px 24px rgba(0, 0, 0, 0.07);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition:
    background 0.25s ease,
    color 0.2s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn-apple--blue:hover {
  background: rgba(255, 255, 255, 0.58);
  color: var(--apple-blue-hover);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 10px 36px rgba(0, 0, 0, 0.1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-apple--blue {
    background: rgba(251, 251, 253, 0.94);
  }

  .btn-apple--blue:hover {
    background: #fff;
  }
}

.disclaimer {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.disclaimer p {
  margin: 0;
}

.disclaimer svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* About */
.section--about h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.about-lede {
  margin: 0 0 40px;
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-lede strong {
  color: var(--text);
  font-weight: 600;
}

.about-cols {
  display: grid;
  gap: 20px;
  text-align: left;
}

@media (min-width: 768px) {
  .about-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.about-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  padding: 56px 24px 40px;
  border-top: 1px solid var(--border-strong);
  background: var(--bg);
}

.footer-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.footer-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.footer-app:hover {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-soft);
}

.footer-app img {
  border-radius: 22%;
}

.footer-app span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-app small {
  font-size: 11px;
  color: var(--text-tertiary);
}

.footer-app strong {
  font-size: 14px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-bottom: 24px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
