/* ════════════════════════════════════════════════════════════════
   Silah landing — neutral, modern, product-first (Notion-style).
   Light by default; dark via [data-theme="dark"]. Tokens only.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f7f5;
  --bg-card:   #ffffff;
  --text:      #1d1d1b;
  --text-soft: #56564f;
  --text-mut:  #8a8a82;
  --border:    #ececea;
  --border-2:  #e2e2df;
  --accent:    #2d6a4f;
  --on-accent: #ffffff;
  --shadow-sm: 0 1px 2px rgba(30,28,20,.05), 0 1px 3px rgba(30,28,20,.05);
  --shadow-md: 0 8px 24px -8px rgba(30,28,20,.12), 0 2px 6px rgba(30,28,20,.05);
  --shadow-lg: 0 30px 60px -20px rgba(30,28,20,.22), 0 8px 24px -12px rgba(30,28,20,.12);

  /* feature tints: soft bg + saturated foreground */
  --t-blue-bg:#eef4ff; --t-blue-fg:#3b6fe0;
  --t-green-bg:#ecfaf0; --t-green-fg:#2f9e62;
  --t-amber-bg:#fff5e6; --t-amber-fg:#cf8413;
  --t-purple-bg:#f4eefe; --t-purple-fg:#7c4ddb;
  --t-teal-bg:#e7f8f6; --t-teal-fg:#15978f;
  --t-pink-bg:#fdeef4; --t-pink-fg:#d6477f;
  --t-slate-bg:#f0f2f4; --t-slate-fg:#566270;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* Matched to silah-app/src/tokens.css's own :root[data-theme="dark"]
   values (--bg/--sub/--card/--ink/--line/--a-gold/--on-accent) — this
   page had its own separate neutral-gray-plus-green dark theme before,
   which is why it read as a different, colder product than the app it's
   the front door for. --accent is the app's actual gold (--a-gold,
   #C9A227), not a green invented for this page alone. */
[data-theme="dark"] {
  --bg:        #14120e;
  --bg-soft:   #17150f;
  --bg-card:   #201d17;
  --text:      #f3eee3;
  --text-soft: #c5bda9;
  --text-mut:  #9c9480;
  --border:    #322d23;
  --border-2:  #2a2620;
  --accent:    #c9a227;
  --on-accent: #10160f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 10px 28px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 36px 70px -24px rgba(0,0,0,.7), 0 10px 30px -16px rgba(0,0,0,.5);

  --t-blue-bg:#16203a; --t-blue-fg:#7aa2f0;
  --t-green-bg:#13261b; --t-green-fg:#6fce99;
  --t-amber-bg:#2a2110; --t-amber-fg:#e6ad55;
  --t-purple-bg:#211a36; --t-purple-fg:#b393ee;
  --t-teal-bg:#0f2725; --t-teal-fg:#5dc9bf;
  --t-pink-bg:#2c1520; --t-pink-fg:#ec88af;
  --t-slate-bg:#1a1d22; --t-slate-fg:#9aa6b3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 11px 18px; border-radius: 9999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s;
}
.btn:active { transform: translateY(1px); }
/* color: var(--on-accent), not a hardcoded #fff — white-on-gold in dark
   mode is exactly the low-contrast mistake .btn--ghost already made
   against this page's own dark-mode accent once it stopped being green.
   --on-accent is the same token the app itself defines for the same
   reason (a strong gold surface needs dark text, not light). */
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--text-mut); }
.btn--invert { background: var(--bg); color: var(--text); }
.btn--invert:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--lg { font-size: 16px; padding: 14px 24px; }
/* .cta__card inverts its own tokens (background: var(--text), color:
   var(--bg)) so .btn--invert reads correctly there without any help —
   but .btn--ghost hardcodes color: var(--text) and border-color:
   var(--border-2), both of which resolve to the SAME colour as that
   card's own background on this card specifically, not a lighter or
   darker page background elsewhere. The button wasn't just low-contrast,
   its text colour equalled what was behind it. */
.cta__card .btn--ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.cta__card .btn--ghost:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); border-color: var(--bg); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav--scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.nav__logo { width: 26px; height: 26px; color: var(--accent); }
.nav__name { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 26px; margin-left: 18px; }
.nav__links a { color: var(--text-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__theme {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text-soft); cursor: pointer; border-radius: 10px;
  transition: background .15s, color .15s;
}
.nav__theme:hover { background: var(--bg-soft); color: var(--text); }
.nav__theme svg { width: 19px; height: 19px; }
.theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: block; }

