/* ----------------------------------------------------
   Base layout & typography
---------------------------------------------------- */

:root {
  --bg-body: #020617;
  --bg-surface: #020617;
  --bg-elevated: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --accent: #f97316;
  --accent-soft: #facc15;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-elevated: 0 40px 80px rgba(0, 0, 0, 0.6);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.2), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(180deg, #020617 0%, #020617 50%, #020617 100%);
}

/* Container */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* --------------------------------------------------
   Links – soft gold (Library-wide)
-------------------------------------------------- */

a {
  color: #e6d8a8;
  text-decoration: none;
}

a:visited {
  color: #e6d8a8;
}

a:hover,
a:focus {
  color: #fff2c6;
  text-decoration: underline;
}

/* ----------------------------------------------------
   Header / nav
---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.88),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

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

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-main a {
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 160ms ease-out;
}

.nav-main a:hover {
  color: var(--text-main);
}

.nav-main a:hover::after {
  width: 100%;
}

.nav-main .nav-support {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: rgba(15, 23, 42, 0.9);
}

.nav-main .nav-support:hover {
  border-color: var(--accent);
}

/* ----------------------------------------------------
   Hero
---------------------------------------------------- */

.hero {
  padding: 4rem 0 3.5rem;
}

.hero-card {
  max-width: 900px;
  padding: 2.75rem 2.5rem;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 150, 80, 0.25), transparent 60%),
    linear-gradient(135deg, #111827, #020617);
  box-shadow: var(--shadow-elevated);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 800ms ease-out forwards;
  opacity: 0;
}

/* Eyebrow / pill */
.hero-eyebrow {
  margin-bottom: 0.75rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(248, 250, 252, 0.12);
  color: var(--accent);
}

/* Typography */
.hero-title {
  font-size: clamp(2.25rem, 3vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: #f9fafb;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 34rem;
  color: #e5e7eb;
  margin: 0 0 0.75rem;
}

.hero-hebrew {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #facc6b;
  margin: 0 0 0.75rem;
}

.hero-cosmology {
  font-size: 0.9rem;
  max-width: 36rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Triad row */
.hero-triad {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.hero-triad-item {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.triad-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f3f4f6;
}

.triad-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 150ms ease-out,
    box-shadow 180ms ease-out,
    border-color 180ms ease-out,
    background 200ms ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #111827;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.55);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

/* Hero subtle moving glow */
.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0;
  transform: translate3d(-10%, -10%, 0);
  pointer-events: none;
  animation: heroGlow 18s ease-in-out infinite;
}

/* ----------------------------------------------------
   Sections
---------------------------------------------------- */

.section {
  padding: 1rem 0 3rem;
}

.section-sanctuary {
  padding-top: 0.5rem;
}

.section-title {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}

.section-lead {
  margin: 0;
  max-width: 46rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Paths grid */
.section-grid {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.cards-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(15, 23, 42, 0.95);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transition:
    transform 160ms ease-out,
    box-shadow 180ms ease-out,
    border-color 180ms ease-out,
    background 200ms ease-out;
}

.card-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: #f9fafb;
}

.card-body {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-link {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--accent-soft);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.2rem 0 1.4rem;
  background: radial-gradient(circle at 50% -40%, rgba(148, 163, 184, 0.22), #020617 65%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-right {
  display: flex;
  gap: 1.2rem;
}

.footer-right a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--text-main);
}

/* ----------------------------------------------------
   Animations
---------------------------------------------------- */

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGlow {
  0%,
  25% {
    opacity: 0;
    transform: translate3d(-20%, -20%, 0);
  }
  40%,
  60% {
    opacity: 1;
    transform: translate3d(15%, 15%, 0);
  }
  75%,
  100% {
    opacity: 0;
    transform: translate3d(40%, 40%, 0);
  }
}

/* ----------------------------------------------------
   Responsiveness
---------------------------------------------------- */

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav-main {
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .hero-card {
    padding: 2rem 1.5rem;
  }

  .hero-triad {
    flex-direction: column;
    gap: 1.1rem;
  }

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

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
/* Compact hero and bring grid closer */
.hero {
  padding: 3rem 0 2rem;
}

.hero-card {
  margin-bottom: 0; /* avoid extra gap below the hero */
}

/* Bring the grid up a bit */
.section-grid {
  padding-top: 0.75rem;
  padding-bottom: 3.25rem;
}

/* Slightly tighter title spacing so more fits above the fold */
.section-title {
  margin-bottom: 0.5rem;
}
