/* ============================================
   Timeline Marketing — Editorial Precision
   ============================================ */

@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,600;0,700;1,400&display=swap');

:root {
  /* Brand */
  --brand: #2563eb;
  --brand-light: #3b82f6;
  --brand-lighter: #dbeafe;
  --brand-dark: #1d4ed8;
  --accent: #f59e0b;
  --accent-light: #fef3c7;

  /* Surface */
  --surface-0: #fafbfc;
  --surface-1: #f3f4f6;
  --surface-2: #e5e7eb;
  --surface-dark: #080c14;
  --surface-dark-elevated: #0f1629;
  --surface-dark-card: rgba(255, 255, 255, 0.04);

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-inverse: #f9fafb;
  --text-inverse-muted: #9ca3af;

  /* Accents */
  --success: #059669;
  --success-light: #d1fae5;

  /* Spacing */
  --section-gap: clamp(5rem, 8vw, 8rem);
  --container-max: 1180px;

  /* Type */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows */
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-medium: 0 4px 6px -1px rgba(0,0,0,0.07), 0 12px 24px -4px rgba(0,0,0,0.08);
  --shadow-elevated: 0 8px 16px -4px rgba(0,0,0,0.08), 0 24px 48px -8px rgba(0,0,0,0.12);
  --shadow-screenshot: 0 32px 64px -16px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #fff;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--brand-dark); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #7c3aed 50%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 620px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-lighter);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

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

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  border-bottom-color: var(--surface-2);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo svg { width: 1.75rem; height: 1.75rem; }

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

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-md);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-1);
}

.nav-cta {
  background: var(--text-primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--r-md) !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
  -webkit-text-fill-color: #fff;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--surface-0);
}

/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--surface-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-2) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--surface-2);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  animation: fadeDown 0.6s ease both;
}

.hero-badge span {
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2), 0 8px 24px rgba(37, 99, 235, 0.25);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-family: var(--font-display);
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--surface-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeUp 0.7s ease 0.4s both;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 1.25rem 1rem;
  background: #fff;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.125rem;
  font-weight: 500;
}

.hero-screenshot {
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-screenshot img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-screenshot);
  margin: 0 auto;
}

/* ---- Trust Bar ---- */
.trust-bar {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid var(--surface-1);
}

.trust-bar p {
  text-align: center;
  color: var(--text-tertiary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-logos span {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

/* ---- Features ---- */
.features {
  padding: var(--section-gap) 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--surface-2);
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--surface-2);
}

.feature-card {
  background: #fff;
  padding: 2.25rem;
  transition: background 0.3s ease;
  position: relative;
}

.feature-card:hover {
  background: var(--surface-0);
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2.25rem;
  right: 2.25rem;
  height: 0;
  background: var(--brand);
  border-radius: 2px;
  transition: height 0.3s ease;
}

.feature-card:hover::after {
  height: 2px;
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface-1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand);
  transition: background 0.3s, color 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--brand);
  color: #fff;
}

.feature-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

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

/* ---- Showcase ---- */
.showcase {
  padding: var(--section-gap) 0;
  background: var(--surface-0);
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-2) 20%, var(--surface-2) 80%, transparent);
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.showcase-item:last-child { margin-bottom: 0; }

.showcase-item.reverse {
  grid-template-columns: 1.15fr 1fr;
  direction: rtl;
}

.showcase-item.reverse > * { direction: ltr; }

.showcase-text { padding: 0.5rem 0; }

.showcase-text .section-badge { margin-bottom: 0.75rem; }

.showcase-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}

.showcase-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
}

.showcase-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.showcase-image {
  position: relative;
}

.showcase-image img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-elevated);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-image:hover img {
  transform: translateY(-4px) scale(1.01);
}

/* ---- Comparison ---- */
.comparison {
  padding: var(--section-gap) 0;
  background: #fff;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table thead {
  background: var(--surface-0);
}

.comparison-table th {
  padding: 1rem 1.125rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--surface-2);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th.highlight {
  background: var(--brand-lighter);
  color: var(--brand);
}

.comparison-table td {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--surface-1);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.comparison-table tbody tr:hover {
  background: var(--surface-0);
}

.comparison-table .check {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

.comparison-table .cross {
  color: var(--surface-2);
  font-size: 1rem;
}

.comparison-table .highlight {
  background: rgba(37, 99, 235, 0.03);
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

/* ---- Benefits ---- */
.benefits {
  padding: var(--section-gap) 0;
  background: var(--surface-dark);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

/* Grid texture on dark */
.benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 70%);
}

.benefits .section-header { position: relative; z-index: 1; }
.benefits .section-header h2 { color: var(--text-inverse); }
.benefits .section-subtitle { color: var(--text-inverse-muted); }

.benefits .section-badge {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: var(--surface-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
  width: fit-content;
}

.benefit-card h3 {
  color: var(--text-inverse);
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.benefit-card p {
  color: var(--text-inverse-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---- Managed Service (selfhosted) ---- */
.selfhosted {
  padding: var(--section-gap) 0;
  background: var(--surface-0);
  position: relative;
}

.selfhosted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-2) 20%, var(--surface-2) 80%, transparent);
}

.selfhosted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.selfhosted-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid var(--surface-2);
  border-radius: var(--r-xl);
  transition: all 0.3s ease;
  position: relative;
}

.selfhosted-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: transparent;
}

.selfhosted-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}

.selfhosted-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1.125rem;
}

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

/* ---- CTA ---- */
.cta {
  padding: var(--section-gap) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface-dark);
}

.cta::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

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