/* ── Layout helpers ── */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; padding: 0 24px; }
.section__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; margin: 0 0 16px;
}
.section__lede { font-size: clamp(16px, 2vw, 19px); color: var(--text-soft); margin: 0; line-height: 1.6; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 9999px; margin-bottom: 26px;
}
.grad {
  background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7c4ddb));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Hero ── */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 0;
  text-align: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; }
.hero__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(40px, 7vw, 74px); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.02; margin: 0 0 20px;
}
.hero-swap {
  display: inline-block;
  color: var(--accent);
  transition: opacity .2s ease, transform .2s ease;
  will-change: opacity, transform;
}
.hero-swap.is-out { opacity: 0; transform: translateY(-0.28em); }
.hero__ayah {
  font-family: 'Amiri', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.8;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 8px;
  padding: 0;
  border: none;
  text-align: center;
  quotes: none;
}
.hero__ayah-ref {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--text-mut);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--text-soft);
  max-width: 580px; margin: 0 auto 30px; line-height: 1.55;
}
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__install { margin-top: 14px; font-size: 14px; }

/* ── Browser frame mockups ── */
.frame {
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--bg-card); box-shadow: var(--shadow-lg); overflow: hidden;
  text-align: left;
}
.hero__shot { max-width: 940px; margin: 54px auto 0; }
.frame__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.frame__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.frame__bar em {
  margin-left: 12px; font-style: normal; font-size: 12.5px; color: var(--text-mut);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame__body { padding: 22px; }
.frame--tall .frame__body { padding: 0; }

/* hero verse mockup */
.shot-verse { display: grid; grid-template-columns: 22px 1fr 168px; gap: 20px; align-items: start; }
.shot-rail { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.shot-rail .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.shot-rail .dot.is-on { background: var(--accent); }
.shot-ref { font-size: 12.5px; font-weight: 600; color: var(--text-mut); letter-spacing: .02em; }
.shot-ar { font-family: 'Amiri', serif; direction: rtl; text-align: right; font-size: 27px; line-height: 1.9; margin: 6px 0 10px; color: var(--text); }
.shot-tr { font-size: 15px; color: var(--text-soft); margin: 0 0 14px; }
.shot-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.shot-note {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; color: var(--text-soft); line-height: 1.6;
}
.shot-note__by { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mut); margin-bottom: 4px; }
.hl { color: var(--t-green-fg); font-weight: 600; }
.shot-side { border-left: 1px solid var(--border); padding-left: 18px; }
.shot-side__h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mut); margin-bottom: 12px; }
.shot-link { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); padding: 7px 0; border-bottom: 1px solid var(--border); }
.shot-link:last-child { border-bottom: none; }
.ld { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.ld--g { background: var(--t-green-fg); } .ld--b { background: var(--t-blue-fg); } .ld--p { background: var(--t-purple-fg); }

.chip {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 9999px; border: 1px solid transparent;
}
.chip--green { background: var(--t-green-bg); color: var(--t-green-fg); }
.chip--blue  { background: var(--t-blue-bg);  color: var(--t-blue-fg); }
.chip--purple{ background: var(--t-purple-bg);color: var(--t-purple-fg); }
.chip--amber { background: var(--t-amber-bg); color: var(--t-amber-fg); }

/* ── Stats ── */
.stats { max-width: var(--maxw); margin: 80px auto 0; padding: 0 24px; }
.stats__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft); overflow: hidden;
}
.stat { text-align: center; padding: 26px 12px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat__n { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.stat__l { font-size: 13px; color: var(--text-mut); text-transform: uppercase; letter-spacing: .06em; }

/* ── Sections rhythm ── */
.features, .feature, .tools, .cta { padding: 96px 0; }
.features { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ── Bento grid ── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card--wide { grid-column: span 2; display: flex; flex-direction: column; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px; font-family: 'Amiri', serif;
}
.card h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 7px; }
.card p { font-size: 14.5px; color: var(--text-soft); margin: 0; line-height: 1.55; }
.card code, code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.86em;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px;
}
.tint-blue  .card__icon { background: var(--t-blue-bg);  color: var(--t-blue-fg); }
.tint-green .card__icon { background: var(--t-green-bg); color: var(--t-green-fg); }
.tint-amber .card__icon { background: var(--t-amber-bg); color: var(--t-amber-fg); font-size: 15px; }
.tint-purple .card__icon{ background: var(--t-purple-bg);color: var(--t-purple-fg); }
.tint-teal  .card__icon { background: var(--t-teal-bg);  color: var(--t-teal-fg); }
.tint-pink  .card__icon { background: var(--t-pink-bg);  color: var(--t-pink-fg); }
.tint-slate .card__icon { background: var(--t-slate-bg); color: var(--t-slate-fg); }

/* ── Big feature sections ── */
.feature--alt { background: var(--bg-soft); }
.feature__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.feature__inner--rev .feature__copy { order: 2; }
.feature__copy .section__title { text-align: left; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: 15.5px; color: var(--text-soft); }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
  width: 18px; height: 18px; font-size: 13px;
}
.tabs { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9999px; }
[data-theme="dark"] .feature--alt .tabs { background: var(--bg); }
.tab {
  border: none; background: transparent; color: var(--text-soft); cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 9999px;
  transition: background .15s, color .15s;
}
.tab.is-active { background: var(--accent); color: var(--on-accent); }

