/* ───────────────────────────────────────────────────────────────────
   Sermon Cuts — landing styles
   Palette (editorial cream theme):
     navy   #192a56  · primary brand, headlines, body emphasis
     gold   #fbc531  · accent, CTAs, key highlights
     cream  #f3eddc  · page surface (background)
     ink    #2f3640  · body text, secondary headings
     paper  #ffffff  · raised surfaces (cards, code blocks)
     temperament accents: terracota #b1462f, gold queimado #d29622,
       indigo profundo (= navy), sage #6b7a4a
   ─────────────────────────────────────────────────────────────────── */

:root {
  --navy: #192a56;
  --navy-deep: #0f1c3d;
  --gold: #fbc531;
  --gold-burnt: #d29622;
  --terracota: #b1462f;
  --sage: #6b7a4a;
  --cream: #f3eddc;
  --cream-warm: #ebe3cf;
  --cream-soft: #f8f3e4;
  --paper: #ffffff;
  --ink: #2f3640;
  --ink-soft: #4a5260;
  --muted: #8a8478;
  --hair: rgba(25, 42, 86, 0.10);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(25, 42, 86, 0.3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  opacity: 0.78;
  text-decoration-color: var(--gold);
}

code {
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 0.92em;
  background: rgba(25, 42, 86, 0.06);
  color: var(--navy-deep);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

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

/* ─── header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  background: rgba(243, 237, 220, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--navy);
  opacity: 1;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-switch a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-switch a.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px rgba(25, 42, 86, 0.18);
}

.lang-switch img {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 999px;
}

@media (max-width: 800px) {
  .site-header {
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    gap: 8px;
    font-size: 0.85rem;
  }
}

/* ─── hero ─────────────────────────────────────────────────── */
.hero {
  padding: 90px 24px 64px;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(25, 42, 86, 0.10), transparent 55%),
    radial-gradient(ellipse at 12% 90%, rgba(251, 197, 49, 0.18), transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--hair);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 18px 0 22px;
  color: var(--navy);
}

.gold {
  color: var(--gold-burnt);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracota);
  margin: 0;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 10px 28px -8px rgba(25, 42, 86, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 1;
  background: var(--navy-deep);
  box-shadow: 0 14px 36px -10px rgba(25, 42, 86, 0.55);
}

.btn-ghost {
  color: var(--navy);
  border: 1.5px solid rgba(25, 42, 86, 0.28);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(25, 42, 86, 0.04);
  opacity: 1;
}

.micro {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 46ch;
}

/* ─── demo phone frame ─────────────────────────────────────── */
.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  background: var(--navy-deep);
  border-radius: 32px;
  border: 6px solid var(--ink);
  padding: 4px;
  box-shadow:
    0 30px 70px -20px rgba(25, 42, 86, 0.35),
    0 0 0 1px rgba(25, 42, 86, 0.08);
  overflow: hidden;
  position: relative;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.demo-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 30ch;
  margin: 0;
}

@media (max-width: 820px) {
  .hero {
    padding: 56px 20px 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-demo {
    order: -1;
  }
}

/* ─── sections (generic) ───────────────────────────────────── */
section {
  padding: 88px 0;
  border-bottom: 1px solid var(--hair);
}

section h2 {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 14px 0 18px;
  color: var(--navy);
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 36px;
}

/* ─── editors compatibility section ───────────────────────── */
.editors-section {
  background: var(--cream-soft);
}

.editors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.editor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 14px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.editor-card:hover {
  border-color: rgba(25, 42, 86, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -16px rgba(25, 42, 86, 0.35);
  opacity: 1;
}

.editor-card svg,
.editor-card img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.editor-card span {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--navy);
}

@media (max-width: 900px) {
  .editors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  .editors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── install section ──────────────────────────────────────── */
.install {
  background: var(--cream);
}

.code-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(25, 42, 86, 0.18);
  border-radius: 18px;
  padding: 28px 28px 22px;
  margin-top: 18px;
  box-shadow:
    0 18px 50px -22px rgba(25, 42, 86, 0.25),
    0 0 0 1px rgba(25, 42, 86, 0.04);
}

.code-card pre {
  margin: 0;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.code-card pre a {
  color: var(--terracota);
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid var(--navy);
  padding: 7px 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.copy-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.after-prompt {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-soft);
}

.after-prompt em {
  color: var(--terracota);
  font-style: normal;
  font-weight: 700;
}

/* Install paths — stacked cards (curl / prompt / docker). */
.install-paths {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}

.install-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 22px 24px 26px;
  box-shadow: 0 4px 14px -8px rgba(25, 42, 86, 0.12);
}

.install-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.install-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.install-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.install-card-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.install-card .code-card {
  margin-top: 0;
  padding: 18px 22px;
  background: var(--cream-soft);
  box-shadow: none;
  border: 1px solid var(--hair);
}

.install-card .code-card pre {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Install card tabs (e.g. macOS/Linux vs Windows). */
.install-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: rgba(25, 42, 86, 0.06);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.install-tab {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.install-tab:hover {
  color: var(--navy);
}

.install-tab.is-active {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(25, 42, 86, 0.12);
}

.install-tab-panel {
  display: none;
}

.install-tab-panel.is-active {
  display: block;
}

.commands-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.commands-note code {
  font-size: 0.78rem;
  background: rgba(25, 42, 86, 0.06);
}

.commands-title {
  margin: 48px 0 18px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.commands-grid > div {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}

.commands-grid code {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  color: var(--navy);
  padding: 0;
}

.commands-grid p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .commands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── features grid ────────────────────────────────────────── */
.features {
  background: var(--cream-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(25, 42, 86, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -22px rgba(25, 42, 86, 0.3);
}

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(251, 197, 49, 0.22);
  color: var(--gold-burnt);
  font-weight: 900;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card h3 {
  font-weight: 800;
  font-size: 1.08rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── how-it-works steps ───────────────────────────────────── */
.how {
  background: var(--cream);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 14px;
  align-items: start;
}

.step-n {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--gold-burnt);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ─── sponsors ─────────────────────────────────────────────── */
.sponsors {
  text-align: center;
  background: var(--cream-soft);
}

.sponsors .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 0 auto 30px;
}

.sponsor-grid--solo {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid rgba(25, 42, 86, 0.18);
  border-radius: 16px;
  padding: 32px 24px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
  border-color: rgba(25, 42, 86, 0.42);
  box-shadow: 0 14px 36px -22px rgba(25, 42, 86, 0.3);
  transform: translateY(-2px);
  opacity: 1;
}

.sponsor-card.sponsor-placeholder {
  border-style: dashed;
}

.sponsor-logo-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  border-radius: 14px;
  background: var(--paper);
  padding: 18px 22px;
  box-shadow: inset 0 0 0 1px var(--hair);
}

.sponsor-card .sponsor-logo-img + .sponsor-name {
  display: none;
}

.sponsor-name {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.sponsor-logo {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 8px;
}

.sponsor-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  text-align: center;
  max-width: 36ch;
  line-height: 1.5;
}

.sponsor-card.sponsor-placeholder p {
  color: var(--muted);
}

.sponsor-cta {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── about ────────────────────────────────────────────────── */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.about p {
  color: var(--ink);
  font-size: 1.02rem;
  max-width: 56ch;
}

.about-links {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}

.about-links li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}

.about-links span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracota);
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 28px 0;
  background: var(--cream-warm);
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--hair);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lang-foot {
  display: flex;
  gap: 14px;
  align-items: center;
}

.lang-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
}

.lang-foot a img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
}

.lang-foot a.active {
  color: var(--navy);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}
