/* landing.css — public marketing page */

html { scroll-behavior: smooth; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem;
  background: rgba(14,14,14,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.lp-logo { text-decoration: none; display: flex; align-items: center; }
.lp-nav-links { display: flex; align-items: center; gap: 1.25rem; }
.lp-nav-links a {
  font-size: .8rem; color: var(--muted2); text-decoration: none;
  letter-spacing: .04em; transition: color .15s;
}
.lp-nav-links a:hover { color: var(--text); }

/* ── Mobile nav toggle ────────────────────────────────────────────────────── */
.lp-nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: .25rem; width: 28px; height: 28px;
}
.lp-nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--muted2); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.lp-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav-toggle.open span:nth-child(2) { opacity: 0; }
.lp-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lp-wrap { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.lp-hero {
  padding-top: 9rem; padding-bottom: 6rem; text-align: center;
}
.lp-hero .lp-wrap { max-width: 1160px; }
.lp-eyebrow {
  display: inline-block; font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
  border: 1px solid rgba(232,162,70,.3); border-radius: 2px;
  padding: .25rem .65rem;
}
.lp-h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800; line-height: 1.15; color: var(--text);
  margin-bottom: 1.25rem; letter-spacing: -.01em;
}
.lp-h1 span { color: var(--accent); }
.lp-sub {
  font-size: 1rem; color: var(--muted2); max-width: 600px;
  margin: 0 auto 2.25rem; line-height: 1.7;
}
.lp-cta-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.lp-btn-primary {
  font-family: 'Inconsolata', monospace; font-size: .88rem; font-weight: 600;
  padding: .7rem 1.5rem; border-radius: 2px; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); color: #0e0e0e;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.lp-btn-primary:hover { background: #d4923c; border-color: #d4923c; }
.lp-btn-sm {
  font-size: .78rem !important; padding: .5rem 1rem !important;
}
.lp-btn-hero {
  display: inline-block; font-family: 'Inconsolata', monospace;
  font-size: 1rem; font-weight: 600; letter-spacing: .02em;
  padding: .85rem 2.25rem; border-radius: 2px; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); color: #0e0e0e;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.lp-btn-hero:hover { background: #d4923c; border-color: #d4923c; }

.lp-btn-ghost {
  font-family: 'Inconsolata', monospace; font-size: .88rem; font-weight: 500;
  padding: .7rem 1.5rem; border-radius: 2px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-hi); color: var(--text);
  text-decoration: none; transition: all .15s;
}
.lp-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section titles ───────────────────────────────────────────────────────── */
.lp-label {
  font-size: .65rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--muted); margin-bottom: .6rem;
}
.lp-h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; color: var(--text); margin-bottom: .85rem; line-height: 1.25;
}
.lp-intro { font-size: .92rem; color: var(--muted2); line-height: 1.75; margin-bottom: 2rem; }

/* ── Hero CTA layout ──────────────────────────────────────────────────────── */
.lp-hero .lp-btn-hero { margin-bottom: .65rem; }
.lp-cta-or {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.1rem auto; max-width: 480px; color: var(--muted);
}
.lp-cta-or::before, .lp-cta-or::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.lp-cta-or span { font-size: .72rem; white-space: nowrap; letter-spacing: .05em; }
.lp-email-secondary .lp-email-input {
  background: transparent; border-color: var(--border);
}
.lp-email-secondary .lp-email-input:focus { border-color: var(--border-hi); }

/* ── Product demo clips ───────────────────────────────────────────────────── */
.lp-demo-wrap { padding-top: 3rem; }
.lp-demo-tabs {
  display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; justify-content: center;
}
.lp-demo-tab {
  font-family: 'Syne', sans-serif; font-size: .8rem; font-weight: 600;
  padding: .45rem 1rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border-hi); background: var(--surface);
  color: var(--muted); transition: color .15s, background .15s, border-color .15s;
}
.lp-demo-tab:hover { color: var(--text); border-color: var(--accent); }
.lp-demo-tab.active {
  background: rgba(232,162,70,.12); border-color: rgba(232,162,70,.4);
  color: var(--accent);
}
.lp-demo-caption {
  font-size: .83rem; color: var(--muted); margin: 0 0 1rem;
  min-height: 1.4em; line-height: 1.5;
}
.lp-demo-player {
  border: 1px solid var(--border-hi); border-radius: 8px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.45); background: #000;
}
.lp-demo-player video {
  display: block; width: 100%; max-height: 520px; object-fit: contain;
}

