/* ==========================================================================
   Project Metrics Hub — Marketing Site Stylesheet
   Professional SaaS Marketing Design System
   ========================================================================== */

/* ---------- CSS Custom Properties / Design Tokens ---------- */
:root {
  --color-navy:        #1a2332;
  --color-navy-light:  #243044;
  --color-navy-dark:   #111824;
  --color-green:       #4CAF50;
  --color-green-dark:  #43a047;
  --color-green-light: #66BB6A;
  --color-teal:        #00897b;
  --color-teal-light:  #26a69a;
  --color-white:       #ffffff;
  --color-gray-50:     #f8f9fc;
  --color-gray-100:    #f1f3f7;
  --color-gray-200:    #e2e6ee;
  --color-gray-300:    #cdd3df;
  --color-gray-400:    #9ca3b4;
  --color-gray-500:    #6b7280;
  --color-gray-600:    #4b5563;
  --color-gray-700:    #374151;
  --color-gray-800:    #1f2937;
  --color-text:        #1a2332;
  --color-text-muted:  #6b7280;
  --color-text-light:  #9ca3b4;
  --color-text-on-dark:#e2e6ee;
  --color-border:      #e2e6ee;
  --color-danger:      #ef4444;

  --gradient-hero:     linear-gradient(135deg, #1a2332 0%, #243044 40%, #1a3a4a 70%, #0d3b3a 100%);
  --gradient-green:    linear-gradient(135deg, #4CAF50 0%, #00897b 100%);
  --gradient-cta:      linear-gradient(135deg, #1a2332 0%, #00897b 100%);
  --gradient-card:     linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  --gradient-glass:    linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-dark-section: linear-gradient(180deg, #1a2332 0%, #111824 100%);

  --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
  --shadow-2xl:  0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(76,175,80,0.15);
  --shadow-green:0 4px 14px rgba(76,175,80,0.3);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height:  72px;
  --container-max: 1200px;
  --container-wide: 1400px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::selection {
  background: rgba(76,175,80,0.2);
  color: var(--color-navy);
}

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

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

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-green);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

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

.text-gradient {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--gradient-green);
  color: var(--color-white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

.btn-primary::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-green);
  color: var(--color-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: rgba(76,175,80,0.08);
}

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

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

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn .arrow {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ========================================================================
   1. NAVIGATION
   ======================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.35s var(--ease-out);
}

.navbar--transparent {
  background: transparent;
}

.navbar--solid,
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-link { color: var(--color-navy); }
.navbar.scrolled .nav-link:hover { color: var(--color-green); }
.navbar.scrolled .nav-logo-dark { display: block; }
.navbar.scrolled .nav-logo-light { display: none; }

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-dark { display: none; }
.nav-logo-light { display: block; }

.navbar--solid .nav-logo-dark { display: block; }
.navbar--solid .nav-logo-light { display: none; }

.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  position: relative;
}

.navbar--solid .nav-link {
  color: var(--color-gray-600);
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.navbar--solid .nav-link:hover,
.navbar.scrolled .nav-link:hover {
  color: var(--color-green);
  background: rgba(76,175,80,0.06);
}

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

.navbar--solid .nav-link.active {
  color: var(--color-green);
}

.nav-cta {
  margin-left: 16px;
}

.nav-cta .btn-primary {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 1001;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.navbar--solid .nav-hamburger span,
.navbar.scrolled .nav-hamburger span {
  background: var(--color-navy);
}

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

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  padding: calc(var(--nav-height) + 32px) 32px 32px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-mobile.active {
  display: flex;
  animation: fadeIn 0.3s var(--ease-out);
}

.nav-mobile .nav-link {
  font-size: 1.25rem;
  padding: 16px;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile .nav-link:hover {
  color: var(--color-green);
  background: rgba(76,175,80,0.08);
}

.nav-mobile .btn-primary {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ========================================================================
   2. HERO SECTION
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: calc(var(--nav-height) + 60px) 0 80px;
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0,137,123,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

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

.hero-text {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(76,175,80,0.12);
  border: 1px solid rgba(76,175,80,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-green-light);
  margin-bottom: 24px;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(76,175,80,0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-avatars {
  display: flex;
}

.hero-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-navy);
  margin-left: -10px;
  object-fit: cover;
}

.hero-avatars img:first-child { margin-left: 0; }

.hero-social-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.hero-social-text strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* Hero Image / Mockup */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.hero-mockup {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl), 0 0 80px rgba(76,175,80,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}

.hero-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.hero-mockup img {
  width: 100%;
  display: block;
}

.hero-mockup-glow {
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(76,175,80,0.2) 0%, transparent 70%);
  filter: blur(30px);
}

.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
}

.hero-float-card--1 {
  top: 10%;
  right: -30px;
  animation-delay: 0s;
}

.hero-float-card--2 {
  bottom: 15%;
  left: -20px;
  animation-delay: 2s;
}

.hero-float-card .float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.hero-float-card .float-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.hero-float-card .float-subtext {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

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

/* ========================================================================
   3. STATS BAR
   ======================================================================== */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -50px;
}

.stats-bar .container {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  border: 1px solid var(--color-gray-100);
}

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

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--color-gray-200);
}

.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

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

/* ========================================================================
   4. FEATURES GRID
   ======================================================================== */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--gradient-dark-section);
  color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.section--dark .section-label {
  color: var(--color-green-light);
}

.section--gray {
  background: var(--color-gray-50);
}

.section-header {
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(76,175,80,0.2);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(76,175,80,0.1) 0%, rgba(0,137,123,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-green);
  transition: all 0.35s var(--ease-out);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-green);
  color: var(--color-white);
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-navy);
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-green);
  transition: gap 0.2s;
}

