/* =============================================================
   VettifyNG Landing — "Verification Instrument" Design System
   Aligned with /client/src/styles/design-system.css
   Tokens: Ink (teal-navy), Stamp (vermilion), Paper (warm white)
   ============================================================= */

:root {
  /* Ink (primary dark — teal-navy core) */
  --primary: #0B1F2A;            /* ink-950 */
  --primary-dark: #0B1F2A;       /* ink-950 */
  --primary-light: #2C4F60;      /* ink-700 */

  /* Stamp (accent — vermilion seal-red) */
  --accent: #C2410C;             /* stamp base */
  --accent-dark: #EA580C;        /* stamp-600 / hover */
  --accent-light: #FDBA74;       /* stamp-300 */

  /* Verify / status */
  --success: #0F766E;            /* verify */
  --error: #B91C1C;              /* danger */

  /* Neutrals / paper */
  --white: #fff;
  --off-white: #F7F5F0;          /* paper base */
  --light-gray: #EDE9E0;         /* paper-200 */
  --medium-gray: #475569;        /* slate */
  --dark-gray: #102A38;          /* ink-900 */

  /* Typography */
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-bengali: "Hind Siliguri", "Noto Sans Bengali", sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii (quiet, precise) */
  --radius-card: 0.75rem;
  --radius-button: 0.5rem;
  --radius-pill: 9999px;

  /* Shadows (ink-tinted) */
  --shadow-sm: 0 1px 2px rgba(11, 31, 42, 0.06), 0 1px 3px rgba(11, 31, 42, 0.10); /* shadow-card */
  --shadow-md: 0 6px 18px -4px rgba(11, 31, 42, 0.15);                              /* shadow-hover */
  --shadow-lg: 0 10px 24px -8px rgba(11, 31, 42, 0.22);                            /* shadow-elevated */
  --shadow-xl: 0 10px 24px -8px rgba(11, 31, 42, 0.22);                            /* shadow-elevated */

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

*, :after, :before { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Bengali language support */
[lang=bn] body,
[lang=bn] h1,
[lang=bn] h2,
[lang=bn] h3,
[lang=bn] h4,
[lang=bn] li,
[lang=bn] p,
[lang=bn] span { font-family: var(--font-bengali); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ol, ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin-bottom: var(--space-md); color: var(--medium-gray); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.section { padding: var(--space-4xl) 0; }
section { position: relative; overflow: hidden; }

/* Decorative radial wash — stamp tint (replaces gold wash) */
section:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 0, rgba(194, 65, 12, 0.03) 0, transparent 70%);
  pointer-events: none;
}

.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}
.section-header h2:after {
  content: "";
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--accent);
}
.section-header p {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  font-size: 1.1rem;
}

/* Buttons — stamp on white text for primary, matching app .btn-primary */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  transition: all 0.3s ease;
  min-height: 48px;
  min-width: 48px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.35);
}
.btn-primary:after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: hsla(0, 0%, 100%, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:hover:after { width: 300px; height: 300px; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Language switcher */
.lang-switcher { display: flex; gap: var(--space-sm); align-items: center; }
.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-button);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  background: hsla(0, 0%, 100%, 0.1);
  color: var(--white);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}
