:root {
  --space: #090716;
  --violet-deep: #2B114D;
  --gold: #D4AF37;
  --violet: #8F5BFF;
  --ivory: #F7F5E6;
  --muted: rgba(247, 245, 230, 0.72);
  --glass: rgba(255, 255, 255, 0.075);
  --line: rgba(212, 175, 55, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(143, 91, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(212, 175, 55, 0.14), transparent 24rem),
    linear-gradient(135deg, #070511 0%, var(--space) 46%, #170925 100%);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    radial-gradient(circle, rgba(247, 245, 230, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(212, 175, 55, 0.7) 0 1px, transparent 1.4px);
  background-position: 0 0, 42px 56px;
  background-size: 130px 130px, 190px 190px;
  opacity: 0.14;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(9, 7, 22, 0.82);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.25rem);
  color: rgba(247, 245, 230, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ivory);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(5rem, 11vw, 9rem) clamp(1rem, 5vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.hero::after,
.page-hero::after {
  position: absolute;
  right: 12%;
  bottom: 7%;
  width: min(34vw, 310px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 55px rgba(212, 175, 55, 0.12);
  opacity: 0.55;
}

.cosmic-field {
  position: absolute;
  width: min(88vw, 820px);
  aspect-ratio: 1;
  background:
    conic-gradient(from 20deg, transparent, rgba(212, 175, 55, 0.2), transparent, rgba(143, 91, 255, 0.32), transparent),
    radial-gradient(circle, rgba(247, 245, 230, 0.1), transparent 62%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  filter: drop-shadow(0 0 90px rgba(143, 91, 255, 0.2));
  opacity: 0.8;
  animation: slowSpin 34s linear infinite;
}

.hero-content,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  max-width: 960px;
  margin-inline: auto;
  font-size: clamp(2.35rem, 7vw, 5.95rem);
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 3.25rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-copy,
.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.hero-actions,
.tarot-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #120c07;
  background: linear-gradient(135deg, #f0d66d, var(--gold));
  box-shadow: 0 15px 34px rgba(212, 175, 55, 0.22);
}

.btn-secondary {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary.active {
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 12px 36px rgba(143, 91, 255, 0.18);
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5rem);
}

.section-alt {
  background: linear-gradient(180deg, rgba(43, 17, 77, 0.3), rgba(9, 7, 22, 0.1));
  border-block: 1px solid rgba(212, 175, 55, 0.1);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.symbol-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

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

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

.symbol-card,
.feature-card,
.selector-panel,
.reading-card,
.oracle-form {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.symbol-card {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem;
  color: var(--ivory);
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.symbol-card span {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.symbol-card:hover,
.feature-card:hover {
  background: rgba(143, 91, 255, 0.13);
  border-color: rgba(212, 175, 55, 0.62);
  transform: translateY(-4px);
}

.feature-card {
  min-height: 196px;
  padding: 1.3rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
}

.feature-card p,
.premium-band p,
.reading-card p,
.site-footer p {
  color: var(--muted);
}

.premium-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem) clamp(4rem, 7vw, 6rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(143, 91, 255, 0.14)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.premium-band > div {
  max-width: 760px;
}

.page-hero {
  min-height: 410px;
  padding-bottom: 3rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.selector-panel,
.reading-card,
.oracle-form {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.selector-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.choice-button {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease;
}

.choice-button:hover,
.choice-button.active {
  background: rgba(143, 91, 255, 0.18);
  border-color: var(--gold);
}

.reading-card {
  min-height: 320px;
}

.reading-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reading-card .glyph {
  color: var(--gold);
  font-size: 2.8rem;
  line-height: 1;
}

.reading-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.reading-item {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 8px;
}

.reading-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold);
}

.tarot-tool,
.centered-tool {
  max-width: 1100px;
  margin: 0 auto;
}

.tarot-controls {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.tarot-spread {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.tarot-card {
  position: relative;
  min-height: 310px;
  padding: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(43, 17, 77, 0.95), rgba(9, 7, 22, 0.96)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tarot-card::before {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  content: "✦";
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
  font-size: 2.6rem;
  line-height: 88px;
  text-align: center;
}

.tarot-card .position {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tarot-card h3 {
  margin: 0.55rem 0 0.65rem;
}

.centered-tool {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.oracle-form {
  display: grid;
  gap: 1rem;
}

.oracle-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 800;
}

.oracle-form input,
.oracle-form select {
  min-height: 48px;
  width: 100%;
  padding: 0.75rem;
  color: var(--ivory);
  background: rgba(9, 7, 22, 0.76);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
}

.oracle-form input::placeholder {
  color: rgba(247, 245, 230, 0.48);
}

.result-card {
  min-height: 170px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  padding: 2.2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(3, 2, 9, 0.6);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.55rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold);
}

.legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    background: rgba(9, 7, 22, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem;
  }

  .symbol-grid,
  .symbol-grid.compact,
  .feature-grid,
  .feature-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .premium-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .premium-band {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 1rem;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero::after,
  .page-hero::after {
    width: 180px;
    opacity: 0.3;
  }

  .symbol-grid,
  .symbol-grid.compact,
  .feature-grid,
  .feature-grid.three,
  .button-grid {
    grid-template-columns: 1fr;
  }

  .symbol-card {
    min-height: 92px;
  }

  .btn,
  .tarot-controls .btn {
    width: 100%;
  }

  .reading-card header {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
}

/* Home premium header and hero */
.home-page .site-header {
  min-height: 78px;
  padding: 0.85rem clamp(1rem, 4vw, 4.5rem);
  background:
    linear-gradient(180deg, rgba(17, 10, 37, 0.96), rgba(9, 7, 22, 0.84)),
    rgba(9, 7, 22, 0.92);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.home-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.24);
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 28%, rgba(143, 91, 255, 0.28), transparent 38%),
    rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.16);
  place-items: center;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
}

.home-page .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  min-width: 0;
}

.home-page .site-nav {
  justify-content: flex-end;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-login,
.header-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-login {
  color: rgba(247, 245, 230, 0.78);
}

.header-login:hover {
  color: var(--gold);
}

.header-register {
  color: #120c07;
  background: linear-gradient(135deg, #f0d66d, var(--gold));
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.18);
}

.home-page .hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 78px);
  padding: clamp(4.2rem, 8vw, 7.2rem) clamp(1rem, 5vw, 5rem) clamp(3.2rem, 6vw, 5.5rem);
  place-items: center;
  text-align: left;
  background:
    radial-gradient(circle at 76% 42%, rgba(143, 91, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 22% 28%, rgba(212, 175, 55, 0.12), transparent 26rem),
    linear-gradient(135deg, rgba(9, 7, 22, 0.1), rgba(43, 17, 77, 0.18));
}

.home-page .hero::after {
  right: 5%;
  bottom: 4%;
  width: min(36vw, 360px);
  opacity: 0.22;
}

.home-page .hero-content {
  width: 100%;
  max-width: 720px;
}

.home-page h1 {
  max-width: 720px;
  margin-inline: 0;
  font-size: clamp(2.55rem, 6vw, 5.75rem);
  line-height: 1.03;
}

.home-page h1 span {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(212, 175, 55, 0.28);
}

.home-page .hero-copy {
  max-width: 630px;
  margin: 1.25rem 0 0;
  color: rgba(247, 245, 230, 0.78);
}

.home-page .hero-actions {
  justify-content: flex-start;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 610px;
  margin-top: 1.45rem;
}

.hero-trust span {
  min-width: 0;
  padding: 0.78rem 0.9rem;
  color: rgba(247, 245, 230, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  font-size: 0.92rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.hero-trust span::before {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.72);
  vertical-align: 0.08rem;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(247, 245, 230, 0.78) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(212, 175, 55, 0.6) 0 1px, transparent 1.4px);
  background-position: 22px 28px, 84px 96px;
  background-size: 170px 170px, 240px 240px;
  opacity: 0.18;
}

.hero-visual {
  position: relative;
  display: grid;
  width: min(46vw, 560px);
  min-width: 320px;
  aspect-ratio: 1;
  place-items: center;
}

.oracle-glow {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 55%),
    radial-gradient(circle, rgba(143, 91, 255, 0.22), transparent 72%);
  border-radius: 50%;
  filter: blur(10px);
}

.zodiac-orbit {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(43, 17, 77, 0.14), transparent 52%),
    conic-gradient(from -20deg, rgba(212, 175, 55, 0.08), rgba(143, 91, 255, 0.16), rgba(212, 175, 55, 0.08));
  box-shadow:
    inset 0 0 44px rgba(212, 175, 55, 0.08),
    0 0 70px rgba(143, 91, 255, 0.22);
  animation: slowSpin 46s linear infinite;
}

.zodiac-orbit::before,
.zodiac-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
}

.zodiac-orbit::before {
  inset: 11%;
}

.zodiac-orbit::after {
  inset: 22%;
  border-style: dashed;
}

.zodiac-orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.9rem;
  margin: -0.7rem 0 0 -2.45rem;
  color: rgba(247, 245, 230, 0.82);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.56rem, 1vw, 0.75rem);
  font-weight: 700;
  text-align: center;
}

.zodiac-orbit span:nth-child(1) { transform: rotate(0deg) translateY(-13.2rem) rotate(0deg); }
.zodiac-orbit span:nth-child(2) { transform: rotate(30deg) translateY(-13.2rem) rotate(-30deg); }
.zodiac-orbit span:nth-child(3) { transform: rotate(60deg) translateY(-13.2rem) rotate(-60deg); }
.zodiac-orbit span:nth-child(4) { transform: rotate(90deg) translateY(-13.2rem) rotate(-90deg); }
.zodiac-orbit span:nth-child(5) { transform: rotate(120deg) translateY(-13.2rem) rotate(-120deg); }
.zodiac-orbit span:nth-child(6) { transform: rotate(150deg) translateY(-13.2rem) rotate(-150deg); }
.zodiac-orbit span:nth-child(7) { transform: rotate(180deg) translateY(-13.2rem) rotate(-180deg); }
.zodiac-orbit span:nth-child(8) { transform: rotate(210deg) translateY(-13.2rem) rotate(-210deg); }
.zodiac-orbit span:nth-child(9) { transform: rotate(240deg) translateY(-13.2rem) rotate(-240deg); }
.zodiac-orbit span:nth-child(10) { transform: rotate(270deg) translateY(-13.2rem) rotate(-270deg); }
.zodiac-orbit span:nth-child(11) { transform: rotate(300deg) translateY(-13.2rem) rotate(-300deg); }
.zodiac-orbit span:nth-child(12) { transform: rotate(330deg) translateY(-13.2rem) rotate(-330deg); }

.tarot-stack {
  position: relative;
  z-index: 2;
  width: min(72%, 370px);
  height: 56%;
}

.hero-tarot-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  width: 38%;
  min-width: 116px;
  aspect-ratio: 0.68;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.72rem;
  color: var(--ivory);
  background:
    linear-gradient(160deg, rgba(43, 17, 77, 0.98), rgba(9, 7, 22, 0.96)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.54);
  border-radius: 12px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 26px rgba(212, 175, 55, 0.08);
  text-align: center;
}

.hero-tarot-card::before {
  position: absolute;
  inset: 0.55rem;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 9px;
}

.hero-tarot-card i {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  margin-top: 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 50%;
  place-items: center;
}

.hero-tarot-card i::before {
  content: "";
  width: 30px;
  height: 30px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.42);
}

.hero-tarot-card strong {
  position: relative;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  line-height: 1.25;
}

.card-center {
  z-index: 3;
  transform: translateX(-50%) translateY(-0.6rem);
}

.card-left {
  z-index: 1;
  transform: translateX(-105%) rotate(-13deg) translateY(1.1rem);
}

.card-right {
  z-index: 1;
  transform: translateX(5%) rotate(13deg) translateY(1.1rem);
}

.floating-star {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.8));
}

