/* MarmaAI — Landing page (marketing entry, served at "/")
   Shares the same design tokens (--gold, --emerald, --shell-*, fonts) defined
   in style.css so it feels like the same product, not a bolted-on page. */

/* style.css (shared with the /app shell) sets html,body { height:100% } and
   body { overflow:hidden } — correct for the fixed-height SPA shell, but the
   landing page is a normal tall scrolling page. Without this override, real
   scroll input (mouse wheel, spacebar, Page Down, touch drag) is completely
   inert on the landing route: the browser propagates body's hidden overflow
   to the viewport, so visitors get stuck on the hero and can never reach any
   section below it. Since landing.css only loads on "/", this is scoped to
   the landing page only and never touches /app. */
html, body {
  height: auto;
  overflow: visible;
}

.landing-root {
  background: var(--shell-bg);
  color: var(--shell-ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(180deg, rgba(14,18,16,0.85) 0%, rgba(14,18,16,0) 100%);
}
.landing-nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--shell-ink); }
.landing-nav .brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.landing-section {
  padding: 0 40px;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Hero ---------- */
.landing-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 90px; padding-bottom: 60px;
}
.landing-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; width: 100%;
}
.landing-hero-copy .eyebrow { margin-bottom: 18px; }
.landing-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--shell-ink);
  margin: 0 0 20px;
}
.landing-hero-copy h1 em {
  font-style: italic; font-family: var(--font-sans-alt); color: var(--gold); font-weight: 500;
}
.landing-hero-copy p.lede {
  font-size: 17px; line-height: 1.65; color: var(--shell-ink-mute); max-width: 480px; margin: 0 0 32px;
}
.landing-hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.landing-hero-scope {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(212,175,55,0.08); border: 1px solid var(--shell-border-strong);
  font-size: 12.5px; color: var(--shell-ink-mute); font-family: var(--font-ui);
}
.landing-hero-scope strong { color: var(--gold); font-weight: 600; }

.landing-hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--shell-border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.landing-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-hero-visual .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 20px; background: linear-gradient(180deg, rgba(14,18,16,0) 0%, rgba(14,18,16,0.75) 100%);
  font-family: var(--font-sans-alt); font-style: italic; font-size: 13.5px; color: var(--ivory);
}

/* ---------- Carousel ---------- */
.landing-carousel-wrap {
  padding: 90px 40px;
  background: var(--shell-surface);
  border-top: 1px solid var(--shell-border);
  border-bottom: 1px solid var(--shell-border);
}
.landing-carousel {
  max-width: 1080px; margin: 0 auto; position: relative;
}
.landing-carousel-head { text-align: center; margin-bottom: 48px; }
.landing-carousel-head h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500;
  color: var(--shell-ink); margin: 12px 0 0; letter-spacing: -0.01em;
}
.carousel-track-outer { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track {
  display: flex;
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);
}
.carousel-slide {
  min-width: 100%; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 0;
  background: var(--card-bg); border: 1px solid var(--card-border);
}
.carousel-slide-img { position: relative; min-height: 380px; overflow: hidden; }
.carousel-slide-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel-slide-copy { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.carousel-slide-copy .step-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.carousel-slide-copy h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--card-ink);
  margin: 0 0 14px; letter-spacing: -0.01em; line-height: 1.2;
}
.carousel-slide-copy p {
  font-size: 15px; line-height: 1.65; color: var(--card-ink-mute); margin: 0;
}
.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px;
}
.carousel-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--shell-border-strong);
  background: transparent; color: var(--shell-ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 160ms ease;
}
.carousel-arrow:hover { background: rgba(212,175,55,0.1); border-color: var(--gold); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--shell-border-strong); border: none; cursor: pointer;
  transition: all 200ms ease; padding: 0;
}
.carousel-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }

/* ---------- Connective node section ---------- */
.landing-connect { padding: 100px 40px; }
.landing-connect-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.landing-connect-head .eyebrow { justify-content: center; display: flex; }
.landing-connect-head h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500;
  color: var(--shell-ink); margin: 14px 0 16px; letter-spacing: -0.01em; line-height: 1.2;
}
.landing-connect-head p {
  font-size: 16px; color: var(--shell-ink-mute); line-height: 1.6;
}
.landing-connect-visual {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--shell-border-strong);
  margin-bottom: 56px; box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.landing-connect-visual img { width: 100%; display: block; }

