/* ───── Lod Hunt landing page ─────
   Dark, sepia/amber theme matching the original Base44 site.
   RTL Hebrew. Heebo for body, Frank Ruhl Libre for display headings. */

:root {
  --bg:        #0d0c0b;
  --bg-2:      #16130f;
  --panel:     #1c1813;
  --panel-2:   #221d16;
  --line:      #38301f;
  --gold:      #c9a24a;
  --gold-soft: #d9b970;
  --gold-dim:  #8c7430;
  --text:      #ece5d6;
  --muted:     #a99c84;
  --muted-2:   #7d715d;
  --radius:    16px;
  --maxw:      1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', system-ui, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ───── Shared bits ───── */
.eyebrow,
.section-label {
  color: var(--gold);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  margin: 0 0 14px;
}
.section-label.center,
.section-title.center,
.section-intro.center { text-align: center; }

.section-title {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin: 0 0 14px;
  color: var(--text);
}
.section-intro { color: var(--muted); max-width: 620px; margin: 0 auto 38px; }

/* ───── Buttons ───── */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1408;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 6px 22px rgba(201,162,74,.28);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #1a1408; }
.btn-lg { padding: 15px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .9rem; box-shadow: none; }

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(13,12,11,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.brand-name { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 1.2rem; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a:not(.btn) { color: var(--muted); font-weight: 500; }
.header-nav a:not(.btn):hover { color: var(--gold-soft); }

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(.9) brightness(.62);
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(13,12,11,.15), rgba(13,12,11,.86) 70%),
    linear-gradient(180deg, rgba(13,12,11,.55), rgba(13,12,11,.92));
}
.hero-content { position: relative; padding: 90px 22px; max-width: 760px; }
.hero-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 1.02;
  margin: 8px 0 18px;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: var(--gold-soft); margin: 0 0 34px; }
.hero-credit { margin-top: 30px; color: var(--muted-2); font-size: .8rem; letter-spacing: .03em; }

/* ───── Architect ───── */
.architect { position: relative; padding: 0; overflow: hidden; }
.architect-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.4) saturate(.85);
}
.architect-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,11,.82), rgba(13,12,11,.9)); }
.architect-inner { position: relative; text-align: center; padding: 96px 22px; }
.architect-quote {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.85;
  color: var(--text);
  max-width: 740px; margin: 0 auto;
}
.architect-quote p { margin: 0 0 16px; }
.architect-sign { margin-top: 22px; color: var(--gold); font-weight: 700; letter-spacing: .04em; }

/* ───── Steps ───── */
.steps { padding: 92px 0 70px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.step-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 2.1rem;
  color: var(--gold-dim);
  display: block; margin-bottom: 8px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.18rem; color: var(--gold-soft); }
.step-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Download CTA block */
.download-cta {
  margin-top: 46px;
  text-align: center;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(201,162,74,.12), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px 22px;
}
.download-cta h3 { font-family: 'Frank Ruhl Libre', serif; font-size: 1.8rem; margin: 0 0 20px; }
.cta-note { color: var(--muted-2); margin: 16px 0 0; font-size: .9rem; letter-spacing: .04em; }

/* ───── App preview ───── */
.preview { padding: 70px 0; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px; margin: 26px auto 0;
}
.phone { margin: 0; }
.phone img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}

/* ───── Leaderboard ───── */
.leaderboard { padding: 80px 0; }
.board-wrap {
  max-width: 640px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.board { width: 100%; border-collapse: collapse; }
.board thead th {
  background: var(--panel-2);
  color: var(--gold);
  font-weight: 700; font-size: .85rem;
  letter-spacing: .06em;
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.board th.col-rank, .board td.col-rank { text-align: center; width: 64px; }
.board th.col-riddles, .board td.col-riddles,
.board th.col-score, .board td.col-score { text-align: center; width: 90px; }
.board tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(56,48,31,.5);
  color: var(--text);
}
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr:nth-child(even) td { background: rgba(255,255,255,.015); }
.board .rank-medal { font-size: 1.15rem; }
.board .player-name { font-weight: 600; }
.board .score-val { font-weight: 800; color: var(--gold-soft); }
.board .col-riddles { color: var(--muted); }
.board-state td { text-align: center; color: var(--muted); padding: 30px 16px; }
.board-foot { text-align: center; color: var(--muted-2); margin-top: 18px; font-size: .92rem; }

/* ───── Riddle grid ───── */
.riddles { padding: 70px 0; }
.riddle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.riddle-card {
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,162,74,.14), transparent 55%),
    linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.riddle-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.riddle-letter {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900; font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.riddle-scroll { font-size: 1.5rem; filter: saturate(.7); }
.riddle-name { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ───── Behind the scenes ───── */
.behind { padding: 70px 0 90px; }
.behind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.behind-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.behind-card h3 { margin: 0 0 10px; color: var(--gold-soft); font-size: 1.15rem; }
.behind-card p { margin: 0; color: var(--muted); }
.behind-card.span-2 { grid-column: 1 / -1; }

/* ───── Footer ───── */
.site-footer {
  text-align: center;
  padding: 46px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-mark { width: 46px; height: 46px; border-radius: 10px; margin: 0 auto 12px; opacity: .85; }
.site-footer p { margin: 0; color: var(--muted-2); font-size: .9rem; }

/* ───── Responsive ───── */
@media (max-width: 760px) {
  .header-nav { gap: 14px; }
  .header-nav a:not(.btn) { display: none; }
  .preview-grid { grid-template-columns: 1fr; max-width: 320px; }
  .riddle-grid { grid-template-columns: repeat(2, 1fr); }
  .behind-grid { grid-template-columns: 1fr; }
  .behind-card.span-2 { grid-column: auto; }
}
@media (max-width: 420px) {
  .riddle-grid { grid-template-columns: repeat(2, 1fr); }
}
