:root {
  --primary-color: #C81E48;
  --secondary-color: #923D20;
  --accent-color: #F15BCB;
  --bg-color: #FFF9F9;
  --bg-alt: #FDF5F5;
  --text-color: #2D1F1F;
  --text-muted: #6B5555;
  --section-dark: #2D1F1F;
  --section-accent: #FFF0F0;
  --primary-rgb: 200, 30, 72;
  --accent-rgb: 241, 91, 203;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

p {
  font-size: 1rem;
  margin-bottom: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-color);
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  background: white;
  padding: 16px 32px;
  border-bottom: 1px solid #e5e5e5;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-alt);
  border-right: 1px solid #e5e5e5;
  padding: 32px 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 48px;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-link:hover {
  background: var(--section-accent);
  color: var(--primary-color);
  transform: translateX(4px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

main {
  margin-left: 280px;
  padding-top: 70px;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.8) 0%, rgba(var(--primary-rgb), 0.6) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 48px 24px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s;
  animation-fill-mode: backwards;
}

.header-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  padding: 48px 24px;
}

.content-section {
  padding: 64px 24px;
}

.content-section:nth-child(even) {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--section-dark);
  color: white;
  padding: 64px 24px;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-accent {
  background-color: var(--section-accent);
  padding: 64px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.grid-2 > * {
  flex: 1 1 calc(50% - 12px);
  min-width: 280px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.feature {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.feature:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  color: white;
  font-size: 28px;
}

.testimonial-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 48px;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.pricing-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--accent-color);
  color: white;
  padding: 4px 40px;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 600;
}

.two-col-layout {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.two-col-layout > * {
  flex: 1;
}

.two-col-layout.reverse {
  flex-direction: row-reverse;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1.125rem;
}

footer {
  background: var(--section-dark);
  color: white;
  padding: 64px 24px 32px;
  margin-left: 280px;
}

.footer-mega {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-copyright {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

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

.section-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: -1px 0;
  line-height: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.section-divider.flip {
  transform: scaleY(-1);
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="fade-in"].visible {
  opacity: 1;
}

[data-animate="slide-left"] {
  transform: translateX(-30px);
}

[data-animate="slide-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(30px);
}

[data-animate="slide-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-stagger] > *.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.section-divider-accent {
  display: block;
  width: 100%;
  height: auto;
  margin: -1px 0;
  line-height: 0;
  color: var(--section-accent);
}

.section-divider-accent svg {
  display: block;
  width: 100%;
  height: 60px;
}

.section-divider-light {
  display: block;
  width: 100%;
  height: auto;
  margin: -1px 0;
  line-height: 0;
  color: var(--bg-color);
}

.section-divider-light svg {
  display: block;
  width: 100%;
  height: 60px;
}

.btn-outline-light {
  background: transparent;
  border: 2px solid white;
  color: white;
  margin-left: 16px;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
}

.cta-subtitle {
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    left: 0;
    padding: 16px 60px 16px 24px;
  }

  .nav-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  body.menu-open .nav-sidebar {
    transform: translateX(0);
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 1;
    transition: opacity 0.3s;
  }

  .mobile-menu-toggle {
    display: block;
  }

  main {
    margin-left: 0;
  }

  footer {
    margin-left: 0;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .two-col-layout {
    flex-direction: column;
    gap: 32px;
  }

  .two-col-layout.reverse {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .content-section {
    padding: 48px 16px;
  }

  .section-dark,
  .section-accent {
    padding: 48px 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 12px 32px;
    font-size: 1rem;
  }

  .card,
  .feature,
  .testimonial-card,
  .pricing-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
