:root {
  --primary: #0040a1;
  --primary-dark: #003080;
  --primary-light: #0056d2;
  --primary-soft: #dae2ff;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #5b6475;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 50px rgba(0, 64, 161, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --font-headline: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(246, 248, 252, 0.88);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-headline);
  font-weight: 800;
}

.logo__image {
  display: block;
  width: 2.25rem;
  height: auto;
  flex-shrink: 0;
}

.logo__text {
  line-height: 1;
}

.logo__ia {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:not(.btn):hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 64, 161, 0.22);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn--light {
  background: #fff;
  color: var(--primary);
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  display: grid;
  gap: 0.15rem;
}

.hero__stats strong {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  color: var(--primary);
}

.hero__stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dashboard-card {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dashboard-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-card__title {
  font-family: var(--font-headline);
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill--live {
  background: #e8f8ef;
  color: #0f7a42;
}

.dashboard-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.metric {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.metric__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric__value {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.dashboard-card__bars {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  height: 120px;
  margin-bottom: 1rem;
}

.dashboard-card__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-soft));
}

.dashboard-card__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Screenshots */
.section--screenshots {
  padding-top: 3rem;
}

.screenshot-frame {
  margin: 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-frame figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.screenshot-frame--hero {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center left;
}

.screenshots-showcase {
  display: grid;
  gap: 1rem;
}

.screenshots-showcase__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.screenshots-tab {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-headline);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.screenshots-tab:hover,
.screenshots-tab.is-active {
  background: var(--primary-soft);
  border-color: rgba(0, 64, 161, 0.2);
  color: var(--primary);
}

.screenshots-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.screenshots-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.screenshots-thumb:hover {
  transform: translateY(-2px);
}

.screenshots-thumb.is-active {
  border-color: var(--primary);
}

.screenshots-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Trust band */
.trust {
  padding: 1.5rem 0 3rem;
}

.trust__inner {
  text-align: center;
}

.trust__inner > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.trust__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.trust__tags span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(218, 226, 255, 0.35), transparent);
}

.section__head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__head p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  background: var(--primary-soft);
  font-size: 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-headline);
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step__num {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-headline);
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.price-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.price-card--featured {
  border-color: rgba(0, 64, 161, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.price-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-headline);
  font-size: 1.2rem;
}

.price-card__price {
  margin: 0 0 1.25rem;
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.price-card__price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.price-card li + li {
  margin-top: 0.45rem;
}

/* CTA band */
.cta-band {
  padding: 0 0 4.5rem;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-band p {
  margin: 0;
  max-width: 38rem;
  opacity: 0.92;
}

/* Contact */
.section--contact {
  padding-bottom: 5rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact__text {
  color: var(--text-muted);
}

.contact__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact__list li + li {
  margin-top: 1rem;
}

.contact__list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact__list a {
  color: var(--primary);
  font-weight: 600;
}

.lead-form {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(0, 64, 161, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 64, 161, 0.1);
}

.form-row input.is-invalid,
.form-row textarea.is-invalid,
.checkbox input.is-invalid {
  border-color: #c62828;
}

.form-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #c62828;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkbox input {
  margin-top: 0.2rem;
}

.form-note {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-note.is-success {
  color: #0f7a42;
  font-weight: 600;
}

.form-note.is-error {
  color: #c62828;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.footer__links a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.logo--footer .logo__image,
.logo__image--footer {
  width: 2rem;
}

/* Toast */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: min(360px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .features,
  .steps,
  .pricing,
  .contact__grid,
  .screenshots-thumbs {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    transform: none;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(246, 248, 252, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
  }

  .header__inner {
    position: relative;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 3rem;
  }

  .dashboard-card__metrics {
    grid-template-columns: 1fr;
  }

  .screenshot-frame--hero {
    transform: none;
  }

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

[data-cms-section].cms-section--hidden {
  display: none !important;
}
