/* Landing page — self-contained dark theme, all selectors prefixed `.lp-`.
   Palette/typography mirror the V-STOCH reference landing (green brand, dark surfaces). */

html { scroll-behavior: smooth; }
body { margin: 0; background: #11111b; }
.lp {
  --lp-brand-400: #4ade80;
  --lp-brand-500: #22c55e;
  --lp-brand-600: #16a34a;
  --lp-brand-700: #15803d;
  --lp-accent: #f59e0b;
  --lp-bg: #11111b;
  --lp-s800: #1e1e2e;
  --lp-s700: #2a2a3c;
  --lp-s600: #363649;
  --lp-text: #d1d5db;
  --lp-muted: #9ca3af;
  --lp-dim: #6b7280;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}
.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }
.lp a { color: inherit; text-decoration: none; }
.lp h1, .lp h2, .lp h3, .lp h4 { color: #fff; margin: 0; line-height: 1.2; }
.lp p { margin: 0; }
.lp ul { margin: 0; padding: 0; list-style: none; }
.lp section[id] { scroll-margin-top: 4rem; }
.lp-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.lp-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.lp-wrap-md { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.lp-section { padding: 6rem 0; }
@media (min-width: 640px) { .lp-section { padding: 8rem 0; } }

/* ---------- nav ---------- */
.lp-nav {
  position: fixed; top: 0; width: 100%; z-index: 50;
  background: rgba(17, 17, 27, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lp-nav-in { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.lp-brand img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.lp-nav-links { display: none; gap: 1.75rem; font-size: 0.875rem; color: var(--lp-muted); }
.lp-nav-links a:hover { color: #fff; }
@media (min-width: 900px) { .lp-nav-links { display: flex; } }
.lp-nav-cta { display: flex; gap: 0.5rem; align-items: center; }

/* ---------- buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; border-radius: 0.75rem; transition: background-color .2s, border-color .2s, color .2s;
  font-size: 1rem; padding: 0.875rem 2rem; cursor: pointer;
}
.lp-btn-primary { background: var(--lp-brand-600); color: #fff; box-shadow: 0 10px 25px rgba(22, 163, 74, 0.2); }
.lp-btn-primary:hover { background: var(--lp-brand-700); }
.lp-btn-ghost { border: 1px solid var(--lp-s600); color: var(--lp-text); font-weight: 500; }
.lp-btn-ghost:hover { border-color: rgba(34, 197, 94, 0.4); color: #fff; }
.lp-btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; border-radius: 0.5rem; font-weight: 500; box-shadow: none; }

/* ---------- hero ---------- */
.lp-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: lp-grid 20s linear infinite;
}
@keyframes lp-grid { to { background-position: 60px 60px; } }
.lp-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 600px 400px at 50% 40%, rgba(34, 197, 94, 0.08), transparent);
}
.lp-hero-in { position: relative; z-index: 1; max-width: 60rem; margin: 0 auto; padding: 7rem 1.5rem 3rem; text-align: center; }
.lp-hero-logo { display: block; width: 7rem; height: 7rem; object-fit: contain; margin: 0 auto 2rem; filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.4)); }
@media (min-width: 640px) { .lp-hero-logo { width: 9rem; height: 9rem; } }
.lp-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.875rem; margin-bottom: 1.5rem;
  border: 1px solid rgba(34, 197, 94, 0.25); background: rgba(34, 197, 94, 0.08);
  border-radius: 999px; font-size: 0.75rem; color: var(--lp-brand-400);
}
.lp-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-brand-500); animation: lp-pulse 2s ease-in-out infinite; }
@keyframes lp-pulse { 50% { opacity: 0.3; } }
.lp-h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .lp-h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .lp-h1 { font-size: 3.75rem; } }
.lp-green { color: var(--lp-brand-500); }
.lp-lead { font-size: 1.125rem; color: var(--lp-muted); max-width: 40rem; margin: 0 auto 2.5rem; line-height: 1.7; }
@media (min-width: 640px) { .lp-lead { font-size: 1.25rem; } }
.lp-cta-row { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .lp-cta-row { flex-direction: row; } }

.lp-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 4rem;
  background: var(--lp-s700); border: 1px solid var(--lp-s700); border-radius: 1rem; overflow: hidden;
}
@media (min-width: 768px) { .lp-stats { grid-template-columns: repeat(4, 1fr); } }
.lp-stat { background: var(--lp-s800); padding: 1.25rem 1rem; }
.lp-stat b { display: block; font-size: 1.5rem; color: #fff; font-weight: 700; }
.lp-stat span { font-size: 0.75rem; color: var(--lp-muted); }

/* ---------- divider ---------- */
.lp-divider {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.4), transparent);
  background-size: 200% 100%; animation: lp-shimmer 3s ease-in-out infinite;
}
@keyframes lp-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---------- section head ---------- */
.lp-head { text-align: center; margin-bottom: 4rem; }
.lp-eyebrow { color: var(--lp-brand-500); font-size: 0.875rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
.lp-h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 640px) { .lp-h2 { font-size: 2.25rem; } }
.lp-sub { color: var(--lp-muted); max-width: 36rem; margin: 0 auto; }

/* ---------- reveal ---------- */
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.lp-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-hero, .lp-divider, .lp-pill i { animation: none; }
}

/* ---------- cards ---------- */
.lp-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .lp-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-grid-3 { grid-template-columns: repeat(3, 1fr); } .lp-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .lp-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.lp-card {
  background: var(--lp-s800); border: 1px solid var(--lp-s600); border-radius: 1rem; padding: 2rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); border-color: rgba(34, 197, 94, 0.3); }
