/* ==========================================================================
   YourSMM Review - Premium Stylesheet v2.0
   Modern Design | SEO-Optimized | Fully Responsive | Accessible
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors - Indigo/Purple Theme */
  --color-primary-50: #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;
  
  /* Secondary Colors - Emerald for CTAs */
  --color-secondary-50: #ecfdf5;
  --color-secondary-100: #d1fae5;
  --color-secondary-200: #a7f3d0;
  --color-secondary-300: #6ee7b7;
  --color-secondary-400: #34d399;
  --color-secondary-500: #10b981;
  --color-secondary-600: #059669;
  --color-secondary-700: #047857;
  --color-secondary-800: #065f46;
  --color-secondary-900: #064e3b;
  
  /* Accent Colors */
  --color-accent-50: #fdf4ff;
  --color-accent-100: #fae8ff;
  --color-accent-500: #d946ef;
  --color-accent-600: #c026d3;
  
  /* Status Colors */
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  
  --color-danger-50: #fef2f2;
  --color-danger-500: #ef4444;
  --color-danger-600: #dc2626;
  
  --color-info-50: #ecfeff;
  --color-info-100: #cffafe;
  --color-info-500: #06b6d4;
  --color-info-600: #0891b2;
  
  --color-success-50: #f0fdf4;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-gray-950: #030712;
  
  /* Semantic Mappings */
  --color-text: var(--color-gray-900);
  --color-text-secondary: var(--color-gray-600);
  --color-text-muted: var(--color-gray-500);
  --color-text-light: var(--color-gray-400);
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-gray-50);
  --color-bg-elevated: var(--color-white);
  --color-border: var(--color-gray-200);
  --color-border-light: var(--color-gray-100);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --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 -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);
  --shadow-glow-primary: 0 0 24px rgba(99, 102, 241, 0.35);
  --shadow-glow-secondary: 0 0 24px rgba(16, 185, 129, 0.35);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Monaco, monospace;
  
  /* Fluid Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.775rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --text-xl: clamp(1.1875rem, 1.1rem + 0.4vw, 1.25rem);
  --text-2xl: clamp(1.375rem, 1.2rem + 0.9vw, 1.5rem);
  --text-3xl: clamp(1.625rem, 1.4rem + 1.1vw, 1.875rem);
  --text-4xl: clamp(1.875rem, 1.5rem + 1.9vw, 2.25rem);
  --text-5xl: clamp(2.25rem, 1.8rem + 2.3vw, 3rem);
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Layout */
  --max-width-prose: 65ch;
  --max-width-content: 840px;
  --max-width-wide: 1140px;
  --header-height: 64px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  
  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 500;
  --z-tooltip: 700;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-6));
  -webkit-text-size-adjust: 100%;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Focus States */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background-color: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* --------------------------------------------------------------------------
   Skip Link (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary-600);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: var(--z-tooltip);
  transition: top var(--duration-fast) var(--ease-out);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: var(--space-4);
  outline: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-5);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-2);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-300), var(--color-accent-500));
  border-radius: var(--radius-full);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-gray-800);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  max-width: var(--max-width-prose);
}

strong, b {
  font-weight: 600;
  color: var(--color-text);
}

small {
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
a {
  color: var(--color-primary-600);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--color-primary-700);
}

/* Animated underline for content links */
main section a:not([href^="https://figipanel"]) {
  background-image: linear-gradient(var(--color-primary-200), var(--color-primary-200));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--duration-base) var(--ease-out), color var(--duration-fast);
}

main section a:not([href^="https://figipanel"]):hover {
  background-size: 100% 2px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

nav {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1);
  flex-wrap: wrap;
}

/* Brand / Logo */
nav > a:first-child {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
  margin-right: auto;
  white-space: nowrap;
  transition: color var(--duration-fast);
}

nav > a:first-child:hover {
  color: var(--color-primary-600);
  text-decoration: none;
}

/* Nav Links */
nav > a:not(:first-child):not(:last-child) {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
  white-space: nowrap;
}

nav > a:not(:first-child):not(:last-child)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary-50);
  border-radius: var(--radius-md);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-fast), transform var(--duration-fast);
  z-index: -1;
}

nav > a:not(:first-child):not(:last-child):hover {
  color: var(--color-primary-600);
  text-decoration: none;
}

nav > a:not(:first-child):not(:last-child):hover::before {
  opacity: 1;
  transform: scale(1);
}

/* CTA Button */
nav > a:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary-500) 0%, var(--color-secondary-600) 100%);
  color: var(--color-white) !important;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-lg);
  margin-left: var(--space-4);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all var(--duration-base) var(--ease-default);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

