/* ==============================================
   AFFILIATE MARKETING SOFTWARE PAGE
   affiliate.css — Page-specific styles
   Extends: css/style.css
   Theme: Emerald / Teal / Indigo / Deep Slate
   Primary:   #059669 (Emerald-600)
   Secondary: #0d9488 (Teal-600)
   Accent:    #6366f1 (Indigo-500)
   Dark BG:   #020c14 (Deep Slate Black)
   ============================================== */

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --af-primary:        #059669;
  --af-primary-dark:   #047857;
  --af-primary-light:  #6ee7b7;
  --af-secondary:      #0d9488;
  --af-teal:           #14b8a6;
  --af-indigo:         #6366f1;
  --af-violet:         #8b5cf6;
  --af-cyan:           #06b6d4;
  --af-accent:         #f59e0b;
  --af-accent-light:   #fcd34d;
  --af-gold:           #d97706;
  --af-green:          #10b981;
  --af-rose:           #f43f5e;
  --af-blue:           #3b82f6;
  --af-dark:           #020c14;
  --af-dark-card:      #071a2c;
  --af-dark-card2:     #0a2236;
  --af-gradient:       linear-gradient(135deg, #059669 0%, #0d9488 55%, #0891b2 100%);
  --af-gradient-accent:linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --af-gradient-dark:  linear-gradient(160deg, #020c14 0%, #071a2c 50%, #0a2236 100%);
  --af-gradient-hero:  linear-gradient(155deg, #020c14 0%, #071a2c 30%, #0a2d1f 60%, #0d3d2a 100%);
  --af-glow:           0 0 40px rgba(5,150,105,0.4);
  --af-glow-accent:    0 0 30px rgba(99,102,241,0.3);
  --af-glow-teal:      0 0 30px rgba(13,148,136,0.3);
  --af-border:         rgba(110,231,183,0.15);
  --af-border-light:   rgba(52,211,153,0.1);
}

/* ===========================
   ANNOUNCEMENT BAR
   =========================== */
.announcement-bar {
  background: var(--af-gradient);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 200;
  overflow: hidden;
  max-height: 100px;
  transition: max-height 0.4s, opacity 0.4s;
}
.announcement-bar p { margin: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.announcement-bar i { color: var(--af-accent-light); }
.ann-link { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 0.25rem; }
.ann-link:hover { opacity: 0.85; }

/* ===========================
   BREADCRUMB BAR
   =========================== */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.625rem 0;
}
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.375rem; list-style: none; margin: 0; padding: 0;
  font-size: 0.8125rem;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a { color: var(--gray-500); font-weight: 500; }
.breadcrumb a:hover { color: var(--af-primary); }
.breadcrumb li[aria-current="page"] { color: var(--gray-900); font-weight: 600; }
.breadcrumb i { color: var(--gray-400); font-size: 0.65rem; }

/* ===========================
   HERO — AFFILIATE SOFTWARE
   =========================== */
.hero-af {
  min-height: 800px;
  padding: 4.5rem 0 5.5rem;
  background: var(--af-gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero-af-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-af-copy { max-width: 600px; }

/* Hero BG shapes */
.hero-bg-shapes-af { position: absolute; inset: 0; pointer-events: none; }
.shape-af { position: absolute; border-radius: 50%; filter: blur(80px); }
.shape-af-1 { width: 600px; height: 600px; top: -220px; left: -150px; background: rgba(5,150,105,0.25); }
.shape-af-2 { width: 420px; height: 420px; bottom: -140px; right: -100px; background: rgba(99,102,241,0.12); }
.shape-af-3 { width: 300px; height: 300px; top: 35%; right: 8%; background: rgba(13,148,136,0.15); }
.shape-af-4 { width: 220px; height: 220px; top: 18%; left: 42%; background: rgba(245,158,11,0.07); }
.grid-overlay-af {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110,231,183,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,231,183,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Hero Text */
.hero-badge-af {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(5,150,105,0.2);
  border: 1px solid rgba(110,231,183,0.35);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem; font-size: 0.8125rem;
  color: var(--af-primary-light); margin-bottom: 1.25rem; width: fit-content;
}
.hero-badge-af i { color: var(--af-accent-light); }

.hero-headline-af {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900; color: #fff; line-height: 1.15;
  margin-bottom: 1.25rem; font-family: var(--font-primary);
}
.hero-headline-af span.af-gradient-text {
  background: linear-gradient(135deg, #6ee7b7 0%, #fcd34d 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subheadline-af {
  font-size: 1.0625rem; color: rgba(255,255,255,0.72);
  line-height: 1.7; margin-bottom: 2rem;
}
.hero-subheadline-af strong { color: rgba(255,255,255,0.95); }
.hero-actions-af {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
}
.hero-trust-af {
  display: flex; flex-wrap: wrap; gap: 0.625rem;
}
.trust-item-af {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.65);
}
.trust-item-af i { color: var(--af-accent); font-size: 0.75rem; }

/* ===========================
   AFFILIATE FLOW DIAGRAM
   =========================== */
.af-flow-diagram {
  background: rgba(7,26,44,0.92);
  border: 1px solid var(--af-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--af-glow), 0 24px 48px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.af-flow-diagram::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--af-primary), var(--af-secondary), var(--af-accent));
}
.af-flow-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--af-border);
}
.af-flow-title {
  font-size: 0.78rem; font-weight: 700; color: var(--af-primary-light);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.5rem;
}
.af-flow-live {
  background: rgba(5,150,105,0.15); border: 1px solid rgba(5,150,105,0.3);
  color: #6ee7b7; font-size: 0.65rem; font-weight: 800;
  padding: 2px 8px; border-radius: var(--radius-full); letter-spacing: 0.1em;
  animation: af-pulse-live 2s infinite;
}
@keyframes af-pulse-live { 0%,100%{ opacity:1; } 50%{ opacity:0.55; } }

/* Affiliate Flow Steps */
.af-flow-steps {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.af-flow-step {
  display: flex; align-items: center; gap: 0.875rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--af-border);
  border-radius: var(--radius-lg); padding: 0.875rem 1rem;
  transition: border-color 0.25s;
  animation: af-step-in 0.5s ease forwards;
  opacity: 0;
}
.af-flow-step:hover { border-color: rgba(110,231,183,0.3); }
@keyframes af-step-in { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:translateX(0); } }
.af-flow-step:nth-child(1) { animation-delay: 0.1s; }
.af-flow-step:nth-child(2) { animation-delay: 0.2s; }
.af-flow-step:nth-child(3) { animation-delay: 0.3s; }
.af-flow-step:nth-child(4) { animation-delay: 0.4s; }
.af-flow-step:nth-child(5) { animation-delay: 0.5s; }
.af-flow-step.highlight { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.05); }
.af-step-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.af-step-label { font-size: 0.875rem; font-weight: 700; color: #fff; }
.af-step-sub   { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.af-step-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(5,150,105,0.12); border: 1px solid rgba(5,150,105,0.25);
  color: #6ee7b7; padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700;
  white-space: nowrap;
}
.af-flow-arrow {
  display: flex; align-items: center; justify-content: center; padding: 0 0.5rem;
}
.af-flow-arrow i { color: rgba(110,231,183,0.35); font-size: 0.7rem; }

/* Flow metrics footer */
.af-flow-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 1.25rem;
  border-top: 1px solid var(--af-border);
  padding-top: 1.25rem;
}
.af-flow-metric { text-align: center; padding: 0.25rem; }
.af-flow-metric-val { font-size: 1.1rem; font-weight: 900; color: #fff; line-height: 1; }
.af-flow-metric-lbl { font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }

/* ===========================
   STATS BAR
   =========================== */
.af-stats-section {
  background: var(--af-gradient);
  padding: 1.5rem 0;
}
.af-stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; text-align: center;
}
.af-stat-box {
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.af-stat-box:last-child { border-right: none; }
.af-stat-number {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900; color: #fff; line-height: 1; margin-bottom: 0.3rem;
}
.af-stat-number sup, .af-stat-number span { font-size: 0.7em; }
.af-stat-desc { font-size: 0.8125rem; color: rgba(255,255,255,0.78); font-weight: 500; }

/* ===========================
   CONTENT SECTIONS
   =========================== */
.af-content-section { padding: 5rem 0; }
.af-bg-light  { background: var(--gray-50); }
.af-bg-white  { background: #fff; }
.af-bg-dark   { background: var(--af-gradient-dark); color: rgba(255,255,255,0.85); }
.af-bg-dark h2, .af-bg-dark h3 { color: #fff; }

/* Section header */
.af-section-header { margin-bottom: 3rem; }
.af-section-header.text-center { text-align: center; }
.af-section-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
  color: var(--af-primary);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.875rem;
}
.af-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: var(--gray-900);
  line-height: 1.22; margin-bottom: 1rem;
}
.af-bg-dark .af-section-tag {
  background: rgba(110,231,183,0.1);
  border-color: rgba(110,231,183,0.2);
  color: var(--af-primary-light);
}
.af-bg-dark .af-section-header h2 { color: #fff; }
.af-section-intro {
  font-size: 1.0625rem; color: var(--gray-600);
  line-height: 1.7; max-width: 720px; margin: 0 auto;
}
.af-bg-dark .af-section-intro { color: rgba(255,255,255,0.65); }

/* ===========================
   EEAT AUTHOR BOX
   =========================== */
.af-eeat-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(5,150,105,0.04);
  border: 1px solid rgba(5,150,105,0.15);
  border-left: 4px solid var(--af-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.af-eeat-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--af-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem; flex-shrink: 0;
}
.af-eeat-name { font-weight: 700; color: var(--gray-900); font-size: 0.9375rem; margin-bottom: 0.375rem; }
.af-eeat-creds { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.af-eeat-creds span { display: flex; align-items: center; gap: 0.3rem; }
.af-eeat-creds i { color: var(--af-primary); }
.af-eeat-summary { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* ===========================
   INFO CALLOUT
   =========================== */
.af-callout {
  display: flex; gap: 0.875rem;
  background: rgba(5,150,105,0.05);
  border: 1px solid rgba(5,150,105,0.18);
  border-left: 4px solid var(--af-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9375rem; color: var(--gray-700); line-height: 1.7;
}
.af-bg-dark .af-callout {
  background: rgba(110,231,183,0.05);
  border-color: rgba(110,231,183,0.15);
  border-left-color: var(--af-primary-light);
  color: rgba(255,255,255,0.75);
}
.af-callout > i { color: var(--af-primary); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* Intro text */
.af-intro-text p {
  font-size: 1rem; color: var(--gray-700);
  line-height: 1.8; margin-bottom: 1.25rem;
}
.af-intro-text p:last-child { margin-bottom: 0; }
.af-intro-text a { color: var(--af-primary); font-weight: 600; }
.af-intro-text a:hover { text-decoration: underline; }
.af-intro-text strong { color: var(--gray-900); }

/* ===========================
   DIFF GRID (how-it-works steps)
   =========================== */
.af-diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.af-diff-card {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
}
.af-diff-card:hover {
  border-color: var(--af-primary);
  box-shadow: 0 8px 32px rgba(5,150,105,0.12);
  transform: translateY(-3px);
}
.af-diff-card.highlight {
  border-color: var(--af-primary);
  background: rgba(5,150,105,0.03);
  box-shadow: 0 4px 24px rgba(5,150,105,0.1);
}
.af-diff-icon {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 0.875rem;
}
.af-diff-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.af-diff-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
.af-step-number {
  position: absolute; top: -14px; left: 1.25rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--af-gradient); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(5,150,105,0.35);
}

/* ===========================
   USE CASES SECTION
   =========================== */
.af-usecase-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem;
}
.af-usecase-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(110,231,183,0.12);
  border-radius: var(--radius-xl); padding: 1.75rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.af-usecase-card:hover {
  border-color: rgba(110,231,183,0.3); background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}
.af-usecase-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.af-usecase-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.af-usecase-card p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin: 0; }
.af-usecase-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(110,231,183,0.1); border: 1px solid rgba(110,231,183,0.2);
  color: var(--af-primary-light); padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; margin-top: 0.75rem;
}

/* ===========================
   BENEFITS GRID
   =========================== */
.af-benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.af-benefit-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 1.75rem;
  border-top: 4px solid transparent;
  transition: border-top-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.af-benefit-card:hover {
  border-top-color: var(--af-primary);
  box-shadow: 0 8px 32px rgba(5,150,105,0.1);
  transform: translateY(-3px);
}
.af-benefit-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.af-benefit-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.af-benefit-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

/* ===========================
   FEATURES TABS
   =========================== */
.af-tabs-wrap {
  background: rgba(7,26,44,0.92);
  border: 1px solid var(--af-border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.af-tab-nav {
  display: flex; flex-wrap: wrap;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--af-border);
}
.af-tab-btn {
  padding: 0.875rem 1.4rem;
  background: transparent; border: none; cursor: pointer;
  font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.5);
  border-bottom: 3px solid transparent; transition: all 0.25s;
}
.af-tab-btn:hover { color: rgba(255,255,255,0.8); }
.af-tab-btn.active {
  color: var(--af-primary-light);
  border-bottom-color: var(--af-primary-light);
  background: rgba(110,231,183,0.05);
}
.af-tab-panel { display: none; padding: 2rem; }
.af-tab-panel.active { display: block; }

/* Feature card inside tab */
.af-feat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start;
}
.af-feat-info h3 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.af-feat-info p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 1rem; }
.af-feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.af-feat-list li {
  display: flex; gap: 0.5rem; font-size: 0.875rem;
  color: rgba(255,255,255,0.65); align-items: flex-start; line-height: 1.55;
}
.af-feat-list i { color: var(--af-primary-light); font-size: 0.75rem; margin-top: 3px; flex-shrink: 0; }

