:root {
  --navy: #0A1224;
  --navy-2: #0F1B33;
  --navy-3: #1A2B4D;
  --blue: #3FA6FF;
  --electric: #3FA6FF;
  --purple: #A66BFF;
  --violet: #A66BFF;
  --pink: #FF5DBA;
  --teal: #27E1C1;
  --amber: #FFAA2B;
  --rose: #FF7AC8;
  --white: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e7ecf4;
  --wave-magenta: #FF5DBA;
  --wave-purple: #A66BFF;
  --wave-cyan: #3FA6FF;
  --gradient: linear-gradient(90deg, var(--wave-magenta), var(--wave-purple), var(--wave-cyan));
  --brand-gradient: linear-gradient(90deg, #3FA6FF 0%, #5BC8FF 48%, #27E1C1 100%);
  --waveform-gradient: linear-gradient(90deg, #FF5DBA 0%, #A66BFF 50%, #3FA6FF 100%);
  --module-melody: #FF5DBA;
  --module-instrument: #3FA6FF;
  --module-texture: #27E1C1;
  --module-meter: #FFAA2B;
  --module-harmony: #A66BFF;
  --module-context: #FF7AC8;
  --module-score-decoder: #B7F34A;
  --module-structure: #FF6B4A;
  --shadow: 0 24px 60px rgba(16, 24, 40, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* =========================
   Hero shell
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 14px 18px 26px;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 4%, rgba(56, 189, 248, .16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(56, 189, 248, .25), transparent 31%),
    radial-gradient(circle at 18% 72%, rgba(168, 85, 247, .20), transparent 34%),
    radial-gradient(circle at 62% 42%, rgba(74, 144, 226, .10), transparent 38%),
    linear-gradient(135deg, #050b16, #07111f 48%, #101f3d);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 64% 38%, black 0, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -360px;
  bottom: -430px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(56, 189, 248, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 82px rgba(56, 189, 248, .045),
    0 0 0 164px rgba(168, 85, 247, .035),
    0 0 0 246px rgba(255, 255, 255, .012),
    0 0 70px rgba(56, 189, 248, .08);
  pointer-events: none;
}

.nav,
.hero-stage {
  position: relative;
  z-index: 1;
}

/* =========================
   Product navigation and logo
========================= */

.nav {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .074), rgba(255, 255, 255, .03)),
    rgba(5, 13, 28, .76);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .18);
}

.product-nav {
  height: 92px;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-side {
  min-width: 0;
  display: flex;
  align-items: center;
}

.nav-side-left {
  justify-content: flex-start;
}

.nav-side-right {
  justify-content: flex-end;
}

.nav-explore-button {
  min-height: 46px;
  padding: 0 17px 0 19px;
  border: 1px solid rgba(56, 189, 248, .38);
  border-radius: 999px;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, .22), transparent 34%),
    linear-gradient(135deg, rgba(168, 85, 247, .42), rgba(74, 144, 226, .24));
  box-shadow: 0 14px 34px rgba(56, 189, 248, .12);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 900;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, filter .22s ease, color .22s ease;
}

.nav-explore-button:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, .72);
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, .32), transparent 34%),
    linear-gradient(135deg, rgba(168, 85, 247, .58), rgba(74, 144, 226, .34));
  box-shadow: 0 18px 42px rgba(56, 189, 248, .18);
}

/* Homepage top-bar CTAs — II/MM/TT button language (glass + primary blue, not pills) */
.hero .product-nav .nav-explore-button {
  min-height: 46px;
  padding: 0 22px;
  gap: 8px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
  font-size: .86rem;
  font-weight: 620;
  letter-spacing: .01em;
}

.hero .product-nav .nav-explore-button:hover {
  transform: translateY(-1px);
  filter: none;
  border-color: rgba(255, 255, 255, .42);
  color: rgba(255, 255, 255, .96);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}

/* Teacher/Student login — same glass secondary as Founding Partners */
.hero .product-nav .nav-action-button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
  font-size: .86rem;
  font-weight: 620;
  letter-spacing: .01em;
  white-space: nowrap;
}

.hero .product-nav .nav-action-button:hover {
  transform: translateY(-1px);
  filter: none;
  border-color: rgba(255, 255, 255, .42);
  color: rgba(255, 255, 255, .96);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}

/* White line-art top-bar icons — max fill inside fixed 46px tiles (Founding + Login) */
.hero .product-nav .nav-explore-button img,
.hero .product-nav .nav-explore-button img[src$=".png"],
.hero .product-nav .nav-action-button img,
.hero .product-nav .nav-action-button img[src$=".png"] {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 0;
  object-fit: contain;
  opacity: .98;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .16));
  transform-origin: center;
  transition: transform .24s ease, filter .24s ease, opacity .24s ease;
}

