/* Demo marketing landing — reuses AgentBI tokens from style.css */

.landing-page {
  color: var(--ink);
}

.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4efe4;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(79, 157, 125, 0.28), transparent 55%),
    radial-gradient(700px 420px at 12% 88%, rgba(196, 92, 38, 0.16), transparent 50%),
    linear-gradient(165deg, #06271d 0%, #0b3d2e 42%, #134d3a 72%, #173f33 100%);
}

.lp-hero-plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-dash {
  position: absolute;
  right: max(2vw, 1rem);
  bottom: max(4vh, 1.25rem);
  width: min(52vw, 640px);
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(247, 242, 232, 0.14), rgba(247, 242, 232, 0.06));
  border: 1px solid rgba(244, 239, 228, 0.16);
  border-bottom: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(12%) rotate(-1.2deg);
  transform-origin: 100% 100%;
  animation: lp-dash-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.lp-dash-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.lp-dash-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.35);
}

.lp-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.lp-dash-kpis div {
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: rgba(8, 28, 22, 0.35);
  border: 1px solid rgba(244, 239, 228, 0.1);
}

.lp-dash-kpis em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.62);
  margin-bottom: 0.25rem;
}

.lp-dash-kpis strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: 700;
}

.lp-dash-kpis .good,
.lp-dash-rows .good {
  color: #7ddea8;
}

.lp-dash-rows .warn {
  color: #e0b45a;
}

.lp-dash-chart {
  height: clamp(88px, 12vh, 130px);
  margin-bottom: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 28, 22, 0.28);
}

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

.lp-chart-fill {
  fill: rgba(79, 157, 125, 0.28);
}

.lp-chart-line {
  stroke: #7ddea8;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: lp-draw 1.4s ease 0.55s forwards;
}

.lp-dash-rows {
  display: grid;
  gap: 0.35rem;
}

.lp-dash-rows div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(8, 28, 22, 0.28);
  font-size: 0.82rem;
}

.lp-dash-rows b {
  font-weight: 600;
  color: rgba(244, 239, 228, 0.88);
}

.lp-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 8vh, 5rem);
  animation: lp-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lp-brand {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin: 0 0 1.35rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.25));
}

.lp-hero-copy h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
  line-height: 1.05;
  font-weight: 700;
  color: #f7f2e8;
  max-width: 14ch;
  margin-bottom: 0.85rem;
}

.lp-lede {
  color: rgba(244, 239, 228, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.lp-hero .btn-primary {
  background: #f4efe4;
  color: #0b3d2e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.lp-hero .btn-primary:hover {
  background: #fff;
}

.lp-cta-ghost,
.lp-hero .btn-secondary {
  background: transparent;
  color: #f4efe4;
  border-color: rgba(244, 239, 228, 0.35);
}

.lp-hero .btn-secondary:hover {
  background: rgba(244, 239, 228, 0.1);
}

.lp-section {
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.lp-section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  max-width: 18ch;
  margin-bottom: 0.65rem;
}

.lp-section-lede {
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.lp-questions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.lp-questions li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.lp-surface-list {
  margin: 0;
  display: grid;
  gap: 1.35rem 2rem;
}

@media (min-width: 720px) {
  .lp-surface-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lp-surface-list dt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.lp-surface-list dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.lp-family-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}

.lp-family-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.lp-family-list strong {
  color: var(--ink);
  font-weight: 600;
}

.lp-family-list .is-focus {
  color: var(--ink);
  border-bottom-color: var(--brand-2);
  border-bottom-width: 2px;
}

.lp-close {
  text-align: left;
  padding-bottom: 4rem;
}

.lp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.lp-footer span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.lp-footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.lp-footer-links a:hover {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lp-dash-in {
  from {
    opacity: 0;
    transform: translateY(22%) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: translateY(12%) rotate(-1.2deg);
  }
}

@keyframes lp-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 900px) {
  .lp-hero {
    align-items: stretch;
    min-height: auto;
  }

  .lp-hero-copy {
    padding-top: clamp(2.5rem, 8vh, 4rem);
    padding-bottom: 1.5rem;
  }

  .lp-dash {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 2rem);
    margin: 0 1rem 0;
    transform: none;
    animation: lp-rise 800ms ease 120ms both;
    border-radius: 16px;
    border-bottom: 1px solid rgba(244, 239, 228, 0.16);
  }

  .lp-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-hero {
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-copy,
  .lp-dash,
  .lp-chart-line,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
