﻿:root {
  --bg: #0b0f1a;
  --bg-2: #0f1628;
  --text: #f4f0e6;
  --muted: #c9c3b6;
  --accent: #d6a553;
  --accent-2: #f2b665;
  --card-bg: rgba(13, 19, 33, 0.78);
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(214, 165, 83, 0.28);
  --shadow: 0 18px 40px rgba(4, 7, 16, 0.45);
  --header-height: 84px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(30, 45, 70, 0.6), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

a:hover {
  color: var(--accent);
}

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

button {
  font-family: inherit;
  color: inherit;
}

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#cosmos-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.nebula {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(214, 165, 83, 0.12), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(80, 140, 220, 0.2), transparent 35%),
    radial-gradient(circle at 70% 80%, rgba(214, 165, 83, 0.1), transparent 45%);
  filter: blur(12px);
  opacity: 0.8;
  z-index: 1;
}

.page,
.site-header,
.site-footer,
.mobile-menu,
.zodiac-tooltip {
  position: relative;
  z-index: 10;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 24, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 14, 24, 0.92);
  border-bottom: 1px solid rgba(214, 165, 83, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Playfair Display", serif;
}

.brand-title {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(214, 165, 83, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  gap: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 16, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(360px, 82%);
  background: rgba(12, 17, 30, 0.98);
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .mobile-panel {
  transform: translateX(0%);
}

.page {
  padding-top: calc(var(--header-height) + 24px);
}

section {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.hero {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 12px 0 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1a1206;
  box-shadow: 0 12px 24px rgba(214, 165, 83, 0.28);
}

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

.btn-tertiary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(214, 165, 83, 0.25);
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.hero-card-details {
  display: grid;
  gap: 16px;
}

.section {
  padding: 80px 0;
}

.page-hero {
  padding: 70px 0 40px;
}

.page-hero .hero-inner {
  max-width: 720px;
  display: grid;
  gap: 16px;
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  margin: 0;
}

.page-hero p {
  color: var(--muted);
  margin: 0;
}

.post-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

.post-card h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.post-meta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.article-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.article {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.article h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  margin-top: 0;
}

.article .article-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.article .article-lead {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.article p {
  color: var(--muted);
  line-height: 1.7;
}

.article h2,
.article h3 {
  font-family: "Playfair Display", serif;
  margin-top: 32px;
}

.article ul,
.article ol {
  color: var(--muted);
  padding-left: 22px;
  line-height: 1.7;
}

.article li {
  margin-bottom: 8px;
}

.article-cta {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(214, 165, 83, 0.12);
  display: grid;
  gap: 12px;
}

.article-cta p {
  margin: 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.definition-grid,
.stepper-grid,
.footer-grid,
.cta-grid {
  display: grid;
  gap: 24px;
}

.definition-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.stepper-card,
.criteria-card,
.comp-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.comp-card:hover,
.stepper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(6, 10, 20, 0.5);
}

.muted {
  color: var(--muted);
}

.comparison {
  background: rgba(9, 12, 21, 0.65);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.toggle-btn.is-active {
  background: rgba(214, 165, 83, 0.2);
  color: var(--accent);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table thead th {
  font-size: 0.9rem;
  color: var(--accent);
}

.comparison-cards {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.comparison[data-view="cards"] .comparison-table-wrapper {
  display: none;
}

.comparison[data-view="cards"] .comparison-cards {
  display: grid;
}

.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  color: var(--accent);
}

.comparison-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.copy-status {
  color: var(--muted);
  font-size: 0.85rem;
}

.stepper-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stepper {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.stepper li {
  position: relative;
  padding-left: 42px;
  color: var(--muted);
}

.stepper li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(214, 165, 83, 0.2);
  border: 1px solid rgba(214, 165, 83, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent);
}

.criteria-card p {
  margin: 12px 0;
}

.faq-section {
  padding-bottom: 100px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 22px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  padding-bottom: 18px;
}

.cta-final {
  background: linear-gradient(120deg, rgba(214, 165, 83, 0.12), rgba(80, 120, 200, 0.15));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 19, 0.9);
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 14, 24, 0.9);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 12;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.zodiac-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(214, 165, 83, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 12;
}

.zodiac-tooltip.visible {
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .definition-grid,
  .stepper-grid,
  .cta-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .comparison-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .comparison-table-wrapper {
    display: none;
  }

  .comparison-cards {
    display: grid;
  }

  .view-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }

  .article {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