.star-one {
  top: 18%;
  right: 18%;
}

.star-two {
  bottom: 24%;
  left: 10%;
  width: 14px;
  height: 14px;
}

.star-three {
  top: 35%;
  left: 20%;
  width: 8px;
  height: 8px;
}

@media (max-width: 1180px) {
  .home-page .header-actions {
    display: none;
  }

  .home-page .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  }

  .zodiac-orbit span:nth-child(n) {
    transform: none;
  }

  .zodiac-orbit span {
    display: none;
  }
}

@media (max-width: 980px) {
  .home-page .site-header {
    min-height: 70px;
  }

  .home-page .header-right {
    display: contents;
  }

  .home-page .site-nav {
    justify-content: flex-start;
  }

  .home-page .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(4rem, 9vw, 6rem);
    text-align: center;
  }

  .home-page .hero-content {
    max-width: 780px;
  }

  .home-page h1,
  .home-page .hero-copy {
    margin-inline: auto;
  }

  .home-page .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    margin-inline: auto;
  }

  .hero-visual {
    width: min(82vw, 520px);
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .home-page .brand {
    gap: 0.55rem;
    font-size: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-mark svg {
    width: 23px;
    height: 23px;
  }

  .home-page .hero {
    padding-top: 3.7rem;
    padding-bottom: 3.2rem;
  }

  .home-page h1 {
    font-size: clamp(2.25rem, 12vw, 3.55rem);
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .hero-trust span {
    text-align: left;
  }

  .hero-visual {
    width: min(92vw, 390px);
  }

  .tarot-stack {
    width: 78%;
  }

  .hero-tarot-card {
    min-width: 92px;
    padding: 0.82rem 0.55rem;
  }

  .hero-tarot-card i {
    width: 48px;
    height: 48px;
  }

  .hero-tarot-card i::before {
    width: 24px;
    height: 24px;
  }
}
