:root {
  --bg-primary: #FBFCFE;
  --bg-secondary: #F2F7FA;
  --bg-dark: #102A43;
  
  --primary: #0EA5A4;
  --primary-hover: #0F766E;
  --secondary: #3B82F6;
  --accent: #F97316;
  --highlight: #E0F2FE;
  
  --card-bg: #FFFFFF;
  --border: #D5E5EE;
  --border-hover: #0EA5A4;
  
  --success: #16A34A;
  --warning: #EA580C;
  
  --text-main: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-light: #F8FAFC;
  
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-border: #CBD5E1;
  --btn-secondary-hover-border: #3B82F6;
  
  --radius: 24px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

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

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

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

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

ul {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 {
  color: var(--text-light);
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-alt {
  background-color: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Header & Nav */
.header {
  background: rgba(251, 252, 254, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--text-main);
  border: 1px solid var(--btn-secondary-border);
}

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

/* Hero Section */
.hero {
  padding: 6rem 0;
  display: flex;
  align-items: center;
}

.hero .grid {
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Disclaimers */
.disclaimer-box {
  background-color: var(--highlight);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 2rem;
}

.disclaimer-box h4 {
  color: var(--primary-hover);
  margin-bottom: 0.5rem;
}

/* Cards (Glassmorphism & Style) */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-top-bar {
  height: 6px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card h3 {
  margin-top: 1rem;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Horizontal Cards */
.card-horizontal {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
.card-horizontal .card-content {
  flex: 1;
}

/* Comparison Table Matrix */
.table-wrapper {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

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

.comparison-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-main);
  position: sticky;
  top: 0;
}

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

.comparison-table tr:hover td {
  background-color: var(--highlight);
}

.status-yes { color: var(--success); font-weight: 600; }
.status-no { color: var(--warning); font-weight: 600; }
.status-partial { color: var(--accent); font-weight: 600; }

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-secondary);
}

.tab-btn.active {
  color: var(--primary);
  background: var(--highlight);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s;
}

.tab-pane.active {
  display: block;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--card-bg);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }

.timeline-content {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Guides List */
.guides-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.guide-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}
.guide-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.accordion-content p {
  padding-bottom: 1.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 500px; /* arbitrary max height */
}

.accordion-item.active .accordion-header {
  color: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Filters */
.search-bar {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
  border-top: 1px solid var(--border);
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Accessibility Focus */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Content Pages */
.page-header {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.page-header h1 {
  color: white;
}
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.content-wrapper h2 {
  margin-top: 2.5rem;
}
.content-wrapper ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}
.content-wrapper p {
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .card-horizontal {
    flex-direction: column;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item::after {
    left: 21px;
  }
  .right {
    left: 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
  .header, .footer, .hero-buttons, .cookie-banner {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}