.af-feat-visual {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(110,231,183,0.12);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.af-feat-visual-title {
  font-size: 0.72rem; font-weight: 700; color: var(--af-accent-light);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.875rem;
}
.af-feat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8125rem;
}
.af-feat-row:last-child { border-bottom: none; }
.af-feat-row span:first-child { color: rgba(255,255,255,0.55); }
.af-feat-row span:last-child { color: #fff; font-weight: 700; }
.af-feat-badge {
  display: inline-flex; align-items: center;
  background: rgba(110,231,183,0.12); border: 1px solid rgba(110,231,183,0.25);
  color: var(--af-primary-light); padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700;
  margin-top: 0.75rem;
}

/* ===========================
   COMMISSION MODELS GRID
   =========================== */
.af-models-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.af-model-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.af-model-card:hover {
  border-color: var(--af-primary);
  box-shadow: 0 8px 32px rgba(5,150,105,0.1);
  transform: translateY(-3px);
}
.af-model-card.featured {
  border-color: var(--af-primary); background: rgba(5,150,105,0.03);
  box-shadow: 0 4px 24px rgba(5,150,105,0.1);
}
.af-model-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.af-model-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.af-model-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 0.875rem; }
.af-model-rate {
  display: inline-flex; align-items: center;
  background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2);
  color: var(--af-primary); padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700;
}

