/* ==========================================================================
   Airople Flagship Brand Site — Home Page (Apple Pure White × Ghost Fibers)
   ========================================================================== */

/* ---------- 1. Apple Pure White Hero over Light-Mode Ghost Fibers ---------- */
.hero {
  position: relative;
  background: transparent;
  padding-block: clamp(60px, 8vw, 108px) clamp(52px, 6.5vw, 88px);
  overflow: hidden;
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.hero-center .eyebrow { margin-block-end: 12px; }

.hero-center .display-title {
  font-size: clamp(2.9rem, 6.6vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-lead {
  margin: 18px auto 30px;
  font-size: clamp(1.1rem, 1.55vw, 1.36rem);
  line-height: 1.44;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px;
}

/* Open, borderless Apple studio hardware showcase floating over Ghost Fibers */
.hero-hardware-stage {
  position: relative;
  z-index: 2;
  margin: clamp(36px, 4.5vw, 56px) auto 0;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 28px;
  padding: clamp(12px, 2vw, 24px) 0 0;
}

.hero-device { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.hero-device img {
  width: 100%; max-height: 324px; object-fit: contain;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.16));
  transition: transform 0.6s var(--ease-out);
}
.hero-device--wrist img { max-height: 256px; }
.hero-device:hover img { transform: translateY(-4px) scale(1.025); }
.hero-device__cap { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.hero-device__cap b { color: var(--ink); font-weight: 600; }

.hero-trust-notes {
  position: relative; z-index: 2;
  margin: 40px auto 0; padding-block-start: 22px;
  border-top: 1px solid var(--stroke); max-width: 860px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 34px; font-size: 0.88rem; color: var(--muted);
}
.hero-trust-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust-notes svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }

/* ---------- 2. Sprout Philosophy ---------- */
.sprout-stem-wrap { display: flex; justify-content: center; margin-block-end: 18px; }
.sprout-svg { width: 58px; height: 58px; overflow: visible; }
.sprout-path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out); }
.sprout-leaf {
  opacity: 0; transform: scale(0.65); transform-box: fill-box; transform-origin: bottom center;
  transition: opacity 0.8s var(--ease-out) 0.45s, transform 0.9s var(--ease-out) 0.45s;
}
.sprout-svg.is-grown .sprout-path { stroke-dashoffset: 0; }
.sprout-svg.is-grown .sprout-leaf { opacity: 1; transform: scale(1); }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pillar-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand-wash); color: var(--brand);
  display: grid; place-items: center; margin-block-end: 18px;
  opacity: 0; transform: scale(0.5);
  transition:
    opacity 0.45s var(--ease-out) calc(var(--delay, 0s) + 0.14s),
    transform 0.56s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--delay, 0s) + 0.14s);
}
.pillar-card.is-visible .pillar-icon,
.shot .pillar-icon { opacity: 1; transform: scale(1); }
.pillar-icon svg { width: 21px; height: 21px; }
.pillar-card h3 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.022em; margin-block-end: 8px; color: var(--ink); }
.pillar-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Nested Home Scroll Micro-Choreography ---------- */
.hero-trust-notes span {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.55s var(--ease-out), transform 0.6s var(--ease-out);
}
.hero-trust-notes span:nth-child(1) { transition-delay: 0.18s; }
.hero-trust-notes span:nth-child(2) { transition-delay: 0.28s; }
.hero-trust-notes span:nth-child(3) { transition-delay: 0.38s; }
.hero-trust-notes.is-visible span,
.shot .hero-trust-notes span { opacity: 1; transform: translateY(0); }

.app-tabs .app-tab {
  opacity: 0; transform: translateX(-18px);
  transition:
    opacity 0.54s var(--ease-out) var(--tab-delay, 0s),
    transform 0.62s var(--ease-out) var(--tab-delay, 0s),
    background-color 0.2s ease 0s, border-color 0.2s ease 0s;
}
html[dir="rtl"] .app-tabs .app-tab { transform: translateX(18px); }
.app-tabs .app-tab:nth-child(1) { --tab-delay: 0.06s; }
.app-tabs .app-tab:nth-child(2) { --tab-delay: 0.18s; }
.app-tabs .app-tab:nth-child(3) { --tab-delay: 0.3s; }
.app-tabs.is-visible .app-tab,
.shot .app-tabs .app-tab { opacity: 1; transform: translateX(0); }

.phone-preview-stage .phone-mock {
  transform: scale(0.94) translateY(16px);
  transition: transform 0.9s var(--ease-out) 0.14s;
}
.phone-preview-stage.is-visible .phone-mock,
.shot .phone-mock { transform: scale(1) translateY(0); }

.ritual-card .ritual-orb { opacity: 0; transform: scale(0.84); }
.ritual-card.is-visible .ritual-orb,
.shot .ritual-orb { opacity: 1; transform: scale(1); transition: opacity 0.8s var(--ease-out) 0.2s, transform 0.9s var(--ease-out) 0.2s, box-shadow 4s ease-in-out; }
.ritual-card.is-visible .ritual-orb.is-inhale { transform: scale(1.16); transition: transform 4s ease-in-out, box-shadow 4s ease-in-out; }
.ritual-card.is-visible .ritual-orb.is-hold { transform: scale(1.16); transition: transform 4s ease-in-out, box-shadow 4s ease-in-out; }
.ritual-card.is-visible .ritual-orb.is-exhale { transform: scale(0.94); transition: transform 4s ease-in-out, box-shadow 4s ease-in-out; }

