/* ═══════════════════════════════════════════════════════
   SafetyFrog — Design System
   Dark futuristic theme matching the SafetyFrog app
   Colors: #0A0F1E (bg), #8BAF3F (accent green)
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Design Tokens) ─────────── */
:root {
  /* Background hierarchy */
  --bg-primary: #0A0F1E;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.45);
  --bg-card-hover: rgba(17, 24, 39, 0.6);
  --bg-elevated: rgba(30, 41, 59, 0.4);

  /* Accent — SafetyFrog green */
  --accent: #8BAF3F;
  --accent-hover: #9EC449;
  --accent-dim: rgba(139, 175, 63, 0.15);
  --accent-glow: rgba(139, 175, 63, 0.3);

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: rgba(241, 245, 249, 0.6);
  --text-tertiary: rgba(241, 245, 249, 0.35);
  --text-on-accent: #111827;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(139, 175, 63, 0.3);

  /* Semantic */
  --feature-color: #8BAF3F;
  --fix-color: #EF4444;
  --improvement-color: #3B82F6;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Header */
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;

  /* Dot grid background — matching SafetyFrog splash */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Floating ambient orbs — organic life */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.4;
}

body::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 175, 63, 0.08), transparent 70%);
  top: 10%;
  right: -10%;
  animation: float-orb-1 25s ease-in-out infinite;
}

body::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.06), transparent 70%);
  bottom: 20%;
  left: -8%;
  animation: float-orb-2 30s ease-in-out infinite;
}

@keyframes float-orb-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-60px, 40px) scale(1.1);
  }

  50% {
    transform: translate(-30px, -30px) scale(0.95);
  }

  75% {
    transform: translate(40px, 20px) scale(1.05);
  }
}

@keyframes float-orb-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(50px, -40px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 50px) scale(0.9);
  }
}

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

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Section ───────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 20px rgba(139, 175, 63, 0.25);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
  box-shadow: 0 0 30px rgba(139, 175, 63, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(139, 175, 63, 0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 16px;
}

.btn--ghost:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
  overflow: visible;
}

.site-header.scrolled {
  background: rgba(10, 15, 30, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--accent);
}

/* Logo box — matching Flutter splash screen exactly */
.logo-box-mini {
  position: relative;
  width: 36px;
  height: 36px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-box-mini img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Large logo box for hero — exact replica of Flutter splash */
.logo-box-lg {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
}

.logo-box-lg-glow {
  position: absolute;
  inset: -12px;
  background: rgba(139, 175, 63, 0.25);
  border-radius: 28px;
  filter: blur(24px);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.logo-box-lg-inner {
  position: relative;
  width: 80px;
  height: 80px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-box-lg-inner img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-link--active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-xs);
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.mobile-nav-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-sm) 0;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 175, 63, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-glow 4s ease-in-out infinite;
}

