/* ==========================================================================
   Packlis.tr Marketing Site — Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --pl-primary: #8540F5;
  --pl-primary-light: #9C8EF2;
  --pl-primary-dark: #6A2ED4;
  --pl-gradient: linear-gradient(135deg, #8540F5 0%, #9C8EF2 50%, #D65DB1 100%);
  --pl-gradient-dark: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 50%, #1a0a3e 100%);
  --pl-gradient-hero: linear-gradient(160deg, #2d1b69 0%, #8540F5 40%, #9C8EF2 70%, #D65DB1 100%);
  --pl-navy: #0f0a2a;
  --pl-navy-light: #1a1145;
  --pl-section-py: clamp(3rem, 8vw, 6rem);
  --pl-section-py-lg: clamp(4rem, 10vw, 8rem);
  --pl-text-muted: #6c757d;
  --pl-border-light: rgba(133, 64, 245, 0.15);
  --pl-card-shadow: 0 2px 16px rgba(133, 64, 245, 0.08);
  --pl-card-shadow-hover: 0 8px 32px rgba(133, 64, 245, 0.18);
}

/* --------------------------------------------------------------------------
   2. Base Overrides
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #1a1a2e;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--pl-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pl-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

h4, .h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--pl-text-muted);
}

.text-gradient {
  background: var(--pl-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pl-primary);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pl-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary-custom:hover {
  background: var(--pl-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(133, 64, 245, 0.35);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.7rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--pl-primary);
  border: 2px solid var(--pl-border-light);
  padding: 0.7rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-dark:hover {
  border-color: var(--pl-primary);
  color: var(--pl-primary);
  background: rgba(133, 64, 245, 0.04);
}

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.navbar-marketing {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1rem 0;
  transition: all 0.35s ease;
  background: transparent;
}

.navbar-marketing .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-marketing .nav-link:hover,
.navbar-marketing .nav-link.active {
  color: #fff;
}

.navbar-marketing .navbar-brand {
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-marketing .btn-nav-signin {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-marketing .btn-nav-signin:hover {
  color: #fff;
}

.navbar-marketing .btn-nav-cta {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 1.25rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
}

.navbar-marketing .btn-nav-cta:hover {
  background: #fff;
  color: var(--pl-primary);
  border-color: #fff;
}

/* Scrolled state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  padding: 0.6rem 0;
}

.navbar-scrolled .nav-link {
  color: #444;
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active {
  color: var(--pl-primary);
}

.navbar-scrolled .navbar-brand {
  color: #1a1a2e;
}

.navbar-scrolled .navbar-brand svg:first-child {
  fill: var(--pl-primary-light);
}

.navbar-scrolled .navbar-brand svg:last-child {
  fill: #1a1a2e;
}

.navbar-scrolled .btn-nav-signin {
  color: #444;
}

.navbar-scrolled .btn-nav-signin:hover {
  color: var(--pl-primary);
}

.navbar-scrolled .btn-nav-cta {
  background: var(--pl-primary);
  color: #fff;
  border-color: var(--pl-primary);
}

.navbar-scrolled .btn-nav-cta:hover {
  background: var(--pl-primary-dark);
  border-color: var(--pl-primary-dark);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon-custom {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.navbar-toggler-icon-custom span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.navbar-scrolled .navbar-toggler-icon-custom span {
  background: #1a1a2e;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--pl-gradient-hero);
  padding-top: 6rem;
  padding-bottom: var(--pl-section-py);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(156, 142, 242, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(214, 93, 177, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
}

.hero-mockup {
  position: relative;
  z-index: 2;
}

.mockup-window {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1rem;
  max-width: 480px;
  margin-left: auto;
}

.mockup-titlebar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.mockup-line:nth-child(1) { width: 80%; }
.mockup-line:nth-child(2) { width: 60%; }
.mockup-line:nth-child(3) { width: 90%; }
.mockup-line:nth-child(4) { width: 45%; }

.mockup-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mockup-card {
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   7. Section Utilities
   -------------------------------------------------------------------------- */
.section {
  padding: var(--pl-section-py) 0;
}

