/* ============================================
   CARDPICK - Credit Card Hub
   Sleek fintech aesthetic with glassmorphism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --deep-indigo: #2d1b69;
  --midnight-blue: #1a1a3e;
  --mint: #4ecdc4;
  --coral: #ff6b6b;
  --white: #ffffff;
  --light-gray: #f0f0f5;
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0c0;
  --text-dark: #1a1a3e;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-mint: 0 0 30px rgba(78, 205, 196, 0.15);
  --glow-coral: 0 0 30px rgba(255, 107, 107, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(160deg, var(--deep-indigo) 0%, var(--midnight-blue) 40%, #111130 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Ambient background effects */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 20%, rgba(78, 205, 196, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(255, 107, 107, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(45, 27, 105, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Grid noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--text-secondary); max-width: 70ch; }

a { color: var(--mint); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--coral); }

.gradient-text {
  background: linear-gradient(135deg, var(--mint), #7ef5eb, var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--mint);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: rgba(26, 26, 62, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--mint), var(--coral));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: rotate(-5deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--glass-bg);
}

.nav-cta {
  background: linear-gradient(135deg, var(--mint), #3ab8b0) !important;
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-mint);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(26, 26, 62, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 14px 20px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--mint), #3ab8b0);
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-mint);
  color: var(--text-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--glass-bg);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

/* Hero floating cards */
.hero-visual {
  position: relative;
  height: 500px;
  perspective: 1000px;
}

.floating-card {
  position: absolute;
  width: 320px;
  height: 200px;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-card:nth-child(1) {
  background: linear-gradient(135deg, var(--mint), #2ba89f);
  top: 10%;
  left: 10%;
  transform: rotate(-8deg);
  z-index: 3;
  animation: float1 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  background: linear-gradient(135deg, var(--coral), #e04545);
  top: 30%;
  left: 30%;
  transform: rotate(5deg);
  z-index: 2;
  animation: float2 7s ease-in-out infinite;
}

.floating-card:nth-child(3) {
  background: linear-gradient(135deg, var(--deep-indigo), #4a35a0);
  top: 50%;
  left: 5%;
  transform: rotate(-3deg);
  z-index: 1;
  animation: float3 8s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-card .card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
  border-radius: 6px;
}

.floating-card .card-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.9);
}

.floating-card .card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

@keyframes float1 {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-15px); }
}

@keyframes float2 {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-20px); }
}

@keyframes float3 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-10px); }
}

/* Hero stats bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================
   GLASS CARD COMPONENT
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

/* ============================================
   CARD CATEGORIES SECTION
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.category-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--coral));
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover::before { opacity: 1; }

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.category-icon.mint { background: rgba(78, 205, 196, 0.15); }
.category-icon.coral { background: rgba(255, 107, 107, 0.15); }
.category-icon.purple { background: rgba(45, 27, 105, 0.3); }

.category-card h3 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.category-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.category-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
  transition: gap 0.3s;
}

.category-card:hover .card-arrow { gap: 12px; }

/* ============================================
   GUIDE DETAIL SECTIONS
   ============================================ */
.guide-section {
  padding: 60px 0;
}

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

.guide-header .guide-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.guide-content {
  max-width: 900px;
}

.guide-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.guide-content h4 {
  color: var(--white);
  margin: 24px 0 12px;
}

.guide-content ul, .guide-content ol {
  margin: 12px 0 16px 20px;
  color: var(--text-secondary);
}

.guide-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Top pick card within guides */
.top-pick-card {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.08), rgba(255, 107, 107, 0.05));
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
}

.top-pick-card .pick-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}

.top-pick-card h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.top-pick-card .pick-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.top-pick-card .pick-detail {
  font-size: 0.85rem;
}

.top-pick-card .pick-detail strong {
  color: var(--mint);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
}

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

.comparison-table thead {
  background: rgba(78, 205, 196, 0.1);
}

