/* ===================================
   TwendlePatch - Gradient Modern Design
   CSS Reset & Base Styles
   =================================== */

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

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #2D3E50;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #2D3E50;
}

h1 {
  font-size: 48px;
  background: linear-gradient(135deg, #2D3E50 0%, #3498DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 32px;
  color: #2D3E50;
}

h3 {
  font-size: 24px;
  color: #2D3E50;
}

h4 {
  font-size: 18px;
  color: #2D3E50;
}

p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #4a5568;
}

strong {
  font-weight: 700;
  color: #2D3E50;
}

/* ===================================
   Container & Layout
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===================================
   Header & Navigation
   =================================== */

header {
  background: linear-gradient(135deg, rgba(45, 62, 80, 0.95) 0%, rgba(52, 152, 219, 0.95) 100%);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

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

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: #ECF0F1;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ECF0F1 0%, #3498DB 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.main-nav a:hover::after {
  width: 80%;
}

/* ===================================
   Mobile Menu
   =================================== */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: linear-gradient(135deg, #2D3E50 0%, #3498DB 100%);
  color: #ECF0F1;
  border: none;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #2D3E50 0%, #1a252f 100%);
  z-index: 1999;
  padding: 80px 30px 30px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #ECF0F1;
  border: none;
  font-size: 32px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  color: #ECF0F1;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.mobile-nav a:hover {
  background: rgba(52, 152, 219, 0.2);
  border-left-color: #3498DB;
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu {
    display: block;
  }
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  background: linear-gradient(135deg, rgba(45, 62, 80, 0.95) 0%, rgba(52, 152, 219, 0.9) 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  border-radius: 0 0 30px 30px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: #ECF0F1;
  margin-bottom: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  background: none;
  -webkit-text-fill-color: #ECF0F1;
}

.hero p {
  color: #ECF0F1;
  font-size: 18px;
  margin-bottom: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-subheadline {
  font-size: 20px;
  color: #ECF0F1;
  margin-bottom: 32px;
  font-weight: 600;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-list li {
  color: #ECF0F1;
  font-size: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border-left: 4px solid #3498DB;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.benefits-list li:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #3498DB 0%, #2D3E50 100%);
  color: #ECF0F1;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
  background: linear-gradient(135deg, #2D3E50 0%, #3498DB 100%);
}

.btn-secondary {
  background: transparent;
  color: #ECF0F1;
  border: 2px solid #ECF0F1;
}

.btn-secondary:hover {
  background: #ECF0F1;
  color: #2D3E50;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(236, 240, 241, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===================================
   Cards & Grid Layouts
   =================================== */

.services-grid,
.advantages-grid,
.testimonials-grid,
.industries-grid,
.models-grid,
.pricing-grid,
.values-grid,
.stats-grid,
.categories-grid,
.articles-grid,
.cases-grid,
.practices-grid,
.suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 40px;
}

.service-card,
.advantage-item,
.testimonial-card,
.industry-card,
.model-card,
.pricing-card,
.value-card,
.stat-card,
.category-card,
.article-card,
.case-card,
.practice-card,
.suggestion-card {
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 240, 241, 0.95) 100%);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.service-card::before,
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3498DB 0%, #2D3E50 100%);
}

.service-card:hover,
.advantage-item:hover,
.industry-card:hover,
.model-card:hover,
.pricing-card:hover,
.value-card:hover,
.category-card:hover,
.article-card:hover,
.case-card:hover,
.practice-card:hover,
.suggestion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(52, 152, 219, 0.2);
}

.service-card h3,
.advantage-item h3,
.industry-card h3,
.model-card h3,
.pricing-card h3,
.value-card h3,
.category-card h3,
.article-card h3,
.case-card h3,
.practice-card h3,
.suggestion-card h3 {
  color: #2D3E50;
  margin-bottom: 16px;
}

.service-card p,
.advantage-item p,
.industry-card p,
.model-card p,
.value-card p,
.category-card p,
.article-card p,
.case-card p {
  color: #4a5568;
  line-height: 1.6;
}

.price {
  display: inline-block;
  background: linear-gradient(135deg, #3498DB 0%, #2D3E50 100%);
  color: #ECF0F1;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 16px;
  font-size: 18px;
}

/* ===================================
   Testimonials
   =================================== */

.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 4px solid #3498DB;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 16px;
  color: #2D3E50;
  line-height: 1.8;
}

.testimonial-card strong {
  color: #2D3E50;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-card span {
  color: #4a5568;
  font-size: 14px;
}

/* ===================================
   Statistics
   =================================== */

.statistics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
}

.stat-item {
  flex: 1 1 200px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(236, 240, 241, 0.9) 100%);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(52, 152, 219, 0.2);
}