/* ---------- 3. Apple 2-Up Hardware Promo Tiles ---------- */
.lineup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(32px, 4vw, 48px); }

.product-card--dark {
  background: rgba(12, 14, 13, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}
.product-card--dark:hover {
  background: rgba(18, 22, 19, 0.96);
}
.product-card--dark h3 { color: #f5f5f7; }
.product-card--dark p,
.product-card--dark .product-highlights,
.product-card--dark .product-card__meta span:last-child { color: var(--muted-on-dark) !important; }
.product-card--dark .product-highlights { border-color: rgba(255, 255, 255, 0.12); }

.product-card__stage { padding: 16px 8px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.product-card__stage img { max-height: 268px; width: auto; object-fit: contain; transition: transform 0.6s var(--ease-out); }
.product-card:hover .product-card__stage img { transform: scale(1.03); }

.product-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.model-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--brand); }
.product-card--dark .model-tag { color: var(--brand-on-dark); }

.product-card h3 { font-family: var(--font-display); font-size: clamp(1.65rem, 2.5vw, 2.1rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.12; }
.product-card p { font-size: 0.96rem; color: var(--muted); }

.product-highlights {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px;
  padding-block-start: 14px; border-top: 1px solid var(--stroke); font-size: 0.85rem; color: var(--ink-soft);
}
.product-card__foot { margin-block-start: auto; padding-block-start: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.product-card--dark .btn--ghost { color: var(--link-on-dark); }

/* ---------- 4. Interactive App & AI Showcase ---------- */
.split-feature,
.app-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.media-frame img { width: 100%; height: auto; object-fit: cover; }

.app-tabs { display: grid; gap: 10px; }
.app-tab {
  width: 100%; text-align: start; padding: 22px 24px; border-radius: 20px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(12px); cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.app-tab:hover { background: rgba(255, 255, 255, 0.82); }
.app-tab.is-active { background: rgba(255, 255, 255, 0.96); border-color: var(--stroke); box-shadow: var(--shadow-sm); }
.app-tab h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-block-end: 6px; }
.app-tab.is-active h3 { color: var(--brand); }
.app-tab p { font-size: 0.94rem; color: var(--muted); line-height: 1.5; }

.phone-preview-stage { display: flex; justify-content: center; }
.phone-mock { width: min(336px, 100%); border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #3a3a3c, #1c1c1e); box-shadow: var(--shadow-lg); }
.phone-screen { background: #f5f5f7; border-radius: 36px; padding: 22px 18px; min-height: 464px; display: flex; flex-direction: column; gap: 14px; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.phone-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-wash); color: var(--brand-deep); padding: 4px 10px; border-radius: var(--radius-pill); }
.phone-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.phone-panel[hidden] { display: none; }
.phone-bp-card { background: var(--brand); color: #ffffff; border-radius: 20px; padding: 18px; }
.phone-bp-card .bp-big { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin-block: 8px 6px; }
.phone-card { background: #ffffff; border-radius: 18px; padding: 15px; margin-block-start: 12px; }
.phone-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-block-end: 5px; }
.phone-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ---------- 5. Serene Apple Mindfulness Breathing Tile ---------- */
.ritual-card {
  background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.06); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 36px;
  box-shadow: var(--shadow-sm);
}
.ritual-orb-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ritual-orb {
  width: 206px; height: 206px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(64, 118, 48, 0.2), rgba(116, 194, 93, 0.08) 65%, transparent);
  border: 1px solid rgba(64, 118, 48, 0.24); display: grid; place-items: center;
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.ritual-orb.is-inhale { transform: scale(1.16); box-shadow: 0 0 0 22px rgba(64, 118, 48, 0.08); }
.ritual-orb.is-hold { transform: scale(1.16); box-shadow: 0 0 0 28px rgba(64, 118, 48, 0.11); }
.ritual-orb.is-exhale { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(64, 118, 48, 0.03); }
.ritual-orb svg { width: 60px; height: 60px; }
.ritual-cue { font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; color: var(--brand); min-height: 1.8rem; }

/* ---------- 6. Privacy Grid & Closing Banner ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-block: 10px 8px; color: var(--ink); }
.trust-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.52; }

.closing-cta {
  background: rgba(255, 255, 255, 0.84); backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.065); color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 1.25fr 0.75fr;
  align-items: center; gap: 28px; box-shadow: var(--shadow-sm);
}
.closing-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin-block-end: 12px; }
.closing-cta p { color: var(--muted); max-width: 520px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.btn--light { background: var(--brand); color: #ffffff; }
.btn--light:hover { background: var(--brand-hover); }
.btn--outline-light { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline-light:hover { background: var(--brand); color: #ffffff; }

@media (max-width: 980px) {
  .hero-hardware-stage, .split-feature, .lineup-grid, .app-showcase-grid, .ritual-card, .closing-cta { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .trust-grid, .product-highlights { grid-template-columns: 1fr; }
  .hero-device img { max-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-icon, .hero-trust-notes span, .app-tabs .app-tab,
  .phone-preview-stage .phone-mock, .ritual-card .ritual-orb {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
