/* Herozion Extension  Apple-like pacing, Herozion palette */

.ext-page {
  --ex-ink: #f5f5f7;
  --ex-muted: #86868b;
  --ex-dim: #6e6e73;
  --ex-card: #14141a;
  --ex-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ex-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  background: #000;
  color: var(--ex-ink);
  overflow-x: clip;
}

.ext-page #navbar {
  background: rgba(2, 18, 47, 0.18);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: none;
  box-shadow: none;
}

/* ── Reveal system (Apple-style fade / rise) ── */
.ex-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1.05s var(--ex-ease-out),
    transform 1.05s var(--ex-ease-out);
  will-change: opacity, transform;
}

.ex-reveal.is-in {
  opacity: 1;
  transform: none;
}

.ex-reveal-d1 { transition-delay: 0.08s; }
.ex-reveal-d2 { transition-delay: 0.16s; }
.ex-reveal-d3 { transition-delay: 0.26s; }
.ex-reveal-d4 { transition-delay: 0.36s; }

/* ── Section 1  one continuous photo (extended sky + product) ── */
.ex-s1 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(96px, 12vh, 128px) 0 0;
  min-height: 100svh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 55% at 15% 100%, rgba(41, 151, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 55% at 85% 100%, rgba(90, 200, 250, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 40%, rgba(41, 151, 255, 0.08), transparent 65%),
    #f7f9fc;
  color: #111827;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ex-s1-plate {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  line-height: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
}

.ex-s1-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: center top;
}

.ex-s1-copy {
  position: relative;
  z-index: 2;
  width: min(92%, 880px);
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: normal;
  flex: 0 0 auto;
}

.ex-s1-title {
  margin: 0;
  font-size: clamp(34px, 5.8vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #111827;
}

.ex-hero-accent {
  display: inline-block;
  margin-top: 0.08em;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #5ac8fa 0%, #2997ff 48%, #0071e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ex-s1-tagline {
  margin: 1.1em 0 0;
  max-width: 38em;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: none;
  line-height: 1.5;
  color: #4b5563;
  padding-bottom: clamp(4px, 1vh, 12px);
}

.ex-brand {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--ex-muted);
  letter-spacing: 0.02em;
}

.ex-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  margin-top: 32px;
}

.ex-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ex-muted);
}

.ex-display {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.ex-display--lg {
  font-size: clamp(36px, 6.5vw, 64px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Section 2  generous black air from hero ── */
.ex-s2 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(96px, 18vh, 180px) 0 clamp(80px, 12vh, 140px);
  background: #000;
}

.ex-s2-intro {
  width: min(92%, 720px);
  margin: 0 auto clamp(48px, 8vh, 72px);
  padding: 0 20px;
  text-align: center;
}

.ex-s2-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ex-muted);
}

.ex-s2-heading {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #f5f5f7;
}

.ex-s2-grid {
  --ex-card-gap: clamp(14px, 1.6vw, 22px);
  position: relative;
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ex-card-gap);
  padding: 0;
  isolation: isolate;
}

.ex-s2-grid::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 55% at 8% 18%, rgba(41, 151, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 92% 86%, rgba(41, 151, 255, 0.1), transparent 72%);
}

.ex-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: clamp(18px, 2vw, 26px);
  border-radius: clamp(18px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(18, 28, 48, 0.92), rgba(6, 10, 18, 0.96));
  border: 1px solid rgba(41, 151, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px -28px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.ex-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #64d2ff;
  background: rgba(8, 16, 32, 0.9);
  border: 1px solid rgba(41, 151, 255, 0.55);
  box-shadow: 0 0 18px rgba(41, 151, 255, 0.18);
  flex: 0 0 auto;
}

.ex-card-title {
  margin: 14px 0 0;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #f5f5f7;
  text-align: left;
}

.ex-card-media {
  margin-top: 18px;
  flex: 1 1 auto;
  min-height: 220px;
  aspect-ratio: 1 / 1.05;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ex-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ex-card-ides {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.ex-card-ides li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-card-ide-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.ex-card-ide-logo svg,
.ex-card-ide-logo img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ex-card-soon {
  margin: 14px 0 0;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 180, 210, 0.72);
}

.ex-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(64px, 10vh, 104px);
  padding: 0 16px;
}

