:root {
  --bg: #132236;
  --panel: #1b2b42;
  --panel-2: #243754;
  --text: #f3f7fd;
  --muted: #bfd0e6;
  --border: rgba(255,255,255,0.14);
  --shadow: 0 12px 28px rgba(0,0,0,.18);
  --theological: #f59e0b;
  --theological-2: #fbbf24;
  --hermeneutics: #ec4899;
  --hermeneutics-2: #f472b6;
  --inductive: #38bdf8;
  --inductive-2: #7dd3fc;
  --research: #22c55e;
  --research-2: #86efac;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245,158,11,.12), transparent 25%),
    radial-gradient(circle at top right, rgba(56,189,248,.12), transparent 28%),
    linear-gradient(180deg, #102033 0%, #15263b 100%);
}

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

.wrap {
  max-width: 1780px;
  margin: 0 auto;
  padding: 0 12px 22px;
}

.hero {
  padding: 6px 0 2px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(18, 31, 49, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1780px;
  margin: 0 auto;
  padding: 4px 10px 6px;
}

.nav-top {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.home-btn, .platform-btn, .copy-chip, .copy-main, .jump-top {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.home-btn {
  background: rgba(34,197,94,.16);
  border-color: rgba(134,239,172,.30);
  min-width: 58px;
  text-align: center;
  flex: 0 0 auto;
}

.platform-btn {
  background: rgba(255,255,255,0.06);
}

.copy-main {
  background: linear-gradient(135deg, rgba(125,211,252,.16), rgba(167,139,250,.12));
}

.home-btn:hover, .platform-btn:hover, .copy-chip:hover, .copy-main:hover, .jump-top:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.platform-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 480px;
  margin-bottom: 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  flex: 0 1 230px;
  min-width: 160px;
  margin-left: auto;
}

.search {
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  position: relative;
}

.search input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(30, 45, 68, 0.96);
  color: var(--text);
  outline: none;
  min-height: 30px;
}

.search input::placeholder { color: #88a0c0; }

.menu-group {
  margin-top: 10px;
  padding: 9px 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.menu-group h2 {
  margin: 0 0 8px;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.menu-group-theological {
  background: linear-gradient(180deg, rgba(122,82,33,.72), rgba(49,37,24,.9));
  border-color: rgba(245,158,11,.45);
}
.menu-group-theological h2 { color: var(--theological-2); }

.menu-group-hermeneutics {
  background: linear-gradient(180deg, rgba(115,44,87,.72), rgba(44,24,37,.9));
  border-color: rgba(236,72,153,.45);
}
.menu-group-hermeneutics h2 { color: var(--hermeneutics-2); }

.menu-group-inductive {
  background: linear-gradient(180deg, rgba(39,95,124,.72), rgba(24,38,52,.9));
  border-color: rgba(56,189,248,.45);
}
.menu-group-inductive h2 { color: var(--inductive-2); }

.menu-group-research {
  background: linear-gradient(180deg, rgba(43,88,52,.72), rgba(22,37,27,.9));
  border-color: rgba(34,197,94,.45);
}
.menu-group-research h2 { color: var(--research-2); }

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

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(18, 31, 49, 0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
}

.menu-group-theological .menu-item { border-color: rgba(245,158,11,.28); }
.menu-group-hermeneutics .menu-item { border-color: rgba(236,72,153,.28); }
.menu-group-inductive .menu-item { border-color: rgba(56,189,248,.28); }
.menu-group-research .menu-item { border-color: rgba(34,197,94,.28); }

.menu-link {
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 12px;
}

.section-banner {
  padding: 9px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  scroll-margin-top: 180px;
}

.section-banner-inner p {
  margin: 0 0 2px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .95;
}

.section-banner-inner h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
  line-height: 1.1;
}

.section-banner-theological {
  background: linear-gradient(90deg, rgba(245,158,11,.22), rgba(126,86,31,.88));
  border-color: rgba(245,158,11,.62);
}
.section-banner-theological p, .section-banner-theological h2 { color: #ffd58a; }

.section-banner-hermeneutics {
  background: linear-gradient(90deg, rgba(236,72,153,.22), rgba(122,54,93,.88));
  border-color: rgba(236,72,153,.62);
}
.section-banner-hermeneutics p, .section-banner-hermeneutics h2 { color: #ffc0dd; }

.section-banner-inductive {
  background: linear-gradient(90deg, rgba(56,189,248,.22), rgba(42,94,118,.88));
  border-color: rgba(56,189,248,.62);
}
.section-banner-inductive p, .section-banner-inductive h2 { color: #bdefff; }

.section-banner-research {
  background: linear-gradient(90deg, rgba(34,197,94,.22), rgba(44,91,54,.88));
  border-color: rgba(34,197,94,.62);
}
.section-banner-research p, .section-banner-research h2 { color: #c9ffd9; }

.prompt-card {
  scroll-margin-top: 180px;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.prompt-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
}

.group-theological {
  background: linear-gradient(180deg, rgba(96,63,22,.88), rgba(31,25,19,.95));
  border-color: rgba(245,158,11,.38);
}
.group-theological::before { background: linear-gradient(180deg, var(--theological), var(--theological-2)); }
.group-theological .eyebrow { color: var(--theological-2); }

.group-hermeneutics {
  background: linear-gradient(180deg, rgba(95,34,69,.88), rgba(30,19,28,.95));
  border-color: rgba(236,72,153,.38);
}
.group-hermeneutics::before { background: linear-gradient(180deg, var(--hermeneutics), var(--hermeneutics-2)); }
.group-hermeneutics .eyebrow { color: var(--hermeneutics-2); }

.group-inductive {
  background: linear-gradient(180deg, rgba(27,76,103,.88), rgba(18,28,40,.95));
  border-color: rgba(56,189,248,.38);
}
.group-inductive::before { background: linear-gradient(180deg, var(--inductive), var(--inductive-2)); }
.group-inductive .eyebrow { color: var(--inductive-2); }

.group-research {
  background: linear-gradient(180deg, rgba(29,71,39,.88), rgba(18,29,22,.95));
  border-color: rgba(34,197,94,.38);
}
.group-research::before { background: linear-gradient(180deg, var(--research), var(--research-2)); }
.group-research .eyebrow { color: var(--research-2); }

.card-head {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.card-head h2 {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.2;
}

.card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.prompt-text {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.48;
  font-size: 0.88rem;
  color: #f5f8fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(20, 32, 50, 0.76);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 11px;
  overflow-x: auto;
}

.loading {
  padding: 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(28, 42, 64, 0.72);
  box-shadow: var(--shadow);
}

.error-box {
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(95, 34, 69, .38);
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: rgba(28, 42, 64, 0.96);
  color: #fff;
  border: 1px solid rgba(34,197,94,.45);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden { display: none !important; }

@media (max-width: 900px) {
  .menu-grid { grid-template-columns: 1fr; }
  .prompt-card, .section-banner { scroll-margin-top: 250px; }

  .nav-top {
    align-items: stretch;
    gap: 6px;
  }

  .platform-row,
  .search-wrap {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .search-wrap {
    min-width: 0;
  }
}


.script-btn {
  background: linear-gradient(135deg, rgba(167,139,250,.18), rgba(125,211,252,.14));
  border-color: rgba(167,139,250,.35);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(28,42,64,.98), rgba(18,30,46,.99));
  box-shadow: 0 24px 56px rgba(0,0,0,.28);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-eyebrow {
  margin: 0 0 6px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c7d8ef;
}

.modal-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.modal-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.5;
}

.modal-close {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
}

.modal-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(22, 35, 55, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.modal-helper {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-figure {
  margin: 0 0 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(3, 9, 18, 0.88);
}

.modal-image {
  display: block;
  width: 100%;
  height: auto;
}

.modal-figure figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.steps-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
}

.steps-list li + li {
  margin-top: 2px;
}

.script-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.script-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.script-code {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 0.88rem;
  color: #f1f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(18, 30, 46, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  overflow: auto;
  max-height: 58vh;
}

@media (max-width: 700px) {
  .modal {
    padding: 10px;
  }

  .modal-head,
  .modal-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .modal-close {
    width: 34px;
    height: 34px;
  }
}