.feature-link:hover { gap: 10px; }

/* Dark variant cards */
.section--dark .feature-card {
  background: var(--gradient-glass);
  border-color: rgba(255,255,255,0.08);
}

.section--dark .feature-card:hover {
  border-color: rgba(76,175,80,0.3);
  background: rgba(255,255,255,0.08);
}

.section--dark .feature-title { color: var(--color-white); }
.section--dark .feature-description { color: rgba(255,255,255,0.6); }

/* ========================================================================
   5. SCREENSHOT SHOWCASE
   ======================================================================== */
.showcase {
  padding: 80px 0;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
}

.showcase-item:not(:last-child) {
  border-bottom: 1px solid var(--color-gray-100);
}

.showcase-item--reverse {
  direction: rtl;
}

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

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

.showcase-text .section-label {
  margin-bottom: 12px;
}

.showcase-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.showcase-text p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
}

.showcase-features .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(76,175,80,0.1);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-200);
  transition: all 0.5s var(--ease-out);
}

.showcase-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.showcase-image img {
  width: 100%;
  display: block;
}

/* Placeholder visual cards (for features without screenshots) */
.showcase-image--placeholder {
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.section--gray .showcase-image--placeholder {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}

.placeholder-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 280px;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(76,175,80,0.08);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.placeholder-metric-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  padding: 10px 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
}

.section--gray .placeholder-metric-row {
  background: var(--color-gray-50);
}

.placeholder-metric-row span:nth-child(2) {
  flex: 1;
  font-weight: 500;
}

.placeholder-val {
  font-weight: 700;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.placeholder-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.placeholder-dot--green { background: var(--color-green); }
.placeholder-dot--blue { background: #3b82f6; }
.placeholder-dot--amber { background: #f59e0b; }
.placeholder-dot--red { background: #ef4444; }

.showcase-image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(26,35,50,0.8);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========================================================================
   6. INTEGRATIONS SECTION
   ======================================================================== */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.integration-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.3s var(--ease-out);
  text-align: center;
}

.integration-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(76,175,80,0.2);
}

.integration-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.integration-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.integration-icon .icon-emoji {
  font-size: 1.75rem;
}

.integration-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
}

.integration-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-green);
  background: rgba(76,175,80,0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.section--dark .integration-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.section--dark .integration-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(76,175,80,0.3);
}

