/* ==========================================================================
   Core Music — home page
   Ported 1:1 from `Core Music.dc.html`. Loads after shared.css.
   ========================================================================== */

@keyframes om-drift-a { from { transform: translateY(-90px); }  to { transform: translateY(90px); } }
@keyframes om-drift-b { from { transform: translateY(110px); }  to { transform: translateY(-110px); } }

/* --------------------------------------------------------------------------
   Ambient glows
   -------------------------------------------------------------------------- */

.glow--a {
  top: -220px;
  left: 46%;
  width: 1000px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.055), transparent 62%);
  filter: blur(20px);
  animation-name: om-drift-a;
  --drift-from: -90px;
  --drift-to: 90px;
}

.glow--b {
  top: 1150px;
  left: -300px;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 64%);
  filter: blur(30px);
  animation-name: om-drift-b;
  --drift-from: 110px;
  --drift-to: -110px;
}

.glow--c {
  top: 1780px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 640px;
  background: radial-gradient(circle, rgba(255,255,255,0.035), transparent 66%);
  filter: blur(30px);
  animation-name: om-drift-a;
  --drift-from: -90px;
  --drift-to: 90px;
}

.main { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding: 72px 40px 40px; }

.hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  align-items: center;
  gap: 48px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 560px;
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-wrap: balance;
  animation: om-rise .9s cubic-bezier(.16, 1, .3, 1) .08s both;
}

.hero__lede {
  margin: 0;
  max-width: 440px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  color: #C9C9D1;
  text-wrap: pretty;
  animation: om-rise .9s cubic-bezier(.16, 1, .3, 1) .16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  animation: om-rise .9s cubic-bezier(.16, 1, .3, 1) .24s both;
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.btn--ghost {
  background: #17181c;
  border: 1px solid #2a2c31;
  color: #fafafa;
  transition: background .18s ease, border-color .18s ease;
}
.btn--ghost:hover { background: #1e1f24; border-color: #3a3c43; color: #fafafa; }

.btn--solid {
  background: #fafafa;
  color: #0a0a0b;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(255, 255, 255, 0.28);
  color: #0a0a0b;
}

/* Hero device — flat frame PNG over a perspective-mapped screenshot */

.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
  animation: om-rise 1.1s cubic-bezier(.16, 1, .3, 1) .3s both;
}

.device { position: relative; width: 281px; height: 612px; }

/* Two layers: a bright halo sized to spill *around* the device silhouette
   (the device itself covers the gradient's centre), over a broad ambient wash
   that lifts it off the page background. */
.device__glow {
  position: absolute;
  top: -30%;
  left: -60%;
  width: 220%;
  height: 165%;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 52% 46%,
      rgba(186, 212, 250, 0.42) 0%,
      rgba(146, 178, 232, 0.26) 40%,
      rgba(104, 134, 186, 0.10) 62%,
      rgba(10, 10, 11, 0) 80%),
    radial-gradient(70% 58% at 52% 50%,
      rgba(140, 170, 220, 0.14) 0%,
      rgba(96, 126, 180, 0.06) 46%,
      rgba(10, 10, 11, 0) 78%);
  filter: blur(40px);
}

.device__stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  transform: scale(0.7);
  transform-origin: 0 0;
  filter: drop-shadow(0 60px 90px rgba(0, 0, 0, 0.85));
}

.device__screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  transform: translate(26px, 0px) matrix3d(
    0.76631993, 0.04182064, 0, 0.00009316,
    0,          0.9743346,  0, 0,
    0,          0,          1, 0,
    43.03649635, 11.63117871, 0, 1);
  transform-origin: 0 0;
  border-radius: 40px;
  overflow: hidden;
}

.device__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.device__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  object-fit: contain;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   "Core Tempo Inside"
   -------------------------------------------------------------------------- */

.inside { max-width: 1240px; margin: 0 auto; padding: 120px 40px 140px; }

.inside__title {
  margin: 0 0 76px;
  text-align: center;
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 56px 40px;
}

.feature { display: flex; flex-direction: column; gap: 16px; }
.feature__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.feature__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  color: #8e8e96;
  text-wrap: pretty;
}

.eq { display: flex; align-items: flex-end; height: 26px; }
.eq--sm { gap: 3px; }
.eq--lg { gap: 4px; }

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */

.download {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 150px 40px 160px;
}

.download__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

.download__title {
  margin: 0;
  text-align: center;
  font-size: clamp(56px, 9.4vw, 132px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.05em;
}

/* The reveal animation lives on this wrapper, not on the link itself: with
   `animation-fill-mode: both` the animation owns `transform` for good, which
   would otherwise suppress the link's own translateY hover lift. */
.appstore-reveal { display: flex; }
