/* ============================================================
   Bible Test — standalone site styles
   Deep indigo + warm gold scholarly theme
   ============================================================ */

:root {
  --indigo:    #1e1b4b;
  --indigo-700:#2e2a6e;
  --indigo-600:#3a3690;
  --violet:    #6d5efc;
  --gold:      #e3b341;
  --gold-soft: #f3d784;

  --ink:    #1a1830;
  --body:   #45425e;
  --muted:  #7d7a93;
  --accent: #5a4ff3;        /* primary action accent (used by exam.css) */
  --accent-deep: #4337d6;
  --line:   #e7e5f0;
  --bg:     #ffffff;
  --bg-alt: #f5f4fb;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 50px -30px rgba(30, 27, 75, 0.45);
  --maxw:   1140px;

  --display: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 100px;
  font-family: var(--sans); font-weight: 700; font-size: 0.96rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 16px 30px -16px rgba(90,79,243,0.7); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--indigo); box-shadow: 0 14px 28px -18px rgba(0,0,0,0.4); }
.btn--light:hover { transform: translateY(-3px); }
.btn--ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-3px); }
.btn--full { width: 100%; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.header.scrolled { box-shadow: 0 10px 30px -20px rgba(30,27,75,0.4); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(145deg, var(--violet), var(--accent)); color: #fff;
  display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: 0 12px 24px -12px rgba(90,79,243,0.8); transform: rotate(-5deg);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand__mark { transform: rotate(5deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-size: 1.4rem; font-weight: 900; color: var(--ink); }
.brand__tag { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.93rem; font-weight: 600; color: var(--body); position: relative; padding: 6px 0; transition: color 0.2s ease; }
.nav a:not(.nav__cta):hover, .nav a.active:not(.nav__cta) { color: var(--ink); }
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; border-radius: 3px; background: var(--accent); transition: width 0.25s ease; }
.nav a:not(.nav__cta):hover::after, .nav a.active:not(.nav__cta)::after { width: 100%; }
.nav__cta { background: var(--accent); color: #fff !important; padding: 10px 22px !important; border-radius: 100px; box-shadow: 0 12px 24px -14px rgba(90,79,243,0.8); transition: transform 0.2s ease, background 0.2s ease; }
.nav__cta:hover { background: var(--accent-deep); transform: translateY(-2px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 25px; height: 3px; border-radius: 3px; background: var(--ink); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(109,94,252,0.55), transparent 60%),
    radial-gradient(760px 460px at 100% 0%, rgba(227,179,65,0.35), transparent 55%),
    linear-gradient(160deg, #1e1b4b 10%, #2e2a6e 60%, #3a3690);
}
.hero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -160px; right: -120px; background: radial-gradient(circle, rgba(227,179,65,0.35), transparent 70%); z-index: -1; animation: drift 16s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,40px); } }
.hero__inner { position: relative; z-index: 1; padding: 118px 24px 120px; max-width: 760px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 18px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 26px; backdrop-filter: blur(4px);
}
.hero__title { font-family: var(--display); font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero__highlight { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero__sub { font-size: 1.16rem; color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 36px; font-weight: 300; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stat-num { font-family: var(--display); font-size: 2.4rem; font-weight: 900; color: var(--gold-soft); line-height: 1; }
.hero__stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.75); font-weight: 600; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 94px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.74rem; font-weight: 800; color: var(--accent); margin-bottom: 14px; background: rgba(90,79,243,0.1); padding: 6px 14px; border-radius: 100px; }
.eyebrow--light { color: var(--gold-soft); background: rgba(255,255,255,0.14); }
.section__title { font-family: var(--display); font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 900; color: var(--ink); line-height: 1.1; letter-spacing: -0.015em; }
.section__title--light { color: #fff; }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* ---------- How it works (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease; }
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, var(--violet), var(--accent)); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.3rem; margin-bottom: 18px; box-shadow: 0 12px 22px -12px rgba(90,79,243,0.8); }
.step h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Feature band (dark) ---------- */
.section--dark { background: linear-gradient(160deg, #1e1b4b, #3a3690); color: #fff; overflow: hidden; }
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.feature__lead { color: rgba(255,255,255,0.85); margin: 16px 0 22px; font-weight: 300; font-size: 1.08rem; }
.feature__list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.feature__list li { position: relative; padding-left: 32px; font-weight: 500; }
.feature__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--indigo); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.feature__visual { display: grid; place-items: center; }
.clockcard {
  width: 100%; max-width: 320px; text-align: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px; padding: 42px 32px; backdrop-filter: blur(6px);
}
.clockcard__time { font-family: var(--display); font-size: 4.2rem; font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.clockcard__label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; color: rgba(255,255,255,0.7); margin-top: 8px; font-weight: 600; }
.clockcard__bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.15); margin: 22px 0 12px; overflow: hidden; }
.clockcard__bar span { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 8px; animation: shrink 5s linear infinite; }
@keyframes shrink { from { width: 100%; } to { width: 0; } }
.clockcard__hint { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ---------- Topics ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.topic { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 13px 22px; font-weight: 600; color: var(--ink); font-size: 0.96rem; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.topic:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 26px -18px rgba(90,79,243,0.7); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 24px; transition: box-shadow 0.2s ease; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 400; transition: transform 0.2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 20px; }

/* ---------- Final CTA ---------- */
.cta { background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; }
.cta__inner { text-align: center; padding: 80px 24px; }
.cta h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 12px; letter-spacing: -0.015em; }
.cta p { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--indigo); color: #c9c5e4; padding-top: 56px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand .brand__name { color: #fff; font-size: 1.35rem; font-family: var(--display); font-weight: 900; }
.footer__brand p { font-size: 0.9rem; color: #a49fcb; margin-top: 4px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { font-size: 0.92rem; font-weight: 600; transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--gold-soft); }
.footer__copy { font-size: 0.85rem; color: #8e89b8; width: 100%; text-align: center; padding: 22px 0 36px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,1,.36,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature__visual { order: -1; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 76px; right: 0; width: 74%; max-width: 320px; height: calc(100vh - 76px);
    background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 24px 28px;
    transform: translateX(110%); transition: transform 0.32s cubic-bezier(.22,1,.36,1); box-shadow: -14px 0 50px -22px rgba(0,0,0,0.35);
  }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 14px; }
  .nav__toggle { display: flex; }
  .section { padding: 66px 0; }
  .hero__inner { padding: 84px 24px 90px; }
  .hero__stats { gap: 28px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
