/* Lectures and Narrations — ln-reader site
   Palette pulled from the app theme: purple_500 #6200EE, purple_700 #3700B3,
   teal_200 #03DAC5, near-black window background. */

:root {
  --bg: #0c0a12;
  --bg-soft: #15121d;
  --surface: #1b1726;
  --surface-2: #221d30;
  --border: #2e2740;
  --text: #ece9f4;
  --text-dim: #a9a2bd;
  --text-faint: #786f93;
  --purple: #8c5cff;
  --purple-deep: #6200ee;
  --teal: #03dac5;
  --radius: 16px;
  --maxw: 1040px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(12, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(140, 92, 255, 0.30), transparent 70%),
    radial-gradient(700px 360px at 85% 0, rgba(3, 218, 197, 0.14), transparent 65%);
}
.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #fff 20%, var(--purple) 70%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 14px;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #120b22;
  background: linear-gradient(95deg, var(--purple), var(--teal));
  box-shadow: 0 8px 26px rgba(140, 92, 255, 0.35);
}
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

.badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.badge {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-dim); margin: 0; max-width: 620px; margin: 0 auto; }

.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Ecosystem split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split .card h3 { display: flex; align-items: center; gap: 10px; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 7px;
}
.tag.create { background: rgba(140, 92, 255, 0.18); color: var(--purple); }
.tag.consume { background: rgba(3, 218, 197, 0.16); color: var(--teal); }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card:hover { border-color: #3c3357; }
.card .ico { font-size: 1.6rem; line-height: 1; margin-bottom: 14px; display: block; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { margin: 0 0 12px; color: var(--text-dim); font-size: 0.95rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }
.card ul li::marker { color: var(--purple); }

/* Sync table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { color: var(--teal); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:hover { background: var(--surface); }
td:first-child, td:nth-child(2) { text-align: center; font-weight: 700; width: 70px; }

/* Limits list */
.limits { columns: 2; column-gap: 36px; }
.limits li { margin-bottom: 12px; color: var(--text-dim); break-inside: avoid; }
.limits li strong { color: var(--text); }

/* Build / code */
.code {
  background: #0a0810;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: #c6e9e4;
  overflow-x: auto;
}
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--text-faint);
  font-size: 0.88rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer a { color: var(--text-dim); }
.foot-links { display: flex; gap: 20px; }

/* ---------- Doc page (privacy) ---------- */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--text-faint); font-size: 0.9rem; margin: 0 0 36px; }
.doc h2 { margin: 40px 0 12px; font-size: 1.35rem; padding-top: 6px; }
.doc p, .doc li { color: var(--text-dim); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--purple); }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
}
.callout p { margin: 0; color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .split, .build-grid { grid-template-columns: 1fr; }
  .limits { columns: 1; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
}
