/* LightPane homepage styles */

/* ---------- HERO ---------- */
.lp-hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
}
.lp-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%;
  height: 720px;
  background: var(--lp-glow-warm);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
.lp-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center;
}
[data-hero="stacked"] .lp-hero-inner { grid-template-columns: 1fr; gap: 56px; }
[data-hero="grand"] .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
[data-hero="grand"] .lp-hero-copy { max-width: 820px; margin: 0 auto; }
[data-hero="grand"] .lp-hero-cta { justify-content: center; }
[data-hero="grand"] .lp-hero-sub { margin-left: auto; margin-right: auto; }

.lp-hero h1 {
  font-family: var(--lp-font-serif);
  font-weight: 400;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.lp-hero h1 .accent {
  font-style: italic;
  color: var(--lp-ember);
  position: relative;
}
.lp-hero h1 .accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 8px;
  background: var(--lp-amber);
  opacity: .35;
  border-radius: 4px;
  z-index: -1;
  filter: blur(6px);
}
.lp-hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--lp-ink-2);
  max-width: 58ch;
  margin-bottom: 32px;
}
.lp-hero-cta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.lp-hero-note {
  font-size: 13px; color: var(--lp-ink-3);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--lp-font-mono);
}
.lp-hero-note .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-ember); position: relative; }
.lp-hero-note .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,138,61,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,138,61,.5); }
  70% { box-shadow: 0 0 0 10px rgba(255,138,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); }
}

.lp-hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: var(--lp-r-pill);
  font-size: 12px; font-family: var(--lp-font-mono);
  color: var(--lp-ink-3);
  box-shadow: var(--lp-shadow-2);
  margin-bottom: 22px;
}
.lp-hero-chip .tag {
  background: var(--lp-amber-wash);
  color: #8a6a00;
  border: 1px solid var(--lp-amber-soft);
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}

/* Flow graphic */
.lp-hero-flow {
  position: relative;
  aspect-ratio: 1.12 / 1;
  width: 100%;
  max-width: 620px;
  justify-self: end;
}
[data-hero="grand"] .lp-hero-flow { max-width: 900px; justify-self: center; margin-top: 20px; aspect-ratio: 1.6 / 1; }
[data-hero="stacked"] .lp-hero-flow { max-width: 100%; aspect-ratio: 1.9 / 1; }

.lp-flow-svg { width: 100%; height: 100%; display: block; }

/* ---------- Trust strip ---------- */
.lp-strip {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--lp-font-mono); font-size: 12px;
  color: var(--lp-ink-3);
  flex-wrap: wrap;
}
.lp-strip .cell { display: inline-flex; align-items: center; gap: 8px; }
.lp-strip .cell .k { color: var(--lp-ink); font-weight: 600; font-family: var(--lp-font-sans); font-size: 14px; }

/* ---------- Pillars ---------- */
.lp-pillars {
  padding: 110px 0 60px;
}
.lp-pillars-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
  align-items: end;
}
.lp-pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.pillar {
  position: relative;
  padding: 28px 26px 24px;
  border-radius: var(--lp-r-lg);
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-2);
  transition: transform .25s var(--lp-ease), box-shadow .25s var(--lp-ease);
  overflow: hidden;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow-hover); }
