/* ============= Base ============================================ */

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

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #171d30 0, #050713 55%, #020308 100%);
  color: #f5f7ff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.2rem, 3vw + 1.5rem, 3.1rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.1rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9b4cf;
}

/* ============= Header ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(3, 8, 20, 0.94),
    rgba(3, 8, 20, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: radial-gradient(circle at 30% 20%, #ffb347, #ff6a3d);
  color: #050713;
  box-shadow: 0 0 12px rgba(255, 148, 90, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #a9b4cf;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.86rem;
}

.site-nav a {
  color: #d8e0ff;
}

.site-nav a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 100, 0.7);
  background: radial-gradient(circle at 30% 20%, rgba(255, 179, 71, 0.15), transparent);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.18rem;
  background: none;
  border: none;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e3e8ff;
}

@media (max-width: 840px) {
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    padding: 0.75rem 1.5rem 1rem;
    background: radial-gradient(circle at top, #151b2a, #050713);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ============= Hero ============================================ */

.hero {
  padding: 3.2rem 0 2.4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.6rem;
}

.hero-subtitle {
  max-width: 38rem;
  color: #d0d7f5;
  margin-bottom: 1.3rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: #8f9ac3;
  margin-top: 0.6rem;
}

.hero-actions,
.hero-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions-secondary {
  margin-top: 0.7rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.btn-primary {
  background: radial-gradient(circle at 30% 20%, #ffb347, #ff6a3d);
  color: #050713;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(255, 148, 90, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(255, 148, 90, 0.95);
}

.btn-outline {
  border-color: rgba(255, 180, 100, 0.85);
  color: #ffddb0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 179, 71, 0.16), transparent);
}

.btn-outline:hover {
  background: radial-gradient(circle at 30% 20%, rgba(255, 179, 71, 0.23), transparent);
}

.btn-ghost {
  border-color: rgba(174, 183, 224, 0.35);
  color: #d0d7f5;
  background: rgba(7, 11, 26, 0.8);
}

.btn-ghost:hover {
  background: rgba(19, 26, 46, 0.98);
}

/* Hero orb */

.hero-orbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.orbit {
  position: relative;
  width: 210px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(133, 148, 196, 0.35);
}

.orbit-ring-2 {
  inset: 15%;
  border-style: dashed;
  opacity: 0.6;
}

.orbit-core {
  position: relative;
  width: 64%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #ffb347, #ff6a3d 70%, #c14424 100%);
  box-shadow:
    0 0 26px rgba(255, 148, 90, 0.75),
    0 0 80px rgba(255, 148, 90, 0.4);
  color: #050713;
}

.orbit-aleph {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.orbit-caption {
  font-size: 0.8rem;
  color: #a9b4cf;
  text-align: center;
  max-width: 12rem;
}

/* Hero Quantum Etz Chaim card */

.hero-qec {
  margin-top: 2.4rem;
}

.hero-qec-card {
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  max-width: 640px;
  background: radial-gradient(circle at top left, #1f2538, #080b17);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.hero-qec-card h2 {
  margin-bottom: 0.3rem;
}

.hero-qec-card p {
  color: #d2d8f4;
}

/* Responsive hero */

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

  .hero-orbit {
    order: -1;
    align-items: flex-end;
  }
}

/* ============= Generic sections & cards ======================== */

.section {
  padding: 3.1rem 0;
}

.section-alt {
  padding: 3.1rem 0;
  background: radial-gradient(circle at top, rgba(19, 24, 43, 0.96), rgba(6, 9, 24, 0.98));
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header p {
  color: #c3c9e7;
}

/* Mission variant */

.section-mission {
  padding-top: 2.4rem;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.cards-grid--trees {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
  background: radial-gradient(circle at top left, #1f2538, #080b17);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card p {
  color: #d2d8f4;
}

.card-meta {
  font-size: 0.82rem;
  color: #ffddb0;
}

/* ============= Footer ========================================== */

.site-footer {
  padding: 2.4rem 0 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #040612;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-size: 0.9rem;
  color: #c3c9e7;
  margin-bottom: 0.3rem;
}

.footer-meta {
  font-size: 0.78rem;
  color: #8f9ac3;
}

/* ============= Responsive tweaks ================================ */

@media (max-width: 640px) {
  .container {
    padding-inline: 1.1rem;
  }

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

  .header-inner {
    padding-inline: 1.1rem;
  }
}
/* ============================================================= */
/*                 CHAVRUTAGPT PAGE                              */
/* ============================================================= */

.chavruta-hero {
  padding: 3rem 0 2.4rem;
}

.chavruta-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2.6rem;
  align-items: center;
}

.chavruta-summary h1 {
  margin-bottom: 0.8rem;
}

.chavruta-disclaimer {
  font-size: 0.8rem;
  color: #a9b4cf;
  max-width: 34rem;
}

.chavruta-orbit .orbit {
  width: 190px;
}

.chavruta-page .site-header {
  /* reuse same header look, nothing special needed here;
     this selector just keeps options open if we want tweaks later */
}

.chavruta-note {
  font-size: 0.86em;
  color: #a9b4cf;
}

/* Main chat block */

.chavruta-chat-section {
  padding-top: 2.6rem;
  padding-bottom: 3.2rem;
}

.chavruta-chat-shell {
  max-width: 880px;
  margin: 0 auto 2.2rem;
  padding: 1.4rem 1.6rem 1.6rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at top left, #1f2538, #050713);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.85);
}

.chavruta-chat-history {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.85rem 0.1rem 0.9rem;
  margin-bottom: 0.8rem;
}

/* Chat bubbles */

.chat-bubble {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.chat-bubble-system {
  background: rgba(36, 51, 95, 0.95);
  color: #e6ecff;
  border-top-left-radius: 0.2rem;
}

.chat-bubble-user {
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.55);
  color: #ffe0b7;
  border-top-right-radius: 0.2rem;
}

/* Input */

.chavruta-input-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #e3e8ff;
}

.chavruta-input {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(183, 193, 233, 0.6);
  background: rgba(4, 7, 18, 0.95);
  color: #f5f7ff;
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
}

.chavruta-input::placeholder {
  color: #8f9ac3;
}

.chavruta-input:focus {
  border-color: rgba(255, 179, 71, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 179, 71, 0.5),
    0 0 12px rgba(255, 179, 71, 0.6);
}

/* Action buttons */

.chavruta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.btn-pill {
  padding-inline: 0.9rem;
  font-size: 0.8rem;
}

/* Guidance cards */

.chavruta-guides ul {
  padding-left: 1.1rem;
  margin: 0.2rem 0 0;
}

.chavruta-guides li {
  font-size: 0.9rem;
  color: #d2d8f4;
  margin-bottom: 0.3rem;
}

/* Responsive */

@media (max-width: 900px) {
  .chavruta-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .chavruta-orbit {
    order: -1;
    align-items: flex-start;
  }

  .chavruta-chat-shell {
    padding-inline: 1.2rem;
  }
}

@media (max-width: 640px) {
  .chavruta-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}
/* Chavruta page layout tweaks */
.chavruta-page main {
  padding-top: 4.5rem;
}

.chavruta-top {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.chavruta-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

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

.chavruta-chat-shell {
  margin: 0;
}
/* ================================
   231 Gates page
   ================================ */

.gates-main {
  padding-bottom: 4rem;
}

.gates-hero {
  padding: 4rem 0 2rem;
}

.gates-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

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

.gates-hero-copy h1 {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.2rem);
  margin-bottom: 0.75rem;
}

.gates-hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40rem;
  color: var(--ln-text-muted, #cbd5f5);
}

.gates-hero-math {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ln-accent-soft, #fcae70);
}

/* Orb */

.gates-hero-orb {
  text-align: center;
}

.gates-orb-shell {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gates-orb-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gates-orb-ring-lg {
  width: 100%;
  height: 100%;
}

.gates-orb-ring-md {
  width: 75%;
  height: 75%;
}

.gates-orb-ring-sm {
  width: 50%;
  height: 50%;
}

.gates-orb-core {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #ffe6b0, #ff8b33);
  box-shadow:
    0 0 0 10px rgba(255, 140, 51, 0.08),
    0 0 40px rgba(255, 160, 80, 0.5);
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
}

.gates-orb-caption {
  font-size: 0.85rem;
  color: var(--ln-text-muted, #a7b4dd);
}

/* Layout */

.gates-layout {
  padding: 2rem 0 1rem;
}

.gates-layout-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .gates-layout-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  }
}

.gates-explainer p {
  margin-bottom: 0.75rem;
}

.gates-bullets {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.3rem;
  font-size: 0.95rem;
}

/* Interactive card */

.gates-interactive-header p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--ln-text-muted, #cbd5f5);
}

.gate-pill-grid {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gate-pill {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.95rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  color: #e5edff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3);
  transition:
    background 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.12s ease-out;
}

.gate-pill:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.7),
    0 12px 30px rgba(15, 23, 42, 0.8);
}

.gate-pill-active {
  background: radial-gradient(circle at 30% 20%, #ffdfaa, #ff8b33);
  color: #111827;
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.9),
    0 14px 35px rgba(15, 23, 42, 0.9);
}

/* Detail card */

.gate-detail-card {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.95));
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
}

.gate-detail-header {
  margin-bottom: 0.4rem;
}

.gate-detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ln-text-muted, #9ca3c9);
}

.gate-summary {
  font-size: 0.95rem;
  color: var(--ln-text-muted, #cbd5f5);
  margin-bottom: 0.75rem;
}

.gate-meta {
  margin: 0;
  font-size: 0.9rem;
}

.gate-meta-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.4rem 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.gate-meta-row:first-child {
  border-top: none;
  padding-top: 0;
}

.gate-meta-row dt {
  color: var(--ln-text-muted, #9ca3c9);
}

.gate-meta-row dd {
  margin: 0;
}

.gate-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ln-text-muted, #9ca3c9);
}

/* Roadmap */

.gates-roadmap {
  padding: 1.5rem 0 3rem;
}

.gates-roadmap h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.roadmap-list {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ln-text-muted, #cbd5f5);
}

.roadmap-list li + li {
  margin-top: 0.45rem;
}