.comparison-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mint);
  padding: 18px 20px;
  text-align: left;
  white-space: nowrap;
}

.comparison-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  vertical-align: top;
}

.comparison-table tbody tr {
  transition: background 0.3s;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table .card-name {
  color: var(--white);
  font-weight: 600;
}

.comparison-table .highlight-cell {
  color: var(--coral);
  font-weight: 600;
}

.comparison-table .best-for-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(78, 205, 196, 0.12);
  color: var(--mint);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================
   EDUCATIONAL CONTENT
   ============================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.edu-card {
  cursor: pointer;
}

.edu-card .edu-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 107, 107, 0.12);
  color: var(--coral);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.edu-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.edu-card p {
  font-size: 0.88rem;
}

.edu-card .read-time {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Expanded article */
.article-expanded {
  display: none;
  max-width: 900px;
  padding: 40px 0;
}

.article-expanded.visible { display: block; }

.article-expanded .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  cursor: pointer;
}

.article-expanded h2 {
  margin-bottom: 24px;
}

.article-expanded p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.article-expanded h4 {
  color: var(--white);
  margin: 24px 0 12px;
}

.article-expanded ul, .article-expanded ol {
  margin: 12px 0 16px 20px;
  color: var(--text-secondary);
}

.article-expanded li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   QUIZ SECTION
   ============================================ */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.quiz-progress .step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.5s;
}

.quiz-progress .step.active {
  background: linear-gradient(90deg, var(--mint), var(--coral));
}

.quiz-progress .step.completed {
  background: var(--mint);
}

.quiz-question {
  display: none;
}

.quiz-question.active { display: block; }

.quiz-question h3 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.quiz-question p {
  margin-bottom: 24px;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz-option:hover {
  background: var(--glass-bg-strong);
  border-color: var(--mint);
}

.quiz-option.selected {
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--mint);
}

.quiz-option .option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.quiz-option .option-text {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.quiz-option .option-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* Quiz result */
.quiz-result {
  display: none;
  text-align: center;
}

.quiz-result.active { display: block; }

.quiz-result .result-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.quiz-result h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.quiz-result .result-card-type {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, var(--mint), var(--coral));
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 16px 0;
}

.quiz-result p {
  margin: 0 auto 24px;
  text-align: center;
}

.quiz-result .result-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}

.quiz-result .rec-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.quiz-result .rec-card h4 {
  color: var(--white);
  margin-bottom: 6px;
}

.quiz-result .rec-card .rec-highlight {
  color: var(--mint);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   GLOSSARY
   ============================================ */
.glossary-search {
  width: 100%;
  max-width: 500px;
  padding: 14px 20px 14px 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 32px;
  outline: none;
  transition: border-color 0.3s;
}

.glossary-search:focus {
  border-color: var(--mint);
}

.glossary-search-wrap {
  position: relative;
  max-width: 500px;
}

.glossary-search-wrap .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.glossary-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.3s;
}

.glossary-item:hover {
  background: var(--glass-bg-strong);
}

.glossary-item dt {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glossary-item dt .first-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.glossary-item dd {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-left: 36px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}

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

.faq-question .faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--mint);
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  max-width: 100%;
  min-height: 90px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.ad-slot.leaderboard { min-height: 90px; }
.ad-slot.rectangle { min-height: 250px; max-width: 336px; }
.ad-slot.in-article { min-height: 120px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

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

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-disclaimer {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.3) !important;
  max-width: 100% !important;
  margin-top: 20px;
  line-height: 1.5;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), #3ab8b0);
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  box-shadow: var(--glow-mint);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  
  .categories-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .quiz-result .result-recommendations {
    grid-template-columns: 1fr;
  }

  .comparison-wrapper {
    margin: 0 -24px;
    border-radius: 0;
  }

  .guide-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-pick-card .pick-details {
    flex-direction: column;
    gap: 8px;
  }
}
