/* BD News Hub — Showcase Website Styles */

/* ========== Design Tokens ========== */
:root {
  --crimson: #DC143C;
  --crimson-dark: #B01030;
  --crimson-light: #FF1744;
  --green: #006A4E;
  --green-dark: #004D38;
  --amber: #FFA500;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #5A5A6E;
  --text-muted: #8A8A9E;
  --border: #E8E8EE;
  --border-light: #F0F0F5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-height: 64px;
  --section-gap: 100px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== Language Toggle ========== */
body.lang-en .lang-bn,
body.lang-bn .lang-en {
  display: none !important;
}

body.lang-bn {
  font-family: 'Noto Sans Bengali', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
  line-height: 1.4;
  flex-shrink: 0;
}

.navbar.scrolled .lang-toggle {
  background: rgba(220, 20, 60, 0.08);
  border-color: var(--crimson);
  color: var(--crimson);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar.scrolled .lang-toggle:hover {
  background: rgba(220, 20, 60, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

.container--narrow {
  max-width: 800px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(220, 20, 60, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ========== Scroll Progress Bar ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--amber));
  z-index: 1001;
  width: 0%;
  transition: none;
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
  background: transparent;
  overflow: visible;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-brand {
  color: var(--text);
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: #fff;
}

.navbar.scrolled .nav-links a:hover {
  color: var(--crimson);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--crimson);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: var(--crimson-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-toggle {
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(145deg, #1A0A12 0%, var(--crimson-dark) 40%, var(--crimson) 70%, #E8284A 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,165,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--crimson);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #f8f8f8;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
  color: var(--crimson);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-download-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--crimson);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-download-small:hover {
  background: var(--crimson-dark);
  transform: translateY(-1px);
}

.btn-crimson {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
}

.btn-crimson:hover {
  background: var(--crimson-dark);
  box-shadow: 0 6px 28px rgba(220, 20, 60, 0.4);
  color: #fff;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ========== Stats Bar ========== */
.stats-bar {
  padding: 48px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 8px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--crimson);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== Feature Spotlight ========== */
.spotlight {
  padding: var(--section-gap) 24px;
}

.spotlight-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.spotlight:nth-child(even) .spotlight-inner {
  direction: rtl;
}

.spotlight:nth-child(even) .spotlight-inner > * {
  direction: ltr;
}

.spotlight-text {
  max-width: 480px;
}

.spotlight-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 165, 0, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.spotlight-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.spotlight-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.spotlight-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.spotlight-highlights li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 2px;
}

/* Spotlight visual */
.spotlight-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spotlight-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.spotlight-card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: #fff;
}

.spotlight-card-header h4 {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 4px;
}

.spotlight-card-header p {
  font-size: 1.1rem;
  font-weight: 700;
}

.spotlight-card-body {
  padding: 20px 24px;
}

.mock-article {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mock-article:last-child {
  border-bottom: none;
}

.mock-source {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-top: 2px;
}

.mock-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--border-light), var(--border));
  flex-shrink: 0;
}

/* Spotlight card variants */

.spotlight-card--personalized .spotlight-card-header {
  background: linear-gradient(135deg, #4A148C, #7B1FA2);
}

.mock-quiz-option {
  padding: 12px 16px;
  margin: 8px 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  cursor: default;
  transition: border-color var(--transition-fast);
}

.mock-quiz-option--correct {
  border-color: var(--green);
  background: rgba(0, 106, 78, 0.05);
  color: var(--green);
  font-weight: 600;
}

.mock-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(220, 20, 60, 0.08);
  color: var(--crimson);
  font-weight: 600;
  margin-right: 6px;
  margin-top: 6px;
}

/* ========== Screenshot Phone Frame ========== */
.screenshot-phone {
  max-width: 280px;
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--text);
  background: var(--text);
}

/* ========== App Gallery ========== */
.gallery-section {
  padding: var(--section-gap) 24px;
  background: var(--surface);
  overflow: hidden;
}

.gallery-scroll {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 48px 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
}

.gallery-item img {
  width: 220px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--text);
  background: var(--text);
  transition: transform var(--transition-smooth);
}

.gallery-item img:hover {
  transform: scale(1.03);
}

.gallery-item p {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .screenshot-phone {
    max-width: 220px;
    border-radius: 22px;
    border-width: 5px;
  }

  .gallery-item img {
    width: 180px;
    border-radius: 20px;
    border-width: 4px;
  }

  .gallery-scroll {
    gap: 20px;
    padding: 32px 16px 16px;
  }
}

@media (max-width: 480px) {
  .screenshot-phone {
    max-width: 200px;
    border-radius: 20px;
    border-width: 4px;
  }

  .gallery-item img {
    width: 160px;
    border-radius: 18px;
  }
}

/* ========== Feature Grid ========== */
.features-section {
  padding: var(--section-gap) 24px;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  background: var(--surface);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon--crimson {
  background: rgba(220, 20, 60, 0.08);
  color: var(--crimson);
}

.feature-icon--green {
  background: rgba(0, 106, 78, 0.08);
  color: var(--green);
}

.feature-icon--amber {
  background: rgba(255, 165, 0, 0.1);
  color: var(--amber);
}

.feature-icon--purple {
  background: rgba(106, 27, 154, 0.08);
  color: #6A1B9A;
}

.feature-icon--blue {
  background: rgba(21, 101, 192, 0.08);
  color: #1565C0;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 0;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Sources Section ========== */
.sources-section {
  padding: var(--section-gap) 24px;
}

.source-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 32px 0 24px;
}

.source-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.source-tab:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.source-tab.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.source-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition-fast);
}

