/* === Color Scheme & Custom Properties === */
:root {
  --color-bg-primary: #0f1923;
  --color-bg-secondary: #1a2733;
  --color-bg-card: #1e3044;
  --color-bg-table-header: #243b53;
  --color-bg-table-row-alt: #162636;
  --color-accent-primary: #5eccac;
  --color-accent-secondary: #7ad9be;
  --color-accent-gold: #ffd740;
  --color-text-primary: #e8edf2;
  --color-text-secondary: #a0b4c8;
  --color-text-muted: #6b8299;
  --color-border: #2a4058;
  --color-success: #5eccac;
  --color-warning: #ffa726;
  --color-error: #ef5350;
  --color-cta-bg: #5eccac;
  --color-cta-hover: #7ad9be;
  --color-cta-text: #0f1923;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --border-radius: 8px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 32px rgba(94,204,172,0.15);
  --transition-default: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: var(--transition-default);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.3;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent-primary);
  display: inline-block;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent-secondary);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
  color: var(--color-text-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-bg-table-header);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
}

tr:nth-child(even) {
  background-color: var(--color-bg-table-row-alt);
}

tr:nth-child(odd) {
  background-color: var(--color-bg-secondary);
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

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

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-default);
}

.header.scrolled {
  background-color: rgba(15, 25, 35, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: var(--transition-default);
  white-space: nowrap;
}

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

.nav-cta {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-default);
  text-align: center;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-cta-bg);
  color: var(--color-cta-text);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  color: var(--color-cta-text);
  box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
  background-color: var(--color-accent-primary);
  color: var(--color-cta-text);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-default);
}

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

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

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

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--color-bg-secondary);
  z-index: 1050;
  transition: right 0.3s ease;
  padding: 80px 24px 24px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer .nav-links {
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer .nav-links a {
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

.mobile-drawer .nav-cta {
  flex-direction: column;
  margin-top: 24px;
  gap: 12px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1040;
}

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

/* === Hero === */
.hero {
  margin-top: 65px;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, #0d2137 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94,204,172,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: var(--color-accent-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  text-align: right;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

/* === Info Table === */
.info-table-wrapper {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.info-table {
  width: 100%;
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--color-text-primary);
  width: 45%;
  font-family: var(--font-heading);
}

.info-table td:last-child {
  color: var(--color-text-secondary);
}

/* === Content Sections === */
.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  display: inline-block;
}

.section-image {
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.section-image img {
  width: 100%;
}

/* === CTA Card === */
.cta-card {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, #1a3a55 100%);
  border: 1px solid var(--color-accent-primary);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow-hover);
}

.cta-card h3 {
  color: var(--color-text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.cta-card p {
  margin-bottom: 1.5rem;
}

.cta-card .btn {
  margin-bottom: 1rem;
}

.cta-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* === Mirror Update Badge === */
.mirror-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-accent-primary);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--color-accent-primary);
  margin-bottom: 1.5rem;
}

.mirror-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === Problems Table === */
.problems-table td:first-child {
  color: var(--color-warning);
  font-weight: 600;
}

.problems-table td:nth-child(2) {
  color: var(--color-text-muted);
}

.problems-table td:nth-child(3) {
  color: var(--color-success);
}

/* === Reviews === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 1.5rem;
}

.review-card {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: var(--transition-default);
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-user {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
}

.review-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
}

.review-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.faq-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition-default);
}

.faq-item:hover {
  border-color: var(--color-accent-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--color-accent-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--color-accent-primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* === Footer === */
.footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px;
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-payments img {
  height: 32px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition-default);
}

.footer-payments img:hover {
  opacity: 1;
}

.footer-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 24px 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-heading);
}

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

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-badges img {
  height: 36px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition-default);
}

.footer-badges img:hover {
  opacity: 1;
}

.footer-copy {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* === TOC Sidebar (Desktop) === */
.page-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-main {
  flex: 1;
  min-width: 0;
}

.toc-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: relative;
}

.toc-sticky {
  position: sticky;
  top: 80px;
  padding: 20px 0;
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

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

.toc-list li {
  margin-bottom: 4px;
}

.toc-list a {
  display: block;
  padding: 6px 12px;
  font-size: 0.83rem;
  color: var(--color-text-muted);
  border-left: 2px solid transparent;
  transition: var(--transition-default);
  border-radius: 0 4px 4px 0;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--color-accent-primary);
  border-left-color: var(--color-accent-primary);
  background-color: rgba(94,204,172,0.05);
}

/* Mobile TOC */
.toc-mobile {
  display: none;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin: 20px;
  overflow: hidden;
}

.toc-mobile-toggle {
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-mobile-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toc-mobile-content.open {
  max-height: 600px;
}

.toc-mobile-content .toc-list {
  padding: 0 18px 14px;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.cookie-btn {
  padding: 8px 20px;
  background-color: var(--color-cta-bg);
  color: var(--color-cta-text);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-default);
  white-space: nowrap;
}

.cookie-btn:hover {
  background-color: var(--color-cta-hover);
}

/* === Scroll to Top === */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--color-accent-primary);
  color: var(--color-cta-text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-default);
  box-shadow: 0 4px 12px rgba(94,204,172,0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .toc-sidebar {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .page-layout {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    text-align: center;
    margin-top: 24px;
  }

  h2 {
    font-size: 1.4rem;
  }

  .section {
    padding: 40px 0;
  }

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

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 10px 12px;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .footer-payments img {
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 12px 24px;
  }

  .container {
    padding: 0 14px;
  }
}
