:root {
  --bg-dark: #0b0d10;
  --card-dark: #11151a;
  --muted-dark: #99a1ab;
  --text-dark: #e9eef5;
  --bg-light: #f7f9fc;
  --card-light: #ffffff;
  --muted-light: #6b7280;
  --text-light: #0b1220;
  --brand: #2E7D32;
  --brand-light: #4CAF50;
  --brand2: #34d399;
  --line-dark: #1b2026;
  --line-light: #e5e7eb;
  --gradient: linear-gradient(135deg, #2E7D32, #34d399);
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --card: var(--card-dark);
  --muted: var(--muted-dark);
  --text: var(--text-dark);
  --line: var(--line-dark);
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --card: var(--card-light);
  --muted: var(--muted-light);
  --text: var(--text-light);
  --line: var(--line-light);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* NAVIGATION */
nav {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  padding: 16px 0;
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  color: var(--text);
}

.logo-mascot {
  width: 48px;
  height: 48px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.nav-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--text);
}

.theme-toggle {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

.theme-toggle:hover {
  border-color: var(--brand);
}

.mobile-menu-btn {
  display: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  color: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  z-index: 999;
}

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

.mobile-menu-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.cta-button {
  background: var(--gradient);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4);
}

.secondary-button {
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--text);
}

.beta-cta-link {
  display: inline-block;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  transition: all 0.2s;
}

.beta-cta-link:hover {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  transform: translateY(-2px);
}