.source-pill:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  box-shadow: var(--shadow-sm);
}

.source-pill[data-category] {
  display: none;
}

.source-pill.visible {
  display: inline-block;
}

/* ========== Comparison Table ========== */
.comparison-section {
  padding: var(--section-gap) 24px;
  background: var(--surface);
}

.comparison-wrapper {
  max-width: 800px;
  margin: 48px auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 20px;
  text-align: left;
}

.comparison-table thead th:not(:first-child) {
  text-align: center;
}

.comparison-table thead th:nth-child(2) {
  background: var(--crimson);
}

.comparison-table tbody td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

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

.comparison-table tbody td:not(:first-child) {
  text-align: center;
  font-size: 1.1rem;
}

.comparison-table tbody tr:hover {
  background: rgba(220, 20, 60, 0.02);
}

.check {
  color: var(--green);
  font-weight: 700;
}

.cross {
  color: var(--text-muted);
}

/* ========== CTA Section ========== */
.cta-section {
  padding: var(--section-gap) 24px;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--crimson-dark), var(--crimson), #E8284A);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.cta-inner p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

/* ========== Footer ========== */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

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

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== Page Styles (Privacy/Contact) ========== */
.page-header {
  background: linear-gradient(145deg, var(--crimson-dark), var(--crimson));
  padding: 120px 24px 48px;
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0;
}

.page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.page-card h2 {
  color: var(--crimson);
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.page-card h3 {
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.page-card p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-card ul, .page-card ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.page-card li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.page-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.page-card a {
  color: var(--crimson);
}

.page-card a:hover {
  text-decoration: underline;
}

.metadata {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 28px;
  padding: 15px;
  background: rgba(220, 20, 60, 0.04);
  border-left: 4px solid var(--crimson);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-box {
  background: rgba(220, 20, 60, 0.04);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.contact-box p {
  margin-bottom: 4px;
}

/* ========== Source Attribution ========== */
.attribution-section {
  padding: 60px 24px;
  background: rgba(0, 106, 78, 0.03);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.attribution-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.attribution-inner p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.attribution-inner a {
  color: var(--crimson);
  font-weight: 600;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-inner {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 48px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    align-items: center;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--text) !important;
    padding: 10px 20px;
    font-size: 1rem;
  }

  .nav-links a:hover {
    color: var(--crimson) !important;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 140px 24px 100px;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .spotlight-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .spotlight:nth-child(even) .spotlight-inner {
    direction: ltr;
  }

  .spotlight-visual {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .page-card {
    padding: 28px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .cta-inner {
    padding: 48px 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .source-tabs {
    gap: 6px;
  }

  .source-tab {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-icon {
    animation: none;
  }
}

/* ========== Print Styles ========== */
@media print {
  .navbar, .scroll-progress, .cta-section, .hero-buttons, .nav-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px;
    background: #fff;
    color: #000;
  }

  .hero h1, .hero-tagline, .hero-sub {
    color: #000;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body {
    font-size: 12pt;
    background: #fff;
    color: #000;
  }
}