.node-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.node-card {
  padding: 28px 24px; border-radius: var(--radius); background: var(--shell-surface-2);
  border: 1px solid var(--shell-border); position: relative;
}
.node-card .node-index {
  font-family: var(--font-mono); font-size: 11px; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 14px;
}
.node-card h4 {
  font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--shell-ink); margin: 0 0 10px;
}
.node-card p { font-size: 13.5px; line-height: 1.6; color: var(--shell-ink-mute); margin: 0; }
.node-connector {
  display: none;
}
@media (min-width: 860px) {
  .node-row { position: relative; }
  .node-row::before {
    content: ''; position: absolute; top: 38px; left: 16.5%; right: 16.5%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--shell-border-strong) 20%, var(--shell-border-strong) 80%, transparent);
    z-index: 0;
  }
}

/* ---------- What is marma (education) ---------- */
.landing-explain { padding: 100px 40px; background: var(--shell-surface); border-top: 1px solid var(--shell-border); border-bottom: 1px solid var(--shell-border); }
.landing-explain-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.landing-explain-head .eyebrow { justify-content: center; display: flex; }
.landing-explain-head h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px); font-weight: 500;
  color: var(--shell-ink); margin: 14px 0 16px; letter-spacing: -0.01em; line-height: 1.18;
}
.landing-explain-head p { font-size: 16px; color: var(--shell-ink-mute); line-height: 1.7; }
.landing-explain-head p em { color: var(--gold); font-style: italic; font-family: var(--font-sans-alt); }

.tradition-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; max-width: 1040px; margin: 0 auto; }
.tradition-card {
  padding: 30px 26px; border-radius: var(--radius); background: var(--shell-surface-2);
  border: 1px solid var(--shell-border); text-align: left; position: relative;
}
.tradition-card .tradition-glyph {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.1); color: var(--gold); margin-bottom: 18px;
  font-family: var(--font-sans-alt); font-style: italic; font-size: 20px;
}
.tradition-card h4 { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--shell-ink); margin: 0 0 4px; }
.tradition-card .tradition-origin { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.tradition-card p { font-size: 13.5px; line-height: 1.65; color: var(--shell-ink-mute); margin: 0; }

.explain-convergence {
  max-width: 780px; margin: 44px auto 0; text-align: center; padding: 22px 28px;
  border-radius: var(--radius); background: rgba(212,175,55,0.06); border: 1px dashed var(--shell-border-strong);
}
.explain-convergence p { font-size: 14.5px; line-height: 1.7; color: var(--shell-ink-mute); margin: 0; font-family: var(--font-sans-alt); font-style: italic; }
.explain-convergence strong { color: var(--gold); font-style: normal; font-family: var(--font-ui); font-weight: 600; }

/* ---------- Feature grid ("Inside MarmaAI") ---------- */
.landing-features { padding: 100px 40px; }
.landing-features-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.landing-features-head .eyebrow { justify-content: center; display: flex; }
.landing-features-head h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500;
  color: var(--shell-ink); margin: 14px 0 16px; letter-spacing: -0.01em; line-height: 1.2;
}
.landing-features-head p { font-size: 16px; color: var(--shell-ink-mute); line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.feature-card {
  padding: 26px 24px; border-radius: var(--radius); background: var(--card-bg); color: var(--card-ink);
  border: 1px solid var(--card-border); position: relative; overflow: hidden;
}
.feature-card .feature-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: #1A1D20; margin-bottom: 16px;
}
.feature-card h4 { font-family: var(--font-display); font-size: 16.5px; font-weight: 500; color: var(--card-ink); margin: 0 0 8px; }
.feature-card p { font-size: 13px; line-height: 1.6; color: var(--card-ink-mute); margin: 0; }
.feature-card .feature-tag {
  position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(15,81,50,0.1); color: var(--emerald-deep);
}
.feature-card .feature-tag.soon { background: rgba(184,115,51,0.12); color: var(--copper); }