nav > a:last-child::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-secondary-400) 0%, var(--color-secondary-500) 100%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

nav > a:last-child:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-secondary);
  text-decoration: none;
}

nav > a:last-child:hover::before {
  opacity: 1;
}

nav > a:last-child span {
  position: relative;
  z-index: 1;
}

/* Pulse Animation for CTA */
@keyframes cta-pulse {
  0%, 100% {
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: var(--shadow-md), 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

nav > a:last-child {
  animation: cta-pulse 3s ease-in-out infinite;
}

nav > a:last-child:hover {
  animation: none;
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
main {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

section {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  animation: fadeInUp 0.6s var(--ease-out) backwards;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }

section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

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

/* --------------------------------------------------------------------------
   Hero Section (First Section)
   -------------------------------------------------------------------------- */
section:first-of-type {
  padding: var(--space-12) var(--space-8);
  background: 
    radial-gradient(ellipse 100% 80% at 50% -30%, var(--color-primary-100), transparent),
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--color-accent-100), transparent),
    linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-10);
  text-align: center;
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Decorative gradient orbs */
section:first-of-type::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-primary-200) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

section:first-of-type::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--color-secondary-200) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

section:first-of-type h1 {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-primary-600) 50%, var(--color-accent-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

section:first-of-type > p {
  font-size: var(--text-lg);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

section:first-of-type > p:last-of-type,
section:first-of-type > p:nth-last-of-type(2) {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-warning-50);
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-warning-100);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
ul, ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
  padding-left: var(--space-1);
  position: relative;
}

ul > li::marker {
  color: var(--color-primary-400);
}

ol > li::marker {
  color: var(--color-secondary-500);
  font-weight: 600;
}

li strong {
  color: var(--color-text);
}

/* Card-style list for verdict section */
#verdict ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

#verdict ul li {
  background: var(--color-gray-50);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  transition: all var(--duration-fast);
  margin: 0;
}

#verdict ul li:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

#verdict ul li::before {
  content: '→';
  color: var(--color-primary-500);
  font-weight: 700;
  flex-shrink: 0;
}

#verdict ul li:nth-child(1)::before {
  content: '✓';
  color: var(--color-success-500);
}

#verdict ul li:nth-child(2)::before {
  content: '⚠';
  color: var(--color-warning-500);
}

#verdict ul li:nth-child(3)::before {
  content: '◐';
  color: var(--color-info-500);
}

/* --------------------------------------------------------------------------
   Section-Specific Styles
   -------------------------------------------------------------------------- */

/* Verdict Section */
#verdict {
  background: linear-gradient(145deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

#verdict h2::after {
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-primary-400));
}

/* What Is Section */
#what-is h3 {
  color: var(--color-danger-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

#what-is h3::before {
  content: '⊘';
  font-size: var(--text-lg);
}

#what-is ul {
  background: var(--color-danger-50);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 4px solid var(--color-danger-500);
}

#what-is ul li::marker {
  color: var(--color-danger-500);
}

/* Features Section */
#features {
  counter-reset: feature-counter;
}

#features h3 {
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

#features h3::before {
  content: counter(feature-counter);
  counter-increment: feature-counter;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing Section */
#pricing ul {
  background: var(--color-gray-50);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* Safety Section */
#safety {
  background: linear-gradient(145deg, var(--color-danger-50) 0%, var(--color-white) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

#safety h2::after {
  background: linear-gradient(90deg, var(--color-danger-500), var(--color-warning-500));
}

#safety h3 {
  color: var(--color-danger-600);
}

#safety h3:first-of-type {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

#safety h3:first-of-type::before {
  content: '🔒';
}

/* Alternative Section */
#alternative {
  background: linear-gradient(145deg, var(--color-secondary-50) 0%, var(--color-white) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

#alternative::before {
  content: '⭐';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-3xl);
  opacity: 0.15;
}

#alternative h2::after {
  background: linear-gradient(90deg, var(--color-secondary-500), var(--color-secondary-300));
}

#alternative ul {
  background: var(--color-white);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

#alternative ul li::marker {
  color: var(--color-secondary-500);
}

/* Trustpilot Link Styling */
#alternative p:has(a[href*="trustpilot"]) {
  background: var(--color-white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

#alternative p:has(a[href*="trustpilot"])::before {
  content: '★';
  color: var(--color-secondary-500);
  font-size: var(--text-xl);
}

/* CTA Button in Alternative Section */
#alternative > p:last-of-type a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--color-secondary-500) 0%, var(--color-secondary-600) 100%);
  color: var(--color-white) !important;
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all var(--duration-base) var(--ease-default);
  margin-top: var(--space-4);
  position: relative;
  overflow: hidden;
}