.header.scrolled {
  background: rgba(11, 31, 42, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header .container { justify-content: space-between; height: 100%; }
.header .container, .logo { display: flex; align-items: center; }
.logo { gap: var(--space-sm); }

/* Logo — stamp color box, ink text, stamp span */
.logo-icon {
  width: 45px; height: 45px;
  background: var(--accent);
  border-radius: var(--radius-button);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.logo-text span { color: var(--accent); }

/* Nav */
.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link {
  color: hsla(0, 0%, 100%, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.2s;
}
.nav-link:after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-link.active, .nav-link:hover { color: var(--white); }
.nav-link.active:after, .nav-link:hover:after { width: 100%; }
.nav-link.scrolled-active { color: var(--white); }
.nav-link.scrolled-active:after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-button);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-cta:after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 28px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s;
}
.hamburger.active span:first-child { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--primary-dark);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.active { display: flex; opacity: 1; }
.mobile-menu .nav-link { font-size: 1.5rem; color: var(--white); }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1003;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hero — ink gradient (ink-950 → ink-800) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark), #1C3A4A 50%, var(--primary-light));
  overflow: hidden;
  background-size: 200% 200%;
  animation: heroShift 8s ease infinite;
}
@keyframes heroShift {
  0% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.hero:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='a' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='25' r='1' fill='rgba(255,255,255,0.03)'/%3E%3Ccircle cx='75' cy='75' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M0 0h100v100H0z'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(194, 65, 12, 0.15);
  border: 1px solid rgba(194, 65, 12, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease;
}
.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 1.2rem;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stat h3 {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}
.hero-stat p {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--white), rgba(194, 65, 12, 0.03));
}
.feature-card:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover:before { opacity: 1; }
.feature-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 2rem;
  color: var(--white);
  transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transform: scale(1.1);
}
.feature-card h3 { margin-bottom: var(--space-md); font-size: 1.3rem; }
.feature-card p { font-size: 0.95rem; line-height: 1.7; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 60px; height: 60px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
}
.step-card:not(:last-child):after {
  content: "";
  position: absolute;
  top: 30px; left: 50%;
  width: 100%; height: 2px;
  background: var(--light-gray);
  z-index: 1;
}
.step-card h3 { margin-bottom: var(--space-sm); font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--light-gray);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
}
.pricing-card.featured:before {
  content: attr(data-badge);
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px) scale(1.02);
}
.pricing-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--light-gray);
}
.pricing-header h3 { margin-bottom: var(--space-sm); }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-heading);
}
.pricing-price span {
  font-size: 1rem;
  color: var(--medium-gray);
  font-weight: 400;
  font-family: var(--font-body);
}
.pricing-features { margin-bottom: var(--space-xl); }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}
.pricing-features li:before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }

/* Testimonials — ink gradient */
.testimonials-section {
  background: linear-gradient(135deg, var(--primary-dark), #1C3A4A);
}
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 var(--space-xl);
  text-align: center;
  position: relative;
}
.testimonial-slide:before {
  content: "\201C";
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  color: rgba(194, 65, 12, 0.1);
  font-family: var(--font-heading);
  line-height: 1;
  pointer-events: none;
}
.testimonial-rating {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}
.testimonial-text {
  font-size: 1.2rem;
  color: hsla(0, 0%, 100%, 0.9);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-author { gap: var(--space-md); display: flex; align-items: center; justify-content: center; }
.testimonial-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}
.testimonial-author-info h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.testimonial-author-info p {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.carousel-controls {
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: center;
}
.carousel-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid hsla(0, 0%, 100%, 0.3);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.carousel-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  display: flex;
  position: relative;
  border: none;
  background: transparent;
}
.carousel-dot:before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.3);
  transition: all 0.3s;
}
.carousel-dot.active:before {
  background: var(--accent);
  width: 28px;
  border-radius: 7px;
}
.carousel-dot.active { width: 30px; border-radius: 6px; }

/* CTA — ink gradient */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), #1C3A4A);
  padding: var(--space-4xl) 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-section p {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Footer — ink-950 solid */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-4xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}
