.hub-page {
  background:
    radial-gradient(circle at 92% 14%, rgba(123, 47, 143, .12), transparent 26rem),
    radial-gradient(circle at 8% 28%, rgba(201, 151, 37, .12), transparent 25rem),
    #fbfaf7;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
  min-height: min(760px, calc(100vh - 80px));
  padding: clamp(62px, 9vw, 108px) clamp(20px, 7vw, 96px);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 16%, rgba(201, 151, 37, .22), transparent 30rem),
    radial-gradient(circle at 14% 74%, rgba(123, 47, 143, .25), transparent 28rem),
    linear-gradient(122deg, #11271a 10%, #173d2a 56%, #352045);
}

.hub-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--gold), #9f67b2, #4cbea1);
}

.hub-hero-content,
.breath-intro-card {
  position: relative;
  z-index: 2;
}

.hub-kicker {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hub-hero h1 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(3rem, 6.4vw, 5.3rem);
  letter-spacing: -.065em;
  line-height: .98;
}

.hub-hero h1 span {
  display: inline-block;
  color: #e7c867;
}

.hub-lead {
  max-width: 610px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.08rem, 1.7vw, 1.27rem);
}

.hub-btn {
  border-color: rgba(255, 255, 255, .36);
}

.hub-page button.btn {
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.hub-page button.btn-outline {
  border: 2px solid var(--green);
  background: transparent;
}

.hub-page button.btn:disabled {
  opacity: .56;
  cursor: default;
}

.hub-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .7;
  animation: orbFloat 10s ease-in-out infinite alternate;
}

.orb-one {
  top: 13%;
  right: 10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(201, 151, 37, .32), transparent 67%);
}

.orb-two {
  bottom: 10%;
  left: -4%;
  width: 310px;
  height: 310px;
  background: radial-gradient(circle, rgba(123, 47, 143, .3), transparent 65%);
  animation-delay: -5s;
}

.hub-stars span {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 229, 160, .7);
  box-shadow: 0 0 18px rgba(255, 215, 108, .8);
  animation: particleFloat 5s ease-in-out infinite;
}

.hub-stars span:nth-child(1) { top: 19%; left: 48%; }
.hub-stars span:nth-child(2) { top: 31%; right: 7%; animation-delay: -1.4s; }
.hub-stars span:nth-child(3) { bottom: 25%; left: 42%; animation-delay: -2.8s; }
.hub-stars span:nth-child(4) { bottom: 20%; right: 29%; animation-delay: -4s; }

.glass-card {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 24px 68px rgba(22, 52, 35, .1);
  backdrop-filter: blur(18px);
}

.breath-intro-card {
  padding: clamp(25px, 3vw, 32px);
  color: var(--text);
  background: rgba(255, 255, 255, .86);
}

.breath-intro-card h2 {
  margin-bottom: 15px;
  color: var(--green);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.breath-intro-card p:last-child {
  color: var(--muted);
}

.hub-section {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 92px) clamp(20px, 6vw, 42px);
}

.hub-section-head {
  max-width: 590px;
  margin-bottom: clamp(30px, 5vw, 44px);
}

.hub-section-head h2 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  letter-spacing: -.055em;
  line-height: 1.08;
}

.hub-section-head p:not(.hub-kicker) {
  color: var(--muted);
}

.hub-section-head.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.breathing-section {
  max-width: none;
  background:
    radial-gradient(circle at center, rgba(49, 142, 120, .11), transparent 30rem),
    linear-gradient(180deg, transparent, rgba(237, 245, 239, .72), transparent);
}

.breathing-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 6vw, 62px);
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(25px, 5vw, 47px);
}

.breath-controls fieldset {
  margin-bottom: 25px;
  border: 0;
}

.breath-controls legend {
  margin-bottom: 12px;
  color: var(--green);
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.breath-controls label {
  display: block;
  margin-bottom: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(237, 245, 239, .74);
  cursor: pointer;
}

.breath-controls input {
  accent-color: var(--green);
  margin-right: 8px;
}

.breath-experience {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.breath-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: clamp(190px, 29vw, 260px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--green);
  background: radial-gradient(circle at 36% 26%, #fff4cf, #b8e0d3 55%, #75b7a4);
  box-shadow: 0 0 0 18px rgba(117, 183, 164, .12), 0 25px 48px rgba(22, 52, 35, .13);
  transition: transform var(--phase-duration, 4s) ease-in-out, background .4s ease;
}

.breath-circle.inhale {
  transform: scale(1.15);
}

.breath-circle.exhale {
  transform: scale(.9);
}

.breath-circle strong {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.breath-circle span {
  margin-top: 4px;
  color: rgba(22, 52, 35, .67);
  font-weight: 700;
}

.breath-timer {
  margin: 6px 0 17px;
  color: var(--purple);
  font-size: 1.35rem;
  font-weight: 900;
}

.breath-actions {
  display: flex;
  gap: 10px;
}

.breath-actions button:disabled {
  opacity: .45;
  pointer-events: none;
}

.completion-message {
  max-width: 400px;
  margin-top: 22px;
  padding: 16px 19px;
  border-radius: 16px;
  color: var(--green);
  background: var(--gold-soft);
  animation: cardUp .35s var(--ease);
}

@keyframes orbFloat {
  to { transform: translate3d(20px, -22px, 0) scale(1.09); }
}

@keyframes particleFloat {
  50% { transform: translateY(-14px) scale(1.35); opacity: .42; }
}

@keyframes cardUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hub-hero,
  .breathing-card {
    grid-template-columns: 1fr;
  }

  .hub-hero {
    min-height: 0;
  }

  .breath-intro-card {
    max-width: 470px;
  }

}

@media (max-width: 620px) {
  .hub-hero {
    padding-top: 55px;
  }

  .hub-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .breathing-card {
    padding: 23px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-orb,
  .hub-stars span {
    animation: none;
  }

  .breath-circle {
    transition: none;
  }
}
