:root {
  --bg: #ecf4ff;
  --surface: rgba(8, 35, 84, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.9);
  --surface-card: rgba(255, 255, 255, 0.94);
  --text-strong: #ffffff;
  --text-body: #eaf3ff;
  --text-dark: #0f2442;
  --line: rgba(150, 195, 255, 0.34);
  --gold: #e0bf62;
  --green: #2f8a57;
  --blue: #0e55ab;
  --blue-soft: #3f84d6;
  --shadow: 0 24px 60px rgba(6, 27, 66, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(70, 140, 234, 0.34), transparent 28%),
    linear-gradient(180deg, #e8f2ff 0%, #dbeafc 100%);
  color: var(--text-body);
}

body.landing-page {
  background:
    linear-gradient(180deg, rgba(10, 44, 97, 0.58), rgba(11, 63, 134, 0.5)),
    url('visit.holyland.fyi.svg') center / cover no-repeat fixed;
  background-attachment: fixed;
}

body.landing-page .action-shell {
  gap: 22px;
}

body.landing-page .top-nav {
  background: rgba(6, 31, 71, 0.44);
}

body.action-plan-page {
  background:
    linear-gradient(180deg, rgba(10, 44, 97, 0.58), rgba(11, 63, 134, 0.5)),
    url('map.holyland.fyi.svg') center / cover no-repeat fixed;
  background-attachment: fixed;
}

body.action-plan-page .action-shell {
  gap: 22px;
}

body.action-plan-page .top-nav {
  background: rgba(6, 31, 71, 0.44);
}

body.share-page {
  background:
    linear-gradient(180deg, rgba(10, 44, 97, 0.58), rgba(11, 63, 134, 0.5)),
    url('map.holyland.fyi.svg') center / cover no-repeat fixed;
  background-attachment: fixed;
}

body.share-page .action-shell {
  gap: 22px;
}

body.share-page .top-nav {
  background: rgba(6, 31, 71, 0.44);
}

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

button {
  font: inherit;
}

html[dir="rtl"] body {
  text-align: right;
}

.page-shell,
.action-shell {
  min-height: 100vh;
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 31, 71, 0.64);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span,
.card-code,
.section-label,
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  opacity: 0.92;
}

html[dir="rtl"] .top-nav,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .shared-actions {
  direction: rtl;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 244, 214, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.nav-pill-primary {
  background: linear-gradient(135deg, #c7dbff, #ffffff);
  color: #073679;
  box-shadow: 0 10px 24px rgba(120, 172, 239, 0.28);
}

.hero-panel {
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-panel {
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 34, 78, 0.92), rgba(9, 56, 119, 0.86));
  box-shadow: var(--shadow);
  scrollbar-gutter: stable;
}

.action-main {
  min-height: 0;
  overflow-y: auto;
  padding: 26px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 28, 66, 0.4), rgba(8, 50, 106, 0.32));
  box-shadow: var(--shadow);
}

.action-main > * + * {
  margin-top: 34px;
}

.content-panel > * + * {
  margin-top: 18px;
}

.hero-panel {
  padding: clamp(22px, 3.6vw, 40px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(6, 29, 66, 0.66), rgba(12, 62, 128, 0.54));
  border: 1px solid var(--line);
  box-shadow: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  margin-top: 12px;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  color: var(--text-strong);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  color: inherit;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 12px;
}

p {
  line-height: 1.7;
  font-size: 1rem;
}

.hero-copy {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1.08rem;
}

