@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --landing-bg: #f6f7fb;
  --landing-surface: color-mix(in srgb, var(--surface) 96%, transparent);
  --landing-card: var(--surface);
  --landing-border: var(--line);
  --landing-text: var(--ink);
  --landing-muted: var(--muted);
  --landing-accent: #5b8cff;
  --landing-accent-soft: rgba(91, 140, 255, 0.12);
  --landing-shadow: 0 20px 40px rgba(5, 8, 20, 0.08);
}

:root[data-theme="dark"] {
  --landing-bg: #08090b;
  --landing-surface: #101318;
  --landing-card: #101318;
  --landing-border: rgba(255, 255, 255, 0.08);
  --landing-text: #eef2f7;
  --landing-muted: #7a8599;
  --landing-accent: #84a9ff;
  --landing-accent-soft: rgba(132, 169, 255, 0.18);
  --landing-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box !important;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.55;
}

:root[data-theme="dark"] body {
  background: var(--landing-bg);
}

.wrap {
  width: min(1240px, 100% - 32px);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   HERO (kept, untouched design)
   ═══════════════════════════════════════════ */
.hero {
  padding: 42px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(64px);
  /* keep the blended background centered and bounded on small screens */
  transform: translateZ(0) translateX(-50%);
  width: min(900px, 120vw);
  max-width: 1100px;
  height: 260px;
  left: 50%;
  top: 76%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(91, 140, 255, 0.34),
    rgba(125, 85, 255, 0.136) 70%,
    transparent 70%
  );
  opacity: 0.95;
  will-change: transform, opacity;
}

.hero--ref .hero-ref-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.hero--ref .hero-content {
  max-width: 920px;
}

.hero--ref .hero-actions {
  justify-content: center;
}

.hero-visual {
  width: 100%;
  max-width: 1100px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  background: var(--landing-card);
  box-shadow: var(--landing-shadow);
  z-index: 2;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.tag {
  display: inline-block;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--landing-card);
}

h1 {
  margin: 16px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(42px, 9vw, 90px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.lede {
  margin: 20px 0 0;
  max-width: 720px;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sub {
  margin: 14px 0 0;
  max-width: 680px;
  color: var(--landing-muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--landing-accent) 35%, transparent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--landing-text);
  border-color: var(--landing-text);
  color: var(--on-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--landing-text);
}

:root[data-theme="dark"] .btn-primary {
  color: #0a0a0a;
}

.panel {
  border: 1px solid var(--landing-border);
  background: var(--landing-card);
}

/* ═══════════════════════════════════════════
   SCROLL-DRIVEN MOTION (not animation)
   using IntersectionObserver via data-motion
   ═══════════════════════════════════════════ */
[data-motion] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-motion].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy data-animate support */
[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   SECTIONS — shared
   ═══════════════════════════════════════════ */
.ls {
  padding: 80px 0;
}

.ls__head {
  margin-bottom: 48px;
}

.ls__head--center {
  text-align: center;
}

.ls__head--center .ls__lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--landing-muted);
  margin-bottom: 16px;
}

.ls h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.ls__lead {
  margin: 16px 0 0;
  max-width: 600px;
  color: var(--landing-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   FEATURES — 3×2 icon grid
   ═══════════════════════════════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--landing-border);
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  overflow: hidden;
}

.feat-card {
  background: var(--landing-card);
  padding: 32px 28px;
  transition: background 0.3s ease-in-out;
}

.feat-card:hover {
  background: color-mix(in srgb, var(--landing-accent) 4%, var(--landing-card));
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--landing-accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--landing-accent);
}

.feat-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--landing-text);
}

.feat-card p {
  margin: 10px 0 0;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   INTEGRATIONS — source logo chips
   ═══════════════════════════════════════════ */
.ls--integrations {
  border-top: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
}

.source-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.source-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 64px;
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  background: var(--landing-card);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.source-logo:hover {
  transform: translateY(-4px);
  border-color: color-mix(
    in srgb,
    var(--landing-accent) 40%,
    var(--landing-border)
  );
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.1);
}