.pillar::before {
  content: ""; position: absolute; top: -80px; right: -60px; width: 220px; height: 220px;
  background: var(--lp-glow-soft);
  opacity: 0; transition: opacity .25s var(--lp-ease);
  pointer-events: none;
}
.pillar:hover::before { opacity: 1; }
.pillar .lbl {
  font-family: var(--lp-font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lp-ink-4);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.pillar .lbl .idx { color: var(--lp-ember); font-weight: 600; }
.pillar h3 {
  font-family: var(--lp-font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 10px;
}
.pillar p { color: var(--lp-ink-2); font-size: 15px; line-height: 1.55; }
.pillar .ico-lg {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--lp-amber-wash);
  border: 1px solid var(--lp-amber-soft);
  display: grid; place-items: center; color: var(--lp-ember);
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 20px -10px rgba(255,170,60,.35);
}

/* ---------- Live Pane demo ---------- */
.lp-demo {
  padding: 80px 0;
}
.lp-demo-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 36px; align-items: end;
}
.lp-demo-frame {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-xl);
  box-shadow: var(--lp-shadow-3);
  overflow: hidden;
  position: relative;
}
.lp-demo-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-line);
  background: linear-gradient(180deg, var(--lp-paper), var(--lp-canvas));
}
.lp-demo-dots { display: flex; gap: 6px; }
.lp-demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-line-strong); }
.lp-demo-dots span:nth-child(1) { background: var(--lp-coral); }
.lp-demo-dots span:nth-child(2) { background: var(--lp-amber); }
.lp-demo-dots span:nth-child(3) { background: #8ad16b; }
.lp-demo-url {
  flex: 1; background: var(--lp-sunk);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-pill);
  padding: 6px 14px;
  font-family: var(--lp-font-mono); font-size: 12px; color: var(--lp-ink-3);
  display: flex; align-items: center; gap: 8px;
}
.lp-demo-url .lock { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-ember); }
.lp-demo-tabs {
  display: flex; gap: 4px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--lp-line);
  overflow-x: auto;
}
.lp-demo-tab {
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--lp-ink-3);
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent; border-bottom: none;
  background: transparent;
  position: relative;
  white-space: nowrap;
  transition: all .15s var(--lp-ease);
}
.lp-demo-tab:hover {
  background: linear-gradient(180deg, #efe9dd, #f4efe4);
  box-shadow: var(--lp-shadow-inset-cde);
}
.lp-demo-tab[aria-selected="true"] {
  color: var(--lp-ink);
  background: var(--lp-paper);
  border-color: var(--lp-line);
  box-shadow: 0 -4px 12px -4px rgba(26,24,20,.05);
}
.lp-demo-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--lp-paper);
}

.lp-demo-body {
  padding: 28px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 200, 90, .08), transparent 50%),
    var(--lp-canvas);
  min-height: 440px;
}
.lp-demo-page-title {
  font-size: 14px; color: var(--lp-ink-3); font-family: var(--lp-font-mono);
  margin-bottom: 4px;
}
.lp-demo-page-h {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 28px; margin-bottom: 20px;
}

/* The "embedded pane" itself */
.lp-embed-pane {
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-2);
  position: relative;
  overflow: hidden;
}
.lp-embed-pane::after {
  /* subtle amber glow ring when "live" */
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(245,197,24,.18);
  pointer-events: none;
}
.lp-embed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-embed-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.lp-embed-title .liv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 2px 6px;
  background: var(--lp-amber-wash); color: #8a6a00;
  border: 1px solid var(--lp-amber-soft);
  font-family: var(--lp-font-mono); font-size: 10px; letter-spacing: .1em;
  border-radius: 999px; text-transform: uppercase;
}
.lp-embed-title .liv .d { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-ember); box-shadow: 0 0 8px var(--lp-ember); }
.lp-embed-meta { font-family: var(--lp-font-mono); font-size: 11px; color: var(--lp-ink-3); }