/* ===========================
   ADVANCED TRACKING (dark bg)
   =========================== */
.af-tracking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.af-tracking-title {
  font-size: 1rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.af-tracking-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.af-tracking-list li {
  display: flex; gap: 0.875rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.65;
}
.af-tracking-list i { color: var(--af-primary-light); font-size: 0.875rem; margin-top: 2px; flex-shrink: 0; }
.af-tracking-list li strong { color: #fff; }
.af-attribution-visual {
  background: rgba(255,255,255,0.03); border: 1px solid var(--af-border);
  border-radius: var(--radius-xl); padding: 1.75rem;
}
.af-attr-title {
  font-size: 0.78rem; font-weight: 700; color: var(--af-primary-light);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.af-attr-step {
  display: flex; gap: 0.875rem; align-items: flex-start;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 0.875rem 1rem;
  margin-bottom: 0.5rem; transition: border-color 0.25s;
}
.af-attr-step:hover { border-color: rgba(110,231,183,0.25); }
.af-attr-step.accent-step { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.05); }
.af-attr-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(5,150,105,0.25); color: var(--af-primary-light);
  font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.af-attr-step.accent-step .af-attr-num { background: rgba(99,102,241,0.25); color: #c7d2fe; }
.af-attr-step-title { font-size: 0.875rem; font-weight: 700; color: #fff; }
.af-attr-step-sub { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 1px; }

/* ===========================
   CALC / ANALYTICS BAR CHART
   =========================== */
.af-calc-wrap {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start;
}
.af-calc-scenario {
  background: rgba(255,255,255,0.03); border: 1px solid var(--af-border);
  border-radius: var(--radius-xl); padding: 1.75rem;
}
.af-calc-scenario-title {
  font-size: 0.78rem; font-weight: 700; color: var(--af-accent-light);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.af-calc-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.625rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
}
.af-calc-row:last-child { border-bottom: none; }
.af-calc-row-label { color: rgba(255,255,255,0.55); }
.af-calc-row-val { color: #fff; font-weight: 600; text-align: right; }

.af-calc-visual {
  background: rgba(255,255,255,0.03); border: 1px solid var(--af-border);
  border-radius: var(--radius-xl); padding: 1.75rem;
}
.af-calc-visual-title {
  font-size: 0.78rem; font-weight: 700; color: var(--af-primary-light);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.af-calc-bar-row { margin-bottom: 1rem; }
.af-calc-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 0.3rem;
}
.af-calc-bar-label span:last-child { color: #fff; font-weight: 700; }
.af-calc-bar-track {
  height: 8px; background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full); overflow: hidden;
}
.af-calc-bar-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--af-primary), var(--af-secondary));
  width: 0; transition: width 1.4s ease;
}
.af-calc-bar-fill.accent { background: linear-gradient(90deg, var(--af-indigo), var(--af-violet)); }
.af-calc-bar-fill.gold   { background: linear-gradient(90deg, var(--af-accent), var(--af-gold)); }
.af-calc-bar-fill.teal   { background: linear-gradient(90deg, var(--af-teal), var(--af-cyan)); }
.af-calc-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.875rem 0 0; margin-top: 0.5rem;
  border-top: 1px solid rgba(110,231,183,0.25);
  font-size: 1.025rem; font-weight: 800;
}
.af-calc-total-row span:first-child { color: var(--af-accent-light); }
.af-calc-total-row span:last-child { color: var(--af-accent-light); font-size: 1.2rem; }
.af-calc-note {
  font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 1.25rem;
  border-top: 1px solid var(--af-border); padding-top: 0.875rem;
}

/* ===========================
   WHY CHOOSE SECTION
   =========================== */
.af-why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.af-why-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.af-why-card:hover {
  border-color: var(--af-primary);
  box-shadow: 0 8px 32px rgba(5,150,105,0.1);
  transform: translateY(-3px);
}
.af-why-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.af-why-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.af-why-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

/* ===========================
   CASE STUDY
   =========================== */
.af-case-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.af-case-header { background: var(--af-gradient); padding: 2rem 2.5rem; color: #fff; }
.af-case-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full); padding: 0.3rem 1rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.875rem;
}
.af-case-title { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; margin-bottom: 0.375rem; }
.af-case-sub { font-size: 0.875rem; color: rgba(255,255,255,0.72); }
.af-case-body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0;
}
.af-case-panel { padding: 2rem 2.5rem; border-right: 1px solid var(--gray-200); }
.af-case-panel:last-child { border-right: none; }
.af-case-panel.problem { background: #fff8f8; }
.af-case-panel.solution { background: rgba(5,150,105,0.03); }
.af-case-panel.results { background: #f0f9ff; }
.af-case-panel-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; margin-bottom: 0.75rem;
}
.af-case-panel.problem .af-case-panel-icon  { background: #fee2e2; color: #dc2626; }
.af-case-panel.solution .af-case-panel-icon { background: rgba(5,150,105,0.12); color: var(--af-primary); }
.af-case-panel.results .af-case-panel-icon  { background: #dbeafe; color: #2563eb; }
.af-case-panel h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }
.af-case-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.af-case-list li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-700); align-items: flex-start; line-height: 1.55; }
.af-case-list li i { font-size: 0.75rem; margin-top: 3px; flex-shrink: 0; }
.af-case-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.af-case-metric {
  background: rgba(5,150,105,0.06); border: 1px solid rgba(5,150,105,0.15);
  border-radius: var(--radius-lg); padding: 0.875rem; text-align: center;
}
.af-case-metric-val { display: block; font-size: 1.4rem; font-weight: 900; color: var(--af-primary); line-height: 1; margin-bottom: 0.25rem; }
.af-case-metric-lbl { font-size: 0.72rem; color: var(--gray-600); line-height: 1.3; }
.af-case-quote {
  padding: 1.75rem 2.5rem;
  background: rgba(5,150,105,0.03); border-top: 1px solid var(--gray-200);
  font-style: italic; font-size: 0.9375rem; color: var(--gray-700); line-height: 1.7;
  position: relative;
}
.af-case-quote::before {
  content: '\201C'; font-size: 4rem; color: var(--af-primary); opacity: 0.2;
  position: absolute; top: 0.5rem; left: 1.5rem;
  line-height: 1; font-family: Georgia, serif;
}
.af-case-quote strong { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.875rem; color: var(--gray-900); }