.section-lg {
  padding: var(--pl-section-py-lg) 0;
}

.section-light {
  background: #f8f6ff;
}

.section-purple-light {
  background: linear-gradient(180deg, #f3eeff 0%, #f8f6ff 100%);
}

.section-dark {
  background: var(--pl-gradient-dark);
  color: #fff;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .section-label {
  color: var(--pl-primary-light);
}

.section-heading {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .lead {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   8. Feature Cards
   -------------------------------------------------------------------------- */
.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pl-card-shadow-hover);
  border-color: var(--pl-border-light);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(133, 64, 245, 0.1) 0%, rgba(156, 142, 242, 0.1) 100%);
  border-radius: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: var(--pl-primary);
}

.feature-card h4 {
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   9. Feature Spotlight
   -------------------------------------------------------------------------- */
.spotlight-row {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.spotlight-row.reverse {
  flex-direction: row-reverse;
}

.spotlight-visual {
  flex: 1;
  min-width: 0;
}

.spotlight-text {
  flex: 1;
  min-width: 0;
}

.spotlight-visual-box {
  background: linear-gradient(135deg, rgba(133, 64, 245, 0.06) 0%, rgba(156, 142, 242, 0.12) 100%);
  border: 1px solid var(--pl-border-light);
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.spotlight-visual-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(133, 64, 245, 0.08) 100%);
  pointer-events: none;
}

.spotlight-visual-box .bi {
  font-size: 4rem;
  color: var(--pl-primary);
  opacity: 0.6;
}

.spotlight-text h3 {
  margin-bottom: 1rem;
}

.spotlight-text p {
  color: var(--pl-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 767.98px) {
  .spotlight-row,
  .spotlight-row.reverse {
    flex-direction: column;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   10. Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-card {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--pl-card-shadow-hover);
}

.pricing-card.featured {
  border-color: var(--pl-primary);
  transform: scale(1.04);
  box-shadow: var(--pl-card-shadow);
}

.pricing-card.featured:hover {
  transform: scale(1.06);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pl-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1.25rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pl-text-muted);
  margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card .plan-period {
  font-size: 0.9rem;
  color: var(--pl-text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card .plan-description {
  font-size: 0.95rem;
  color: var(--pl-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-card .btn-primary-custom {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   11. Checklist
   -------------------------------------------------------------------------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: #333;
}

.check-list .bi-check-circle-fill {
  color: var(--pl-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   12. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #eee;
  background: transparent;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1a1a2e;
  background: transparent;
  box-shadow: none;
  padding: 1.25rem 0;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--pl-primary);
  background: transparent;
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-body {
  padding: 0 0 1.25rem 0;
  color: var(--pl-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer-marketing {
  background: var(--pl-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-marketing a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-marketing a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand svg:first-child {
  fill: var(--pl-primary-light);
}

.footer-brand svg:last-child {
  fill: #fff;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-links a {
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   14. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   15. Page-specific: About
   -------------------------------------------------------------------------- */
.about-hero {
  background: var(--pl-gradient-hero);
  color: #fff;
  padding-top: 8rem;
  padding-bottom: var(--pl-section-py);
}

.about-hero .lead {
  color: rgba(255, 255, 255, 0.8);
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-card .bi {
  font-size: 2rem;
  color: var(--pl-primary);
  margin-bottom: 1rem;
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--pl-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero-mockup {
    margin-top: 2.5rem;
  }

  .mockup-window {
    max-width: 100%;
    margin-left: 0;
  }

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

  .pricing-card.featured:hover {
    transform: none;
    box-shadow: var(--pl-card-shadow-hover);
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  }

  .navbar-collapse .nav-link {
    color: #333 !important;
    padding: 0.6rem 1rem;
  }

  .navbar-collapse .nav-link:hover {
    color: var(--pl-primary) !important;
  }

  .navbar-collapse .btn-nav-signin {
    color: #333 !important;
  }

  .navbar-collapse .btn-nav-cta {
    background: var(--pl-primary);
    color: #fff;
    border-color: var(--pl-primary);
    display: block;
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .section-heading {
    margin-bottom: 2rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }
}
