/* Home page. Follows the visual language of mgquantumsystems.com: night blue, gold foil,
   Cormorant Garamond for titles, Cinzel for small capitals, Manrope for text. Square corners. */

body.home {
  --hm-black: #03060c;
  --hm-navy-950: #050a14;
  --hm-navy-900: #081224;
  --hm-navy-800: #0d1f3d;
  --hm-navy-700: #142b52;
  --hm-gold: #cfa75a;
  --hm-gold-light: #f0d89c;
  --hm-gold-deep: #9c7632;
  --hm-foil: linear-gradient(115deg, #8a6526 0%, #c9a054 14%, #f6e3a6 27%, #d2a857 40%, #a77c34 52%, #e9cc86 66%, #fff1c2 74%, #c99e4f 86%, #8f6a2b 100%);
  --hm-ink-gold: linear-gradient(115deg, #8a6526, #b8893b 40%, #9c7632 70%, #c29a50);
  --hm-text: #eef1f6;
  --hm-ivory: #f8f5ee;
  --hm-ink: #0b1a33;
  --hm-ink-soft: #1e2d4a;
  --hm-hair-gold: rgba(207, 167, 90, 0.3);
  --hm-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --hm-roman: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --hm-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --hm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  display: block;
  background: var(--hm-navy-950);
  color: #fff;
  font-family: var(--hm-sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}
html:has(body.home) {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

.hm-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- type ---------------------------------------------------------------------------------- */
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--hm-roman);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hm-gold-light);
}
.hm-eyebrow::before,
.hm-eyebrow::after {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.hm-eyebrow::after {
  transform: scaleX(-1);
}
.hm-eyebrow.left::before {
  display: none;
}
.hm-eyebrow.left::after {
  transform: none;
  background: linear-gradient(90deg, currentColor, transparent);
}
.hm-foil {
  background: var(--hm-foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 9s ease-in-out infinite;
  padding-right: 0.06em;
}
.hm-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.75;
  color: var(--hm-text);
}
.hm-h {
  margin: 20px 0 0;
  font-family: var(--hm-serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hm-h em {
  font-weight: 700;
}

/* ---- call to action: foil plate, hairline inside the edge, a slow glint --------------------- */
.hm-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 46px;
}
.hm-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 100%;
  padding: 25px 52px;
  border: 0;
  background: var(--hm-foil);
  background-size: 220% 100%;
  color: #0a1528;
  font-family: var(--hm-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.4s var(--hm-ease), box-shadow 0.4s var(--hm-ease);
}
.hm-cta::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(10, 21, 40, 0.28);
  pointer-events: none;
}
.hm-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-22deg);
  animation: shine 5s ease-in-out infinite;
}
.hm-cta .arr {
  flex: none;
  display: inline-block;
  position: relative;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--hm-ease);
}
.hm-cta .arr::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.hm-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px -16px rgba(207, 167, 90, 0.8);
}
.hm-cta:hover .arr {
  width: 40px;
}
.hm-cta:focus-visible {
  outline: 1px solid var(--hm-gold-light);
  outline-offset: 7px;
}
.hm-cta-small {
  padding: 19px 34px;
  font-size: 13px;
  letter-spacing: 0.18em;
}
.hm-cta-small::after {
  animation: none;
  display: none;
}

/* ---- header -------------------------------------------------------------------------------- */
.hm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
}
.hm-header .hm-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
  transition: height 0.5s var(--hm-ease);
}
.hm-header.solid {
  background: rgba(5, 10, 20, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hm-hair-gold);
}
.hm-header.solid .hm-wrap {
  height: 70px;
}
.hm-logo-link {
  display: inline-flex;
}
.hm-logo {
  height: 42px;
  width: auto;
}
.hm-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.hm-menu a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.hm-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hm-gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--hm-ease);
}
.hm-menu a:hover {
  color: var(--hm-gold-light);
}
.hm-menu a:hover::after {
  transform: scaleX(1);
}
.hm-menu .hm-out {
  color: var(--hm-gold-light);
}