.hero .product-nav .nav-explore-button:hover img,
.hero .product-nav .nav-explore-button:hover img[src$=".png"],
.hero .product-nav .nav-action-button:hover img,
.hero .product-nav .nav-action-button:hover img[src$=".png"] {
  opacity: 1;
  transform: scale(1.04);
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, .22));
}

@media (prefers-reduced-motion: reduce) {
  .hero .product-nav .nav-explore-button img,
  .hero .product-nav .nav-explore-button img[src$=".png"],
  .hero .product-nav .nav-action-button img,
  .hero .product-nav .nav-action-button img[src$=".png"] {
    transition: none;
  }

  .hero .product-nav .nav-explore-button:hover img,
  .hero .product-nav .nav-explore-button:hover img[src$=".png"],
  .hero .product-nav .nav-action-button:hover img,
  .hero .product-nav .nav-action-button:hover img[src$=".png"] {
    transform: none;
  }
}

.nav-explore-button img[src$=".png"] {
  border-radius: 4px;
  filter: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  font-weight: 950;
}

.product-nav .brand-lockup {
  grid-column: 2;
  justify-self: center;
}

.product-nav .refined-logo {
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.028em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.product-nav .wordmark {
  font-size: clamp(2.65rem, 4vw, 3.55rem);
}

.wordmark-echo {
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 16px 34px rgba(0, 0, 0, .18);
}

.wordmark-aural {
  background: var(--brand-gradient);
  background-size: 165% 165%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: echoTextGlow 6.2s ease-in-out infinite;
}

.brand-wave,
.refined-wave {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(#0A1224, #0A1224) padding-box,
    var(--waveform-gradient) border-box;
  box-shadow: 0 0 16px rgba(255, 93, 186, .18), 0 0 22px rgba(63, 166, 255, .16);
  overflow: hidden;
}

.brand-wave::before,
.refined-wave::before {
  content: "EA";
  position: absolute;
  left: 17%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #fff;
  font-size: .72em;
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  pointer-events: none;
}

.product-nav .refined-wave {
  width: 78px;
  height: 78px;
  gap: 3px;
  padding: 14px 12px 14px 34px;
  font-size: 2.1rem;
}

.refined-wave span {
  width: 3.5px;
  border-radius: 999px;
  flex: 0 0 auto;
  transform-origin: 50% 50%;
  animation: eaWaveIdlePulseResolve 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 93, 186, .28), 0 0 12px rgba(63, 166, 255, .2);
}

.refined-wave span:nth-child(1) {
  height: 22%;
  background: #FF5DBA;
  animation-delay: 0s;
}

.refined-wave span:nth-child(2) {
  height: 42%;
  background: linear-gradient(180deg, #FF5DBA, #A66BFF);
  animation-delay: .08s;
}

.refined-wave span:nth-child(3) {
  height: 68%;
  background: #A66BFF;
  animation-delay: .16s;
}

.refined-wave span:nth-child(4) {
  height: 92%;
  background: linear-gradient(180deg, #A66BFF, #3FA6FF);
  animation-delay: .24s;
}

.refined-wave span:nth-child(5) {
  height: 64%;
  background: #3FA6FF;
  animation-delay: .32s;
}

.refined-wave span:nth-child(6) {
  height: 40%;
  background: linear-gradient(180deg, #3FA6FF, #27E1C1);
  animation-delay: .4s;
}

.refined-wave span:nth-child(7) {
  height: 24%;
  background: #27E1C1;
  animation-delay: .48s;
}

/* Idle → pulse in → peak → pulse out → resolve */
@keyframes eaWaveIdlePulseResolve {
  0%, 100% { transform: scaleY(.42); opacity: .55; }   /* idle / resolve */
  25% { transform: scaleY(.78); opacity: .82; }        /* pulse in */
  50% { transform: scaleY(1.18); opacity: 1; }         /* peak */
  75% { transform: scaleY(.7); opacity: .78; }         /* pulse out */
}

@keyframes echoTextGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =========================
   Hero layout and background details
========================= */

.hero-stage {
  position: relative;
  width: min(1180px, calc(100vw - 36px));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 22px) 0 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: clamp(15px, 2vw, 24px);
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.hero-stage::before {
  width: min(520px, 48vw);
  height: min(520px, 48vw);
  left: -18%;
  top: 16%;
  border: 1px solid rgba(255, 255, 255, .055);
  box-shadow: 0 0 0 58px rgba(56, 189, 248, .018), 0 0 0 116px rgba(168, 85, 247, .014);
  opacity: .9;
}

.hero-stage::after {
  width: min(420px, 40vw);
  height: min(420px, 40vw);
  right: -12%;
  top: 32%;
  border: 1px solid rgba(168, 85, 247, .08);
  box-shadow: 0 0 0 50px rgba(74, 144, 226, .018), 0 0 0 100px rgba(255, 255, 255, .01);
  opacity: .85;
}

.hero-stage > * {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--electric);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.eyebrow.dark {
  color: var(--purple);
}

.hero-waveform-bg {
  position: absolute;
  left: 50%;
  top: 61%;
  width: 100vw;
  height: min(285px, 30vh);
  transform: translateX(-50%) translateY(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: .42;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 91%, transparent 100%);
}

.hero-waveform-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes heroBarWave {
  0%, 100% { transform: scaleY(.42); opacity: .34; }
  25% { transform: scaleY(.78); opacity: .62; }
  50% { transform: scaleY(1.12); opacity: .88; }
  75% { transform: scaleY(.7); opacity: .56; }
}

/* =========================
   App launcher
========================= */

.module-launcher,
.hero-copy,
.hero-cta {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  justify-self: center;
}

.module-launcher {
  padding: 9px 12px 8px;
  border: 1px solid rgba(255, 255, 255, .135);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .11), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(168, 85, 247, .12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .082), rgba(255, 255, 255, .034));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.launcher-heading {
  width: 100%;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.launcher-kicker {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mode-launcher-kicker {
  margin: 9px 0 8px;
  text-align: center;
}

.refined-launcher-title {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: white;
  font-weight: 900;
  text-align: center;
  line-height: .96;
  letter-spacing: normal;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.launcher-title-wave,
.mini-title-wave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.launcher-title-wave {
  width: 36px;
  height: 32px;
  gap: 3px;
}

.launcher-title-wave span,
.mini-title-wave span {
  border-radius: 999px;
  display: block;
  background: var(--waveform-gradient);
  animation: eaWaveIdlePulseResolve 2.4s ease-in-out infinite;
}

.launcher-title-wave span {
  width: 3.5px;
  box-shadow: 0 0 7px rgba(255, 93, 186, .24), 0 0 12px rgba(63, 166, 255, .14);
}

.launcher-title-wave span:nth-child(1) { height: 13px; animation-delay: 0s; }
.launcher-title-wave span:nth-child(2) { height: 22px; animation-delay: .08s; }
.launcher-title-wave span:nth-child(3) { height: 31px; animation-delay: .16s; }
.launcher-title-wave span:nth-child(4) { height: 22px; animation-delay: .24s; }
.launcher-title-wave span:nth-child(5) { height: 13px; animation-delay: .32s; }

.launcher-title-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.75rem, 2.45vw, 2.7rem);
  line-height: .95;
  letter-spacing: -.025em;
  font-weight: 500;
}

.launcher-title-echo {
  color: rgba(255, 255, 255, .96);
}

.launcher-title-aural {
  background: var(--brand-gradient);
  background-size: 170% 170%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: echoTextGlow 6.2s ease-in-out infinite;
}

.launcher-title-apps {
  padding: 5px 10px 6px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, .13), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .032));
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.module-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  justify-items: stretch;
  gap: 8px;
}

.module-grid + .module-grid {
  margin-top: 8px;
}

.module-grid-main {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.module-grid-secondary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.module-grid-secondary .module-card:nth-child(1) {
  grid-column: 2;
}

.module-grid-secondary .module-card:nth-child(2) {
  grid-column: 3;
}

.module-grid-secondary .module-card:nth-child(3) {
  grid-column: 4;
}

.module-grid-secondary .module-card:nth-child(4) {
  grid-column: 5;
}

.module-card {
  position: relative;
  min-width: 0;
  min-height: 144px;
  padding: 12px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  color: white;
  background:
    radial-gradient(circle at 82% 10%, rgba(56, 189, 248, .095), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .034));
  display: grid;
  grid-template-rows: 90px 38px;
  align-items: center;
  justify-items: center;
  text-align: center;
  font: inherit;
  cursor: pointer;
  gap: 6px;
  container-type: inline-size;
  transform-origin: center center;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.module-card-waveform {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 9px;
  opacity: .07;
  transform: scale(1.07);
  transform-origin: center;
  transition: opacity .28s ease, transform .28s ease;
  mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%);
}

.module-card-waveform span {
  width: clamp(4px, .45vw, 7px);
  height: var(--h);
  min-height: 30px;
  max-height: 112px;
  border-radius: 999px;
  flex: 1 1 0;
  background: color-mix(in srgb, var(--module-accent, var(--wave-cyan)) 72%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--module-accent, var(--wave-cyan)) 28%, transparent);
  transform-origin: 50% 50%;
  animation: eaWaveIdlePulseResolve 2.75s ease-in-out infinite;
  animation-delay: var(--delay);
}