.footer-about p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-social { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.footer h4 { color: var(--white); font-size: 1.15rem; margin-bottom: var(--space-lg); }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.footer-newsletter p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}
.newsletter-form { display: flex; gap: var(--space-sm); }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: var(--radius-button);
  background: hsla(0, 0%, 100%, 0.05);
  color: var(--white);
}
.newsletter-form input::placeholder { color: hsla(0, 0%, 100%, 0.5); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.35);
}
.newsletter-form button {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-button);
  font-weight: 600;
  transition: all 0.3s;
}
.newsletter-form button:hover { background: var(--accent-dark); }
.footer-bottom {
  padding: var(--space-xl) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.footer-bottom-links { display: flex; gap: var(--space-lg); }
.footer-bottom-links a {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.9rem;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

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

/* Mobile */
@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .hamburger { display: flex; }
  .nav { display: none; }

  .step-card:not(:last-child):after { display: none; }
  .steps-grid { gap: var(--space-2xl); }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  }
  .hero-stats { gap: var(--space-xl); flex-wrap: wrap; }
  .hero-stat h3 { font-size: 2rem; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .hero-stat h3 { font-size: 1.8rem; }

  .features-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: var(--space-3xl) 0; }
  .container { padding: 0 var(--space-lg); }

  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .btn { min-height: 48px; min-width: 48px; }

  .live-chat-btn {
    bottom: 80px; right: 20px;
    width: 54px; height: 54px;
  }

  .disclaimer-banner { margin-top: var(--header-height); }
  .trust-bar .container {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }
  .hero { min-height: auto; padding: var(--space-2xl) 0; }

  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; }
  .newsletter-form { flex-direction: column; }
}

@media print {
  .back-to-top, .header, .mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: static;
  width: auto; height: auto;
  padding: inherit; margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent p {
  color: hsla(0, 0%, 100%, 0.9);
  margin-bottom: 0;
  font-size: 0.9rem;
}
.cookie-consent-buttons { display: flex; gap: var(--space-sm); flex-shrink: 0; }
.cookie-consent-btn {
  padding: 10px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-accept {
  background: var(--accent);
  color: var(--white);
  border: none;
}
.cookie-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid hsla(0, 0%, 100%, 0.3);
}

/* Disclaimer banner — stamp tint */
.disclaimer-banner {
  background: rgba(194, 65, 12, 0.1);
  border: 1px solid rgba(194, 65, 12, 0.3);
  padding: var(--space-sm) var(--space-xl);
  text-align: center;
  font-size: 0.85rem;
  color: var(--primary-dark);
}
.disclaimer-banner p { margin-bottom: 0; color: var(--primary-dark); }

/* Trust bar */
.trust-bar {
  background: var(--off-white);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--light-gray);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--medium-gray);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg {
  width: 24px; height: 24px;
  color: var(--accent);
}

/* Live chat */
.live-chat-btn {
  position: fixed;
  bottom: 90px; right: 30px;
  width: 60px; height: 60px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.live-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.4);
}
.live-chat-btn .pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--accent);
  animation: liveChatPulse 2s infinite;
  z-index: -1;
}
@keyframes liveChatPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Urgency banner — stamp gradient */
.urgency-banner {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: var(--white);
  padding: 8px var(--space-xl);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Stat item — ink gradient text */
.stat-item h3 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Scroll progress — stamp gradient */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 9999;
  transition: none;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-card);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Focus styles — stamp */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Counter */
.counter { display: inline-block; min-width: 2ch; }

/* Gradient text — stamp */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Glass */
.glass {
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
}

/* Animated underline */
.animated-underline { position: relative; display: inline-block; }
.animated-underline:after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.animated-underline:hover:after { width: 100%; }

/* Pulse CTA — stamp glow */
@keyframes stampPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(194, 65, 12, 0); }
}
.pulse-cta { animation: stampPulse 2s infinite; }

.page-transition {
  animation: pageTransition 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageTransition {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Exit intent modal */
.exit-intent-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.exit-intent-modal.show { display: flex; }
.exit-intent-content {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-3xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.exit-intent-content h2 { margin-bottom: var(--space-md); font-size: 1.8rem; }
.exit-intent-content p { margin-bottom: var(--space-xl); font-size: 1.05rem; }
.exit-intent-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 1.5rem;
  color: var(--medium-gray);
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