/* ---- hero ---------------------------------------------------------------------------------- */
.hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 200px 0 150px;
  background: var(--hm-black);
}
.hm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 60% 45% at 50% 72%, rgba(207, 167, 90, 0.2), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(20, 43, 82, 0.85), transparent 70%);
}
.hm-rings {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 1600px;
  height: 1600px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
.hm-hero-body {
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
}
.hm-hero h1 {
  margin: 30px 0 0;
  font-family: var(--hm-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.hm-hero h1 em {
  font-weight: 700;
  text-shadow: none;
}
.hm-hero .hm-lead {
  max-width: 760px;
  margin: 32px auto 0;
}
.hm-rise {
  opacity: 0;
  transform: translateY(26px);
  animation: hm-rise 1.1s var(--hm-ease) forwards;
}
.hm-r2 {
  animation-delay: 0.12s;
}
.hm-r3 {
  animation-delay: 0.24s;
}
.hm-r4 {
  animation-delay: 0.36s;
}
@keyframes hm-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- the webinars ---------------------------------------------------------------------------- */
.hm-list {
  padding: 130px 0 140px;
  background: var(--hm-navy-900);
  border-top: 1px solid var(--hm-hair-gold);
}
.hm-list-head {
  text-align: center;
}
.hm-cards {
  display: grid;
  gap: 34px;
  margin-top: 64px;
}
.hm-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 56px;
  background: linear-gradient(160deg, rgba(20, 43, 82, 0.7), rgba(8, 18, 36, 0.9));
}
.hm-card.has-media {
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}
.hm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(150deg, #f6e3a6, rgba(207, 167, 90, 0.15) 40%, rgba(207, 167, 90, 0.15) 60%, #e9cc86);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hm-card-media {
  display: block;
  overflow: hidden;
}
.hm-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--hm-ease);
}
.hm-card-media:hover img {
  transform: scale(1.04);
}
.hm-tag {
  margin: 0;
  font-family: var(--hm-roman);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hm-gold-light);
}
.hm-card h3 {
  margin: 14px 0 0;
  max-width: 22em;
  font-family: var(--hm-serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
.hm-card h3 em {
  font-weight: 700;
  background: var(--hm-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hm-card-sub {
  margin: 16px 0 0;
  max-width: 44em;
  color: var(--hm-text);
}
.hm-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hm-hair-gold);
}
.hm-facts dt {
  font-family: var(--hm-roman);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hm-gold-light);
}
.hm-facts dd {
  margin: 4px 0 0;
  font-family: var(--hm-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.hm-card .hm-cta {
  margin-top: 34px;
}
.hm-empty {
  max-width: 34em;
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--hm-serif);
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--hm-text);
}

/* ---- how it works (ivory section) ----------------------------------------------------------- */
.hm-light {
  padding: 140px 0;
  background: var(--hm-ivory);
  color: var(--hm-ink);
}
.hm-light .hm-eyebrow {
  color: var(--hm-gold-deep);
}
.hm-light .hm-h em {
  background: var(--hm-ink-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hm-two {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}
.hm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}
.hm-steps li {
  position: relative;
  padding: 0 0 38px 78px;
  counter-increment: s;
}
.hm-steps li::before {
  content: counter(s, upper-roman);
  position: absolute;
  left: 0;
  top: -4px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hm-gold-deep);
  font-family: var(--hm-roman);
  font-size: 1rem;
  color: var(--hm-gold-deep);
}
.hm-steps li::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 58px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--hm-gold-deep), transparent);
}
.hm-steps li:last-child {
  padding-bottom: 0;
}
.hm-steps li:last-child::after {
  display: none;
}
.hm-steps h3 {
  margin: 0;
  font-family: var(--hm-serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
}
.hm-steps p {
  margin: 10px 0 0;
  color: var(--hm-ink-soft);
}

/* ---- footer (shared markup, brand dress) ---------------------------------------------------- */
body.home .site-foot {
  padding: 60px 20px;
  background: var(--hm-black);
  border-top: 1px solid var(--hm-hair-gold);
  color: #e2e7ef;
}
body.home .site-foot a {
  color: #fff;
}
body.home .site-foot a:hover {
  color: var(--hm-gold-light);
}

@media (max-width: 900px) {
  .hm-menu a:not(.hm-out) {
    display: none;
  }
  .hm-card.has-media,
  .hm-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .hm-card {
    padding: 36px 26px;
  }
}
@media (max-width: 640px) {
  body.home {
    font-size: 16px;
  }
  .hm-wrap {
    padding: 0 16px;
  }
  .hm-header .hm-wrap {
    height: 70px;
  }
  .hm-logo {
    height: 34px;
  }
  .hm-menu .hm-out {
    font-size: 11px;
  }
  .hm-hero {
    padding: 130px 0 90px;
  }
  .hm-hero .hm-eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    line-height: 1.7;
    max-width: 320px;
  }
  .hm-hero .hm-eyebrow::before,
  .hm-hero .hm-eyebrow::after {
    display: none;
  }
  .hm-rings {
    width: 1000px;
    height: 1000px;
  }
  .hm-list,
  .hm-light {
    padding: 90px 0;
  }
  .hm-cta {
    width: 100%;
    padding: 22px 20px;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .hm-cta .arr {
    width: 18px;
  }
  .hm-card {
    padding: 30px 20px;
  }
  .hm-cards {
    margin-top: 44px;
  }
  .hm-facts {
    gap: 16px 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.home) {
    scroll-behavior: auto;
  }
  .hm-foil,
  .hm-cta::after {
    animation: none;
  }
  .hm-rise {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