.module-card:hover .module-card-waveform,
.module-card:focus-visible .module-card-waveform {
  opacity: .17;
  transform: scale(1.13);
}

.module-icon,
.module-title-wordmark {
  position: relative;
  z-index: 1;
}

@keyframes moduleCardWave {
  0% { transform: scaleY(.48); opacity: .36; }
  34% { transform: scaleY(1.08); opacity: .78; }
  68% { transform: scaleY(.74); opacity: .56; }
  100% { transform: scaleY(.48); opacity: .36; }
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-7px) scale(1.055);
  z-index: 8;
  border-color: rgba(56, 189, 248, .68);
  background:
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, .22), transparent 40%),
    radial-gradient(circle at 16% 88%, rgba(168, 85, 247, .16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .045));
  box-shadow: 0 24px 58px rgba(0, 0, 0, .28), 0 0 0 1px rgba(56, 189, 248, .08);
}

.module-card.live {
  border-color: rgba(56, 189, 248, .46);
  background:
    radial-gradient(circle at 82% 10%, rgba(56, 189, 248, .15), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .038));
}

.module-icon {
  grid-row: 1;
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  padding: 2px;
  border: 1px solid rgba(143, 203, 255, .42);
  border-radius: 18px;
  display: grid;
  place-items: center;
  /* App tiles share the light-blue mode-icon plate */
  background:
    radial-gradient(circle at 68% 22%, rgba(143, 203, 255, .38), transparent 40%),
    linear-gradient(135deg, #8FCBFF 0%, #3FA6FF 55%, #1B6FCC 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    0 14px 30px rgba(27, 111, 204, .22);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, border-color .28s ease;
}

/* Mode tiles: same light-blue plate as app icons */
.module-card-mode .module-icon {
  border-color: rgba(143, 203, 255, .42);
  background:
    radial-gradient(circle at 68% 22%, rgba(143, 203, 255, .38), transparent 40%),
    linear-gradient(135deg, #8FCBFF 0%, #3FA6FF 55%, #1B6FCC 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    0 14px 30px rgba(27, 111, 204, .22);
}

/* Instrument Identifier only: darker royal blue */
.module-grid-main .module-card:nth-child(1) .module-icon {
  border-color: rgba(70, 102, 212, .45);
  background:
    radial-gradient(circle at 68% 22%, rgba(70, 102, 212, .35), transparent 40%),
    linear-gradient(135deg, #4666D4 0%, #2346BD 55%, #00175E 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 14px 30px rgba(0, 23, 94, .28);
}

.module-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, .2)) drop-shadow(0 0 10px rgba(56, 189, 248, .22));
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.module-icon img[src*=".png"] {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  filter: none;
}

.module-icon.missing-icon::before {
  content: attr(data-fallback);
  color: white;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

.module-card:hover .module-icon,
.module-card:focus-visible .module-icon {
  transform: scale(1.14);
  border-color: rgba(56, 189, 248, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 38px rgba(0, 0, 0, .28), 0 0 18px rgba(56, 189, 248, .12);
}

.module-card:hover .module-icon img,
.module-card:focus-visible .module-icon img {
  transform: scale(1.08);
}

.module-title-wordmark {
  grid-row: 2;
  width: 100%;
  min-height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform-origin: center center;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), filter .28s ease;
}

.module-card:hover .module-title-wordmark,
.module-card:focus-visible .module-title-wordmark {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, .14));
}