/* HERO */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 24px 50px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 16px 40px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(46,125,50,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

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

.hero p {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  margin-bottom: 40px;
}

/* Hero mascot and content layout */
.hero-content > div:first-child {
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(32px, 5vw, 48px) !important;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: clamp(16px, 2.2vw, 20px);
    margin-bottom: 28px;
  }

  .hero-content > div:first-child {
    gap: 20px !important;
    margin-bottom: 24px;
  }

  .hero-content > div:first-child img {
    width: 140px !important;
    height: 140px !important;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 28px !important;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .hero-content > div:first-child {
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 20px;
  }

  .hero-content > div:first-child img {
    width: 120px !important;
    height: 120px !important;
  }

  .hero-content > div:first-child > div:last-child {
    min-width: 100% !important;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctas .cta-button {
  font-size: 18px;
  padding: 16px 32px;
}

.hero-ctas-secondary {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.coming-soon-btn {
  min-width: 200px;
  flex: 1 1 auto;
  max-width: 280px;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.2s;
}

.coming-soon-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.btn-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btn-main-text {
  font-size: 16px;
  font-weight: 700;
}

.btn-coming-soon {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

.platform-icon {
  flex-shrink: 0;
}

.ios-icon {
  fill: #000000;
}

[data-theme="dark"] .ios-icon {
  fill: #ffffff;
}

.android-icon {
  fill: #3DDC84;
}

/* Responsive: Tablets */
@media (max-width: 768px) {
  .hero-ctas .cta-button {
    font-size: 16px;
    padding: 14px 24px;
    white-space: normal;
    line-height: 1.3;
  }

  .hero-ctas-secondary {
    gap: 12px;
  }

  .coming-soon-btn {
    min-width: 180px;
    padding: 12px 16px;
  }

  .btn-main-text {
    font-size: 15px;
  }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .hero-ctas .cta-button {
    width: 100%;
    font-size: 15px;
    padding: 14px 20px;
    justify-content: center;
    white-space: normal;
    line-height: 1.4;
  }

  .hero-ctas-secondary {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .coming-soon-btn {
    max-width: 100%;
    width: 100%;
    padding: 12px 16px;
    white-space: normal;
  }

  .btn-main-text {
    font-size: 15px;
  }

  .btn-coming-soon {
    font-size: 11px;
  }

  .platform-icon {
    width: 28px;
    height: 28px;
  }
}

.social-proof {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.proof-number {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proof-label {
  color: var(--muted);
  font-size: 14px;
}

/* SECTIONS */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-badge {
  display: inline-block;
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: var(--brand-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-description {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.step p {
  color: var(--muted);
}

/* HOW IT WORKS VISUAL */
.how-it-works-visual {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.how-step:nth-child(even) {
  direction: rtl;
}

.how-step:nth-child(even) > * {
  direction: ltr;
}

.how-step-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(46, 125, 50, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-step-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.25);
}

.how-step-content {
  padding: 24px;
}

.how-step-number {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient);
  color: white;
  font-size: 28px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.how-step h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.how-step p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 768px) {
  .how-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-step:nth-child(even) {
    direction: ltr;
  }

  .how-step-number {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .how-step h3 {
    font-size: 22px;
  }

  .how-step p {
    font-size: 16px;
  }
}

/* COMPARISON TABLE */
.comparison {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow-x: auto;
  margin-top: 48px;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.comparison th {
  background: rgba(46, 125, 50, 0.1);
  font-weight: 700;
  font-size: 16px;
}

.comparison tr:last-child td {
  border-bottom: none;
}

.comparison td:not(:first-child) {
  text-align: center;
  font-size: 20px;
}

.check {
  color: var(--brand-light);
}

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

.price-good {
  color: var(--brand-light);
  font-weight: 700;
}

.price-bad {
  color: #f44336;
  font-weight: 700;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* CHALLENGES SECTION */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.challenge-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.challenge-icon {
  font-size: 48px;
}

.challenge-badge {
  background: rgba(46, 125, 50, 0.15);
  color: var(--brand-light);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.challenge-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.challenge-card p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.challenge-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.challenge-stat {
  flex: 1;
}

.challenge-stat-value {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.challenge-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--brand);
  background: rgba(46, 125, 50, 0.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 20px 0;
}

.pricing-features {
  text-align: left;
  margin: 32px 0;
  list-style: none;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  cursor: pointer;
}

.faq-question {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 16px;
  color: var(--muted);
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.3s;
  color: var(--brand-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* STATS */
.stats {
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-top: 48px;
}

.stat h3 {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat p {
  color: var(--muted);
}

/* TESTIMONIALS */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.testimonial-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.testimonial-stars {
  color: #FFA726;
}

.testimonial-text {
  color: var(--text);
  line-height: 1.6;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, rgba(46,125,50,0.95), rgba(52,211,153,0.85));
  border-radius: 24px;
  padding: 80px 32px;
  text-align: center;
  margin: 80px 0;
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

.cta-section .cta-button {
  background: white;
  color: var(--brand);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px;
  background: var(--card);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 32px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-column a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .pricing-grid,
  .challenges-grid {
    grid-template-columns: 1fr;
  }
  .comparison {
    font-size: 14px;
  }
  .comparison th,
  .comparison td {
    padding: 12px 8px;
  }
}

/* FOOTER CTA */
.footer-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 32px 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .footer-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 16px;
  }

  .footer-cta .coming-soon-btn {
    width: 100%;
    max-width: 100%;
  }
}

/* LEGAL PAGES STYLING */
.legal-header {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 32px 24px;
  background: rgba(46, 125, 50, 0.05);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.legal-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.legal-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.legal-footer {
  max-width: 800px;
  margin: 64px auto 0;
  padding: 48px 32px;
  text-align: center;
  background: rgba(46, 125, 50, 0.05);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.legal-footer p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.legal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Legal page content formatting */
article h2 {
  margin-top: 48px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

article h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

article h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

article p {
  margin-bottom: 16px;
}

article ul, article ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

article li {
  margin-bottom: 8px;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

article th {
  background: rgba(46, 125, 50, 0.1);
  padding: 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--line);
}

article td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

article tr:last-child td {
  border-bottom: none;
}

article blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 24px;
  margin: 24px 0;
  color: var(--muted);
  font-style: italic;
}

article code {
  background: var(--card);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  border: 1px solid var(--line);
}

article strong {
  color: var(--text);
  font-weight: 700;
}

article a {
  color: var(--brand-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

article a:hover {
  border-bottom-color: var(--brand-light);
}

/* ===============================================
   BLOG POST HERO SECTION - Magazine Style
   =============================================== */

.blog-hero {
  position: relative;
  width: 100%;
  margin-bottom: 48px;
  overflow: hidden;
}

.blog-hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(to bottom, var(--bg-dark), var(--card));
}

.blog-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-hero-image-wrapper:hover .blog-hero-image {
  transform: scale(1.03);
}

.blog-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(11, 13, 16, 0.9), transparent);
  pointer-events: none;
}

.image-credit {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-credit svg {
  flex-shrink: 0;
}

.image-credit a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.image-credit a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Blog Post Title Enhancement */
.blog-post-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Post Content Container */
.blog-post-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 18px;
  color: var(--text);
}

.blog-post-content > p:first-of-type {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

/* Enhanced Typography */
.blog-post-content h2 {
  font-size: 32px;
  margin-top: 64px;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  padding-left: 20px;
}

.blog-post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 32px;
  background: var(--gradient);
  border-radius: 2px;
}

.blog-post-content h3 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text);
}

.blog-post-content h4 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--brand-light);
}

/* BLOG POST IMAGES */
article img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
  display: block;
}

article p img {
  margin: 48px auto;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article p img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

/* Image Captions */
.blog-post-content figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
  padding: 0 24px;
}

/* Ensure images never overflow on mobile */
@media (max-width: 768px) {
  /* Blog Hero Mobile Optimization */
  .blog-hero-image-wrapper {
    height: 300px;
  }

  .blog-post-title {
    font-size: 28px;
    padding: 0 16px;
  }

  .blog-post-content {
    font-size: 16px;
    padding: 0 16px;
  }

  .blog-post-content > p:first-of-type {
    font-size: 18px;
  }

  .blog-post-content h2 {
    font-size: 24px;
    margin-top: 48px;
  }

  .blog-post-content h3 {
    font-size: 20px;
    margin-top: 32px;
  }

  .blog-post-content h4 {
    font-size: 18px;
  }

  .image-credit {
    bottom: 12px;
    right: 12px;
    left: 12px;
    font-size: 11px;
    padding: 6px 12px;
    justify-content: center;
  }

  article img,
  article p img {
    max-width: 100%;
    width: 100%;
    margin: 32px auto;
  }
}

/* Blog thumbnail in listing */
.blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  margin: 0;
}

/* SOCIAL SHARE BUTTONS */
.social-share-container {
  max-width: 900px;
  margin: 32px auto;
  padding: 24px;
  background: rgba(46, 125, 50, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.share-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: white;
}

.share-btn.twitter:hover {
  background: #000000;
  border-color: #000000;
  color: white;
}

.share-btn.linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: white;
}

.share-btn.email:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.share-btn.copy:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: white;
}

.share-btn.copied {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

@media (max-width: 768px) {
  .social-share-buttons {
    gap: 8px;
  }

  .share-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .share-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* RELATED ARTICLES */
.related-articles {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 48px 24px;
  background: rgba(46, 125, 50, 0.02);
  border-radius: 20px;
  border: 1px solid var(--line);
}

.related-articles h3 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.related-article-image {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin: 0;
}

.related-article-card:hover .related-article-image img {
  transform: scale(1.05);
}

.related-article-content {
  padding: 20px;
}

.related-article-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-light);
  background: rgba(46, 125, 50, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.related-article-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-article-content h4 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.related-article-content h4 a:hover {
  color: var(--brand-light);
}

.related-article-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .related-articles {
    padding: 32px 16px;
    margin-top: 48px;
  }

  .related-articles h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* LANGUAGE SWITCHER */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-switcher-btn:hover {
  border-color: var(--brand);
  background: rgba(46, 125, 50, 0.05);
}

.lang-flag {
  font-size: 18px;
  line-height: 1;
}

.lang-code {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-arrow {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.language-switcher-btn.active .lang-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.language-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--line);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: rgba(46, 125, 50, 0.08);
}

.language-option.active {
  background: rgba(46, 125, 50, 0.12);
  font-weight: 600;
}

.lang-name {
  font-size: 14px;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-container,
[dir="rtl"] .hero-content,
[dir="rtl"] .section-header {
  direction: rtl;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

/* RTL Table Support */
[dir="rtl"] article table,
[dir="rtl"] .comparison table {
  direction: rtl;
}

[dir="rtl"] article th,
[dir="rtl"] article td,
[dir="rtl"] .comparison th,
[dir="rtl"] .comparison td {
  text-align: right;
}

[dir="rtl"] article blockquote {
  border-left: none;
  border-right: 4px solid var(--brand);
  padding-left: 0;
  padding-right: 24px;
}

@media (max-width: 1024px) {
  /* Make language switcher compact in mobile menu */
  .mobile-menu .language-switcher {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu .language-switcher-btn {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    justify-content: flex-start;
    font-size: 15px;
    font-weight: 500;
  }

  .mobile-menu .language-switcher-btn:hover {
    background: transparent;
    border: none;
  }

  .mobile-menu .lang-code {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
  }

  .mobile-menu .lang-arrow {
    margin-left: auto;
    font-size: 12px;
  }

  .mobile-menu .language-menu {
    position: static;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(46, 125, 50, 0.05);
    margin: 0;
    padding: 8px 0;
    transform: none;
  }

  .mobile-menu .language-menu.active {
    transform: none;
  }

  .mobile-menu .language-option {
    padding: 10px 16px;
    border-bottom: none;
    font-size: 14px;
  }

  .mobile-menu .language-option:hover {
    background: rgba(46, 125, 50, 0.12);
  }
}

/* ===================================
   APP SHOWCASE - Modern 3D Layout
   =================================== */

.app-showcase {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 64px auto 0;
  padding: 0 24px;
  min-height: 650px;
  perspective: 1500px;
}

.showcase-container {
  position: relative;
  width: 100%;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Device Frame Base Styles */
.device-frame {
  position: absolute;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #000;
}

.device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.device-frame:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow:
    0 30px 80px rgba(46, 125, 50, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 100;
}

/* Device Labels */
.device-label {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 24px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.device-frame:hover .device-label {
  opacity: 1;
  bottom: -40px;
}

/* iPhone Styling */
.device-frame.iphone {
  width: 280px;
  height: 580px;
  border-radius: 42px;
  border: 8px solid #1a1a1a;
}

/* iPad Styling */
.device-frame.ipad {
  width: 680px;
  height: 510px;
  border-radius: 36px;
  border: 12px solid #1a1a1a;
  z-index: 1;
}

/* Position: Center iPhone */
.device-frame.iphone.center {
  z-index: 50;
  transform: translateY(0) scale(1.1);
  animation: float-center 6s ease-in-out infinite;
}

/* Position: Left iPhone */
.device-frame.iphone.left {
  left: 15%;
  transform: translateX(-50%) translateY(-20px) rotate(-8deg) scale(0.9);
  z-index: 40;
  animation: float-left 6s ease-in-out infinite;
}

/* Position: Right iPhone */
.device-frame.iphone.right {
  right: 15%;
  transform: translateX(50%) translateY(-20px) rotate(8deg) scale(0.9);
  z-index: 40;
  animation: float-right 6s ease-in-out infinite;
}

/* Position: Background iPad */
.device-frame.ipad.background {
  z-index: 1;
  opacity: 0.6;
  transform: translateY(40px) scale(0.75) rotateX(8deg);
  filter: blur(2px);
}

.device-frame.ipad.background:hover {
  opacity: 1;
  filter: blur(0);
  transform: translateY(30px) scale(0.8) rotateX(0deg);
}

/* Floating Animations */
@keyframes float-center {
  0%, 100% {
    transform: translateY(0) scale(1.1);
  }
  50% {
    transform: translateY(-15px) scale(1.1);
  }
}

@keyframes float-left {
  0%, 100% {
    transform: translateX(-50%) translateY(-20px) rotate(-8deg) scale(0.9);
  }
  50% {
    transform: translateX(-50%) translateY(-35px) rotate(-10deg) scale(0.9);
  }
}

@keyframes float-right {
  0%, 100% {
    transform: translateX(50%) translateY(-20px) rotate(8deg) scale(0.9);
  }
  50% {
    transform: translateX(50%) translateY(-35px) rotate(10deg) scale(0.9);
  }
}

/* Responsive Design */

/* Tablets and below (max-width: 1200px) */
@media (max-width: 1200px) {
  .app-showcase {
    min-height: 550px;
  }

  .showcase-container {
    height: 550px;
  }

  .device-frame.iphone {
    width: 240px;
    height: 500px;
  }

  .device-frame.ipad.background {
    width: 560px;
    height: 420px;
  }

  .device-frame.iphone.left {
    left: 10%;
  }

  .device-frame.iphone.right {
    right: 10%;
  }
}

/* Small tablets (max-width: 900px) */
@media (max-width: 900px) {
  .app-showcase {
    min-height: 480px;
  }

  .showcase-container {
    height: 480px;
  }

  .device-frame.iphone {
    width: 200px;
    height: 420px;
    border-width: 6px;
  }

  .device-frame.ipad.background {
    width: 480px;
    height: 360px;
  }

  .device-frame.iphone.center {
    transform: scale(1.05);
  }

  .device-frame.iphone.left,
  .device-frame.iphone.right {
    transform: scale(0.85);
  }

  .device-label {
    font-size: 12px;
    padding: 6px 16px;
  }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
  .app-showcase {
    min-height: 400px;
    perspective: 1000px;
    margin-top: 32px;
  }

  .showcase-container {
    height: 400px;
  }

  /* On mobile, show only center iPhone prominently */
  .device-frame.iphone.center {
    width: 220px;
    height: 460px;
    transform: translateY(0) scale(1);
    z-index: 100;
  }

  /* Hide side iPhones on very small screens */
  .device-frame.iphone.left,
  .device-frame.iphone.right {
    opacity: 0.3;
    transform: scale(0.5);
    pointer-events: none;
  }

  .device-frame.iphone.left {
    left: -5%;
    transform: translateX(-50%) scale(0.5) rotate(-15deg);
  }

  .device-frame.iphone.right {
    right: -5%;
    transform: translateX(50%) scale(0.5) rotate(15deg);
  }

  /* Hide iPad on mobile for cleaner look */
  .device-frame.ipad.background {
    display: none;
  }

  .device-label {
    font-size: 13px;
    padding: 8px 18px;
  }

  /* Disable animations on mobile for performance */
  .device-frame.iphone.center {
    animation: none;
  }

  .device-frame.iphone.left,
  .device-frame.iphone.right {
    animation: none;
  }
}

/* Extra small mobile (max-width: 400px) */
@media (max-width: 400px) {
  .app-showcase {
    min-height: 450px;
  }

  .showcase-container {
    height: 450px;
  }

  .device-frame.iphone.center {
    width: 220px;
    height: 460px;
  }

  /* Completely hide side iPhones */
  .device-frame.iphone.left,
  .device-frame.iphone.right {
    display: none;
  }
}

/* ===================================
   SCREENSHOT GRID - App in Action
   =================================== */

/* Featured Screenshot Section */
.screenshot-featured {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(52, 211, 153, 0.08));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.featured-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.featured-text {
  z-index: 1;
}

.featured-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-text h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.featured-text p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.featured-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.15);
}

.stat-icon {
  font-size: 32px;
  line-height: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.featured-image {
  position: relative;
  z-index: 1;
}

.featured-frame {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.frame-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Screenshot Grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-8px);
}

.screenshot-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: #000;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.screenshot-frame:hover {
  box-shadow:
    0 30px 70px rgba(46, 125, 50, 0.25),
    0 12px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(46, 125, 50, 0.3);
  transform: scale(1.03);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.screenshot-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
  opacity: 1;
}

.overlay-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.screenshot-caption {
  text-align: center;
  padding: 0 16px;
}

.screenshot-caption h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.screenshot-caption p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* Responsive adjustments */

@media (max-width: 1100px) {
  .featured-content {
    gap: 40px;
    padding: 40px;
  }

  .featured-text h3 {
    font-size: 28px;
  }

  .featured-text p {
    font-size: 16px;
  }

  .stat-value {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  .featured-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

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

  .featured-text p {
    max-width: 100%;
  }

  .featured-stats {
    justify-content: center;
  }

  .featured-frame {
    max-width: 320px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
  }

  .screenshot-frame {
    max-width: 300px;
  }

  .screenshot-caption h3 {
    font-size: 18px;
  }

  .screenshot-caption p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .screenshot-featured {
    margin-bottom: 60px;
  }

  .featured-content {
    padding: 24px;
    border-radius: 24px;
  }

  .featured-text h3 {
    font-size: 24px;
  }

  .featured-text p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .featured-stats {
    gap: 16px;
  }

  .stat-item {
    padding: 12px 16px;
    flex: 1 1 auto;
  }

  .stat-icon {
    font-size: 28px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 12px;
  }

  .featured-frame {
    max-width: 280px;
  }

  .frame-glow {
    animation: none;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 16px;
  }

  .screenshot-frame {
    max-width: 280px;
  }

  .screenshot-item:hover {
    transform: translateY(-4px);
  }

  .overlay-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
}

@media (max-width: 400px) {
  .screenshot-grid {
    gap: 40px;
  }

  .screenshot-frame {
    max-width: 260px;
    border-radius: 28px;
  }

  .screenshot-caption h3 {
    font-size: 17px;
  }

  .screenshot-caption p {
    font-size: 13px;
  }
}

/* ===================================
   SCREENSHOT FINALE - Final Step with Lifestyle
   =================================== */

.screenshot-finale {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.finale-item {
  display: flex;
  flex-direction: column;
}

/* Lifestyle Card - Ultra Modern Design */
.lifestyle-card {
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 107, 157, 0.05) 0%,
    rgba(255, 182, 193, 0.08) 50%,
    rgba(255, 107, 157, 0.05) 100%);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 10px 40px rgba(255, 107, 157, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.lifestyle-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 107, 157, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(196, 69, 105, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: rotate-gradient 25s linear infinite;
  opacity: 0.8;
}

.lifestyle-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 107, 157, 0.3),
    rgba(255, 182, 193, 0.1),
    rgba(255, 107, 157, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.lifestyle-card:hover {
  transform: translateY(-16px) scale(1.01);
  border-color: rgba(255, 107, 157, 0.4);
  box-shadow:
    0 40px 100px rgba(255, 107, 157, 0.25),
    0 20px 60px rgba(255, 107, 157, 0.15),
    0 5px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 80px rgba(255, 107, 157, 0.05);
}

.lifestyle-card:hover::after {
  opacity: 1;
}

.lifestyle-image {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #FFF5E6 0%, #FFE4CC 50%, #FFD6B8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lifestyle-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 182, 193, 0.12) 0%, transparent 40%);
  pointer-events: none;
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.lifestyle-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.6) 100%);
  pointer-events: none;
}

.lifestyle-image img {
  max-width: 320px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
}

.lifestyle-card:hover .lifestyle-image img {
  transform: scale(1.08) rotate(-2deg);
}

/* Floating decorative elements */
.float-decoration {
  position: absolute;
  font-size: 28px;
  opacity: 0.7;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.3));
  z-index: 10;
}

.float-1 {
  top: 10%;
  left: 8%;
  animation: float-sparkle-1 6s ease-in-out infinite;
}

.float-2 {
  top: 15%;
  right: 12%;
  animation: float-sparkle-2 7s ease-in-out infinite;
}

.float-3 {
  bottom: 20%;
  left: 10%;
  animation: float-sparkle-3 5.5s ease-in-out infinite;
}

.float-4 {
  bottom: 25%;
  right: 8%;
  animation: float-sparkle-4 6.5s ease-in-out infinite;
}

@keyframes float-sparkle-1 {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) rotate(180deg) scale(1.2);
    opacity: 0.9;
  }
}

@keyframes float-sparkle-2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-25px) rotate(-180deg) scale(1.3);
    opacity: 1;
  }
}

@keyframes float-sparkle-3 {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-15px) rotate(180deg) scale(1.15);
    opacity: 0.85;
  }
}

@keyframes float-sparkle-4 {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translateY(-22px) rotate(-180deg) scale(1.25);
    opacity: 0.95;
  }
}

.lifestyle-card:hover .float-decoration {
  animation-duration: 3s;
  opacity: 1;
}

.lifestyle-content {
  padding: 48px 40px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .lifestyle-content {
  background: linear-gradient(180deg,
    rgba(17, 21, 26, 0.9) 0%,
    rgba(17, 21, 26, 0.95) 100%);
}

.lifestyle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
  color: white;
  font-size: 12px;
  font-weight: 800;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  align-self: flex-start;
  box-shadow:
    0 8px 24px rgba(255, 107, 157, 0.4),
    0 2px 8px rgba(255, 107, 157, 0.3);
  position: relative;
  overflow: hidden;
}

.lifestyle-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.lifestyle-content h3 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
  background: linear-gradient(135deg,
    var(--text) 0%,
    #FF6B9D 50%,
    #C44569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: text-shimmer 5s linear infinite;
}

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

.lifestyle-content p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  flex: 1;
  font-weight: 400;
}

.lifestyle-benefits {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg,
    rgba(255, 107, 157, 0.08) 0%,
    rgba(255, 182, 193, 0.12) 100%);
  border: 1.5px solid rgba(255, 107, 157, 0.25);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.benefit-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 107, 157, 0.2),
    transparent);
  transition: left 0.5s ease;
}

