/* === BASE STYLES === */:root {
  --primary: #D4145A;
  --primary-dark: #A01047;
  --secondary: #1A1A2E;
  --accent: #FFC107;
  --accent-light: #FFD54F;
  --bg-dark: #0F0F1E;
  --bg-light: #F8F9FA;
  --text-light: #FFFFFF;
  --text-dark: #2C2C3E;
  --border: rgba(255, 193, 7, 0.2);
  --shadow-sm: 0 2px 8px rgba(212, 20, 90, 0.15);
  --shadow-md: 0 8px 24px rgba(212, 20, 90, 0.25);
  --shadow-lg: 0 16px 48px rgba(212, 20, 90, 0.35);
  --gradient-primary: linear-gradient(135deg, #D4145A 0%, #A01047 100%);
  --gradient-accent: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
  --gradient-dark: linear-gradient(180deg, #1A1A2E 0%, #0F0F1E 100%);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-size: 1.0625rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary, .cta-button {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover, .cta-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg);
  color: var(--text-light);
}

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

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

.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  left: 0;
}

.content-image {
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.content-image.portrait img {
  max-height: 350px;
  max-width: 300px;
}

.content-image.wide img {
  max-height: 300px;
  max-width: 100%;
}

.content-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  opacity: 0.75;
  font-style: italic;
}

.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

table th {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}

table tr:hover {
  background: rgba(212, 20, 90, 0.05);
}

section {
  padding: 5rem 0;
  position: relative;
}

section.container {
  opacity: 1 !important;
}

.accordion-body {
  padding: 0 1.5rem 0.3rem 1.5rem !important;
}

.main-nav {
  padding-left: 0;
  margin-bottom: 0;
}

/* === LAYOUT STYLES === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(212, 20, 90, 0.15);
  transition: all 0.3s ease;
}

.site-header .container {
  gap: 0.1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 2rem;
}

.logo img {
  max-height: 50px;
  height: auto;
  width: auto;
  transition: transform 0.3s ease;
}

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
}

.nav-list a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.header-content > .cta-button {
  flex-shrink: 0;
  padding: 12px 28px;
  font-size: 0.9375rem;
}

.site-footer {
  background: var(--gradient-dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 193, 7, 0.2);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .site-header .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .site-header .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-content > .cta-button {
    width: 100%;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .site-header .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .site-header .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-content > .cta-button {
    width: 100%;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 4rem 0;
  }

  .hero-section::before,
  .hero-section::after {
    width: 250px;
    height: 250px;
  }

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

  .toc-list {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .strategy-card {
    padding: 1.75rem;
  }

  .accordion-header {
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    padding-right: 3.5rem;
  }

  .accordion-header::after {
    right: 1.5rem;
    font-size: 1.5rem;
  }

  .accordion-body {
    padding: 0 1.5rem 0.3rem 1.5rem !important;
  }

  .accordion-item.active .accordion-body {
    padding: 0 1.5rem 0.3rem 1.5rem !important;
  }

  .cta-section {
    padding: 3.5rem 0;
  }

  .cta-section::before {
    width: 350px;
    height: 350px;
  }

  .cta-section p {
    font-size: 1.0625rem;
  }

  .mobile-app::before {
    width: 200px;
    height: 200px;
  }
}