/* ═══════════════════════════════════════════════════════════════════════════
   Cervantiq Landing Page — Custom Styles
   Built on top of Tabler 1.4.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Root Variables ─────────────────────────────────────────────────────── */
:root {
  --landing-gradient-start: #f0f6ff;
  --landing-gradient-end: #e8f4f8;
  --landing-section-alt: #f8fafc;
}

/* ── Global ─────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  min-height: 3.5rem;
}

/* ── Hero Section ───────────────────────────────────────────────────────── */
.landing-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--landing-gradient-start) 0%, var(--landing-gradient-end) 100%);
}

.landing-hero h1 {
  color: #1a2b4a;
}

.landing-mock-dashboard {
  border-radius: 0.75rem;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.3s ease;
}

.landing-mock-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* ── Feature Cards ──────────────────────────────────────────────────────── */
.landing-feature-card {
  border-radius: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.landing-feature-card .avatar {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
}

/* ── PH Section ─────────────────────────────────────────────────────────── */
.landing-ph-section {
  background: var(--landing-section-alt);
}

.landing-ph-section .avatar {
  flex-shrink: 0;
}

/* ── How It Works — Step Cards ──────────────────────────────────────────── */
.landing-step-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: visible;
  padding-top: 2rem;
}

.landing-step-number {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--tblr-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(32, 107, 196, 0.3);
}

/* ── Screenshots Section ────────────────────────────────────────────────── */
.landing-screenshots-section {
  background: var(--landing-section-alt);
}

/* ── Demo CTA Card ──────────────────────────────────────────────────────── */
.landing-demo-card {
  background: linear-gradient(135deg, var(--landing-gradient-start) 0%, var(--landing-gradient-end) 100%);
  border: none;
  border-radius: 1rem;
}

/* ── FAQ Section ────────────────────────────────────────────────────────── */
.landing-faq-section {
  background: #fff;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer a:hover {
  color: #fff !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  /* Consistent horizontal padding on mobile (exclude navbar — it has its own) */
  .landing-hero .container-xl,
  .page-body .container-xl,
  section > .container-xl,
  footer > .container-xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Mobile navbar menu */
  .navbar .container-xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .navbar .navbar-collapse {
    background: #fff;
    margin: 0 -1.25rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .landing-hero {
    padding: 3rem 0 2.5rem;
    text-align: center;
  }

  .landing-hero .d-flex {
    justify-content: center;
  }

  .landing-mock-dashboard {
    transform: none;
    margin-top: 1.5rem;
  }

  .landing-mock-dashboard:hover {
    transform: none;
  }

  .display-5 {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .landing-hero {
    padding: 2rem 0 2rem;
  }

  main > section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}
