/* ================= GLOBAL ================= */
:root {
  --primary: #4f46e5;
  --secondary: #2563eb;
  --dark: #0f172a;
  --light-bg: #f7f9ff;
  --card-bg: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.section-title h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
}

.section-title p {
  color: var(--text-muted);
  margin-top: 6px;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(35px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* ================= BUTTONS ================= */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.45);
}

.btn-outline-main {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-main:hover {
  background: var(--primary);
  color: #fff;
}

/* ================= HEADER ================= */
.main-header {
  background: #ffffff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

/* Logo */
.logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.04);
}

/* ================= HEADER CTA BUTTON ================= */
.header-cta-btn {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
  text-decoration: none;
  white-space: nowrap;
}

/* Hover – premium SaaS feel */
.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35),
    0 0 0 3px rgba(37, 99, 235, 0.15);
  color: #ffffff;
}

/* Active */
.header-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.3);
}

/* Focus (keyboard + accessibility) */
.header-cta-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35),
    0 6px 18px rgba(37, 99, 235, 0.28);
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {
  .logo {
    height: 54px;
  }

  .header-cta-btn {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* ================= HERO ================= */
.hero-section {
  padding: 120px 0 90px;
}

.hero-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-section h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-section h1 span {
  color: var(--primary);
}

.hero-desc {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  margin-top: 26px;
}

/* Hero Image */
.hero-img {
  width: 100%;
  max-width: 520px; /* increased */
  animation: float 4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-section {
    padding: 100px 0 70px;
  }

  .hero-section h1 {
    font-size: 2.6rem;
  }

  .hero-img {
    max-width: 420px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================= FEATURES ================= */
.features-section {
  padding: 100px 0;
  background: #ffffff;
}

/* Section title enhancement */
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.features-section .section-title h2 {
  color: var(--dark);
}

.features-section .section-title p {
  max-width: 520px;
  margin: 10px auto 0;
}

/* Feature item */
.feature-item {
  padding: 26px 20px;
  text-align: left;
  transition: all 0.3s ease;
}

.feature-item i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 10px;
  display: inline-block;
}

.feature-item h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Hover (subtle, no box) */
.feature-item:hover i {
  transform: translateY(-3px);
  transition: 0.3s ease;
}

/* ================= TEMPLATES SHOWCASE ================= */
.templates-section {
  padding: 110px 0;
  background: #eef2ff;
}

/* Card */
.template-showcase {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.template-showcase img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* Hover zoom */
.template-showcase:hover img {
  transform: scale(1.05);
}

/* Overlay */
.template-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.2)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  opacity: 0;
  transition: all 0.4s ease;
}

.template-showcase:hover .template-overlay {
  opacity: 1;
}

/* Title */
.template-overlay h5 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Button */
.template-overlay a {
  align-self: flex-start;
  background: #ffffff;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.template-overlay a:hover {
  background: #f4f6ff;
  transform: translateY(-2px);
}

/* Mobile – always show overlay */
@media (max-width: 768px) {
  .template-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(15, 23, 42, 0.75),
      rgba(15, 23, 42, 0.3)
    );
  }
}

/* ================= CTA SECTION ================= */
.cta-section {
  padding: 110px 0;
  background: radial-gradient(
      circle at top right,
      rgba(79, 70, 229, 0.14),
      transparent 45%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(37, 99, 235, 0.14),
      transparent 45%
    ),
    #f7f9ff;
}

/* Heading */
.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
}

/* Subtitle */
.cta-section p {
  margin-top: 14px;
  font-size: 1.1rem;
  color: #475569;
}

/* ================= CTA BUTTON ================= */
.cta-btn {
  margin-top: 34px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #ffffff;
  padding: 15px 42px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.35px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  transition: all 0.3s ease;
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.45);
  text-decoration: none;
}

/* Hover */
.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.55);
  color: #ffffff;
}

/* Active */
.cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .cta-section {
    padding: 90px 0;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .cta-btn {
    padding: 14px 34px;
    font-size: 14px;
  }
}

/* ================= PRICING SECTION ================= */
.pricing-section {
  padding: 110px 0;
  background: #ffffff;
}

/* Media wrapper (image / video) */
.pricing-media {
  display: flex;
  justify-content: center;
}

/* Image (kept for fallback / reuse) */
.pricing-img {
  width: 100%;
  max-width: 520px;
}

/* ================= VIDEO (HEIGHT LOCKED) ================= */
.pricing-video {
  width: 500px;
  height: 600px; /* 🔒 FIXED HEIGHT – no jump on play */
  max-width: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  background: #000;
  display: block;
  overflow: hidden;
}

/* Prevent browser resize when controls appear */
.pricing-video::-webkit-media-controls {
  width: 100%;
}

/* Feature list */
.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features i {
  color: #22c55e; /* green tick */
  font-size: 18px;
}

/* Price */
.price-box {
  margin: 25px 0 18px;
}

.price-box span {
  font-size: 14px;
  color: var(--text-muted);
}

.price-box h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

/* Buy Button */
.pricing-btn {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #ffffff;
  padding: 14px 38px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
}

.pricing-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.45),
    0 0 0 3px rgba(79, 70, 229, 0.15);
  color: #ffffff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .price-box h3 {
    font-size: 2.5rem;
  }

  .pricing-img {
    max-width: 100%;
  }

  .pricing-video {
    width: 100%;
    height: 380px; /* mobile locked height */
  }
}

/* ================= FOOTER ================= */
.main-footer {
  background: var(--dark);
  padding: 26px 0;
  color: #9ca3af;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 80px 0 60px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .template-card {
    padding: 30px 22px;
  }
}

/* =====================
   FADE ANIMATIONS (GLOBAL)
   ===================== */

/* Base hidden state */
.fade-in-up,
.fade-in-right,
.fade-in-left,
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform;
}

/* Direction variants */
.fade-in-right {
  transform: translateX(40px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in {
  transform: none;
}

/* When visible */
.fade-show {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay helpers */
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in-right,
  .fade-in-left,
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