.lp-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.lp-card p { color: var(--lp-muted); }
.lp-card-sm { padding: 1.5rem; }
.lp-card-sm h3 { font-size: 1.0625rem; }
.lp-card-sm p { font-size: 0.9rem; }
.lp-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem; margin-bottom: 1.25rem;
  background: rgba(22, 163, 74, 0.15); color: var(--lp-brand-500);
  display: flex; align-items: center; justify-content: center;
}
.lp-icon svg { width: 1.5rem; height: 1.5rem; }
.lp-tag { display: inline-block; font-size: 0.6875rem; padding: 0.125rem 0.5rem; margin-bottom: 0.75rem; border-radius: 999px; border: 1px solid rgba(245, 158, 11, 0.4); color: var(--lp-accent); }

/* ---------- problem / solution ---------- */
.lp-split { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lp-split { grid-template-columns: 1fr 1fr; } }
.lp-col { border-radius: 1rem; padding: 2rem; border: 1px solid var(--lp-s600); background: var(--lp-s800); }
.lp-col-good { border-color: rgba(34, 197, 94, 0.3); background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), var(--lp-s800)); }
.lp-col h3 { font-size: 1.125rem; margin-bottom: 1.25rem; }
.lp-col li { display: flex; gap: 0.75rem; margin-bottom: 1rem; color: var(--lp-muted); font-size: 0.95rem; }
.lp-col li b { color: #fff; font-weight: 600; }
.lp-mark { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.lp-mark-bad { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.lp-mark-good { background: rgba(34, 197, 94, 0.15); color: var(--lp-brand-400); }

/* ---------- steps ---------- */
.lp-steps { display: grid; gap: 2rem; }
.lp-step { display: flex; gap: 1.5rem; align-items: flex-start; }
.lp-step-n {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--lp-brand-600);
  color: #fff; font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center;
}
.lp-step h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.lp-step p { color: var(--lp-muted); }

/* ---------- code ---------- */
.lp-code-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lp-code-grid { grid-template-columns: 1fr 1.1fr; } }
.lp-code { background: #0b0b13; border: 1px solid var(--lp-s600); border-radius: 1rem; overflow: hidden; }
.lp-code-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--lp-s700); font-size: 0.75rem; color: var(--lp-dim); }
.lp-code-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-s600); }
.lp-code pre { margin: 0; padding: 1.25rem; overflow-x: auto; font-size: 0.8125rem; line-height: 1.75; color: #e5e7eb; }
.lp-c-k { color: var(--lp-brand-400); }
.lp-c-c { color: var(--lp-dim); }
.lp-c-n { color: var(--lp-accent); }
.lp-checks li { display: flex; gap: 0.75rem; margin-bottom: 0.875rem; color: var(--lp-muted); }
.lp-checks li::before { content: "✓"; color: var(--lp-brand-500); font-weight: 700; }
.lp-checks b { color: #fff; font-weight: 600; }

/* ---------- table ---------- */
.lp-table-wrap { overflow-x: auto; border: 1px solid var(--lp-s600); border-radius: 1rem; background: var(--lp-s800); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
.lp-table th, .lp-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--lp-s700); vertical-align: top; }
.lp-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lp-dim); font-weight: 500; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }
.lp-table td { color: var(--lp-muted); }

/* ---------- flow ---------- */
.lp-flow { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lp-flow { grid-template-columns: repeat(4, 1fr); } }
.lp-node { background: var(--lp-s800); border: 1px solid var(--lp-s600); border-radius: 1rem; padding: 1.5rem; position: relative; }
.lp-node small { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--lp-brand-500); text-transform: uppercase; margin-bottom: 0.75rem; }
.lp-node-core { border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 0 40px rgba(34, 197, 94, 0.12); }
.lp-node li { font-size: 0.875rem; color: var(--lp-muted); margin-bottom: 0.5rem; }
.lp-node li b { color: #fff; font-weight: 600; }
.lp-note { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--lp-dim); }

/* ---------- roadmap ---------- */
.lp-road { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lp-road { grid-template-columns: repeat(3, 1fr); } }
.lp-road h3 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.lp-road-now h3 { color: var(--lp-brand-500); }
.lp-road-next h3 { color: var(--lp-accent); }
.lp-road-later h3 { color: var(--lp-muted); }

/* ---------- faq ---------- */
.lp-faq details { border-bottom: 1px solid var(--lp-s700); padding: 1.25rem 0; }
.lp-faq summary { cursor: pointer; color: #fff; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--lp-brand-500); font-size: 1.25rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq p { margin-top: 0.75rem; color: var(--lp-muted); }

/* ---------- final cta + footer ---------- */
.lp-final {
  text-align: center; border: 1px solid rgba(34, 197, 94, 0.25); border-radius: 1.5rem; padding: 4rem 1.5rem;
  background: radial-gradient(ellipse 500px 300px at 50% 0%, rgba(34, 197, 94, 0.12), transparent), var(--lp-s800);
}
.lp-final .lp-h2 { margin-bottom: 1rem; }
.lp-final .lp-lead { font-size: 1rem; margin-bottom: 2rem; }
.lp-footer { border-top: 1px solid var(--lp-s700); padding: 3rem 0; }
.lp-footer-in { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .lp-footer-in { flex-direction: row; } }
.lp-footer-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: #6b7280; }
.lp-footer-brand img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.lp-footer-copy { font-size: 0.875rem; color: #4b5563; }