/* ---------- Meet the points (proof showcase) ---------- */
.landing-points { padding: 90px 40px; background: var(--shell-surface); border-top: 1px solid var(--shell-border); border-bottom: 1px solid var(--shell-border); }
.landing-points-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.landing-points-head .eyebrow { justify-content: center; display: flex; }
.landing-points-head h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 500;
  color: var(--shell-ink); margin: 14px 0 16px; letter-spacing: -0.01em;
}
.landing-points-head p { font-size: 15px; color: var(--shell-ink-mute); line-height: 1.6; }

.points-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto; }
.point-tile { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--shell-border-strong); aspect-ratio: 3/4; }
.point-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.point-tile:hover img { transform: scale(1.06); }
.point-tile .point-tile-label {
  position: absolute; inset: auto 0 0 0; padding: 14px 12px 12px;
  background: linear-gradient(180deg, rgba(14,18,16,0) 0%, rgba(14,18,16,0.88) 100%);
}
.point-tile .point-tile-label .name { font-family: var(--font-display); font-size: 14.5px; font-weight: 500; color: var(--ivory); line-height: 1.1; }
.point-tile .point-tile-label .region { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.landing-points-footnote {
  display: flex; align-items: flex-start; gap: 10px; max-width: 720px; margin: 32px auto 0;
  padding: 14px 18px; border-radius: var(--radius); border: 1px dashed var(--shell-border-strong);
  color: var(--shell-ink-faint); font-size: 13px; line-height: 1.6;
}
.landing-points-footnote svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

/* ---------- FAQ ---------- */
.landing-faq { padding: 100px 40px; }
.landing-faq-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.landing-faq-head .eyebrow { justify-content: center; display: flex; }
.landing-faq-head h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500;
  color: var(--shell-ink); margin: 14px 0 0; letter-spacing: -0.01em;
}
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--shell-border); border-radius: var(--radius); background: var(--shell-surface-2); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500; color: var(--shell-ink);
}
.faq-question .faq-chevron { flex-shrink: 0; color: var(--gold); transition: transform 220ms ease; }
.faq-item.open .faq-question .faq-chevron { transform: rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.faq-answer-inner { padding: 0 22px 20px; font-size: 14px; line-height: 1.7; color: var(--shell-ink-mute); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ---------- Scope honesty band ---------- */
.landing-scope-band {
  padding: 70px 40px; background: var(--card-bg); color: var(--card-ink);
}
.scope-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.scope-band-copy .eyebrow-dark { color: var(--card-ink-mute); }
.scope-band-copy h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 500; margin: 12px 0 16px; letter-spacing: -0.01em; line-height: 1.25;
}
.scope-band-copy p { font-size: 15px; line-height: 1.65; color: var(--card-ink-mute); margin: 0 0 20px; }
.scope-band-list { display: flex; flex-direction: column; gap: 10px; }
.scope-band-list .row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.scope-band-list .row.yes { color: var(--emerald-deep); font-weight: 500; }
.scope-band-list .row.no { color: var(--card-ink-faint); }
.scope-band-visual img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--card-border-strong); }

/* ---------- Final CTA ---------- */
.landing-final-cta {
  padding: 110px 40px; text-align: center; position: relative;
}
.landing-final-cta h2 {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 500;
  color: var(--shell-ink); margin: 0 0 20px; letter-spacing: -0.01em; line-height: 1.15;
}
.landing-final-cta p { font-size: 16px; color: var(--shell-ink-mute); max-width: 480px; margin: 0 auto 36px; }

.landing-footer {
  padding: 32px 40px; border-top: 1px solid var(--shell-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--shell-ink-faint); font-family: var(--font-ui);
}

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 640ms ease, transform 640ms cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .landing-hero-grid { grid-template-columns: 1fr; }
  .landing-hero-visual { order: -1; height: 320px; }
  .carousel-slide { grid-template-columns: 1fr; }
  .carousel-slide-img { min-height: 220px; }
  .node-row { grid-template-columns: 1fr; }
  .scope-band-grid { grid-template-columns: 1fr; }
  .tradition-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .points-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .points-strip { grid-template-columns: repeat(2, 1fr); }
  .landing-points-footnote { margin-left: 16px; margin-right: 16px; }
}