.ex-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 12px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.35s var(--ex-ease), background 0.25s ease;
}

.ex-install-btn img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #1d1d1f;
}

.ex-install-btn:hover {
  transform: scale(1.03);
  background: #fff;
  box-shadow: none;
}

.ex-install-note {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ex-muted);
}

/* ── Section 3  Quick Fix living stage ── */
.ex-s3 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(96px, 16vh, 168px) 0 clamp(88px, 14vh, 140px);
  background: #000;
  overflow: hidden;
}

.ex-s3-ambience {
  position: absolute;
  inset: -10% 0 10%;
  pointer-events: none;
  z-index: 0;
}

.ex-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: ex-orb-drift 12s var(--ex-ease) infinite alternate;
}

.ex-orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  left: 8%;
  top: 22%;
  background: rgba(41, 151, 255, 0.22);
}

.ex-orb--b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  right: 6%;
  top: 38%;
  background: rgba(90, 200, 250, 0.14);
  animation-delay: -4s;
}

.ex-orb--c {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  left: 42%;
  bottom: 8%;
  background: rgba(41, 151, 255, 0.12);
  animation-delay: -7s;
}

@keyframes ex-orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12px, -18px, 0) scale(1.06); }
}

.ex-s3-intro {
  position: relative;
  z-index: 2;
  width: min(92%, 680px);
  margin: 0 auto clamp(40px, 7vh, 64px);
  padding: 0 16px;
  text-align: center;
}

.ex-s3-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ex-muted);
}

.ex-s3-heading {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #f5f5f7;
}

.ex-s3-lead {
  margin: 1em auto 0;
  max-width: 32em;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--ex-muted);
}

.ex-s3-showcase {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
}

.ex-s3-plate {
  position: relative;
  width: 100%;
  line-height: 0;
  border-radius: 0;
  overflow: hidden;
  transform: translate3d(0, 18px, 0);
  transition: transform 1.1s var(--ex-ease-out);
}

.ex-s3-showcase.is-in .ex-s3-plate {
  transform: none;
}

@keyframes ex-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.ex-s3-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center top;
}

.ex-s3-detail {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 40px);
  width: min(42%, 440px);
  border-radius: clamp(12px, 1.6vw, 18px);
  overflow: hidden;
  line-height: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 60px -16px rgba(0, 0, 0, 0.75);
  transform: translate3d(0, 20px, 0) scale(0.98);
  opacity: 0;
  transition: transform 1.15s var(--ex-ease-out) 0.12s, opacity 0.9s var(--ex-ease-out) 0.12s;
}

.ex-s3-showcase.is-in .ex-s3-detail {
  transform: none;
  opacity: 1;
  animation: ex-float 8s var(--ex-ease) 1.4s infinite reverse;
}

.ex-s3-detail img {
  display: block;
  width: 100%;
  height: auto;
}

.ex-s3-chips {
  position: relative;
  z-index: 2;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(28px, 5vh, 44px) auto 0;
  padding: 0 16px;
}

.ex-s3-chips li {
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.ex-s3-chips li:nth-child(1) { color: #ffd60a; }
.ex-s3-chips li:nth-child(2) { color: #64d2ff; }
.ex-s3-chips li:nth-child(3) { color: #f5f5f7; }

/* ── Living beats (replace empty title voids) ── */
.ex-beat {
  position: relative;
  width: 100%;
  padding: clamp(96px, 16vh, 160px) 0;
  background: #000;
  overflow: hidden;
}

.ex-beat-ambience {
  position: absolute;
  inset: 10% 15%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(41, 151, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(90, 200, 250, 0.08), transparent 50%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.ex-beat-ambience--soft {
  background:
    radial-gradient(ellipse at 70% 45%, rgba(50, 215, 75, 0.1), transparent 55%),
    radial-gradient(ellipse at 25% 55%, rgba(41, 151, 255, 0.1), transparent 50%);
}

.ex-beat-inner {
  position: relative;
  z-index: 1;
  width: min(92%, 1080px);
  margin: 0 auto;
  padding: 0 16px;
}

.ex-beat-inner--split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.ex-beat-copy {
  max-width: 36em;
}

.ex-beat-copy--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ex-beat-title {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #f5f5f7;
}

.ex-beat-lead {
  margin: 1em 0 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  color: var(--ex-muted);
}

.ex-beat-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
  margin: clamp(40px, 7vh, 64px) 0 0;
  padding: 0;
}

.ex-beat-step {
  padding: 22px 20px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}

.ex-beat-num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent, #2997ff);
}

.ex-beat-step h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.ex-beat-step p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ex-muted);
}

.ex-priv-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
}

.ex-priv-points li {
  padding: 8px 14px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  color: #d1d1d6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ex-priv-visual {
  position: relative;
}

.ex-priv-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  line-height: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.ex-priv-card img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: transform 1.2s var(--ex-ease-out);
}