@keyframes hero-glow {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  font-family: var(--font-mono);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 .accent {
  color: var(--accent);
  position: relative;
}

.hero-app-name {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.hero-app-version {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  vertical-align: baseline;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.hero-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

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

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Shine sweep — diagonal flash on hover */
.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0.03) 55%,
      transparent 60%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::after {
  transform: translateX(350%);
}

/* Top edge accent glow */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(139, 175, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

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

/* ── Feature Grid ──────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
}

/* ── Pricing ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card--highlighted {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(139, 175, 63, 0.05), var(--bg-card));
  box-shadow: 0 0 40px rgba(139, 175, 63, 0.1);
}

.pricing-card--highlighted::before {
  content: 'Nejoblíbenější';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -2px;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-tertiary);
}

.pricing-currency {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ── FAQ ───────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.active {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-tertiary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── CTA Section ───────────────────────────────────── */
.cta-section {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(139, 175, 63, 0.08), rgba(139, 175, 63, 0.02));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(139, 175, 63, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.cta-box p {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
}

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

/* ── Blog Card ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.blog-card-body {
  padding: var(--space-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

/* ── Blog Post — Rich Layout ───────────────────────── */
.blog-post {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) 0;
}

.blog-post-hero {
  margin-bottom: var(--space-2xl);
}

.blog-post-hero .blog-post-back {
  margin-bottom: var(--space-lg);
}

.blog-post-hero h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

/* Metadata bar */
.blog-post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blog-meta-item .meta-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.blog-meta-item .meta-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.blog-meta-item .meta-value {
  font-weight: 500;
  color: var(--text-primary);
}

.blog-post-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Two-column layout: sidebar + content */
.blog-post-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Sidebar TOC */
.blog-post-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.blog-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.blog-toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.blog-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.blog-toc-list a {
  display: block;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--border);
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.blog-toc-list a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Article content */
.blog-post-article {
  min-width: 0;
}

.blog-post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-post-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.blog-post-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.blog-post-content p {
  margin-bottom: var(--space-md);
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.blog-post-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.blog-post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.blog-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-post-content blockquote p {
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
}

/* Author box at end of article */
.blog-post-author {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.blog-post-author-avatar {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.blog-post-author-info {
  flex: 1;
}

.blog-post-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.blog-post-author-bio {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Responsive: collapse sidebar on mobile */
@media (max-width: 768px) {
  .blog-post-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-sidebar {
    position: static;
    order: -1;
  }

  .blog-post-meta-bar {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ── Badges ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--feature {
  background: rgba(139, 175, 63, 0.15);
  color: var(--feature-color);
}

.badge--fix {
  background: rgba(239, 68, 68, 0.15);
  color: var(--fix-color);
}

.badge--improvement {
  background: rgba(59, 130, 246, 0.15);
  color: var(--improvement-color);
}

/* ── Changelog ─────────────────────────────────────── */
.changelog-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.changelog-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.changelog-version-number {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.changelog-changes {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.changelog-change {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Roadmap ───────────────────────────────────────── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.roadmap-card:hover {
  border-color: var(--border-hover);
}

.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.roadmap-status--planned {
  background: rgba(100, 116, 139, 0.15);
  color: #94A3B8;
}

.roadmap-status--in-progress {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.roadmap-status--done {
  background: rgba(139, 175, 63, 0.15);
  color: var(--accent);
}

.roadmap-card h3 {
  margin-bottom: var(--space-sm);
}

.roadmap-quarter {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-top: var(--space-md);
}

/* ── Page Header ───────────────────────────────────── */
.page-header {
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 175, 63, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  margin-bottom: var(--space-sm);
}

.page-header p {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ── Contact ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-item-value a {
  color: var(--accent);
}

/* ── About / Profile ───────────────────────────────── */
.about-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.about-card h3 {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.about-card p {
  line-height: 1.8;
}

.about-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.about-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-card li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Profile Card ─────────────────────────────────── */
.about-profile {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(139, 175, 63, 0.04), transparent);
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-identity {
  flex: 1;
}

.profile-body {
  padding: var(--space-2xl);
}

.profile-body p {
  line-height: 1.8;
}

.profile-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credential-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}

.credential-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ── Legal Pages ───────────────────────────────────── */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-bottom: var(--space-4xl);
}

.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
}

.legal-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Checkout placeholder ──────────────────────────── */

/* ── Opt-in Form ──────────────────────────────────── */
.optin-box {
  background: linear-gradient(135deg, rgba(139, 175, 63, 0.08), rgba(139, 175, 63, 0.02));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.optin-inner h2 {
  margin-bottom: var(--space-sm);
}

.optin-inner>p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.optin-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.optin-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.optin-input:focus {
  border-color: var(--accent);
}

.optin-input::placeholder {
  color: var(--text-tertiary);
}

.optin-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  cursor: pointer;
  line-height: 1.5;
}

.optin-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.optin-consent a {
  color: var(--accent);
}

.optin-status {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.optin-status--success {
  color: var(--accent);
}

.optin-status--error {
  color: #ef4444;
}

.optin-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 768px) {
  .optin-row {
    flex-direction: column;
  }

  .optin-box {
    padding: var(--space-lg);
    margin-left: var(--space-md);
    margin-right: var(--space-md);
  }

  .optin-input {
    width: 100%;
  }
}

.checkout-placeholder {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.checkout-placeholder-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-desc {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-version {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* ── Audience Cards ────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.audience-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.audience-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.audience-card h3 {
  margin-bottom: var(--space-sm);
}

.audience-card p {
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

/* ── Scroll reveal animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .hero-stats {
    gap: var(--space-xl);
  }
}

@media (max-width: 1024px) {
  :root {
    --space-4xl: 64px;
  }

  .nav-desktop {
    display: none;
  }

  .header-actions .btn--outline,
  .header-actions .btn--primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

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

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

  .hero-cta .btn {
    justify-content: center;
  }

  /* ── Compact hero for mobile ── */
  .hero {
    padding: calc(var(--header-height) + 0px) 0 16px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .logo-box-lg {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }

  .logo-box-lg-glow {
    inset: -6px;
    border-radius: 16px;
  }

  .logo-box-lg-inner {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .hero-app-name {
    font-size: 24px;
    margin-bottom: 2px;
  }

  .hero-app-version {
    font-size: 11px;
  }

  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .hero-badge {
    margin-bottom: 6px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .hero h1 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 0.7rem !important;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .hero-cta {
    gap: 6px;
    margin-bottom: 0;
  }

  .hero-cta .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .hero-stats {
    margin-top: 14px;
    padding-top: 10px;
    gap: 12px;
  }

  .hero-stat-value {
    font-size: 1.1rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

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

/* ═══════════════════════════════════════════════════════
   New Components — Marketing Enhancements
   ═══════════════════════════════════════════════════════ */

/* ── Comparison Table ─────────────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  max-width: 920px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px;
  backdrop-filter: blur(12px);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding-top: 20px;
  padding-bottom: 16px;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
  padding-left: 24px;
}

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

/* Highlighted SafetyFrog column */
.comparison-highlight {
  position: relative;
  font-weight: 700 !important;
}

.comparison-table thead .comparison-highlight {
  color: var(--accent) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.5px;
}

.comparison-table thead .comparison-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #b8d94e);
  border-radius: 3px 3px 0 0;
}

.comparison-table tbody .comparison-highlight {
  background: rgba(139, 175, 63, 0.06) !important;
  color: var(--accent) !important;
  font-size: 1.15rem;
}

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

/* Status badges for table cells */
.comparison-table .cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(139, 175, 63, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
}

.comparison-table .cmp-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
}

.comparison-table .cmp-partial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.comparison-table .cmp-partial::before {
  content: '⚠️';
  font-size: 0.85rem;
}

/* ── Savings Calculator ──────────────────────────────── */
.calculator-box {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.calculator-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 175, 63, 0.4), transparent);
}

.calc-input-group {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.calc-input-group label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.calc-value-display {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.calc-value-display span {
  font-size: 2.4rem;
}

.calc-value-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* Custom range slider */
.calc-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  position: relative;
}

.calc-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg,
      var(--accent) 0%,
      var(--accent) var(--slider-progress, 10%),
      rgba(255, 255, 255, 0.08) var(--slider-progress, 10%));
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(139, 175, 63, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-top: -10px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(139, 175, 63, 0.4), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.calc-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.calc-slider::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.calc-slider::-moz-range-progress {
  background: var(--accent);
  border-radius: 4px;
  height: 8px;
}

.calc-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px rgba(139, 175, 63, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Results grid */
.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.calc-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.calc-result-card:hover {
  background: rgba(139, 175, 63, 0.06);
  border-color: rgba(139, 175, 63, 0.15);
  transform: translateY(-2px);
}

.calc-result-card:first-child {
  border-color: rgba(139, 175, 63, 0.2);
  background: rgba(139, 175, 63, 0.04);
}

.calc-result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.calc-result-card:first-child .calc-result-value {
  font-size: 2.4rem;
}

.calc-result-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  line-height: 1.3;
  font-weight: 500;
}

.calc-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-xl);
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .calc-results {
    grid-template-columns: 1fr;
  }

  .calculator-box {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
  }

  .calc-value-display {
    font-size: 2rem;
  }

  .calc-value-display span {
    font-size: 2rem;
  }
}

/* ── Sticky CTA Bar ──────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(139, 175, 63, 0.2);
  padding: 12px 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
  max-width: 400px;
}

@media (min-width: 1025px) {
  .sticky-cta {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .sticky-cta {
    display: block;
  }
}

/* ── Exit-Intent Popup ───────────────────────────────── */
.exit-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.exit-popup-overlay.visible {
  display: flex;
}

.exit-popup {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.exit-popup-close:hover {
  color: var(--text-primary);
}

.exit-popup h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.exit-popup p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ── Cookie Consent Banner ───────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  background: rgba(17, 24, 39, 0.98);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.cookie-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.cookie-btn--accept {
  background: var(--accent);
  color: #fff;
}

.cookie-btn--accept:hover {
  background: var(--accent-hover);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-btn--reject:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ── Enhanced Animations ─────────────────────────────── */
.logo-box-lg-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.hero-stat-value {
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-value {
  color: #9DC34D;
}

/* ── App Preview ─────────────────────────────────────── */
.app-preview {
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px;
}

.app-preview-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 175, 63, 0.05);
}

.app-preview-frame:hover {
  transform: rotateX(2deg) scale(1.01);
}

.app-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.app-dot:first-child {
  background: #ef4444;
}

.app-dot:nth-child(2) {
  background: #f59e0b;
}

.app-dot:nth-child(3) {
  background: #22c55e;
}

.app-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 16px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}

.app-preview-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Trust Badges ────────────────────────────────────── */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.trust-badge:hover {
  background: rgba(139, 175, 63, 0.06);
  border-color: rgba(139, 175, 63, 0.15);
  transform: translateY(-2px);
}

.trust-badge-icon {
  font-size: 1.4rem;
}

.trust-badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .trust-badges {
    gap: var(--space-sm);
  }

  .trust-badge {
    padding: 10px 14px;
    flex: 1 1 calc(50% - var(--space-sm));
    min-width: 140px;
    justify-content: center;
  }
}

/* ── Blog Cards (homepage) ───────────────────────────── */
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  transition: all var(--transition-base);
}

.blog-card:hover {
  border-color: rgba(139, 175, 63, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Count-up Animation ──────────────────────────────── */
.count-up {
  transition: all 0.3s ease;
}

/* ── FAQ Accordion ───────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-slow);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.faq-item:hover,
.faq-item.active {
  border-color: rgba(139, 175, 63, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 32px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: color var(--transition-base);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '−';
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 32px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 32px 24px;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-answer a {
  color: var(--accent);
  font-weight: 500;
}

/* ── Blog Grid ───────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

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

/* ── Story Article (O projektu) ──────────────────────── */
.story-article {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.story-article p {
  margin-bottom: var(--space-lg);
}

.story-article strong {
  color: var(--text-primary);
  font-weight: 600;
}

.story-article a {
  color: var(--accent);
  font-weight: 500;
}

.story-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-xl) !important;
}

.story-heading {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: var(--space-2xl) 0 var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.story-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  background: rgba(139, 175, 63, 0.12);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.story-quote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 3px solid var(--accent);
  background: rgba(139, 175, 63, 0.04);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.story-quote p {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0 !important;
}

.story-quote--final {
  margin-top: var(--space-2xl);
  background: rgba(139, 175, 63, 0.06);
}

.story-quote cite {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 400;
}

.story-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.story-module {
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
}

.story-module strong {
  color: var(--accent);
}

.story-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.story-pillar {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.story-pillar-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.story-pillar h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.story-pillar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .story-modules-grid {
    grid-template-columns: 1fr;
  }

  .story-pillars {
    grid-template-columns: 1fr;
  }

  .story-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .story-quote {
    padding: var(--space-md) var(--space-lg);
  }
}

/* ── Roadmap Stats ───────────────────────────────────── */
.roadmap-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

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

.roadmap-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

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

/* ── Visual Timeline ─────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
      var(--accent) 0%,
      var(--accent) 35%,
      #f59e0b 45%,
      #60a5fa 65%,
      #a78bfa 85%,
      rgba(167, 139, 250, 0.2) 100%);
}

/* Phase Headers */
.timeline-phase {
  position: relative;
  margin: var(--space-2xl) 0 var(--space-lg);
}

.timeline-phase:first-child {
  margin-top: 0;
}

.timeline-phase-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.timeline-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.timeline-phase-badge--done {
  background: rgba(139, 175, 63, 0.15);
  color: var(--accent);
}

.timeline-phase-badge--progress {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.timeline-phase-badge--planned {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.timeline-phase-badge--future {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.timeline-phase-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid;
  background: var(--bg);
  z-index: 1;
}

.timeline-dot--done {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline-dot--progress {
  border-color: #f59e0b;
  background: var(--bg);
  animation: pulse-dot 2s infinite;
}

.timeline-dot--planned {
  border-color: #60a5fa;
  background: var(--bg);
}

.timeline-dot--future {
  border-color: #a78bfa;
  background: var(--bg);
  opacity: 0.7;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  transition: all var(--transition-base);
}

.timeline-content:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.timeline-item--done .timeline-content {
  border-left: 3px solid rgba(139, 175, 63, 0.3);
}

.timeline-item--progress .timeline-content {
  border-left: 3px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.02);
}

.timeline-item--future .timeline-content {
  opacity: 0.7;
}

.timeline-item--future .timeline-content:hover {
  opacity: 1;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Progress Bars */
.timeline-progress-bar {
  margin-top: var(--space-sm);
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 4px;
  transition: width 1s ease;
}

/* CTA Section */
.cta-section {
  padding: var(--space-2xl) 0;
}

.cta-box {
  text-align: center;
  background: rgba(139, 175, 63, 0.05);
  border: 1px solid rgba(139, 175, 63, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.cta-box h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -28px;
    width: 12px;
    height: 12px;
  }

  .timeline-content {
    padding: var(--space-md) var(--space-lg);
  }

  .roadmap-stats {
    gap: var(--space-lg);
  }

  .roadmap-stat-value {
    font-size: 2rem;
  }
}

/* ── Accident Counter Section ────────────────────────── */
.accident-counter-section {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, transparent 100%);
  border-top: 1px solid rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid rgba(239, 68, 68, 0.08);
}

.accident-live {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.accident-live-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.accident-live-counter {
  font-size: 5rem;
  font-weight: 900;
  color: #ef4444;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
}

.accident-live-pulse {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  margin: var(--space-md) auto 0;
  animation: accident-pulse 1.5s infinite;
}

@keyframes accident-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    opacity: 1;
  }

  70% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    opacity: 0.7;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    opacity: 1;
  }
}

.accident-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.accident-stat {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.accident-stat--danger {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.04);
}

.accident-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.accident-stat--danger .accident-stat-value {
  color: #ef4444;
}

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

.accident-stat-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Fine Cards */
.accident-fines {
  margin-bottom: var(--space-2xl);
}

.accident-fines h3 {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.fine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.fine-card {
  padding: var(--space-lg);
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.fine-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.2);
}

.fine-card--max {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.fine-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ef4444;
  margin-bottom: var(--space-xs);
}

.fine-card--max .fine-amount {
  font-size: 1.5rem;
}

.fine-reason {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.fine-source {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* CTA */
.accident-cta {
  text-align: center;
}

.accident-cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .accident-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .accident-live-counter {
    font-size: 3.5rem;
  }
}

/* ── Legal Banner ────────────────────────────────────── */
.legal-banner {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-lg);
}

.legal-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: #f59e0b;
  margin-bottom: var(--space-sm);
}

.legal-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

/* ── Workflow Pipeline ───────────────────────────────── */
.workflow-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.workflow-step {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  max-width: 160px;
  position: relative;
}

.workflow-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d1117;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xs);
}

.workflow-step-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.workflow-step h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.workflow-step p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.workflow-arrow {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 800;
  padding-top: 50px;
  flex-shrink: 0;
}

/* ── Feature Deep-Dives ─────────────────────────────── */
.feature-deep {
  margin-bottom: var(--space-2xl);
}

.feature-deep-header {
  margin-bottom: var(--space-lg);
}

.feature-deep-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 175, 63, 0.12);
  color: var(--accent);
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.feature-deep h2 {
  font-size: 1.4rem;
}

.feature-deep-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-detail {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-detail h4 {
  font-size: 1.02rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

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

.feature-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2xl) 0;
}

/* Finding type tags */
.feature-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin: var(--space-sm) 0;
}

.tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag--red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.tag--yellow {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.tag--amber {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.tag--green {
  background: rgba(139, 175, 63, 0.12);
  color: var(--accent);
}

/* ── Risk Formula ────────────────────────────────────── */
.risk-formula-box {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(96, 165, 250, 0.04);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
}

.risk-formula-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.risk-formula-content {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.risk-var {
  color: #60a5fa;
}

.risk-formula-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Risk categories */
.risk-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.risk-cat {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
}

.risk-cat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.risk-cat span {
  display: block;
}

.risk-cat--1a {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.risk-cat--2b {
  background: rgba(139, 175, 63, 0.1);
  color: var(--accent);
}

.risk-cat--3c {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.risk-cat--3d {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.risk-cat--4e {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.risk-cat--4f {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

/* ── Measure Lifecycle ───────────────────────────────── */
.measure-lifecycle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}

.measure-stage {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.4;
}

.measure-stage--final {
  border-color: rgba(139, 175, 63, 0.3);
  background: rgba(139, 175, 63, 0.05);
  color: var(--accent);
}

.measure-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0 var(--space-xs);
}

/* ── USP Grid ────────────────────────────────────────── */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.usp-card {
  padding: var(--space-xl);
  background: rgba(139, 175, 63, 0.03);
  border: 1px solid rgba(139, 175, 63, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
}

.usp-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.usp-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.usp-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .workflow-pipeline {
    flex-direction: column;
    align-items: center;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .risk-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .measure-lifecycle {
    flex-direction: column;
  }

  .measure-arrow {
    transform: rotate(90deg);
  }

  .legal-banner {
    flex-direction: column;
  }
}

/* ── Workflow Highlights ─────────────────────────────── */
.workflow-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.workflow-highlight {
  padding: var(--space-md) var(--space-lg);
  background: rgba(139, 175, 63, 0.03);
  border: 1px solid rgba(139, 175, 63, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.workflow-highlight strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.workflow-highlight span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   PREMIUM 3D + SHINE — Applied to all interactive panels
   ═══════════════════════════════════════════════════════ */

/* Shared depth + inner highlight for all panels */
.audience-card,
.feature-detail,
.fine-card,
.accident-stat,
.workflow-step,
.workflow-highlight,
.timeline-content,
.trust-badge,
.risk-formula-box,
.usp-card,
.measure-stage,
.risk-cat,
.cta-box,
.calculator-box,
.calc-result-card {
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all var(--transition-slow);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Shine sweep pseudo-element */
.audience-card::after,
.feature-detail::after,
.fine-card::after,
.accident-stat::after,
.workflow-highlight::after,
.timeline-content::after,
.trust-badge::after,
.usp-card::after,
.cta-box::after,
.calc-result-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.07) 50%,
      rgba(255, 255, 255, 0.03) 55%,
      transparent 60%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

/* Trigger shine on hover */
.audience-card:hover::after,
.feature-detail:hover::after,
.fine-card:hover::after,
.accident-stat:hover::after,
.workflow-highlight:hover::after,
.timeline-content:hover::after,
.trust-badge:hover::after,
.usp-card:hover::after,
.cta-box:hover::after,
.calc-result-card:hover::after {
  transform: translateX(350%);
}

/* Hover lift + deeper shadow */
.audience-card:hover,
.feature-detail:hover,
.fine-card:hover,
.accident-stat:hover,
.workflow-highlight:hover,
.usp-card:hover,
.calc-result-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Trust badge hover — subtle */
.trust-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Workflow step — pulse scale on hover */
.workflow-step:hover {
  transform: scale(1.05);
}

/* Risk category — glow on hover */
.risk-cat:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Measure stage — lift on hover */
.measure-stage:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Primary button — pulsing glow */
.btn--primary {
  position: relative;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
  filter: blur(8px);
}

.btn--primary:hover::before {
  opacity: 0.4;
}

/* CTA box — enhanced glow border on hover */
.cta-box:hover {
  border-color: rgba(139, 175, 63, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(139, 175, 63, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}