.mini-title-wave {
  display: none;
}

.mini-title-wave span {
  width: 2.5px;
  box-shadow: 0 0 5px rgba(56, 189, 248, .22), 0 0 8px rgba(168, 85, 247, .12);
}

.mini-title-wave span:nth-child(1) { height: 8px; opacity: .9; }
.mini-title-wave span:nth-child(2) { height: 15px; }
.mini-title-wave span:nth-child(3) { height: 23px; }
.mini-title-wave span:nth-child(4) { height: 15px; }
.mini-title-wave span:nth-child(5) { height: 8px; opacity: .9; }

.module-title-wordmark::after {
  display: none;
}

.module-title-text {
  min-width: 0;
  width: auto;
  max-width: 100%;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0;
  font-size: clamp(.84rem, calc((100cqi - 6mm) / 8.22), 1.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  text-align: center;
  white-space: nowrap;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.module-title-main,
.module-title-gradient {
  display: inline;
  width: auto;
}

.module-title-main {
  color: rgba(255, 255, 255, .98);
  font-weight: 700;
  text-shadow:
    0 0 1px rgba(0, 0, 0, .55),
    0 1px 2px rgba(0, 0, 0, .45),
    0 8px 18px rgba(0, 0, 0, .28);
}

/* Chart apps: white first word + accent second word. Uncharted modes: both white. */
.module-title-gradient {
  background: none;
  color: var(--module-accent, rgba(255, 255, 255, .98));
  -webkit-text-fill-color: var(--module-accent, rgba(255, 255, 255, .98));
  text-shadow:
    0 0 1px rgba(0, 0, 0, .5),
    0 1px 2px rgba(0, 0, 0, .4),
    0 0 14px color-mix(in srgb, var(--module-accent, #fff) 40%, transparent);
}

.module-grid-main .module-card:nth-child(1) { --module-accent: var(--module-instrument); }
.module-grid-main .module-card:nth-child(2) { --module-accent: var(--module-melody); }
.module-grid-main .module-card:nth-child(3) { --module-accent: var(--module-texture); }
.module-grid-main .module-card:nth-child(4) { --module-accent: var(--module-meter); }
.module-grid-main .module-card:nth-child(5) { --module-accent: var(--module-harmony); }
.module-grid-main .module-card:nth-child(6) { --module-accent: var(--module-structure); }
.module-grid-main .module-card:nth-child(7) { --module-accent: var(--module-context); }
.module-grid-main .module-card:nth-child(8) { --module-accent: var(--module-score-decoder); }

.module-grid-main .module-card .module-title-gradient {
  text-shadow:
    0 0 1px rgba(0, 0, 0, .55),
    0 1px 2px rgba(0, 0, 0, .45),
    0 0 14px color-mix(in srgb, var(--module-accent) 40%, transparent);
}

.module-status {
  grid-row: 3;
  width: fit-content;
  margin: 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #e9d5ff;
  background: rgba(168, 85, 247, .18);
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.live-status {
  color: #bae6fd;
  background: rgba(56, 189, 248, .18);
}

.module-message {
  min-height: 10px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: .8rem;
  font-weight: 780;
  text-align: center;
}

.module-card > h3 {
  display: none;
}

/* =========================
   Hero copy
========================= */

.hero-copy {
  display: grid;
  place-items: center;
  place-content: center;
  text-align: center;
}

.hero-copy > * {
  position: relative;
  z-index: 3;
}

.hero-brand-line {
  margin-bottom: 18px;
  color: transparent;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: .92rem;
  font-weight: 950;
  letter-spacing: .24em;
  text-align: center;
}

.hero-title {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 26px;
  padding-inline: 16px;
  padding-bottom: .08em;
  display: grid;
  gap: 6px;
  color: white;
  font-size: clamp(3.15rem, 4.85vw, 4.65rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: normal;
  text-align: center;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.hero-title-line,
.hero-title-line-second {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: .16em;
  text-align: center;
  line-height: 1.08;
  white-space: nowrap;
}

.hero-title-line-second {
  font-size: .84em;
  color: rgba(255, 255, 255, .96);
}

.hero-title-gradient,
.hero-title-gradient-alt {
  display: inline-block;
  padding-bottom: .08em;
  margin-bottom: -.08em;
  line-height: 1.08;
  overflow: visible;
  background: var(--brand-gradient);
  background-size: 170% 170%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: echoTextGlow 6.2s ease-in-out infinite;
}

.hero-title-gradient-alt {
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 14%, #38bdf8 42%, #8b5cf6 76%, #fb7185 100%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lede {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  line-height: 1.62;
  text-align: center;
}

.trust-line {
  max-width: 720px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, .52);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

/* =========================
   Secondary links and lower section
========================= */

.hero-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-bottom: 6px;
}

.secondary-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, .55);
  font-size: .86rem;
  font-weight: 760;
}

.secondary-links a {
  color: rgba(255, 255, 255, .62);
  transition: color .2s ease;
}

.secondary-links a:hover {
  color: white;
}

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 88px 24px 96px;
}

.method-section {
  background: white;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2.35rem, 4vw, 4.3rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.soft-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(circle at 82% 14%, rgba(74, 144, 226, .1), transparent 34%), white;
  box-shadow: var(--shadow);
}

.feature-number {
  width: fit-content;
  margin-bottom: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  display: inline-block;
  color: #6d28d9;
  background: #f3e8ff;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.soft-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.42rem;
  letter-spacing: -.045em;
}

.soft-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.site-footer {
  min-height: 44px;
  padding: 8px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: .9rem;
}

.site-footer .brand-lockup {
  gap: 10px;
}

.site-footer .wordmark {
  font-size: 1rem;
  letter-spacing: -.04em;
}

.site-footer .refined-wave {
  width: 38px;
  height: 30px;
  gap: 2px;
}

.site-footer .refined-wave span {
  width: 3px;
  box-shadow: none;
}

.site-footer .refined-wave span:nth-child(1) { height: 8px; }
.site-footer .refined-wave span:nth-child(2) { height: 14px; }
.site-footer .refined-wave span:nth-child(3) { height: 22px; }
.site-footer .refined-wave span:nth-child(4) { height: 28px; }
.site-footer .refined-wave span:nth-child(5) { height: 20px; }
.site-footer .refined-wave span:nth-child(6) { height: 14px; }
.site-footer .refined-wave span:nth-child(7) { height: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Responsive
========================= */

@media (min-width: 1400px) {
  .hero-stage {
    width: min(1180px, calc(100vw - 64px));
  }

  .hero-title {
    font-size: clamp(3.4rem, 4.5vw, 4.65rem);
  }
}

@media (max-width: 1180px) {
  .hero-stage {
    min-height: auto;
  }

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

  .module-grid-main,
  .module-grid-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-grid-secondary .module-card:nth-child(n) {
    grid-column: auto;
  }

  .module-card {
    min-height: 150px;
  }

  .hero-copy {
    min-height: 330px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 7vw, 5.25rem);
  }
}

@media (max-width: 900px) {
  .hero-title {
    max-width: 760px;
    font-size: clamp(2.85rem, 8.6vw, 4.75rem);
    line-height: 1;
    gap: 10px;
  }

  .hero-title-line,
  .hero-title-line-second {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 4px;
  }

  .hero-title-line-second {
    font-size: .88em;
  }
}

@media (max-width: 820px) {
  .product-nav {
    height: auto;
    min-height: 82px;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 28px;
  }

  .product-nav .brand-lockup {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-side-left {
    grid-row: 2;
    justify-content: center;
  }

  .nav-side-right {
    display: none;
  }

  .nav-explore-button {
    min-height: 40px;
    font-size: .82rem;
  }

  .product-nav .refined-logo {
    gap: 14px;
  }

  .product-nav .wordmark {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .product-nav .refined-wave {
    width: 70px;
    height: 58px;
    gap: 4px;
  }

  .product-nav .refined-wave span {
    width: 5px;
  }

  .product-nav .refined-wave span:nth-child(1) { height: 14px; }
  .product-nav .refined-wave span:nth-child(2) { height: 28px; }
  .product-nav .refined-wave span:nth-child(3) { height: 42px; }
  .product-nav .refined-wave span:nth-child(4) { height: 56px; }
  .product-nav .refined-wave span:nth-child(5) { height: 40px; }
  .product-nav .refined-wave span:nth-child(6) { height: 28px; }
  .product-nav .refined-wave span:nth-child(7) { height: 14px; }

  .refined-launcher-title {
    flex-wrap: wrap;
    gap: 8px;
  }

  .launcher-title-wordmark {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .launcher-title-apps {
    font-size: .68rem;
  }

  .module-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    max-width: 420px;
    width: 100%;
    min-height: 150px;
    margin-inline: auto;
    grid-template-rows: 94px 40px;
  }

  .module-card:hover,
  .module-card:focus-visible {
    transform: translateY(-4px) scale(1.025);
  }

  .module-title-wordmark {
    max-width: 300px;
  }

  .module-icon {
    width: 92px;
    height: 92px;
  }

  .module-icon img {
    width: 84px;
    height: 84px;
  }

  .mini-title-wave {
    display: none;
  }

  .section {
    padding: 70px 18px 76px;
  }

  .hero-waveform-bg {
    top: 59%;
    height: 220px;
    opacity: .44;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding: 10px 12px 22px;
  }

  .hero-stage {
    width: min(100%, calc(100vw - 24px));
    padding-top: 22px;
    gap: 26px;
  }

  .hero-stage::before,
  .hero-stage::after {
    opacity: .45;
  }

  .hero-stage::before {
    left: -45%;
    top: 22%;
  }

  .hero-stage::after {
    right: -45%;
    top: 46%;
  }

  .product-nav .wordmark {
    font-size: 1.65rem;
  }

  .product-nav .refined-wave {
    width: 54px;
    height: 44px;
    gap: 3px;
  }

  .product-nav .refined-wave span {
    width: 4px;
  }

  .product-nav .refined-wave span:nth-child(1) { height: 10px; }
  .product-nav .refined-wave span:nth-child(2) { height: 20px; }
  .product-nav .refined-wave span:nth-child(3) { height: 31px; }
  .product-nav .refined-wave span:nth-child(4) { height: 42px; }
  .product-nav .refined-wave span:nth-child(5) { height: 30px; }
  .product-nav .refined-wave span:nth-child(6) { height: 20px; }
  .product-nav .refined-wave span:nth-child(7) { height: 10px; }

  .launcher-title-wave {
    width: 30px;
    height: 28px;
  }

  .launcher-title-wave span {
    width: 3px;
  }

  .launcher-title-wave span:nth-child(1) { height: 10px; }
  .launcher-title-wave span:nth-child(2) { height: 18px; }
  .launcher-title-wave span:nth-child(3) { height: 26px; }
  .launcher-title-wave span:nth-child(4) { height: 18px; }
  .launcher-title-wave span:nth-child(5) { height: 10px; }

  .hero-copy {
    min-height: auto;
    padding: 14px 0;
  }

  .hero-brand-line {
    font-size: .78rem;
    letter-spacing: .18em;
  }

  .hero-title {
    max-width: 100%;
    padding-inline: 4px;
    font-size: clamp(2.55rem, 11vw, 3.9rem);
    line-height: 1.12;
    gap: 10px;
  }

  .hero-title-line,
  .hero-title-line-second {
    line-height: 1.12;
    gap: .13em;
    row-gap: 2px;
  }

  .hero-title-line-second {
    font-size: .9em;
  }

  .hero-waveform-bg {
    top: 58%;
    height: 170px;
    opacity: .40;
  }

  .secondary-links {
    max-width: 260px;
    line-height: 1.7;
  }

  .site-footer {
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refined-wave span,
  .launcher-title-wave span,
  .mini-title-wave span,
  .wordmark-aural,
  .launcher-title-aural,
  .module-card-waveform span,
  .hero-title-gradient,
  .hero-title-gradient-alt {
    animation: none;
  }
}

.brand-lockup.small .refined-wave {
  width: 52px;
  height: 52px;
  gap: 2px;
  padding: 10px 8px 10px 22px;
  font-size: 1.35rem;
}

.brand-lockup.small .refined-wave span {
  width: 2.5px;
}

.pedagogy-popout-wave.refined-wave {
  width: 64px;
  height: 64px;
  gap: 2px;
  padding: 12px 10px 12px 28px;
  font-size: 1.7rem;
}
/* =========================
   TOP NAV CENTRING + RIGHT MODE BUTTONS
========================= */

.product-nav {
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr) !important;
}

.product-nav .brand-lockup {
  grid-column: 2 !important;
  justify-self: center !important;
}

.nav-side-left {
  grid-column: 1 !important;
  justify-content: flex-start !important;
}

.nav-side-right {
  grid-column: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.nav-action-button {
  min-height: 42px;
  padding-inline: 16px;
  white-space: nowrap;
  font-size: .82rem;
}

.nav-action-button:hover {
  transform: translateY(-2px);
}

/* Keep the centre brand visually locked to the middle on wide screens */
@media (min-width: 821px) {
  .product-nav {
    position: relative;
  }

  .product-nav .refined-logo {
    position: relative;
    left: auto;
    transform: translateX(-18px);
  }
}

/* Tablet/mobile: stack cleanly rather than crushing the logo */
@media (max-width: 820px) {
  .product-nav {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 10px !important;
  }

  .product-nav .brand-lockup {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .nav-side-left {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-content: center !important;
  }

  .nav-side-right {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .nav-action-button {
    min-height: 40px;
    font-size: .78rem;
  }
}

@media (max-width: 520px) {
  .nav-side-left,
  .nav-side-right {
    width: 100%;
  }

  .nav-explore-button,
  .nav-action-button {
    justify-content: center;
  }
}

/* =========================
   Home nav action icons
   Bigger, clearer Teacher/Exam Mode icons without changing button styling
========================= */

.nav-action-button img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  opacity: .98;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 6px rgba(255, 255, 255, .18))
    drop-shadow(0 0 12px rgba(56, 189, 248, .26));
  transform-origin: center;
  transition: transform .24s ease, filter .24s ease, opacity .24s ease;
}

.nav-action-button:hover img {
  opacity: 1;
  transform: scale(1.22) translateX(1px);
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 7px rgba(255, 255, 255, .24))
    drop-shadow(0 0 18px rgba(56, 189, 248, .42));
}

@media (prefers-reduced-motion: reduce) {
  .nav-action-button img {
    transition: none;
  }

  .nav-action-button:hover img {
    transform: none;
  }
}
/* =========================================================
   EchoAural App Launch Transition
   Smooth premium transition from landing page into live apps
   ========================================================= */

   .app-launch-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background:
      radial-gradient(circle at 50% 42%, rgba(139, 92, 246, 0.26), transparent 34%),
      radial-gradient(circle at 48% 58%, rgba(56, 189, 248, 0.18), transparent 42%),
      rgba(5, 11, 22, 0.76);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition:
      opacity 420ms ease,
      visibility 420ms ease,
      backdrop-filter 420ms ease,
      -webkit-backdrop-filter 420ms ease;
  }
  
  .app-launch-transition.is-active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  
  .app-launch-panel {
    width: min(360px, calc(100vw - 48px));
    padding: 34px 32px 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
      rgba(7, 17, 31, 0.78);
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-align: center;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    transition:
      transform 520ms cubic-bezier(.2, .8, .2, 1),
      opacity 420ms ease;
  }
  
  .app-launch-transition.is-active .app-launch-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  .app-launch-wave {
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
  }
  
  .app-launch-wave span {
    width: 5px;
    height: var(--h, 50%);
    min-height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #38bdf8 46%, #8b5cf6);
    box-shadow:
      0 0 18px rgba(56, 189, 248, 0.44),
      0 0 28px rgba(139, 92, 246, 0.22);
    animation: appLaunchWave 780ms ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
  }
  
  .app-launch-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.54);
  }
  
  .app-launch-title {
    margin: 8px 0 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #ffffff;
  }
  
  .app-launch-title span {
    background: linear-gradient(90deg, #ffffff, #38bdf8 48%, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  body.is-launching-app .hero,
  body.is-launching-app main,
  body.is-launching-app .site-footer {
    transform: scale(0.985);
    opacity: 0.52;
    transition:
      transform 520ms cubic-bezier(.2, .8, .2, 1),
      opacity 420ms ease;
  }
  
  @keyframes appLaunchWave {
    from {
      transform: scaleY(0.58);
      opacity: 0.58;
    }
  
    to {
      transform: scaleY(1);
      opacity: 1;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .app-launch-transition,
    .app-launch-panel,
    body.is-launching-app .hero,
    body.is-launching-app main,
    body.is-launching-app .site-footer {
      transition: none;
    }
  
    .app-launch-wave span {
      animation: none;
    }
  }

/* =========================
   Demo navigation pass
   Scope: homepage navigation only. Keeps app behaviour unchanged.
========================= */

.main-app-nav {
  gap: 10px;
  flex-wrap: wrap;
}

.nav-demo-link {
  min-height: 38px;
  padding-inline: 14px;
  font-size: .78rem;
  border-color: rgba(255, 255, 255, .18);
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, .12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(74, 144, 226, .12));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.demo-launch-panel {
  width: min(980px, 100%);
  margin: 18px auto 0;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, .14), transparent 38%),
    radial-gradient(circle at 92% 100%, rgba(168, 85, 247, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.45fr);
  gap: 16px;
  align-items: center;
}

.demo-launch-copy {
  text-align: left;
}

.demo-launch-copy h3 {
  margin: 4px 0 6px;
  color: white;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: -.02em;
}

.demo-launch-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: .88rem;
  line-height: 1.45;
}

.demo-launch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-launch-button {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  color: white;
  background: rgba(255, 255, 255, .055);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .84rem;
  font-weight: 900;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.demo-launch-button:hover,
.demo-launch-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, .58);
  background: rgba(56, 189, 248, .12);
  box-shadow: 0 14px 30px rgba(56, 189, 248, .12);
}

.demo-launch-button-strong {
  border-color: rgba(56, 189, 248, .42);
  background:
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .22), transparent 34%),
    linear-gradient(135deg, rgba(168, 85, 247, .34), rgba(74, 144, 226, .22));
}