.lp-embed-body { padding: 18px; display: grid; gap: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  padding: 12px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--lp-paper), var(--lp-canvas));
}
.kpi .k { font-size: 11px; color: var(--lp-ink-3); font-family: var(--lp-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.kpi .v { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.kpi .v.change { font-size: 11px; color: #2a8a4c; font-family: var(--lp-font-mono); }
.kpi .v.alert { color: var(--lp-coral); }

.svc-list { display: grid; gap: 8px; }
.svc {
  display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lp-canvas);
  border: 1px solid var(--lp-line);
  font-size: 13px;
}
.svc .sym {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--lp-paper); border: 1px solid var(--lp-line);
  display: grid; place-items: center;
  font-family: var(--lp-font-mono); font-size: 10px; font-weight: 600; color: var(--lp-ink-2);
}
.svc .name { font-weight: 500; }
.svc .name .sub { color: var(--lp-ink-3); font-size: 11px; font-family: var(--lp-font-mono); }
.svc .st {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--lp-font-mono); font-size: 11px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(42,138,76,.09); color: #2a8a4c; border: 1px solid rgba(42,138,76,.2);
}
.svc .st.warn { background: rgba(245,197,24,.15); color: #8a6a00; border-color: var(--lp-amber-soft); }
.svc .st.err  { background: rgba(232,90,90,.12); color: #a03a3a; border-color: var(--lp-coral-soft); }
.svc .st .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.svc .m { font-family: var(--lp-font-mono); font-size: 11px; color: var(--lp-ink-3); }

.spark { width: 80px; height: 24px; }
.spark path.fill { fill: rgba(245,197,24,.12); }
.spark path.line { stroke: var(--lp-ember); stroke-width: 1.5; fill: none; }

/* Code-embed block */
.lp-embed-code {
  margin-top: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--lp-canvas) 100%);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--lp-font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--lp-ink-2);
  position: relative;
  overflow: hidden;
}
.lp-embed-code .tag-lbl {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--lp-ink-4);
}
.lp-embed-code .k { color: var(--lp-coral); }
.lp-embed-code .s { color: #6a8a3a; }
.lp-embed-code .a { color: #8a6a00; }
.lp-embed-code .c { color: var(--lp-ink-4); font-style: italic; }

/* ---------- How it works ---------- */
.lp-how { padding: 80px 0; }
.lp-how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 36px;
}
.step {
  position: relative;
  padding: 26px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-2);
  overflow: hidden;
}
.step .n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lp-paper); border: 1px solid var(--lp-line);
  display: grid; place-items: center; font-family: var(--lp-font-mono); font-weight: 600; font-size: 14px;
  box-shadow: 0 0 0 4px var(--lp-amber-wash);
  margin-bottom: 18px;
}
.step h4 { font-family: var(--lp-font-serif); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--lp-ink-2); font-size: 14px; }
.step .mini {
  margin-top: 18px;
  font-family: var(--lp-font-mono); font-size: 11.5px;
  background: var(--lp-canvas); border: 1px dashed var(--lp-line);
  padding: 10px 12px; border-radius: 10px;
  color: var(--lp-ink-3);
}
.step .mini .a { color: #8a6a00; }
.step .mini .s { color: #6a8a3a; }

/* ---------- Targets strip ---------- */
.lp-targets {
  padding: 60px 0 40px;
}
.lp-targets-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 28px;
}
.target {
  padding: 20px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  display: grid; gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--lp-ease), box-shadow .2s var(--lp-ease);
}
.target:hover { transform: translateY(-2px); box-shadow: var(--lp-shadow-hover); }
.target .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--lp-amber-wash); border: 1px solid var(--lp-amber-soft);
  display: grid; place-items: center; color: var(--lp-ember);
}
.target .n { font-weight: 600; font-size: 15px; }
.target .d { color: var(--lp-ink-3); font-size: 13px; }

/* ---------- CTA ---------- */
.lp-cta {
  margin: 80px 0 20px;
  padding: 68px 40px;
  border-radius: 28px;
  border: 1px solid var(--lp-line);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 197, 24, .35), transparent 60%),
    radial-gradient(ellipse at 0% 0%, rgba(255, 138, 61, .15), transparent 50%),
    var(--lp-paper);
  box-shadow: var(--lp-shadow-3);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta h2 {
  font-family: var(--lp-font-serif); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.01em;
  margin-bottom: 14px;
}
.lp-cta p { color: var(--lp-ink-2); font-size: 18px; max-width: 52ch; margin: 0 auto 26px; }
.lp-cta .actions { display: inline-flex; gap: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-pillars-grid, .lp-how-grid { grid-template-columns: 1fr; }
  .lp-targets-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-demo-head, .lp-pillars-head { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .lp-nav-links { display: none; }
  .lp-nav-menu-btn { display: inline-flex !important; }
}