/* ===========================
   COMPARISON TABLE
   =========================== */
.af-comparison-wrap { overflow-x: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.af-comparison-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem; background: #fff;
}
.af-comparison-table thead th {
  padding: 1rem 1.25rem; font-weight: 700;
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--gray-100); color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
}
.af-comparison-table thead th.col-af { background: var(--af-gradient); color: #fff; }
.af-comparison-table tbody td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700); line-height: 1.5; vertical-align: top;
}
.af-comparison-table tbody tr:last-child td { border-bottom: none; }
.af-comparison-table tbody tr:nth-child(even) td { background: var(--gray-50); }
.af-comparison-table .highlight-col { background: rgba(5,150,105,0.04); color: var(--gray-900); font-weight: 500; }
.af-check-green { color: #059669; }
.af-cross-red   { color: #ef4444; }
.af-partial     { color: #f59e0b; }

/* ===========================
   SECURITY GRID
   =========================== */
.af-security-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.af-security-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(110,231,183,0.12);
  border-radius: var(--radius-xl); padding: 1.75rem;
  transition: border-color 0.25s, background 0.25s;
}
.af-security-card:hover { border-color: rgba(110,231,183,0.3); background: rgba(255,255,255,0.06); }
.af-security-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.af-security-card h3 { font-size: 0.9375rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.af-security-card p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin: 0; }

/* ===========================
   TESTIMONIAL SLIDER
   =========================== */
.af-testimonial-section { position: relative; }
.af-testimonial-wrap { overflow: hidden; border-radius: var(--radius-xl); }
.af-testimonial-slider {
  display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); gap: 1.5rem;
}
.af-testimonial-slide {
  min-width: calc(50% - 0.75rem);
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 2rem; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.af-ts-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.af-ts-star { color: var(--af-accent); font-size: 0.875rem; }
.af-ts-text { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.af-ts-author { display: flex; align-items: center; gap: 0.875rem; }
.af-ts-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--af-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.af-ts-name   { font-weight: 700; color: var(--gray-900); font-size: 0.9375rem; }
.af-ts-title  { font-size: 0.8125rem; color: var(--gray-500); }
.af-ts-result { font-size: 0.78rem; color: var(--af-primary); font-weight: 600; margin-top: 2px; }
.af-ts-result i { margin-right: 2px; }
.af-slider-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.af-slider-prev, .af-slider-next {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gray-300);
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 0.8rem; transition: all 0.2s;
}
.af-slider-prev:hover, .af-slider-next:hover { border-color: var(--af-primary); color: var(--af-primary); }
.af-slider-dots { display: flex; gap: 0.375rem; }
.af-slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-300); border: none; cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.af-slider-dot.active { background: var(--af-primary); transform: scale(1.3); }

/* ===========================
   FAQ ACCORDION
   =========================== */
.af-faq-list { display: flex; flex-direction: column; gap: 0.625rem; max-width: 880px; margin: 0 auto; }
.af-faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.af-faq-trigger {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 1.125rem 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--gray-900);
  transition: background 0.2s;
}
.af-faq-trigger:hover { background: rgba(5,150,105,0.03); }
.af-faq-item.open .af-faq-trigger { color: var(--af-primary); background: rgba(5,150,105,0.04); }
.af-faq-icon { color: var(--gray-400); font-size: 0.8rem; flex-shrink: 0; transition: transform 0.3s; }
.af-faq-item.open .af-faq-icon { transform: rotate(180deg); color: var(--af-primary); }
.af-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.af-faq-body-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7;
}
.af-faq-body-inner p:last-child { margin-bottom: 0; }
.af-faq-body-inner a { color: var(--af-primary); font-weight: 600; }