#alternative > p:last-of-type a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-secondary-400) 0%, var(--color-secondary-500) 100%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

#alternative > p:last-of-type a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-secondary);
  text-decoration: none;
}

#alternative > p:last-of-type a:hover::before {
  opacity: 1;
}

/* FAQ Section */
#faq h3 {
  color: var(--color-primary-600);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

#faq h3:first-of-type {
  margin-top: var(--space-6);
  padding-top: 0;
  border-top: none;
}

#faq h3::before {
  content: 'Q';
  width: 28px;
  height: 28px;
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

#faq p {
  padding-left: calc(28px + var(--space-3));
  position: relative;
}

#faq p::before {
  content: '';
  position: absolute;
  left: 14px;
  top: -8px;
  bottom: 0;
  width: 2px;
  background: var(--color-primary-100);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: linear-gradient(180deg, var(--color-gray-900) 0%, var(--color-gray-950) 100%);
  color: var(--color-gray-400);
  text-align: center;
  padding: var(--space-12) var(--space-6);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gray-700), transparent);
}

footer p {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  max-width: none;
}

footer p:last-child {
  font-size: var(--text-xs);
  opacity: 0.7;
  max-width: 600px;
  margin: var(--space-3) auto 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */

/* Large Tablets (1024px) */
@media (max-width: 1024px) {
  nav > a:not(:first-child):not(:last-child) {
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-xs);
  }
  
  nav > a:last-child {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }
  
  html {
    scroll-padding-top: 140px;
  }
  
  nav {
    flex-wrap: wrap;
    padding: var(--space-4);
    height: auto;
    gap: var(--space-2);
    justify-content: center;
  }
  
  nav > a:first-child {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: var(--space-2);
  }
  
  nav > a:not(:first-child):not(:last-child) {
    font-size: 0.7rem;
    padding: var(--space-2) var(--space-2);
  }
  
  nav > a:last-child {
    width: 100%;
    margin-left: 0;
    margin-top: var(--space-2);
    padding: var(--space-3) var(--space-4);
    justify-content: center;
  }
  
  main {
    padding: var(--space-6) var(--space-4) var(--space-12);
  }
  
  section:first-of-type {
    padding: var(--space-8) var(--space-5);
    margin-bottom: var(--space-8);
  }
  
  section:first-of-type::before,
  section:first-of-type::after {
    opacity: 0.3;
  }
  
  section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
  }
  
  #verdict,
  #safety,
  #alternative {
    padding: var(--space-6);
  }
  
  #verdict ul li {
    padding: var(--space-3) var(--space-4);
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  html {
    scroll-padding-top: 160px;
  }
  
  nav {
    padding: var(--space-3);
  }
  
  nav > a:first-child {
    font-size: var(--text-base);
  }
  
  nav > a:not(:first-child):not(:last-child) {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-2);
  }
  
  nav > a:not(:first-child):not(:last-child)::before {
    display: none;
  }
  
  main {
    padding: var(--space-4) var(--space-3) var(--space-10);
  }
  
  section:first-of-type {
    padding: var(--space-6) var(--space-4);
    border-radius: var(--radius-xl);
  }
  
  section:first-of-type > p:last-of-type,
  section:first-of-type > p:nth-last-of-type(2) {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
  }
  
  h2::after {
    height: 2px;
  }
  
  ul, ol {
    padding-left: var(--space-5);
  }
  
  #verdict ul li {
    padding: var(--space-3);
    flex-direction: column;
    gap: var(--space-1);
  }
  
  #verdict ul li::before {
    align-self: flex-start;
  }
  
  #what-is ul,
  #pricing ul,
  #alternative ul {
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
  }
  
  #features h3::before {
    width: 26px;
    height: 26px;
    font-size: var(--text-xs);
  }
  
  #faq h3::before {
    width: 24px;
    height: 24px;
    font-size: var(--text-xs);
  }
  
  #faq p {
    padding-left: calc(24px + var(--space-2));
  }
  
  #faq p::before {
    left: 12px;
  }
  
  #alternative > p:last-of-type a {
    width: 100%;
    padding: var(--space-4) var(--space-6);
  }
  
  footer {
    padding: var(--space-8) var(--space-4);
  }
}