.demo-launch-button-soft {
  color: rgba(255, 255, 255, .84);
}

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

@media (max-width: 760px) {
  .demo-launch-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .demo-launch-copy {
    text-align: center;
  }

  .demo-launch-actions {
    grid-template-columns: 1fr;
  }
}

/* EchoAural pedagogy popout */
body.pedagogy-modal-open {
  overflow: hidden;
}

.pedagogy-popout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(40, 230, 190, 0.18), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(118, 92, 255, 0.18), transparent 32%),
    rgba(5, 8, 18, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.pedagogy-popout-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pedagogy-popout-tile {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(9, 14, 31, 0.96), rgba(17, 27, 52, 0.96)),
    radial-gradient(circle at top left, rgba(44, 232, 196, 0.2), transparent 42%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  color: #f7fbff;
  transform: translateY(14px) scale(0.985);
  transition: transform 180ms ease;
}

.pedagogy-popout-backdrop.is-visible .pedagogy-popout-tile {
  transform: translateY(0) scale(1);
}

.pedagogy-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.pedagogy-close:hover,
.pedagogy-close:focus-visible {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  outline: none;
}

.pedagogy-popout-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}

.pedagogy-popout-wave {
  transform: scale(0.92);
  transform-origin: left center;
}

.pedagogy-popout-eyebrow {
  margin: 0 0 8px;
  color: rgba(120, 255, 220, 0.88);
}

