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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #a78bfa;
  --dark: #1e1b4b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
}

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

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

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

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

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* Navigation */
nav {
  display: none;
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
  background: var(--gray-100);
}

/* Mobile Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

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

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav ul li a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* Sections */
section {
  padding: 3rem 1rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 600px;
  margin: -1rem auto 2rem;
}

/* Features/Services Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.card .price {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
}

/* Testimonials */
.testimonials {
  background: var(--gray-100);
}

.testimonial {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Comparison Table */
.comparison-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

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

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

.comparison-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: var(--gray-100);
}

.comparison-table tr:hover {
  background: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

.check-icon {
  color: #10b981;
  font-weight: bold;
}

.cross-icon {
  color: #ef4444;
}

/* About Page */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text h2 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  margin-top: 1.5rem;
}

.values-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.values-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-item h3 {
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--gray-500);
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 6rem 1rem;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.thank-you h1 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.thank-you p {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  color: var(--dark);
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 3rem 1rem 1rem;
}

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

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-300);
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-buttons .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.cookie-modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.cookie-modal-content h2 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option-info h3 {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cookie-option-info p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: 26px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10001;
  transition: top 0.3s;
}

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

/* Desktop Styles */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  nav {
    display: block;
  }

  nav ul {
    flex-direction: row;
    gap: 0.5rem;
  }

  nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: transparent;
    color: var(--primary);
  }

  .mobile-nav {
    display: none !important;
  }

  .hero {
    padding: 6rem 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  section {
    padding: 5rem 2rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-text {
    flex: 1;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-item {
    flex: 1 1 45%;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-section {
    flex: 1;
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
  }

  .cookie-content p {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .card {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .testimonials .cards {
    flex-direction: row;
  }

  .testimonial {
    flex: 1;
    margin-bottom: 0;
  }
}