/* Small Mobile (360px) */
@media (max-width: 360px) {
  nav > a:not(:first-child):not(:last-child) {
    font-size: 0.6rem;
    padding: var(--space-1) var(--space-1);
  }
  
  h1 {
    font-size: var(--text-2xl);
  }
  
  h2 {
    font-size: var(--text-xl);
  }
}

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
  section:first-of-type {
    padding: var(--space-16) var(--space-12);
  }
  
  nav > a:not(:first-child):not(:last-child) {
    padding: var(--space-2) var(--space-4);
  }
  
  #verdict ul {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #verdict ul li {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
  
  #verdict ul li::before {
    align-self: center;
    font-size: var(--text-xl);
  }
}

/* Extra Large (1440px+) */
@media (min-width: 1440px) {
  :root {
    --max-width-content: 900px;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  .skip-link,
  nav > a:last-child {
    display: none !important;
  }
  
  body {
    font-size: 11pt;
    line-height: 1.4;
  }
  
  main {
    max-width: 100%;
    padding: 0;
  }
  
  section {
    page-break-inside: avoid;
    border-bottom: 1pt solid #ccc;
    padding-bottom: 12pt;
    margin-bottom: 18pt;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href^="http"]::after {
    content: " [" attr(href) "]";
    font-size: 8pt;
    color: #666;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  h2::after {
    display: none;
  }
  
  section:first-of-type {
    padding: 0;
    border: none;
    background: none;
  }
}

/* --------------------------------------------------------------------------
   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;
  }
  
  nav > a:last-child {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   High Contrast Mode
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
  :root {
    --color-border: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-900);
  }
  
  a {
    text-decoration: underline;
  }
  
  nav > a:last-child,
  #alternative > p:last-of-type a {
    border: 2px solid currentColor;
  }
  
  h2::after {
    height: 4px;
  }
}

/* --------------------------------------------------------------------------
   Dark Mode
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: var(--color-gray-100);
    --color-text-secondary: var(--color-gray-300);
    --color-text-muted: var(--color-gray-400);
    --color-bg: var(--color-gray-950);
    --color-bg-alt: var(--color-gray-900);
    --color-bg-elevated: var(--color-gray-800);
    --color-border: var(--color-gray-800);
    --color-border-light: var(--color-gray-800);
  }
  
  body {
    background: var(--color-gray-950);
  }
  
  header {
    background: rgba(3, 7, 18, 0.9);
    border-bottom-color: var(--color-gray-800);
  }
  
  nav > a:first-child {
    color: var(--color-gray-100);
  }
  
  nav > a:not(:first-child):not(:last-child)::before {
    background: var(--color-gray-800);
  }
  
  section:first-of-type {
    background: 
      radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.15), transparent),
      radial-gradient(ellipse 60% 50% at 100% 0%, rgba(217, 70, 239, 0.1), transparent),
      linear-gradient(180deg, var(--color-gray-900) 0%, var(--color-gray-950) 100%);
    border-color: var(--color-gray-800);
  }
  
  section:first-of-type h1 {
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-primary-400) 50%, var(--color-accent-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  
  section:first-of-type > p:last-of-type,
  section:first-of-type > p:nth-last-of-type(2) {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--color-warning-500);
  }
  
  #verdict {
    background: linear-gradient(145deg, var(--color-gray-900) 0%, var(--color-gray-950) 100%);
    border-color: var(--color-gray-800);
  }
  
  #verdict ul li {
    background: var(--color-gray-800);
    border-color: var(--color-gray-700);
  }
  
  #verdict ul li:hover {
    background: var(--color-gray-700);
  }
  
  #what-is ul {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
  }
  
  #pricing ul,
  #alternative ul {
    background: var(--color-gray-900);
    border-color: var(--color-gray-800);
  }
  
  #safety {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.05) 0%, var(--color-gray-950) 100%);
    border-color: rgba(239, 68, 68, 0.15);
  }
  
  #alternative {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, var(--color-gray-950) 100%);
    border-color: rgba(16, 185, 129, 0.2);
  }
  
  #alternative p:has(a[href*="trustpilot"]) {
    background: var(--color-gray-900);
    border-color: var(--color-gray-800);
  }
  
  #faq h3::before {
    background: var(--color-gray-800);
  }
  
  #faq p::before {
    background: var(--color-gray-800);
  }
  
  footer {
    background: linear-gradient(180deg, var(--color-gray-950) 0%, var(--color-black) 100%);
  }
  
  ::-webkit-scrollbar-track {
    background: var(--color-gray-900);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--color-gray-700);
    border-color: var(--color-gray-900);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-600);
  }
  
  main section a:not([href^="https://figipanel"]) {
    background-image: linear-gradient(var(--color-primary-800), var(--color-primary-800));
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margins */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

/* Font Weight */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Colors */
.text-primary { color: var(--color-primary-600); }
.text-secondary { color: var(--color-secondary-600); }
.text-muted { color: var(--color-text-muted); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }