/* astrologymatch.org — homepage hero (owner's reference of 26.10.2026). Loaded on the homepage only (body.home-v2). */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-700-latin.woff2') format('woff2');
}

body.home-v2 {
  --hv2-bg: #0a0720;
  --hv2-glass: rgba(22, 14, 52, 0.62);
  --hv2-glass-strong: rgba(18, 11, 44, 0.78);
  --hv2-line: rgba(196, 150, 255, 0.34);
  --hv2-text: #f6f1ff;
  --hv2-muted: #cfc3ec;
  --hv2-gold: #ffcf8f;
  --hv2-pink: #ff5fbf;
  --hv2-magenta: #c94dff;
  --hv2-violet: #8f55ff;
  --hv2-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  background: var(--hv2-bg);
}

/* the header floats over the scene, as in the reference */
body.home-v2 .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: linear-gradient(180deg, rgba(10, 7, 32, 0.78), rgba(10, 7, 32, 0));
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body.home-v2 .brand {
  font-family: var(--hv2-serif);
  color: #fff;
}
body.home-v2 .brand span:not(.brand-star) {
  background: linear-gradient(90deg, #ff8ad0, var(--hv2-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.home-v2 .brand-star {
  color: var(--hv2-gold);
  text-shadow: 0 0 18px rgba(255, 190, 120, 0.9);
}
body.home-v2 .nav-links a[aria-current='page'] {
  color: var(--hv2-gold);
}
body.home-v2 .header-cta {
  background: linear-gradient(90deg, #a34dff, #ff4fbe);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(201, 77, 255, 0.45);
}

/* ---------------------------------------------------------------- scene */
.hero-v2 {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  color: var(--hv2-text);
  isolation: isolate;
}
.hv2-scene,
.hv2-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hv2-scene {
  z-index: -2;
}
.hv2-scene img {
  object-fit: cover;
  object-position: 72% 38%;
}
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 7, 32, 0.94) 0%, rgba(10, 7, 32, 0.82) 26%, rgba(10, 7, 32, 0.32) 48%, rgba(10, 7, 32, 0) 62%),
    linear-gradient(180deg, rgba(10, 7, 32, 0) 70%, var(--hv2-bg) 100%);
}

.hv2-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 128px 4.5% 64px;
  min-height: 860px;
  display: flex;
  align-items: flex-start;
}
.hv2-copy {
  width: min(760px, 62%);
}