/* map mockup */
.map-stage { position: relative; aspect-ratio: 1/1; background:
  radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 75%); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--text-mut); opacity: 0; transition: opacity .4s ease; }
.map-svg.is-active { opacity: 1; }
.frame--tall { max-width: 460px; margin-left: auto; }

/* note mockup */
.note-shot__toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.note-shot__toolbar span { font-size: 12px; font-weight: 600; color: var(--text-mut); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; font-family: ui-monospace, monospace; }
.note-shot__line { font-size: 15.5px; line-height: 1.9; margin: 0 0 6px; color: var(--text); }
.note-shot__meta { margin-top: 16px; font-size: 12.5px; color: var(--text-mut); border-top: 1px solid var(--border); padding-top: 12px; }

/* sources mockup */
.src-shot { display: flex; flex-direction: column; gap: 10px; }
.src-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-soft); padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.src-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; }
.src-tag--tr { background: var(--t-blue-bg); color: var(--t-blue-fg); }
.src-tag--tf { background: var(--t-purple-bg); color: var(--t-purple-fg); }
.src-tag--as { background: var(--t-amber-bg); color: var(--t-amber-fg); }
.src-tag--rt { background: var(--t-teal-bg); color: var(--t-teal-fg); }
.src-tag--sc { background: var(--t-pink-bg); color: var(--t-pink-fg); }

/* ── Tools ── */
.tools { max-width: var(--maxw); margin: 0 auto; }
.tools__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 24px; }
.tool { text-align: center; padding: 28px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); transition: transform .15s, box-shadow .15s; }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tool__ic { font-size: 26px; margin-bottom: 12px; font-family: 'Amiri', serif; color: var(--accent); }
.tool h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 16px; font-weight: 700; margin: 0 0 5px; }
.tool p { font-size: 13.5px; color: var(--text-soft); margin: 0; }

/* ── Final CTA ── */
.cta { padding: 40px 24px 110px; }
.cta__card {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  background: var(--text); color: var(--bg); border-radius: 28px; padding: 72px 24px;
}
.cta__title { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(30px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.08; }
.cta__sub { font-size: 17px; color: color-mix(in srgb, var(--bg) 75%, var(--text)); margin: 0 0 28px; }
.cta__btns { display: flex; justify-content: center; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--border); background: var(--bg-soft); }
.foot__inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px; text-align: center; }
.foot__tag { color: var(--text-soft); font-size: 15px; margin: 16px 0 22px; }
.foot__links { display: flex; gap: 24px; justify-content: center; margin-bottom: 22px; }
.foot__links a, .linklike { color: var(--text-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; background: none; border: none; cursor: pointer; font-family: inherit; transition: color .15s; }
.foot__links a:hover, .linklike:hover { color: var(--text); }
.foot__fine { font-size: 13px; color: var(--text-mut); margin: 0; }
.foot__fine em { font-style: italic; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .feature__inner { grid-template-columns: 1fr; gap: 36px; }
  .feature__inner--rev .feature__copy { order: 0; }
  .feature__copy .section__title, .feature__copy .eyebrow { text-align: left; }
  .frame--tall { margin: 0 auto; max-width: 420px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .tools__row { grid-template-columns: repeat(2, 1fr); }
  .shot-side { display: none; }
  .shot-verse { grid-template-columns: 22px 1fr; }
}
@media (max-width: 560px) {
  .features, .feature, .tools { padding: 64px 0; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .tools__row { grid-template-columns: 1fr 1fr; }
  .nav__cta { display: none; }
  .hero { padding-top: 40px; }
  .cta__card { padding: 52px 20px; border-radius: 22px; }
}