.cta p {
  color: var(--text-inverse-muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-display);
  padding: 0.875rem 2.25rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.cta .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  color: var(--brand);
}

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

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

.footer-brand p {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-inverse-muted);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--text-inverse);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-inverse-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-bottom a { color: var(--text-inverse-muted); }
.footer-bottom a:hover { color: #fff; }

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

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

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .hero { padding: 7rem 0 3rem; }

  .hero-stats {
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }

  .hero-stat {
    border-bottom: 1px solid var(--surface-1);
  }

  .hero-stat:last-child { border-bottom: none; }

  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .selfhosted-grid { grid-template-columns: 1fr; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary { justify-content: center; }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.625rem 0.625rem;
  }
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children in grids */
.features-grid .animate-in:nth-child(1) { transition-delay: 0s; }
.features-grid .animate-in:nth-child(2) { transition-delay: 0.06s; }
.features-grid .animate-in:nth-child(3) { transition-delay: 0.12s; }
.features-grid .animate-in:nth-child(4) { transition-delay: 0.18s; }
.features-grid .animate-in:nth-child(5) { transition-delay: 0.24s; }
.features-grid .animate-in:nth-child(6) { transition-delay: 0.3s; }
.features-grid .animate-in:nth-child(7) { transition-delay: 0.36s; }
.features-grid .animate-in:nth-child(8) { transition-delay: 0.42s; }
.features-grid .animate-in:nth-child(9) { transition-delay: 0.48s; }

.benefits-grid .animate-in:nth-child(1) { transition-delay: 0s; }
.benefits-grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.benefits-grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.benefits-grid .animate-in:nth-child(4) { transition-delay: 0.24s; }
.benefits-grid .animate-in:nth-child(5) { transition-delay: 0.32s; }
.benefits-grid .animate-in:nth-child(6) { transition-delay: 0.4s; }

.selfhosted-grid .animate-in:nth-child(1) { transition-delay: 0s; }
.selfhosted-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.selfhosted-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }


/* ============================================
   PDF Report Section
   ============================================ */

.pdf-report {
  padding: 6rem 0;
  background: var(--surface-dark);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.pdf-report::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.pdf-report .section-header h2 { color: var(--text-inverse); }
.pdf-report .section-header .section-subtitle { color: var(--text-inverse-muted); }

.pdf-report-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.pdf-report-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 1rem;
}

.pdf-report-text p {
  color: var(--text-inverse-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pdf-report-text .showcase-features li {
  color: var(--text-inverse-muted);
}

.pdf-report-text .showcase-features li::before {
  color: var(--accent);
}

.pdf-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-gallery-main {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #1a1a2e;
}

.pdf-gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.pdf-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
}

.pdf-thumb {
  flex: 1;
  background: var(--surface-dark-card);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  text-align: center;
}

.pdf-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.pdf-thumb span {
  display: block;
  padding: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-inverse-muted);
}

.pdf-thumb:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.pdf-thumb.active {
  border-color: var(--brand);
  background: rgba(37, 99, 235, 0.1);
}

.pdf-thumb.active span {
  color: var(--brand-light);
}

@media (max-width: 1024px) {
  .pdf-report-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ============================================
   Screenshot Gallery — Cinematic Showcase
   ============================================ */

.gallery-showcase {
  padding: 5rem 0 6rem;
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
}

.gallery-noise {
  position: absolute;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.gallery-showcase .container {
  position: relative;
  z-index: 1;
}

/* Header */
.gallery-header {
  margin-bottom: 2rem;
}

.gallery-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.gallery-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.gallery-counter {
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.gallery-counter-current {
  color: white;
  font-weight: 700;
  transition: all 0.3s ease;
}

.gallery-counter-sep {
  margin: 0 0.25rem;
  opacity: 0.4;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-inverse);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Tab Navigation */
.gallery-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

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

.gallery-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-tab svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.gallery-tab:hover {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.gallery-tab:hover svg { opacity: 0.9; }

.gallery-tab.active {
  color: white;
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.gallery-tab.active svg {
  opacity: 1;
  stroke: var(--brand-light);
}

/* Stage — the image presentation area */
.gallery-stage {
  position: relative;
}

.gallery-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

/* Browser Chrome */
.gallery-browser {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1f2e;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 100px rgba(37, 99, 235, 0.08);
}

.gallery-browser-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #12161f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.75rem;
}

.gallery-browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.gallery-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-browser-dots span:first-child { background: #ff5f57; }
.gallery-browser-dots span:nth-child(2) { background: #febc2e; }
.gallery-browser-dots span:last-child { background: #28c840; }

.gallery-browser-url {
  flex: 1;
  text-align: center;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-browser-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.gallery-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: rgba(37, 99, 235, 0.3);
  color: white;
}

/* Image Content — stacked crossfade */
.gallery-browser-content {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f1117;
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.gallery-img.active {
  opacity: 1;
  pointer-events: auto;
}

/* Caption Bar */
.gallery-caption-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.gallery-caption {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
  min-height: 1.4em;
  transition: opacity 0.3s ease;
  line-height: 1.4;
}

.gallery-progress {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 1px;
  width: 12.5%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-showcase { padding: 3rem 0 4rem; }
  .gallery-tabs { gap: 0.375rem; }
  .gallery-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  .gallery-tab svg { display: none; }
  .gallery-browser-dots { display: none; }
  .gallery-browser-url { font-size: 0.6875rem; }
  .gallery-nav-btn { width: 28px; height: 28px; }
  .gallery-caption-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .gallery-progress { width: 100%; }
}