/* ===========================
   CTA SECTION
   =========================== */
.af-cta-section {
  background: var(--af-gradient);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.af-cta-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.af-cta-section > * { position: relative; z-index: 1; }
.af-cta-section .container { position: relative; z-index: 1; }
.af-cta-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-full); color: #fff;
  padding: 0.45rem 1.25rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.5rem;
}
.af-cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 900;
  color: #fff; margin-bottom: 1.25rem; line-height: 1.18;
}
.af-cta-section p {
  font-size: 1.0625rem; color: rgba(255,255,255,0.85);
  max-width: 700px; margin: 0 auto 2.25rem; line-height: 1.75;
}
.af-cta-section strong { color: #fff; }
.af-cta-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.af-cta-actions .btn { min-width: 200px; justify-content: center; }
.af-trust-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.af-trust-item {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full); padding: 0.4rem 1rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.9); font-weight: 500; white-space: nowrap;
}
.af-trust-item i { color: var(--af-accent-light); font-size: 0.75rem; }

/* BTN-WHITE for CTA */
.btn-white {
  background: #fff !important; color: var(--af-primary) !important;
  border: 2px solid #fff !important; font-weight: 700;
}
.btn-white:hover {
  background: rgba(255,255,255,0.92) !important; color: var(--af-primary-dark) !important;
  border-color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-outline-white {
  background: transparent !important; color: #fff !important;
  border: 2px solid rgba(255,255,255,0.55) !important; font-weight: 600;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12) !important; border-color: #fff !important;
  color: #fff !important; transform: translateY(-2px);
}