.section--dark .integration-name { color: var(--color-white); }
.section--dark .integration-icon { background: rgba(255,255,255,0.06); }

/* ========================================================================
   7. SECURITY SECTION
   ======================================================================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.security-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.security-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity 0.3s;
}

.security-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(76,175,80,0.3);
  transform: translateY(-4px);
}

.security-card:hover::after { opacity: 1; }

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(76,175,80,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-green-light);
}

.security-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.security-description {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* Light variant */
.section:not(.section--dark) .security-card {
  background: var(--color-white);
  border-color: var(--color-gray-200);
}

.section:not(.section--dark) .security-card:hover {
  background: var(--color-white);
}

.section:not(.section--dark) .security-title { color: var(--color-navy); }
.section:not(.section--dark) .security-description { color: var(--color-text-muted); }
.section:not(.section--dark) .security-icon { background: rgba(76,175,80,0.08); color: var(--color-green); }

/* ========================================================================
   8. PRICING SECTION
   ======================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  background: var(--color-navy);
  border-color: var(--color-navy);
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(76,175,80,0.15);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-green);
  color: var(--color-white);
  padding: 6px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pricing-card--featured .pricing-tier {
  color: var(--color-green-light);
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.pricing-card--featured .pricing-name {
  color: var(--color-white);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-card--featured .pricing-desc {
  color: rgba(255,255,255,0.5);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  line-height: 1;
}

.pricing-period {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.pricing-card--featured .pricing-currency,
.pricing-card--featured .pricing-amount {
  color: var(--color-white);
}

.pricing-card--featured .pricing-period {
  color: rgba(255,255,255,0.5);
}

.pricing-custom {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--color-gray-200);
  margin: 24px 0;
}

.pricing-card--featured .pricing-divider {
  background: rgba(255,255,255,0.1);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
}

.pricing-card--featured .pricing-feature {
  color: rgba(255,255,255,0.7);
}

.pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(76,175,80,0.1);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6875rem;
  margin-top: 2px;
}

.pricing-card--featured .pricing-check {
  background: rgba(76,175,80,0.2);
  color: var(--color-green-light);
}

.pricing-action {
  margin-top: auto;
}

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

.pricing-card--featured .btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.pricing-card--featured .btn-secondary:hover {
  background: var(--color-gray-50);
  transform: translateY(-2px);
}

/* Pricing Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.pricing-toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--color-navy);
  font-weight: 600;
}

.pricing-toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.pricing-toggle-switch.active {
  background: var(--color-green);
}

.pricing-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out);
}

.pricing-toggle-switch.active::after {
  transform: translateX(24px);
}

.pricing-save-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-green);
  background: rgba(76,175,80,0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ========================================================================
   9. TESTIMONIALS
   ======================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #f59e0b;
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Dark testimonials */
.section--dark .testimonial-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.section--dark .testimonial-card:hover {
  background: rgba(255,255,255,0.07);
}

.section--dark .testimonial-quote { color: rgba(255,255,255,0.65); }
.section--dark .testimonial-name { color: var(--color-white); }
.section--dark .testimonial-role { color: rgba(255,255,255,0.4); }

/* Logos Bar */
.logos-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 0;
  opacity: 0.5;
}

.logos-bar img {
  height: 28px;
  width: auto;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.logos-bar img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ========================================================================
   10. CTA BANNER
   ======================================================================== */
.cta-banner {
  background: var(--gradient-cta);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(76,175,80,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-banner .cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================================================
   11. FOOTER
   ======================================================================== */
.footer {
  background: var(--color-navy-dark);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: rgba(76,175,80,0.15);
  color: var(--color-green-light);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--color-green-light);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* ========================================================================
   12. PAGE-SPECIFIC STYLES
   ======================================================================== */

/* Page Hero (Sub-pages) */
.page-hero {
  background: var(--gradient-hero);
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.page-hero .breadcrumb a:hover {
  color: var(--color-green-light);
}

.page-hero .breadcrumb .separator {
  font-size: 0.75rem;
}

/* Features Page */
.features-page .feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.features-page .feature-detail:not(:last-child) {
  border-bottom: 1px solid var(--color-gray-100);
}

.features-page .feature-detail--reverse {
  direction: rtl;
}

.features-page .feature-detail--reverse > * {
  direction: ltr;
}

.feature-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-200);
}

.feature-detail-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.feature-detail-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-list-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(76,175,80,0.1);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 2px;
}

.feature-list-text {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.feature-list-text strong {
  color: var(--color-navy);
}

/* Integrations Page */
.integrations-page .integration-category {
  margin-bottom: 64px;
}

.integration-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gray-100);
}