.pedagogy-popout-title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #ffffff, #8fffe1 48%, #b7a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pedagogy-popout-lede {
  max-width: 760px;
  margin: 20px 0 24px;
  color: rgba(247, 251, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.58;
}

.pedagogy-popout-copy {
  color: rgba(247, 251, 255, 0.78);
  font-size: 1rem;
  line-height: 1.72;
}

.pedagogy-popout-copy p {
  margin: 0 0 18px;
}

.pedagogy-popout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.pedagogy-popout-steps article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.pedagogy-popout-steps span {
  display: inline-block;
  margin: 0 0 12px;
  color: rgba(143, 255, 225, 0.9);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pedagogy-popout-steps h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.12rem;
}

.pedagogy-popout-steps p {
  margin: 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pedagogy-popout-final {
  margin-top: 24px !important;
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 760px) {
  .pedagogy-popout-backdrop {
    padding: 16px;
  }

  .pedagogy-popout-tile {
    border-radius: 24px;
  }

  .pedagogy-popout-steps {
    grid-template-columns: 1fr;
  }
}

.nav-explore-button img[src$=".png"] {
  object-fit: contain;
  transform: none;
}

.module-icon {
  overflow: hidden;
}

.module-icon img[src*=".png"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  filter: none;
}

.module-icon img.meter-master-logo {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  filter: none;
}