/* ===========================
   DEMO SECTION
   =========================== */
.af-demo-section {
  background: var(--af-gradient-dark); padding: 5rem 0; position: relative;
}
.af-demo-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 3.5rem; align-items: start;
}
.af-demo-info .af-section-tag {
  background: rgba(110,231,183,0.12); border-color: rgba(110,231,183,0.25);
  color: var(--af-primary-light); margin-bottom: 1.25rem; display: inline-flex;
}
.af-demo-info h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800;
  color: #fff; margin-bottom: 1rem; line-height: 1.2;
}
.af-demo-perks {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.af-demo-perks li {
  display: flex; gap: 0.625rem; font-size: 0.9rem;
  color: rgba(255,255,255,0.75); align-items: flex-start; line-height: 1.5;
}
.af-demo-perks i { color: var(--af-secondary); margin-top: 2px; flex-shrink: 0; font-size: 0.875rem; }
.af-demo-contact {
  display: flex; flex-direction: column; gap: 0.625rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.af-demo-contact a {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.65); font-size: 0.875rem;
  text-decoration: none; transition: color 0.2s; padding: 0.25rem 0;
}
.af-demo-contact a:hover { color: var(--af-primary-light); }
.af-demo-contact i { color: var(--af-secondary); width: 16px; flex-shrink: 0; font-size: 0.9rem; }

/* Form card */
.af-demo-form-card {
  background: #fff; border-radius: var(--radius-xl); padding: 2.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.2);
  position: relative; border-top: 4px solid var(--af-primary);
}
.af-demo-form-card h3 {
  font-size: 1.25rem; font-weight: 800; color: var(--gray-900);
  margin-bottom: 0.375rem; display: flex; align-items: center; gap: 0.5rem;
}
.af-form-sub {
  font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1.75rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--gray-200);
}
.af-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.af-form-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.af-form-field label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); display: block; }
.af-form-field input, .af-form-field select, .af-form-field textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-md);
  font-size: 0.9rem; font-family: var(--font-body); color: var(--gray-900);
  background: var(--gray-50); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none; -webkit-appearance: none; appearance: none; line-height: 1.5;
}
.af-form-field input:focus, .af-form-field select:focus, .af-form-field textarea:focus {
  border-color: var(--af-primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
  background: #fff; outline: none;
}
.af-form-field input::placeholder, .af-form-field textarea::placeholder {
  color: var(--gray-400); font-size: 0.875rem;
}
.af-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center;
  padding-right: 2.25rem; cursor: pointer;
}
.af-form-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.af-form-field input.error, .af-form-field select.error, .af-form-field textarea.error {
  border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.af-error-msg { font-size: 0.75rem; color: #ef4444; font-weight: 500; margin-top: 2px; display: none; }
.af-error-msg.visible { display: block; }
.af-form-submit-btn {
  width: 100%; padding: 1rem 1.5rem; margin-top: 0.5rem;
  background: var(--af-gradient); color: #fff; border: none;
  border-radius: var(--radius-lg); font-size: 1rem; font-weight: 700;
  font-family: var(--font-body); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(5,150,105,0.35); letter-spacing: 0.01em;
}
.af-form-submit-btn:hover {
  opacity: 0.92; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(5,150,105,0.45);
}
.af-form-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.af-form-success {
  text-align: center; padding: 2.5rem 1.5rem;
}
.af-form-success i { font-size: 3rem; color: #059669; margin-bottom: 1rem; display: block; }
.af-form-success h4 { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: 0.625rem; }
.af-form-success p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
.af-disclaimer {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--af-accent); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.55);
  line-height: 1.65; margin-top: 2.5rem; display: flex; gap: 0.75rem; align-items: flex-start;
}
.af-disclaimer i { color: var(--af-accent); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.af-disclaimer strong { color: rgba(255,255,255,0.8); }

/* ===========================
   BACK TO TOP / STICKY BAR
   =========================== */
.af-back-to-top {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--af-gradient); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(5,150,105,0.45);
  transition: opacity 0.3s, transform 0.3s;
}
.af-back-to-top:hover { transform: translateY(-2px); }
.af-sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--af-dark-card); border-top: 1px solid var(--af-border);
  height: 58px; grid-template-columns: repeat(3, 1fr);
}
.af-sticky-bar-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none;
  font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.7);
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s;
}
.af-sticky-bar-btn:last-child { border-right: none; }
.af-sticky-bar-btn i { font-size: 1rem; }
.af-sticky-bar-btn.call { color: #34d399; }
.af-sticky-bar-btn.demo { background: var(--af-gradient); color: #fff; }
.af-sticky-bar-btn.whatsapp { color: #25d366; }

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal, .animate-fade-up, .animate-fade-right, .animate-fade-left {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  animation: af-reveal-fallback 0.001s 1.8s forwards;
}
@keyframes af-reveal-fallback { to { opacity: 1; transform: none; } }
.animate-fade-right { transform: translateX(-20px); }
.animate-fade-left  { transform: translateX(20px); }
.reveal.visible, .animate-fade-up.visible, .animate-fade-right.visible, .animate-fade-left.visible {
  opacity: 1 !important; transform: none !important; animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .animate-fade-up, .animate-fade-right, .animate-fade-left {
    opacity: 1 !important; transform: none !important; transition: none; animation: none;
  }
}

/* ===========================
   SITE HEADER
   =========================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

/* Mobile nav */
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--gray-200); padding: 1rem 0; }
.mobile-nav.open { display: block; }
.mobile-nav ul li a {
  display: block; padding: 0.75rem 1.5rem; font-size: 0.9375rem;
  color: var(--gray-700); font-weight: 500; border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav ul li a:hover { color: var(--af-primary); background: rgba(5,150,105,0.04); }
.mobile-nav ul li.mobile-cta { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); }
.mobile-nav ul li.mobile-cta a { display: inline-flex; border: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; display: block; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   FOOTER
   =========================== */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand {}
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-top: 1rem; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.625rem; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; transition: background 0.2s, color 0.2s; }
.social-link:hover { background: var(--af-primary); color: #fff; }
.footer-heading { font-size: 0.875rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--af-primary-light); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.55); }
.footer-contact-item i { color: var(--af-primary); width: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--af-primary-light); }
.footer-badges { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.footer-badge { display: inline-flex; align-items: center; gap: 0.375rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-full); padding: 0.25rem 0.75rem; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.footer-badge i { font-size: 0.65rem; color: var(--af-primary); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-af-container { grid-template-columns: 1fr; }
  .af-flow-diagram { display: none; }
  .af-tracking-grid { grid-template-columns: 1fr; }
  .af-demo-grid { grid-template-columns: 1fr; }
  .af-calc-wrap { grid-template-columns: 1fr; }
  .hero-af { min-height: auto; padding: 3.5rem 0 4rem; }
  .af-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .af-stat-box:nth-child(4), .af-stat-box:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.15); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hamburger { display: flex; }
  .nav-links, .nav-actions .nav-phone { display: none; }
}
@media (max-width: 768px) {
  .af-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .af-stat-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 0.875rem; }
  .af-testimonial-slide { min-width: 100%; }
  .af-form-row-2 { grid-template-columns: 1fr; }
  .af-case-body { grid-template-columns: 1fr; }
  .af-case-panel { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .af-sticky-bar { display: grid; }
  .af-tab-btn { padding: 0.75rem 0.875rem; font-size: 0.78rem; }
  .af-feat-grid { grid-template-columns: 1fr; }
  .af-cta-section { padding: 3.5rem 1.5rem; }
  .af-cta-actions { gap: 0.75rem; }
  .af-cta-actions .btn { min-width: 160px; font-size: 0.875rem; padding: 0.75rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .af-content-section { padding: 3rem 0; }
  .af-case-metrics { grid-template-columns: 1fr 1fr; }
  .af-cta-actions { flex-direction: column; align-items: center; }
  .af-cta-actions .btn { width: 100%; max-width: 320px; }
  .af-demo-form-card { padding: 1.25rem; }
  .af-form-submit-btn { font-size: 0.9375rem; padding: 0.875rem 1rem; }
}
