/* Landing scene. Scoped to body.landing so the 404 page keeps its own styles. */

body.landing {
  margin: 0;
  min-height: 100vh;
  color: #f3f1fb;
  background-color: #221a3a;
  background-image:
    radial-gradient(1200px 600px at 15% -10%, #6d3fa8 0%, transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, #2c6fb8 0%, transparent 55%);
  background-attachment: fixed;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

body.landing [lang="te"] {
  font-family: "Noto Sans Telugu", "Gautami", "Nirmala UI", system-ui, sans-serif;
  line-height: 1.7;
}

body.landing a { color: inherit; }
body.landing img { max-width: 100%; }

body.landing :focus-visible {
  outline: 2px solid #e4c36a;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #f3f1fb;
  color: #221a3a;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus { top: 0.6rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.bar {
  display: flex;
  align-items: center;
  min-height: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(34, 26, 58, 0.92);
}
.bar-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 650;
}
.brand img { width: 32px; height: 32px; }
.bar-actions, .intro-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
}
button.btn { background: transparent; }
.btn-primary { background: #e4c36a; color: #2a2148; }
.btn-primary:hover { background: #f0d48a; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #f3f1fb; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.25rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #e4c36a;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intro h1 {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lede { margin: 0 0 1rem; color: #c9c0de; max-width: 36rem; }
.for-whom {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  color: #b3aacf;
  font-size: 0.95rem;
}

.stage { position: relative; }
.tilt {
  position: relative;
  height: min(860px, 86vh);
  min-height: 640px;
}
#maze {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
#flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.lens {
  position: absolute;
  width: 132px;
  height: 132px;
  margin: -66px 0 0 -66px;
  border-radius: 50%;
  border: 7px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 0 3px #e4c36a;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
  background-color: #3d3270;
  background-image:
    linear-gradient(rgba(243, 238, 254, 0.55) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(243, 238, 254, 0.55) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.lens img {
  display: none;
  width: 118%;
  height: 118%;
  margin: -9%;
  object-fit: contain;
}
.lens.locked img { display: block; }
.lens.locked {
  background-image: none;
  background: radial-gradient(circle at 40% 35%, #6a5aaa, #2a2148 70%);
}
.lens-handle {
  position: absolute;
  width: 14px;
  height: 52px;
  right: -8px;
  bottom: -36px;
  border-radius: 8px;
  background: linear-gradient(#f0d48a, #b8893a);
  transform: rotate(38deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.spot-card {
  position: absolute;
  z-index: 5;
  width: min(260px, 70vw);
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: 14px;
  background: rgba(28, 22, 48, 0.94);
  border: 1px solid rgba(228, 195, 106, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.spot-card h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.spot-card p { margin: 0 0 0.75rem; color: #c9c0de; font-size: 0.9rem; }
.spot-card .card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.hover-line, .flow-note {
  margin: 0.35rem 0 0;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #b3aacf;
}
.flow-note {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.82rem;
}

.qcard {
  position: absolute;
  z-index: 6;
  width: min(300px, 78vw);
  pointer-events: auto;
  padding: 0.7rem;
  border-radius: 14px;
  background: rgba(28, 22, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.qcard header {
  margin: 0 0 0.35rem;
  color: #b3aacf;
  font-size: 0.72rem;
}
.qcard .qtext {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.35;
  max-height: 7.2rem;
  overflow: auto;
}
.qcard .qimg {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 0.45rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.opt {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.35rem;
  text-align: left;
  color: #f3f1fb;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.opt .k {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 15, 38, 0.55);
  font-size: 0.72rem;
}
.opt.right { border-color: #2ecc71; background: rgba(46, 204, 113, 0.16); }
.opt.wrong { border-color: #e8595e; background: rgba(232, 89, 94, 0.16); }
.opt:disabled { cursor: default; }
.result {
  margin: 0.55rem 0 0;
  color: #c9c0de;
  font-size: 0.8rem;
}
.nudge {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b3aacf;
  font-size: 0.78rem;
  line-height: 1.4;
}
.nudge a { color: #e4c36a; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0 1.6rem;
}
.footer-copy { margin: 0; color: #b3aacf; font-size: 0.9rem; }
.footer-copy a { color: #d4b8ff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.footer-nav a { color: #b3aacf; text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .tilt { height: 560px; min-height: 0; }
}
@media (max-width: 720px) {
  .bar-actions { display: none; }
  .bar { min-height: 3.25rem; }
  .hero { gap: 0.15rem; padding: 0.7rem 0 0.6rem; align-items: start; }
  .eyebrow { margin-bottom: 0.35rem; }
  .lede { margin-bottom: 0.65rem; }
  .for-whom { margin-top: 0.45rem; }
  .tilt {
    width: 100%;
    height: min(calc(100vw - 2rem), calc(100vh - 22.5rem));
    height: min(calc(100vw - 2rem), calc(100svh - 22.5rem));
    min-height: 220px;
  }
  .hover-line { margin-top: 0.15rem; }
}
@media (max-width: 560px) {
  .bar-inner, .footer-inner { padding: 0.35rem 0; align-items: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .qcard { transition: none; }
}