.stat-item strong {
  display: block;
  font-size: 48px;
  background: linear-gradient(135deg, #2D3E50 0%, #3498DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.stat-item span {
  display: block;
  color: #4a5568;
  font-size: 16px;
  font-weight: 600;
}

/* ===================================
   Value Proposition
   =================================== */

.value-proposition {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 240, 241, 0.95) 100%);
  padding: 60px 20px;
  border-radius: 20px;
  margin-bottom: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.value-proposition h2 {
  text-align: center;
  margin-bottom: 16px;
}

.statement {
  text-align: center;
  font-size: 20px;
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto 40px;
  font-weight: 600;
}

/* ===================================
   Features Lists
   =================================== */

.features-list,
.results-list,
.included-list,
.principles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.features-list li,
.results-list li,
.included-list li,
.principles-list li {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(236, 240, 241, 0.5) 100%);
  border-radius: 10px;
  border-left: 4px solid #3498DB;
  color: #2D3E50;
  font-size: 16px;
  transition: all 0.3s ease;
}

.features-list li:hover,
.results-list li:hover,
.included-list li:hover,
.principles-list li:hover {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(236, 240, 241, 0.6) 100%);
  transform: translateX(8px);
}

/* ===================================
   Pricing Tables
   =================================== */

.pricing-tables {
  margin-bottom: 60px;
}

.pricing-tables h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.pricing-card .price {
  font-size: 28px;
  margin: 16px 0;
  display: block;
  text-align: center;
}

.pricing-card ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.pricing-card li {
  padding: 12px 16px;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 8px;
  color: #2D3E50;
  font-size: 14px;
}

/* ===================================
   Platforms Detailed
   =================================== */

.platforms-detailed {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 240, 241, 0.95) 100%);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.platforms-detailed h2 {
  margin-bottom: 20px;
}

.platforms-detailed p {
  margin-bottom: 20px;
}

/* ===================================
   Legal Content
   =================================== */

.legal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 240, 241, 0.95) 100%);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: #2D3E50;
}

.legal-content p {
  margin-bottom: 16px;
  color: #4a5568;
  line-height: 1.8;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  color: #4a5568;
  list-style: disc;
  line-height: 1.6;
}

.legal-content a {
  color: #3498DB;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #2D3E50;
}

/* ===================================
   Footer
   =================================== */

footer {
  background: linear-gradient(135deg, #2D3E50 0%, #1a252f 100%);
  color: #ECF0F1;
  padding: 60px 20px 20px;
  margin-top: 80px;
  border-radius: 30px 30px 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-column h4 {
  color: #ECF0F1;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

.footer-column p {
  color: rgba(236, 240, 241, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: rgba(236, 240, 241, 0.8);
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer-nav a:hover {
  color: #3498DB;
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(236, 240, 241, 0.2);
  text-align: center;
}

.footer-bottom p {
  color: rgba(236, 240, 241, 0.6);
  font-size: 14px;
}

/* ===================================
   Cookie Consent Banner
   =================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(45, 62, 80, 0.98) 0%, rgba(26, 37, 47, 0.98) 100%);
  backdrop-filter: blur(10px);
  padding: 24px;
  z-index: 1998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-radius: 20px 20px 0 0;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  flex: 1 1 400px;
  color: #ECF0F1;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner button {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.cookie-accept {
  background: linear-gradient(135deg, #3498DB 0%, #2D3E50 100%);
  color: #ECF0F1;
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.cookie-reject {
  background: transparent;
  color: #ECF0F1;
  border: 2px solid #ECF0F1;
}

.cookie-reject:hover {
  background: rgba(236, 240, 241, 0.1);
}

.cookie-settings {
  background: transparent;
  color: #3498DB;
  text-decoration: underline;
}

.cookie-settings:hover {
  color: #ECF0F1;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal h3 {
  color: #2D3E50;
  margin-bottom: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 12px;
  border-left: 4px solid #3498DB;
}

.cookie-category h4 {
  color: #2D3E50;
  margin-bottom: 8px;
}

.cookie-category p {
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 12px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .service-card,
  .advantage-item,
  .testimonial-card,
  .industry-card,
  .model-card,
  .pricing-card,
  .value-card,
  .stat-card,
  .category-card,
  .article-card,
  .case-card,
  .practice-card,
  .suggestion-card {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-column {
    flex: 1 1 100%;
  }
  
  .cookie-banner-content {
    flex-direction: column;
  }
  
  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-banner button {
    width: 100%;
  }
  
  .statistics {
    flex-direction: column;
  }
  
  .stat-item {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }
  
  .hero {
    padding: 40px 16px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 32px 16px;
  }
  
  .service-card,
  .advantage-item,
  .testimonial-card,
  .pricing-card,
  .value-card,
  .category-card,
  .article-card {
    padding: 24px;
  }
}

/* ===================================
   Animations & Transitions
   =================================== */

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

.service-card,
.advantage-item,
.testimonial-card,
.pricing-card {
  animation: fadeIn 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   Utility Classes
   =================================== */

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

.mt-32 {
  margin-top: 32px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-banner,
  .cookie-modal {
    display: none;
  }
  
  header {
    position: static;
  }
}