/* --------------------------------------------------
   LuminaNexus – Global styles
   Sanctuary · Study · Build
-------------------------------------------------- */

/* Design tokens */

:root {
  --bg-body: #020617;
  --bg-surface: #020617;
  --bg-elevated: #020617;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #e5e7eb;

  --accent-gold: #e6d8a8;
  --accent-gold-soft: #fff2c6;
  --accent-pill: #f97316;
  --accent-pill-soft: #fed7aa;

  --nav-link: #f9fafb;
  --nav-link-muted: #9ca3af;

  --border-soft: rgba(148, 163, 184, 0.35);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;

  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Global reset */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Body / base layout */

body.ln-dark {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.14), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(180deg, #020617 0%, #020617 52%, #020617 100%);
  -webkit-font-smoothing: antialiased;
}

/* Utility container */

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Global links – soft gold */

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

a:visited {
  color: var(--accent-gold);
}

a:hover,
a:focus-visible {
  color: var(--accent-gold-soft);
  text-shadow: 0 0 10px rgba(250, 250, 210, 0.35);
}

/* --------------------------------------------------
   Topbar / navigation
-------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.92) 0%,
    rgba(2, 6, 23, 0.86) 70%,
    rgba(2, 6, 23, 0.0) 100%
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem 0.9rem;
  max-width: 1120px;
  margin: 0 auto;
}

/* Brand cluster */

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-pill-soft);
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Nav links */

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--nav-link);
  opacity: 0.78;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  color: var(--accent-gold-soft);
}

.nav-links a.active {
  opacity: 1;
  color: var(--accent-gold);
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  margin: 0 auto;
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #eab308, #22c55e);
}

/* Mobile-ish stacking */

@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

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

main.container {
  padding-top: 2.5rem;
}

.hero-shell {
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.hero-shell-home {
  position: relative;
}

.hero-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 2.75rem 2.75rem 3rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.25), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.20), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Subtle hero background art overlay – if you have a hero image */
.hero-shell-home::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background-image: url("/assets/img/hero-sanctuary.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Ensure content is readable over image */
.hero-overlay {
  position: relative;
}

/* Hero layout */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-heading {
  font-size: clamp(2.6rem, 3.4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Pill above hero */

.text-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(248, 250, 252, 0.18);
  background: radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.6), rgba(30, 64, 175, 0.75));
  color: #fefce8;
  margin-bottom: 1rem;
}

.text-pill span[lang="he"] {
  font-weight: 500;
}

/* Hero buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #111827;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.75);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.9);
}

.btn-outline {
  background: transparent;
  border-color: rgba(248, 250, 252, 0.26);
  color: var(--text-soft);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--accent-gold-soft);
  color: var(--accent-gold-soft);
  box-shadow: 0 0 0 1px rgba(250, 250, 210, 0.2);
}

/* Hero aside text */

.hero-aside {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-radius: 22px;
  padding: 1.25rem 1.4rem;
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(30, 64, 175, 0.7);
}

/* Responsive hero */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-aside {
    margin-top: 1.75rem;
  }

  .hero-overlay {
    padding: 2rem 1.75rem 2.25rem;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding-inline: 1.2rem;
  }

  .shell {
    padding-inline: 1.2rem;
  }

  .hero-heading {
    font-size: 2.1rem;
  }
}

/* --------------------------------------------------
   Paths through the Nexus – card grid
-------------------------------------------------- */

.section-head {
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.21em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.45rem;
  margin: 0;
  color: var(--text-soft);
}

.paths-section {
  margin-bottom: 3.5rem;
}

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

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

@media (max-width: 640px) {
  .paths-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Individual path cards */

.path-card {
  position: relative;
  padding: 1.3rem 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.08), transparent 55%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.path-card:hover,
.path-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(250, 250, 210, 0.35);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
}

/* Subtle diagonal sheen */

.path-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

/* Path content */

.path-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.path-label span[lang="he"] {
  font-weight: 500;
  color: var(--accent-gold);
}

.path-title {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
  color: var(--text-soft);
}

.path-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.path-link {
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.path-link::after {
  content: "↗";
  font-size: 0.9rem;
}

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

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
