:root {
  /* Brand Colors */
  --color-primary: #0a4d9c; /* Trust Blue */
  --color-primary-light: #e6f0fa;
  --color-accent: #25D366; /* WhatsApp Green */
  --color-accent-hover: #128C7E;
  
  /* Neutral Colors */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout & Shadows */
  --max-width: 1200px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 1rem;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--color-text);
}

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

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

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: #083c7a;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
}

.btn-whatsapp:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

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

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  .nav-links a {
    color: var(--color-text);
    font-weight: 500;
  }
  .nav-links a:hover {
    color: var(--color-primary);
  }
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Sections Base */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

/* Grid Layouts */
.tests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bundles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .bundles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Component Cards */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.card-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

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

/* Bundle Cards specific */
.bundle-card {
  text-align: center;
  position: relative;
}

.bundle-card.popular {
  border-color: var(--color-primary);
  border-width: 2px;
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

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

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bundle-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 1rem;
}

.bundle-sub {
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Footer Section */
.cta-section {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.site-footer {
  background-color: #1e293b;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

/* Floating Widget */
.floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  max-width: 320px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  animation: float-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@keyframes float-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.floating-widget-badge {
  display: inline-block;
  background-color: #d52b1e; /* Attention red */
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(213, 43, 30, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(213, 43, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 43, 30, 0); }
}

.floating-widget-text {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-text);
  line-height: 1.4;
}

.floating-widget-text strong {
  color: var(--color-primary);
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.btn-floating-wa {
  background-color: var(--color-accent);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-floating-wa:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
  color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .site-header {
    padding: 0 0.5rem;
  }
  .btn-whatsapp {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
  }
  .logo {
    font-size: 1.1rem;
  }
  .floating-widget {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    padding: 1rem;
  }
  .floating-widget-text {
    font-size: 0.85rem;
  }
}