.integration-detail-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s var(--ease-out);
  margin-bottom: 16px;
}

.integration-detail-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(76,175,80,0.2);
}

.integration-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.integration-detail-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.integration-detail-content p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integration-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-200);
}

/* Security Page */
.security-page .compliance-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 48px 0;
}

.compliance-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  min-width: 140px;
}

.compliance-badge .badge-icon {
  font-size: 2rem;
}

.compliance-badge .badge-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.security-detail-section {
  padding: 80px 0;
}

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

/* Pricing Page extras */
.pricing-page .pricing-faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

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

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-100);
}

.comparison-table thead th {
  background: var(--color-gray-50);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table tbody td {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
}

.comparison-table tbody tr:hover {
  background: var(--color-gray-50);
}

.comparison-table .check-cell {
  text-align: center;
  color: var(--color-green);
  font-size: 1.125rem;
}

.comparison-table .dash-cell {
  text-align: center;
  color: var(--color-gray-300);
}

/* ========================================================================
   13. ANIMATIONS
   ======================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Hover micro-interactions */
.hover-lift {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

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

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card--featured {
    transform: none;
    grid-column: 1 / -1;
    max-width: 350px;
    margin: 0 auto;
  }

  .pricing-card--featured:hover {
    transform: translateY(-6px);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .showcase-item {
    gap: 40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-mockup {
    transform: none;
  }

  .hero-float-card {
    display: none;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-page .feature-detail {
    gap: 40px;
  }
}

/* Small Tablets / Large Phones (< 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

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

  .pricing-card--featured {
    max-width: 100%;
  }

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

  .showcase-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .showcase-text {
    max-width: 100%;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px;
    gap: 24px;
    margin: 0 16px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 40px) 0 60px;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

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

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

  .cta-banner {
    padding: 72px 0;
  }

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

  .features-page .feature-detail--reverse {
    direction: ltr;
  }

  .security-detail-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-hero {
    padding: calc(var(--nav-height) + 48px) 0 56px;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

/* Phones (< 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-social-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stats-bar .container {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .integration-card {
    padding: 20px 12px;
  }

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

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

  .footer-legal {
    justify-content: center;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

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

  .pricing-card {
    padding: 32px 24px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px;
    font-size: 0.8125rem;
  }

  .compliance-badges {
    gap: 12px;
  }

  .compliance-badge {
    padding: 16px 20px;
    min-width: 100px;
  }

  .integration-detail-card {
    flex-direction: column;
    gap: 16px;
  }

  .cta-banner h2 {
    font-size: 1.75rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }
}

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

  .fade-in-up,
  .slide-in-left,
  .slide-in-right,
  .scale-in,
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-mockup { transform: none; }
  .hero-float-card { animation: none; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-border: #666;
    --color-text-muted: #444;
  }

  .feature-card,
  .pricing-card,
  .testimonial-card,
  .integration-card,
  .security-card {
    border-width: 2px;
  }
}

/* ========================================================================
   ACCORDION
   ======================================================================== */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--color-white);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  gap: 16px;
  line-height: 1.4;
}

.accordion-trigger:hover {
  color: var(--color-green);
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gray-100);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.accordion-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-gray-500);
  transition: stroke 0.3s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--color-green);
}