/* ── Pilot steps ──────────────────────────────────────────────────────────── */
.lp-pilot { display: flex; flex-direction: column; gap: 0; }
.lp-pilot-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.35rem 0; border-bottom: 1px solid var(--border);
  position: relative;
}
.lp-pilot-step:last-child { border-bottom: none; }
.lp-pilot-num {
  font-family: 'Syne', sans-serif; font-size: .72rem; font-weight: 700;
  color: var(--accent); flex-shrink: 0; min-width: 1.75rem;
  padding-top: .15rem; letter-spacing: .05em;
}
.lp-pilot-body { flex: 1; }
.lp-pilot-title {
  font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 600;
  color: var(--text); margin-bottom: .35rem; line-height: 1.4;
}
.lp-pilot-sub { font-size: .82rem; color: var(--muted2); line-height: 1.7; }

/* ── Founder section ──────────────────────────────────────────────────────── */
.lp-founder {
  border: 1px solid var(--border-hi); border-radius: 3px;
  padding: 2rem 2.25rem; background: var(--surface);
  border-left: 3px solid var(--accent);
}
.lp-founder-text {
  font-size: .9rem; color: var(--muted2); line-height: 1.8;
  margin: 0 0 1rem;
}
.lp-founder-text:last-of-type { margin-bottom: 1.25rem; }
.lp-founder-sig {
  font-family: 'Syne', sans-serif; font-size: .82rem;
  font-weight: 600; color: var(--text);
}
.lp-founder-sig-sub {
  display: block; margin-top: .35rem;
  font-weight: 400; font-size: .78rem; color: var(--muted2);
}
.lp-founder-sig-sub a {
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.lp-founder-sig-sub a:hover { text-decoration: underline; }

/* ── Problem list ─────────────────────────────────────────────────────────── */
.lp-problem-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.lp-problem-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: var(--muted2); line-height: 1.6;
}
.lp-problem-list li::before {
  content: '//'; color: var(--accent); font-weight: 700;
  flex-shrink: 0; margin-top: .05rem; font-size: .8rem; letter-spacing: -.05em;
}
.lp-callout {
  border-left: 2px solid var(--accent); padding: .85rem 1.1rem;
  background: var(--accent-dim); border-radius: 0 2px 2px 0;
  font-size: .85rem; color: var(--text); line-height: 1.65;
}

/* ── Solution steps ───────────────────────────────────────────────────────── */
.lp-steps { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 2rem; }
.lp-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .85rem 1rem; border: 1px solid var(--border);
  border-radius: 3px; background: var(--surface);
  transition: border-color .15s;
}
.lp-step:hover { border-color: var(--border-hi); }
.lp-step-num {
  font-family: 'Syne', sans-serif; font-size: .75rem; font-weight: 700;
  color: var(--accent); flex-shrink: 0; min-width: 1.5rem; padding-top: .05rem;
}
.lp-step-text { font-size: .88rem; color: var(--text); line-height: 1.6; }

/* ── Example queries ──────────────────────────────────────────────────────── */
.lp-queries { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.lp-query {
  font-family: 'Inconsolata', monospace; font-size: .88rem;
  padding: .75rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 3px; color: var(--text);
  position: relative; padding-left: 2.25rem;
}
.lp-query::before {
  content: '>'; position: absolute; left: .9rem; color: var(--accent); font-weight: 700;
}
.lp-query-result {
  font-size: .8rem; color: var(--muted2); padding: .5rem 1rem .6rem 2.25rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 3px 3px; margin-top: -4px; line-height: 1.5;
}

/* ── Benefit cards ────────────────────────────────────────────────────────── */
.lp-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 480px) {
  .lp-cards { grid-template-columns: 1fr; }
}
.lp-card {
  padding: 1.25rem; border: 1px solid var(--border);
  border-radius: 3px; background: var(--surface);
  transition: border-color .15s, background .15s;
  text-align: center;
}
.lp-card:hover { border-color: var(--border-hi); background: var(--surface2); }
.lp-card-icon { font-size: 1.3rem; margin-bottom: .7rem; }
.lp-card-title {
  font-family: 'Syne', sans-serif; font-size: .88rem; font-weight: 700;
  color: var(--text); margin-bottom: .4rem;
}
.lp-card-body { font-size: .82rem; color: var(--muted2); line-height: 1.65; }


/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.lp-faqs { display: flex; flex-direction: column; gap: 1px; }
.lp-faq {
  border: 1px solid var(--border); border-radius: 3px;
  background: var(--surface); overflow: hidden; margin-bottom: .5rem;
}
.lp-faq-q {
  padding: .9rem 1rem; font-family: 'Syne', sans-serif;
  font-size: .88rem; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; user-select: none;
  transition: background .15s;
}
.lp-faq-q:hover { background: var(--surface2); }
.lp-faq-q::after { content: '+'; color: var(--accent); font-size: 1.1rem; font-weight: 400; }
.lp-faq.open .lp-faq-q::after { content: '−'; }
.lp-faq-a {
  max-height: 0; overflow: hidden; padding: 0 1rem;
  font-size: .85rem; color: var(--muted2); line-height: 1.7;
  transition: max-height .28s ease, padding .28s ease;
}
.lp-faq.open .lp-faq-a { padding: 0 1rem .9rem; }

