:root {
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #06c;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 40px 90px rgba(22, 18, 10, 0.16);
  --gold: #c99216;
  --gold-soft: #f2d98a;
  --pearl: #eee7f7;
  --cream: #fbf7ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 214, 134, 0.28), transparent 22%),
    radial-gradient(circle at 86% 8%, rgba(230, 224, 247, 0.42), transparent 18%),
    linear-gradient(180deg, #fbfbfd 0%, #f4f4f6 46%, #efedf1 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.global-nav-inner {
  width: min(1180px, calc(100% - 24px));
  height: 44px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #6f4d1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.nav-logo span {
  font-size: 0.9rem;
  transform: translateY(-3px);
  filter: saturate(0.92);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.76rem;
  color: #1d1d1f;
}

.nav-actions {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.promo-ribbon {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 0.92rem;
  color: #1d1d1f;
  backdrop-filter: blur(12px);
}

.promo-ribbon a,
.panel-links a,
.card-links a {
  color: var(--blue);
}

.product-rail-section,
.section-intro,
.hero-panel,
.grid-section,
.site-footer {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
}

.product-rail-section {
  padding: 34px 0 34px;
}

.product-rail-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.product-lineup-frame {
  position: relative;
  padding: 18px 18px 10px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 10%, rgba(247, 221, 154, 0.18), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(233, 227, 247, 0.22), transparent 18%),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.product-lineup-frame img {
  width: 100%;
  border-radius: 24px;
}

.lineup-hotspot {
  position: absolute;
  top: 10%;
  display: block;
  height: 72%;
  border-radius: 28px;
  outline: none;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.lineup-hotspot:hover,
.lineup-hotspot:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    0 14px 34px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.hotspot-mac {
  left: 1%;
  width: 18.5%;
}

.hotspot-iphone {
  left: 20.5%;
  width: 16%;
}

.hotspot-ipad {
  left: 36.3%;
  width: 16.8%;
}

.hotspot-watch {
  left: 51.8%;
  width: 13.2%;
}

.hotspot-airpods {
  left: 62.8%;
  width: 15.5%;
}

.hotspot-airtag {
  left: 76.8%;
  width: 10.2%;
}

.hotspot-home {
  left: 88%;
  width: 11.2%;
}

.section-intro {
  padding: 8px 0 28px;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #6e6e73;
  max-width: 980px;
}

.section-intro span {
  color: #ff5a00;
}

.hero-panel {
  margin-top: 18px;
  min-height: 700px;
  padding: 64px 30px 30px;
  border-radius: 34px;
  overflow: hidden;
  text-align: center;
  display: grid;
  align-content: start;
  gap: 24px;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-strong);
}

.hero-light {
  background:
    radial-gradient(circle at 20% 10%, rgba(251, 228, 170, 0.42), transparent 18%),
    radial-gradient(circle at 80% 14%, rgba(236, 228, 250, 0.52), transparent 18%),
    linear-gradient(180deg, #fcfbf8 0%, #efe8db 100%);
}

.hero-dark {
  background:
    radial-gradient(circle at 78% 16%, rgba(244, 214, 138, 0.18), transparent 16%),
    linear-gradient(180deg, #0c0d11 0%, #191a21 100%);
  color: #fff;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.eyebrow,
.product-label {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.panel-copy p {
  max-width: 740px;
  margin: 14px auto 0;
  font-size: 1.14rem;
  line-height: 1.65;
  color: #515154;
}

.hero-dark .panel-copy p,
.hero-dark .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.panel-links,
.card-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  font-size: 1.18rem;
  font-weight: 500;
}

.cta-wrap {
  margin-top: 14px;
}

.purchase-cta {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8b15a 0%, #bf8b24 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    0 14px 34px rgba(191, 139, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.purchase-cta:hover,
.purchase-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(191, 139, 36, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  filter: saturate(1.05);
}

.avatar-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.avatar-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.avatar-toast-bubble {
  position: relative;
  max-width: min(52vw, 420px);
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 251, 242, 0.88);
  color: #705228;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.6;
  box-shadow:
    0 18px 40px rgba(66, 52, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 182, 104, 0.45);
  backdrop-filter: blur(12px);
}

.avatar-toast-bubble::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 18px;
  width: 18px;
  height: 18px;
  background: rgba(255, 251, 242, 0.96);
  border-right: 1px solid rgba(219, 182, 104, 0.45);
  border-bottom: 1px solid rgba(219, 182, 104, 0.45);
  transform: rotate(-45deg);
}

.avatar-toast-card {
  width: 164px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.avatar-portrait-ring {
  width: 156px;
  height: 184px;
  margin: 0 auto;
  padding: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 249, 233, 0.4), transparent 42%),
    radial-gradient(circle at 50% 78%, rgba(240, 223, 187, 0.28), transparent 40%);
  filter: drop-shadow(0 18px 28px rgba(116, 92, 34, 0.14));
}

.avatar-portrait-ring img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 22%;
  mix-blend-mode: multiply;
  opacity: 0.98;
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 46%, transparent 77%);
  mask-image: radial-gradient(circle at 50% 38%, #000 46%, transparent 77%);
}

.avatar-toast-meta {
  padding: 4px 10px 0;
  text-align: center;
}

.avatar-toast-meta strong {
  display: block;
  color: #5f4723;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}

.avatar-toast-meta span {
  display: block;
  margin-top: 2px;
  color: rgba(95, 71, 35, 0.58);
  font-size: 0.72rem;
}

.hero-panel .panel-media img {
  width: min(960px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 36px 60px rgba(60, 44, 14, 0.14));
}

.hero-light .panel-media {
  position: relative;
}

.hero-light .panel-media img {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.pricing-section {
  width: min(1440px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 54px 24px 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 0%, rgba(247, 224, 170, 0.2), transparent 22%),
    radial-gradient(circle at 88% 6%, rgba(236, 229, 249, 0.28), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 244, 239, 0.94));
  box-shadow: var(--shadow-strong);
}

.pricing-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.pricing-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-header h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.3vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.pricing-header p {
  margin: 14px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  padding: 28px 22px 24px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
}

.card-badge {
  min-height: 20px;
  margin: 0 0 10px;
  color: #bf5b15;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pricing-art {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 12px 8px 18px;
}

.pricing-art img {
  width: min(220px, 100%);
  filter: drop-shadow(0 22px 32px rgba(84, 62, 18, 0.12));
}

.pricing-art.soft img {
  transform: scale(0.96);
}

.pricing-art.warm img {
  transform: scale(0.98);
}

.pricing-art.pearl img {
  transform: scale(0.92);
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.pricing-subtitle {
  min-height: 72px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.pricing-price {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pricing-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

.pricing-actions a {
  color: var(--blue);
}

.pricing-cta-wrap {
  margin: 0 0 18px;
}

.pricing-purchase-cta {
  min-width: 0;
  width: 100%;
  padding: 13px 18px;
  font-size: 0.94rem;
  box-shadow:
    0 12px 24px rgba(191, 139, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pricing-specs {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.pricing-specs li {
  margin-top: 12px;
  color: #1d1d1f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.grid-section {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-card {
  min-height: 620px;
  padding: 34px 28px 24px;
  border-radius: 30px;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-strong);
  position: relative;
  isolation: isolate;
}

.grid-card.light {
  background:
    radial-gradient(circle at 20% 0%, rgba(247, 223, 159, 0.18), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.grid-card.dark {
  background:
    radial-gradient(circle at 84% 12%, rgba(247, 216, 125, 0.15), transparent 20%),
    linear-gradient(180deg, #14151b 0%, #1f2129 100%);
  color: #fff;
}

.grid-card.logo-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(243, 219, 151, 0.18), transparent 18%),
    linear-gradient(180deg, #faf7ef 0%, #f2ead6 100%);
}

.grid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 42%);
}

.grid-card h3 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.grid-card img {
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.hero-dark img,
.dark img {
  border-radius: 22px;
}

.logo-wrap {
  max-width: 560px;
  margin: 42px auto 0;
}

.signature-wrap {
  max-width: 620px;
  margin: 32px auto 0;
}

.signature-wrap img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 26px 54px rgba(176, 137, 52, 0.16);
}

.logo-note {
  max-width: 520px;
  margin: 24px auto 0;
  color: #6e6e73;
  line-height: 1.7;
}

.grid-card:first-child {
  min-height: 680px;
}

.grid-card:nth-child(2) {
  min-height: 680px;
}

.grid-card:nth-child(3) {
  min-height: 720px;
}

.grid-card:nth-child(4),
.grid-card:nth-child(5),
.grid-card:nth-child(6) {
  min-height: 560px;
}

.site-footer {
  padding: 26px 0 48px;
}

.footer-inner {
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner p {
  margin: 0;
  font-size: 0.78rem;
  color: #6e6e73;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .nav-links {
    display: none;
  }

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

  .grid-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .global-nav-inner,
  .product-rail-section,
  .section-intro,
  .hero-panel,
  .grid-section,
  .site-footer {
    width: calc(100% - 16px);
  }

  .promo-ribbon {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .pricing-section {
    width: calc(100% - 16px);
    padding: 40px 18px 24px;
    border-radius: 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .pricing-art {
    min-height: 210px;
    padding-bottom: 12px;
  }

  .pricing-subtitle {
    min-height: auto;
  }

  .pricing-actions {
    flex-direction: column;
    gap: 10px;
  }

  .product-lineup-frame {
    padding: 10px;
    border-radius: 24px;
  }

  .product-lineup-frame img {
    border-radius: 18px;
  }

  .hero-panel,
  .grid-card {
    min-height: auto;
  }

  .hero-panel {
    padding: 46px 22px 24px;
    border-radius: 24px;
  }

  .grid-card {
    padding: 26px 20px 20px;
    border-radius: 24px;
  }

  .panel-links,
  .card-links {
    flex-direction: column;
    gap: 10px;
  }

  .purchase-cta {
    width: 100%;
    min-width: 0;
  }

  .avatar-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
    align-items: flex-end;
  }

  .avatar-toast-bubble {
    max-width: none;
    font-size: 0.92rem;
    padding: 14px 16px;
  }

  .avatar-toast-card {
    width: 108px;
  }

  .avatar-portrait-ring {
    width: 104px;
    height: 122px;
  }

  .avatar-toast-meta {
    padding: 2px 4px 0;
  }

  .avatar-toast-meta strong {
    font-size: 0.82rem;
  }

  .avatar-toast-meta span {
    font-size: 0.68rem;
  }
}