/* ---------------------------------------------------------------- text */
.hv2-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--hv2-gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hv2-kicker::after {
  content: '';
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--hv2-gold), transparent);
}
.hero-v2 h1 {
  margin: 0;
  font-family: var(--hv2-serif);
  font-weight: 700;
  font-size: clamp(3.1rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.hero-v2 .hero-seo {
  display: block;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.hv2-l1,
.hv2-l2 {
  display: block;
}
.hv2-l2 {
  display: inline;
  background: linear-gradient(95deg, #ffd59a 0%, #ffb37e 30%, #ff6ec4 64%, #d24dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hv2-heart {
  display: inline-block;
  width: 0.62em;
  height: 0.58em;
  margin-left: 0.12em;
  vertical-align: 0.42em;
  filter: drop-shadow(0 0 10px rgba(255, 150, 200, 0.6));
}
.hv2-lead {
  margin: 22px 0 10px;
  max-width: 600px;
  font-family: var(--hv2-serif);
  font-size: 1.42rem;
  line-height: 1.4;
  color: #fff;
}
.hv2-desc {
  margin: 0 0 28px;
  max-width: 560px;
  color: var(--hv2-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- glass panels */
.hv2-tool,
.hv2-example {
  position: relative;
  border: 1px solid var(--hv2-line);
  border-radius: 22px;
  background: var(--hv2-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(4, 0, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hv2-tool {
  padding: 20px 24px 22px;
  max-width: 680px;
}
.hv2-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}
.hv2-field > span:first-child {
  display: block;
  margin: 0 0 8px 4px;
  font-size: 0.82rem;
  color: var(--hv2-muted);
}
.hv2-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(214, 180, 255, 0.4);
  border-radius: 999px;
  background: rgba(12, 8, 34, 0.7);
}
.hv2-select::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.hv2-select select {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 8px 22px 8px 2px;
  cursor: pointer;
}
.hv2-select select option {
  color: #1d1338;
}
.hv2-select select:focus-visible {
  outline: none;
}
.hv2-select:focus-within {
  border-color: var(--hv2-gold);
  box-shadow: 0 0 0 3px rgba(255, 207, 143, 0.25);
}

/* round sign badges, coloured by element */
.hv2-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
  font-size: 1.32rem;
  line-height: 1;
  color: #fff;
  border: 1.5px solid;
}
.hv2-fire {
  border-color: #ff7a59;
  background: radial-gradient(circle at 35% 30%, #ff8a5c, #b0203a 70%);
  box-shadow: 0 0 18px rgba(255, 110, 80, 0.55);
}
.hv2-earth {
  border-color: #6fe0a3;
  background: radial-gradient(circle at 35% 30%, #66d49b, #1d6b4a 70%);
  box-shadow: 0 0 18px rgba(100, 220, 160, 0.45);
}
.hv2-air {
  border-color: #7fd4ff;
  background: radial-gradient(circle at 35% 30%, #69c7ff, #2b4fb8 70%);
  box-shadow: 0 0 18px rgba(100, 190, 255, 0.5);
}
.hv2-water {
  border-color: #b98bff;
  background: radial-gradient(circle at 35% 30%, #a77bff, #4a2a9e 70%);
  box-shadow: 0 0 18px rgba(170, 120, 255, 0.5);
}
.hv2-badge-b.hv2-fire,
.hv2-ex-head .hv2-badge:last-of-type.hv2-fire {
  border-color: #ffc56a;
  background: radial-gradient(circle at 35% 30%, #ffcf6b, #b8661a 70%);
  box-shadow: 0 0 18px rgba(255, 190, 100, 0.55);
}

.hv2-swap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 3px;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 255, 0.5);
  background: radial-gradient(circle at 40% 30%, rgba(160, 90, 255, 0.45), rgba(40, 20, 90, 0.9));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(160, 90, 255, 0.45);
}
.hv2-swap .hv2-ico {
  width: 22px;
  height: 22px;
}
.hv2-birth {
  margin: 12px 4px 0;
  color: var(--hv2-muted);
  font-size: 0.82rem;
}
.hv2-birth summary {
  cursor: pointer;
}
.hv2-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d24dff 0%, #ff5fb8 48%, #ffb066 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(255, 95, 184, 0.42);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hv2-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(255, 95, 184, 0.55);
}
.hv2-ico {
  width: 20px;
  height: 20px;
}
.hv2-arrow {
  width: 18px;
  height: 18px;
}

/* the example match */
.hv2-example {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  max-width: 900px;
  background: var(--hv2-glass-strong);
}
.hv2-ex-main {
  padding: 20px 22px 18px;
  min-width: 0;
}
.hv2-ex-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.hv2-ex-head h2 {
  margin: 0 4px 0 6px;
  font-family: var(--hv2-serif);
  font-size: 1.6rem;
  color: #fff;
}
.hv2-plus {
  color: var(--hv2-muted);
  font-size: 1.2rem;
}
.hv2-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 190, 0.45);
  background: rgba(255, 95, 184, 0.16);
  color: #ffc4e6;
  font-size: 0.78rem;
  text-decoration: none;
}
.hv2-rings {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.hv2-rings li {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}
.hv2-ring {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(16, 10, 40, 0.96) 79%, transparent 80% 100%),
    conic-gradient(var(--ring) calc(var(--score) * 1%), rgba(255, 255, 255, 0.1) 0);
  box-shadow: 0 0 22px color-mix(in srgb, var(--ring) 45%, transparent);
}
.hv2-ring b {
  font-size: 1.02rem;
  color: #fff;
}
.hv2-ring-ico {
  width: 15px;
  height: 15px;
  color: var(--ring);
}
.hv2-rings small {
  color: var(--hv2-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.hv2-ex-side {
  padding: 20px 22px;
  border-left: 1px solid var(--hv2-line);
  display: grid;
  align-content: center;
  gap: 8px;
}
.hv2-ex-side h3 {
  margin: 0;
  font-family: var(--hv2-serif);
  font-size: 1.22rem;
  line-height: 1.25;
  color: #fff;
}
.hv2-ex-side p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--hv2-muted);
}
.hv2-side-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8f55ff, #c94dff);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(160, 80, 255, 0.45);
}

/* topics on the right, over the scene */
.hv2-intents {
  position: absolute;
  right: 4.5%;
  bottom: 70px;
  display: grid;
  gap: 12px;
  width: 236px;
}
.hv2-intent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--hv2-line);
  border-radius: 16px;
  background: var(--hv2-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hv2-intent:hover {
  transform: translateX(-3px);
  border-color: rgba(255, 207, 143, 0.6);
}
.hv2-intent > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: grid;
}
.hv2-intent strong {
  font-family: var(--hv2-serif);
  font-size: 1.02rem;
}
.hv2-intent small {
  color: var(--hv2-muted);
  font-size: 0.74rem;
}
.hv2-chev {
  color: var(--hv2-muted);
  font-size: 1.3rem;
}
.hv2-intent-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.hv2-intent-ico .hv2-ico {
  width: 22px;
  height: 22px;
}
.hv2-pink {
  color: #ff6fb8;
}
.hv2-blue {
  color: #6fa8ff;
}
.hv2-gold {
  color: #ffcf6b;
}
.hv2-violet {
  color: #c08bff;
}

.hv2-tool .match-result:not([hidden]) {
  margin-top: 16px;
}

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1240px) {
  .hv2-copy {
    width: min(700px, 66%);
  }
  .hv2-intents {
    width: 210px;
  }
}
@media (max-width: 1080px) {
  .hv2-intents {
    position: static;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    margin-top: 22px;
  }
  .hv2-inner {
    flex-direction: column;
  }
  .hv2-copy {
    width: min(760px, 100%);
  }
  .hero-v2::before {
    background:
      linear-gradient(90deg, rgba(10, 7, 32, 0.92) 0%, rgba(10, 7, 32, 0.72) 45%, rgba(10, 7, 32, 0.3) 75%),
      linear-gradient(180deg, rgba(10, 7, 32, 0) 70%, var(--hv2-bg) 100%);
  }
}
@media (max-width: 899px) {
  .hero-v2,
  .hv2-inner {
    min-height: 0;
  }
  .hv2-scene {
    bottom: auto;
    height: 560px;
  }
  .hv2-scene img {
    object-position: center 20%;
  }
  .hero-v2::before {
    background: linear-gradient(180deg, rgba(10, 7, 32, 0.55) 0%, rgba(10, 7, 32, 0.1) 22%, rgba(10, 7, 32, 0.55) 52%, var(--hv2-bg) 72%);
  }
  .hv2-inner {
    padding: 300px 18px 40px;
  }
  .hv2-copy {
    width: 100%;
  }
  .hero-v2 h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }
  .hv2-lead {
    font-size: 1.18rem;
  }
  .hv2-tool {
    padding: 16px;
  }
  .hv2-fields {
    gap: 10px;
  }
  .hv2-badge {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .hv2-swap {
    width: 40px;
    height: 40px;
  }
  .hv2-example {
    grid-template-columns: 1fr;
  }
  .hv2-ex-side {
    border-left: 0;
    border-top: 1px solid var(--hv2-line);
  }
  .hv2-rings {
    gap: 4px;
  }
  .hv2-ring {
    width: 58px;
    height: 58px;
  }
  .hv2-ring b {
    font-size: 0.86rem;
  }
  .hv2-rings small {
    font-size: 0.68rem;
  }
  .hv2-intents {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hv2-intent:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .hv2-fields {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .hv2-select {
    padding-right: 8px;
  }
  .hv2-select select {
    font-size: 0.92rem;
    padding-right: 14px;
  }
  .hv2-select::after {
    right: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hv2-cta,
  .hv2-intent {
    transition: none;
  }
}

/* ---------------------------------------------------------------- refinements after the first screenshots */
/* the scene keeps its own proportions on wide screens: the whole wheel and both faces stay in view */
@media (min-width: 900px) {
  .hv2-scene {
    bottom: auto;
    height: 56.25vw;
    max-height: 1100px;
  }
  .hero-v2,
  .hv2-inner {
    min-height: min(56.25vw, 1100px);
  }
}
.hv2-scene::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(10, 7, 32, 0), var(--hv2-bg));
}
.hero-v2::before {
  background: linear-gradient(90deg, rgba(10, 7, 32, 0.94) 0%, rgba(10, 7, 32, 0.8) 26%, rgba(10, 7, 32, 0.3) 47%, rgba(10, 7, 32, 0) 60%);
}
.hero-v2 h1 {
  font-size: clamp(3rem, 5.3vw, 4.9rem);
}
.hv2-inner {
  padding-top: 116px;
}
.hv2-lead {
  margin-top: 18px;
  font-size: 1.3rem;
}
.hv2-desc {
  margin-bottom: 22px;
  font-size: 0.98rem;
}
/* "use birthdays" is a quiet link, not a box */
body.home-v2 .hv2-birth {
  border: 0;
  background: none;
  padding: 0;
  box-shadow: none;
}
body.home-v2 .hv2-birth summary {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hv2-muted);
  font-weight: 500;
  text-decoration: underline dotted rgba(207, 195, 236, 0.6);
  text-underline-offset: 4px;
}
.hv2-tool .tool-error:empty {
  display: none;
}
@media (max-width: 899px) {
  .hv2-scene {
    height: 600px;
  }
  .hero-v2::before {
    background: linear-gradient(180deg, rgba(10, 7, 32, 0.5) 0%, rgba(10, 7, 32, 0) 18%, rgba(10, 7, 32, 0) 40%, rgba(10, 7, 32, 0.85) 66%, var(--hv2-bg) 80%);
    height: 600px;
    bottom: auto;
  }
  .hv2-inner {
    padding-top: 400px;
  }
  .hv2-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }
  .hv2-kicker::after {
    display: none;
  }
  .hero-v2 h1 {
    text-shadow: 0 2px 24px rgba(10, 7, 32, 0.8);
  }
  .hv2-rings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
  }
  .hv2-rings small {
    font-size: 0.72rem;
  }
  .hv2-intents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hv2-intent {
    padding: 10px 10px;
    gap: 9px;
  }
  .hv2-intent small {
    font-size: 0.7rem;
  }
  .hv2-chev {
    display: none;
  }
}