.section {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 30px;
  background: rgba(7, 35, 78, 0.56);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shared-flourishing {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.shared-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.two-column,
.pillars-layout,
.card-grid {
  display: grid;
  gap: 20px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.two-up,
.pillars-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.pillar-card {
  border-radius: 24px;
  padding: 24px;
}

.info-card {
  background: var(--surface-card);
  color: var(--text-dark);
}

.pillar-card {
  background: linear-gradient(160deg, rgba(36, 56, 47, 0.88), rgba(20, 31, 26, 0.8));
}

.soft-panel {
  background: var(--surface-soft);
}

.accent-gold {
  border-top: 4px solid var(--gold);
}

.accent-green {
  border-top: 4px solid var(--green);
}

.accent-blue {
  border-top: 4px solid var(--blue);
}

.card-focus {
  margin-top: 10px;
  font-weight: 700;
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(216, 179, 93, 0.15);
  color: var(--gold);
  font-weight: 700;
}

.sovereign-truth {
  margin: 24px 0 0;
  padding: 22px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0 20px 20px 0;
}

.sovereign-truth p {
  margin: 0;
  font-size: 1.06rem;
}

.plan-section {
  overflow: hidden;
  padding: clamp(26px, 4.2vw, 44px);
  background: rgba(7, 35, 78, 0.43);
}

.star-plan {
  position: relative;
  min-height: 940px;
}

.plan-step {
  position: absolute;
  width: min(288px, 37vw);
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(4px);
  color: var(--text-dark);
  box-shadow: 0 14px 30px rgba(7, 32, 73, 0.2);
}

.plan-step h3 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.plan-step p {
  margin-top: 10px;
  line-height: 1.6;
}

.step-1 {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.step-2 {
  top: 150px;
  right: 3%;
}

.step-3 {
  bottom: 155px;
  right: 3%;
}

.step-4 {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.step-5 {
  bottom: 155px;
  left: 3%;
}

.step-6 {
  top: 150px;
  left: 3%;
}

.star-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  display: grid;
  place-items: center;
}

.star-mark {
  display: block;
  font-size: clamp(8rem, 20vw, 14rem);
  line-height: 1;
  color: rgba(196, 228, 255, 0.96);
  text-shadow: 0 12px 28px rgba(7, 33, 75, 0.34);
}

.language-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(6, 31, 71, 0.88);
  box-shadow: 0 16px 40px rgba(6, 27, 66, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.language-switcher-label {
  padding-inline: 6px 2px;
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switcher button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 46px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.language-switcher button.is-active {
  background: linear-gradient(135deg, #c7dbff, #ffffff);
  color: #073679;
  transform: translateY(-1px);
}

.share-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 4px 2px;
}

.share-launch-button {
  min-width: 220px;
}

.share-cloud {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 12px;
  align-items: start;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(7, 35, 78, 0.32);
  padding: 14px;
}

.share-cloud-canvas {
  display: none;
}

.share-cloud-layer {
  display: contents;
}

.share-icon {
  justify-self: center;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 30, 71, 0.82);
  color: #eaf3ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 24px rgba(5, 22, 52, 0.35);
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.share-icon:hover,
.share-icon:focus-visible {
  transform: scale(1.14);
  background: rgba(13, 67, 138, 0.92);
  border-color: rgba(255, 255, 255, 0.56);
  outline: none;
}

.share-icon-img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Fade structural boxes when they carry no textual content. */
.hero-panel:not(:has(p, h1, h2, h3, h4, h5, h6, li, a)),
.section:not(:has(p, h1, h2, h3, h4, h5, h6, li, a)),
.shared-flourishing:not(:has(p, h1, h2, h3, h4, h5, h6, li, a)),
.info-card:not(:has(p, h1, h2, h3, h4, h5, h6, li, a)),
.pillar-card:not(:has(p, h1, h2, h3, h4, h5, h6, li, a)),
.plan-step:not(:has(p, h1, h2, h3, h4, h5, h6, li, a)) {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(150, 195, 255, 0.1);
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 900px) {
  .top-nav,
  .two-column,
  .three-up,
  .two-up,
  .pillars-layout {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-items: start;
  }

  .nav-links {
    width: 100%;
  }

  h1 {
    max-width: 14ch;
  }

  .star-plan {
    min-height: 0;
    display: grid;
    gap: 16px;
  }

  .plan-step,
  .step-1,
  .step-2,
  .step-3,
  .step-4,
  .step-5,
  .step-6 {
    position: static;
    width: 100%;
    transform: none;
  }

  .star-core {
    position: static;
    transform: none;
    margin: 8px auto;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .action-shell {
    padding: 14px;
  }

  .top-nav,
  .content-panel,
  .action-main,
  .hero-panel,
  .section,
  .info-card,
  .pillar-card,
  .plan-step {
    padding: 20px;
    border-radius: 22px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-pill {
    width: 100%;
  }

  .shared-actions .nav-pill {
    width: 100%;
  }

  .share-launch-button {
    width: 100%;
  }

  .share-cloud {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .share-icon:hover,
  .share-icon:focus-visible {
    transform: scale(1.12);
  }

  .language-switcher {
    right: 14px;
    bottom: 14px;
    gap: 6px;
    padding: 8px;
  }

  .language-switcher-label {
    display: none;
  }

  .language-switcher button {
    min-width: 42px;
    min-height: 36px;
    padding: 0 10px;
  }
}