.benefit-tag:hover::before {
  left: 100%;
}

.benefit-tag:hover {
  background: linear-gradient(135deg,
    rgba(255, 107, 157, 0.15) 0%,
    rgba(255, 182, 193, 0.2) 100%);
  border-color: rgba(255, 107, 157, 0.5);
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 12px 32px rgba(255, 107, 157, 0.25),
    0 4px 12px rgba(255, 107, 157, 0.15);
}

/* Responsive Design for Finale Section */

@media (max-width: 900px) {
  .screenshot-finale {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 60px;
  }

  .lifestyle-image {
    height: 340px;
    padding: 28px;
  }

  .lifestyle-image img {
    max-width: 280px;
  }

  .lifestyle-content {
    padding: 36px 32px;
  }

  .lifestyle-content h3 {
    font-size: 30px;
  }

  .lifestyle-content p {
    font-size: 17px;
  }

  .benefit-tag {
    font-size: 13px;
    padding: 10px 18px;
  }
}

@media (max-width: 640px) {
  .screenshot-finale {
    gap: 40px;
    margin-top: 48px;
    padding: 0 16px;
  }

  .lifestyle-card {
    border-radius: 24px;
  }

  .lifestyle-image {
    height: 300px;
    padding: 24px;
  }

  .lifestyle-image img {
    max-width: 260px;
  }

  .lifestyle-content {
    padding: 32px 28px;
  }

  .lifestyle-badge {
    padding: 9px 18px;
    font-size: 11px;
    margin-bottom: 16px;
  }

  .lifestyle-content h3 {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .lifestyle-content p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .lifestyle-benefits {
    gap: 10px;
  }

  .benefit-tag {
    font-size: 12px;
    padding: 10px 16px;
  }

  .lifestyle-card:hover {
    transform: translateY(-10px) scale(1.01);
  }

  /* Simplify floating decorations on mobile */
  .float-decoration {
    font-size: 24px;
  }

  .float-1, .float-3 {
    left: 6%;
  }

  .float-2, .float-4 {
    right: 6%;
  }
}

@media (max-width: 400px) {
  .screenshot-finale {
    gap: 32px;
  }

  .lifestyle-image {
    height: 260px;
    padding: 20px;
  }

  .lifestyle-image img {
    max-width: 220px;
  }

  .lifestyle-content {
    padding: 28px 24px;
  }

  .lifestyle-badge {
    padding: 8px 16px;
    font-size: 10px;
  }

  .lifestyle-content h3 {
    font-size: 23px;
  }

  .lifestyle-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .lifestyle-benefits {
    gap: 8px;
  }

  .benefit-tag {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 11px;
    padding: 9px 14px;
  }

  .lifestyle-card:hover {
    transform: translateY(-8px) scale(1.005);
  }

  /* Reduce decoration size on very small screens */
  .float-decoration {
    font-size: 20px;
  }

  .float-3, .float-4 {
    opacity: 0.4;
  }
}

/* ==========================================
   RTL (Right-to-Left) Support
   ========================================== */
[dir="rtl"] .hero::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .mobile-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .section-badge {
  margin-left: 0;
  margin-right: auto;
}

/* Ensure body and main containers don't cause horizontal scroll in RTL */
[dir="rtl"] body,
[dir="rtl"] main,
[dir="rtl"] .container {
  overflow-x: clip;
}

[dir="rtl"] .hero {
  overflow-x: clip;
}

[dir="rtl"] .hero-content {
  position: relative;
  overflow-x: clip;
}