.accordion-item.active .accordion-icon svg {
  stroke: var(--color-white);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.accordion-panel-inner {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.accordion-panel-inner p {
  margin-bottom: 12px;
}

.accordion-panel-inner p:last-child {
  margin-bottom: 0;
}

.accordion-panel-inner ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.accordion-panel-inner ul li {
  margin-bottom: 6px;
}

.section--dark .accordion-item {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.section--dark .accordion-trigger {
  color: var(--color-text-on-dark);
}

.section--dark .accordion-panel-inner {
  color: rgba(255,255,255,0.65);
}

.section--dark .accordion-icon {
  background: rgba(255,255,255,0.1);
}

.section--dark .accordion-icon svg {
  stroke: rgba(255,255,255,0.5);
}

.section--dark .accordion-item.active .accordion-icon {
  background: var(--color-green);
}

.section--dark .accordion-item.active .accordion-icon svg {
  stroke: var(--color-white);
}

/* ========================================================================
   LEGAL PAGES
   ======================================================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gray-200);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 32px 0 12px;
}

.legal-content p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-content a {
  color: var(--color-green);
  font-weight: 500;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-effective-date {
  display: inline-block;
  background: var(--color-gray-100);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
}

/* ========================================================================
   BACK TO TOP BUTTON
   ======================================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg), var(--shadow-green);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
  border: none;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(76,175,80,0.45);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================================================
   ANIMATED NUMBER COUNTERS
   ======================================================================== */
.stat-number[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ========================================================================
   STEP NUMBERS (How It Works)
   ======================================================================== */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 auto 16px;
  position: relative;
}

/* ========================================================================
   TABBED CONTENT
   ======================================================================== */
.tabs {
  margin-bottom: 48px;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  min-width: fit-content;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
  text-align: center;
}

.tab-btn:hover {
  color: var(--color-navy);
}

.tab-btn.active {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s var(--ease-out);
}

.tab-panel.active {
  display: block;
}

/* ========================================================================
   COMPLIANCE / TRUST BADGES (Homepage)
   ======================================================================== */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.trust-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(76,175,80,0.3);
  transform: translateY(-2px);
}

.trust-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(76,175,80,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.trust-badge-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
}

.trust-badge-sub {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  display: block;
}

/* ========================================================================
   FEATURE HIGHLIGHT CARDS (Expandable)
   ======================================================================== */
.feature-expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-green);
  cursor: pointer;
  margin-top: 12px;
  transition: gap 0.2s;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font-sans);
}

.feature-expand-toggle:hover {
  gap: 10px;
}

.feature-expand-toggle svg {
  transition: transform 0.3s var(--ease-out);
}

.feature-card.expanded .feature-expand-toggle svg {
  transform: rotate(180deg);
}

.feature-expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.feature-card.expanded .feature-expand-content {
  max-height: 200px;
}

.feature-expand-inner {
  padding-top: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.feature-expand-inner ul {
  list-style: disc;
  padding-left: 18px;
  margin-top: 8px;
}

.feature-expand-inner ul li {
  margin-bottom: 4px;
}

/* ========================================================================
   PROGRESS INDICATOR / READING PROGRESS
   ======================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-green);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* Features page: offset scroll for sticky nav */
[id^="feat-"] {
  scroll-margin-top: calc(var(--nav-height) + 64px);
}

/* Feature card hover lift */
.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ========================================================================
   RESPONSIVE ADDITIONS
   ======================================================================== */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .tab-nav {
    gap: 2px;
    padding: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-nav::-webkit-scrollbar { display: none; }

  .tab-btn {
    padding: 10px 14px;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .trust-badges {
    gap: 12px;
  }

  .trust-badge {
    padding: 10px 14px;
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }

  .features-grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .trust-badge {
    flex: 1 1 100%;
  }

  .tab-nav {
    flex-wrap: nowrap;
  }
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */
@media print {
  .navbar,
  .nav-mobile,
  .hero-float-card,
  .cta-banner,
  .footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section { padding: 32px 0; }

  .hero {
    min-height: auto;
    background: none;
    padding: 32px 0;
  }

  .hero-title,
  .page-hero h1 {
    color: #000;
  }

  .hero-description,
  .page-hero p {
    color: #333;
  }
}