.source-logo--accent {
  border-color: color-mix(
    in srgb,
    var(--landing-accent) 25%,
    var(--landing-border)
  );
}

.source-logo span {
  font-size: 13px;
  font-weight: 700;
  color: var(--landing-text);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════
   VISIBILITY — split layout + metric bars
   ═══════════════════════════════════════════ */
.vis-layout {
  display: grid;
  gap: 48px;
}

.vis-content h2 {
  margin-bottom: 16px;
}

.vis-content > p {
  color: var(--landing-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 520px;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--landing-text);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--landing-accent);
  box-shadow: 0 0 0 4px var(--landing-accent-soft);
  position: absolute;
  left: 0;
  top: 7px;
}

.vis-metrics {
  display: grid;
  gap: 20px;
}

.metric-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

:root[data-theme="dark"] .metric-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.metric-value {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--landing-accent);
}

.metric-label {
  display: block;
  font-size: 13px;
  color: var(--landing-muted);
  margin-top: 6px;
  font-weight: 500;
}

.metric-bar {
  margin-top: 16px;
  height: 4px;
  border-radius: 4px;
  background: var(--landing-border);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--landing-accent), #7b61ff);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animate bars when parent is in view */
.in-view .metric-fill,
.is-visible .metric-fill {
  /* width is set inline */
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonial-grid {
  display: grid;
  gap: 16px;
}

.tcard {
  margin: 0;
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 18px;
  padding: 32px;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.tcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .tcard:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.tcard--featured {
  border-color: color-mix(
    in srgb,
    var(--landing-accent) 30%,
    var(--landing-border)
  );
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--landing-accent) 5%, var(--landing-card)),
    var(--landing-card)
  );
}

.tcard p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--landing-text);
  font-weight: 500;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--landing-border);
}

.tcard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--landing-accent-soft);
  color: var(--landing-accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.tcard-author strong {
  display: block;
  font-size: 14px;
  color: var(--landing-text);
}

.tcard-author span {
  display: block;
  font-size: 12px;
  color: var(--landing-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════ */
.plan-grid {
  display: grid;
  gap: 16px;
}

.pcard {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .pcard:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.pcard--featured {
  border-color: color-mix(
    in srgb,
    var(--landing-accent) 40%,
    var(--landing-border)
  );
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--landing-accent) 6%, var(--landing-card)),
    var(--landing-card)
  );
  box-shadow: 0 12px 32px rgba(91, 140, 255, 0.08);
}

.pcard__badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--landing-accent);
  color: var(--color-on-accent, #ffffff);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pcard__head {
  margin-bottom: 24px;
}

.pcard h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pcard__price {
  font-family: "Archivo", sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 8px;
  letter-spacing: -0.03em;
}

.pcard__price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--landing-muted);
}

.pcard ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  flex: 1;
}

.pcard li {
  font-size: 14px;
  color: var(--landing-muted);
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
}

.pcard li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--landing-accent);
  position: absolute;
  left: 0;
  top: 7px;
}

.pcard .btn {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq-list {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  background: var(--landing-card);
  overflow: clip;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: color-mix(
    in srgb,
    var(--landing-accent) 20%,
    var(--landing-border)
  );
}

.faq-item__trigger {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--landing-text);
  padding: 22px 56px 22px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.faq-item__trigger::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--landing-muted);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item[data-open="true"] .faq-item__trigger::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item__content p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   CTA BLOCK
   ═══════════════════════════════════════════ */
.cta-block {
  border: 1px solid var(--landing-border);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--landing-accent) 8%, var(--landing-card)),
    var(--landing-card)
  );
  padding: 56px 48px;
  display: grid;
  gap: 24px;
  align-items: center;
}

.cta-content h2 {
  margin: 8px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (min-width: 700px) {
  .wrap {
    width: min(1240px, 100% - 48px);
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid .tcard--featured {
    grid-column: 1 / -1;
  }

  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-block {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 58px 0 36px;
  }

  .ls {
    padding: 100px 0;
  }

  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vis-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-grid .tcard--featured {
    grid-column: auto;
  }
}