.ex-priv-visual.is-in .ex-priv-card img {
  transform: scale(1);
}

.ex-priv-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
  background: #f5f5f7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ex-ide-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: clamp(28px, 5vh, 40px) 0 0;
  padding: 0;
}

.ex-ide-row li {
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ex-ease), background 0.25s ease, border-color 0.25s ease;
}

.ex-ide-row li:hover {
  transform: translateY(-3px);
  background: rgba(41, 151, 255, 0.12);
  border-color: rgba(41, 151, 255, 0.35);
}

.ex-ides-plate {
  margin-top: clamp(28px, 5vh, 44px);
  border-radius: clamp(16px, 2vw, 28px);
  overflow: hidden;
  line-height: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 40px 90px -36px rgba(41, 151, 255, 0.28);
}

.ex-ides-plate img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .ex-s3-detail {
    width: min(56%, 340px);
    right: clamp(12px, 3vw, 24px);
    bottom: clamp(12px, 3vw, 24px);
  }

  .ex-beat-inner--split {
    grid-template-columns: 1fr;
  }

  .ex-beat-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ex-s1 {
    padding-top: 88px;
  }

  .ex-s2-grid {
    width: min(100% - 24px, 1240px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ex-card-ides li {
    min-height: 48px;
  }

  .ex-s3-detail {
    width: min(70%, 280px);
    border-radius: 12px;
  }
}

/* ── Performance  product photo ── */
.ex-perf {
  position: relative;
  width: 100%;
  padding: clamp(88px, 14vh, 140px) 0 0;
  background: #000;
  color: #f5f5f7;
  overflow: hidden;
}

.ex-perf-copy {
  width: min(92%, 720px);
  margin: 0 auto clamp(36px, 6vh, 56px);
  padding: 0 16px;
  text-align: center;
}

.ex-perf-kicker {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #86868b;
}

.ex-perf-title {
  margin: 0;
  font-size: clamp(36px, 6.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #f5f5f7;
}

.ex-perf-lead {
  margin: 1em auto 0;
  max-width: 34em;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.45;
  color: #86868b;
}

.ex-perf-plate {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.ex-perf-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: center bottom;
}

/* Close */
.ex-close {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14vh 24px;
  isolation: isolate;
  background: #000;
}

.ex-close-glow {
  position: absolute;
  inset: 28% 28%;
  background: radial-gradient(ellipse at center, rgba(41, 151, 255, 0.06), transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.ex-close > *:not(.ex-close-glow) {
  position: relative;
  z-index: 1;
}

.ex-close-title {
  margin: 0;
  font-size: clamp(36px, 6.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.ex-close-lead {
  margin: 20px auto 0;
  max-width: 28em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ex-muted);
}

.ex-close-note {
  margin-top: 28px;
}

.ex-docs-link {
  font-size: 14px;
  color: var(--ex-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ex-docs-link:hover {
  color: var(--ex-muted);
  border-bottom-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .ex-reveal,
  .ex-s1-plate,
  .ex-install-btn,
  .ex-s3-plate,
  .ex-s3-detail,
  .ex-priv-card img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .ex-orb,
  .ex-s3-showcase.is-in .ex-s3-plate,
  .ex-s3-showcase.is-in .ex-s3-detail {
    animation: none !important;
  }
}