/* ── CTA / bottom ─────────────────────────────────────────────────────────── */
.lp-cta-section { text-align: center; padding: 5rem 0; }
.lp-cta-section .lp-h2 { margin-bottom: .5rem; }
.lp-cta-section .lp-intro { max-width: 520px; margin: 0 auto 2rem; }
.lp-cta-section .lp-btn-hero { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.lp-footer {
  padding: 1.5rem 0; text-align: center;
  font-size: .72rem; color: var(--muted); letter-spacing: .04em;
  border-top: 1px solid var(--border);
}

/* ── Email form ───────────────────────────────────────────────────────────── */
.lp-email-form {
  display: flex; gap: .5rem; max-width: 480px;
  margin: 0 auto; flex-wrap: wrap;
}
.lp-hero .lp-email-form { margin: 0 auto 0.65rem; }
.lp-cta-section .lp-email-form { margin: 0 auto; }
.lp-email-input {
  flex: 1; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: 2px; padding: .7rem .9rem;
  font-family: 'Inconsolata', monospace; font-size: .88rem; color: var(--text);
  outline: none; transition: border-color .15s;
}
.lp-email-input:focus { border-color: var(--accent); }
.lp-email-input::placeholder { color: var(--muted); }
.lp-form-note {
  font-size: .72rem; color: var(--muted); margin-top: .5rem; text-align: center;
}
.lp-form-msg {
  font-size: .82rem; margin-top: .65rem; text-align: center; min-height: 1.2em;
}
.lp-form-msg--ok  { color: var(--green); }
.lp-form-msg--err { color: var(--danger); }

/* ── Problem / Solution split ─────────────────────────────────────────────── */
.lp-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.lp-split-col {}

/* ── Integrations strip ──────────────────────────────────────────────────── */
.lp-integrations {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.lp-int-label {
  display: block;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--muted); margin-bottom: 1.25rem;
}
.lp-int-logos {
  display: flex; gap: 2.25rem; justify-content: center;
  align-items: center; flex-wrap: wrap;
}
.lp-int-logo-item {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  opacity: .65; transition: opacity .2s;
}
.lp-int-logo-item:hover { opacity: 1; }
.lp-int-logo-item svg { display: block; }
.lp-int-github { color: var(--text); }
.lp-int-logo-name {
  font-family: 'Syne', sans-serif; font-size: .66rem;
  font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted2);
}
.lp-int-more-tag {
  font-family: 'Inconsolata', monospace; font-size: .75rem;
  color: var(--muted); border: 1px dashed var(--border-hi);
  border-radius: 2px; padding: .3rem .75rem; align-self: center;
}

.lp-int-trust {
  font-size: .72rem; color: var(--muted); text-align: center;
  margin: .75rem auto 0; letter-spacing: .02em;
}

/* ── Alternating section backgrounds ────────────────────────────────────── */
.lp-section-alt { background: var(--surface); }

/* ── Mock typewriter cursor ──────────────────────────────────────────────── */
.mock-cursor {
  color: var(--accent); font-size: .9rem;
  animation: mock-blink 1s step-end infinite;
}
@keyframes mock-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .lp-nav { padding: .75rem 1rem; align-items: center; flex-wrap: wrap; }
  .lp-nav-toggle { display: flex; }
  .lp-nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    gap: 0; width: 100%; order: 3;
    border-top: 1px solid var(--border); padding: .5rem 0;
  }
  .lp-nav-links.mobile-open { display: flex; }
  .lp-nav-links a {
    width: 100%; padding: .65rem 0;
    border-bottom: 1px solid var(--border); font-size: .88rem;
  }
  .lp-nav-links a:last-child { border-bottom: none; }
  .lp-nav-links .lp-btn-ghost {
    background: none; border: none; padding: .65rem 0;
    text-align: left; color: var(--accent);
  }
  .lp-wrap { padding: 0 1rem; }
  section { padding: 3.5rem 0; }
  .lp-hero { padding-top: 7rem; padding-bottom: 3rem; }
  .lp-demo-wrap { padding-top: 2rem; }
  .lp-demo-tabs { gap: .35rem; }
  .lp-demo-tab { font-size: .75rem; padding: .4rem .8rem; }
  .lp-split { grid-template-columns: 1fr; gap: 2rem; }
  .lp-email-form { flex-direction: column; }
  .lp-email-input { min-width: 0; }
  .lp-pilot-step { gap: 1rem; }
  .lp-founder { padding: 1.5rem; }
}

/* ── Light theme overrides ────────────────────────────────────────────────── */
html[data-theme="light"] .lp-nav {
  background: rgba(245,241,236,.92);
}
