/* ============================================================
   CyberShield Design System
   Dark cyber aesthetic — production-quality CSS
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --bg-base:          #0a0e17;
  --bg-elevated:      #0d1220;
  --bg-card:          #111827;
  --bg-card-hover:    #141e2e;
  --bg-input:         #0d1525;
  --bg-overlay:       rgba(10, 14, 23, 0.85);

  --accent:           #00e5ff;
  --accent-dim:       rgba(0, 229, 255, 0.15);
  --accent-glow:      rgba(0, 229, 255, 0.35);
  --accent-dark:      #00b4cc;

  --purple:           #7c3aed;
  --purple-dim:       rgba(124, 58, 237, 0.15);
  --purple-glow:      rgba(124, 58, 237, 0.4);
  --purple-light:     #9d6af5;

  --green:            #10b981;
  --green-dim:        rgba(16, 185, 129, 0.15);
  --yellow:           #f59e0b;
  --yellow-dim:       rgba(245, 158, 11, 0.15);
  --red:              #ef4444;
  --red-dim:          rgba(239, 68, 68, 0.15);

  --text-primary:     #f0f4ff;
  --text-secondary:   #8b9cb8;
  --text-muted:       #4a5568;
  --text-accent:      #00e5ff;

  --border:           rgba(255, 255, 255, 0.07);
  --border-accent:    rgba(0, 229, 255, 0.25);
  --border-purple:    rgba(124, 58, 237, 0.3);

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

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;

  /* Spacing */
  --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;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    70px;
  --radius-sm:     0.375rem;
  --radius:        0.625rem;
  --radius-lg:     0.875rem;
  --radius-xl:     1.25rem;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow:        0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 20px rgba(0, 229, 255, 0.25);
  --shadow-purple: 0 0 20px rgba(124, 58, 237, 0.3);

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--text-primary);
  opacity: 0.9;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   Scrollbar Styling
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.4);
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

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

.section-lg {
  padding: var(--space-32) 0;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }

/* ============================================================
   Typography Utilities
   ============================================================ */
.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }

.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

.font-mono { font-family: var(--font-mono); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }
.text-purple    { color: var(--purple-light); }
.text-green     { color: var(--green); }
.text-yellow    { color: var(--yellow); }
.text-red       { color: var(--red); }

.leading-tight   { line-height: var(--leading-tight); }
.leading-snug    { line-height: var(--leading-snug); }
.leading-normal  { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.tracking-tight  { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide   { letter-spacing: 0.05em; }
.tracking-wider  { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.15em; }

.uppercase   { text-transform: uppercase; }
.lowercase   { text-transform: lowercase; }
.capitalize  { text-transform: capitalize; }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: linear-gradient(90deg, #00e5ff 0%, #00b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(90deg, var(--purple-light) 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Spacing Utilities
   ============================================================ */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* ============================================================
   Navigation Bar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.navbar-brand span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

.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);
}

/* ============================================================
   Shield Icon — CSS Animation
   ============================================================ */
@keyframes shieldPulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6))
            drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.9))
            drop-shadow(0 0 40px rgba(0, 229, 255, 0.35));
  }
}

@keyframes shieldRotate {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes shieldScan {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

@keyframes shieldRing {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: shieldPulse 3s ease-in-out infinite;
}

.shield-icon svg {
  color: var(--accent);
}

.shield-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
}

.shield-hero svg {
  width: 100px;
  height: 100px;
  color: var(--accent);
  position: relative;
  z-index: 2;
  animation: shieldPulse 3s ease-in-out infinite;
}

.shield-hero::before,
.shield-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.shield-hero::before {
  width: 130px;
  height: 130px;
  animation: shieldRing 3s ease-out infinite;
}

.shield-hero::after {
  width: 160px;
  height: 160px;
  animation: shieldRing 3s ease-out infinite 1.5s;
}

.shield-scan-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-flex;
}

.shield-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: shieldScan 2.5s linear infinite;
  border-radius: var(--radius-full);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0, 229, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-16) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: shieldPulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  font-weight: 900;
  line-height: var(--leading-tight);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

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

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

.hero-stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* Section divider */
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple-light));
  border-radius: var(--radius-full);
  margin: var(--space-4) auto 0;
}

/* ============================================================
   Cards — Glassmorphism
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Glass card variant */
.card-glass {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition);
}

.card-glass:hover {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Accent border cards */
.card-accent {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent) inset, var(--shadow-accent);
}

.card-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--purple));
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.card-purple {
  border-color: var(--border-purple);
  box-shadow: var(--shadow-purple);
}

/* Card header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* Featured card ribbon */
.card-featured {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: var(--bg-base);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b8f0);
  color: var(--bg-base);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1af0ff, #00c8ff);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
  color: var(--bg-base);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Secondary / Outline */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Accent outline */
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}

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

/* Purple */
.btn-purple {
  background: linear-gradient(135deg, var(--purple), #9333ea);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-purple:hover {
  background: linear-gradient(135deg, #8b4cf0, #a44af5);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Danger */
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Sizes */
.btn-xs { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* Icon button */
.btn-icon {
  padding: var(--space-2);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--space-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Badges & Tags
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.badge-accent  { background: var(--accent-dim);  color: var(--accent);       border: 1px solid rgba(0,229,255,0.2); }
.badge-purple  { background: var(--purple-dim);  color: var(--purple-light); border: 1px solid rgba(124,58,237,0.2); }
.badge-green   { background: var(--green-dim);   color: var(--green);        border: 1px solid rgba(16,185,129,0.2); }
.badge-yellow  { background: var(--yellow-dim);  color: var(--yellow);       border: 1px solid rgba(245,158,11,0.2); }
.badge-red     { background: var(--red-dim);     color: var(--red);          border: 1px solid rgba(239,68,68,0.2); }
.badge-muted   { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   Form Elements
   ============================================================ */

/* Labels */
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.form-label-required::after {
  content: ' *';
  color: var(--red);
}

/* Inputs & Textareas */
.input,
.textarea,
.select {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
  background: rgba(13, 21, 37, 0.9);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

/* Select custom arrow */
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238b9cb8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

/* Input with icon */
.input-wrapper {
  position: relative;
}

.input-icon-left {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.input-icon-right {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  width: 18px;
  height: 18px;
  transition: color var(--transition-fast);
}

.input-icon-right:hover {
  color: var(--text-secondary);
}

.input-has-icon-left  { padding-left: var(--space-10); }
.input-has-icon-right { padding-right: var(--space-10); }

/* Input states */
.input-success { border-color: var(--green); }
.input-success:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12); }

.input-error { border-color: var(--red); }
.input-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--red);
  margin-top: var(--space-1);
}

/* Checkbox */
.checkbox-wrapper,
.radio-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"],
.radio-wrapper input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--bg-input);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.radio-wrapper input[type="radio"] {
  border-radius: 50%;
}

.checkbox-wrapper input[type="checkbox"]:checked,
.radio-wrapper input[type="radio"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: 2px solid var(--bg-base);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.radio-wrapper input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: var(--bg-base);
  border-radius: 50%;
}

.checkbox-wrapper input[type="checkbox"]:focus-visible,
.radio-wrapper input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-wrapper input[type="checkbox"]:hover,
.radio-wrapper input[type="radio"]:hover {
  border-color: rgba(0, 229, 255, 0.4);
}

.checkbox-label,
.radio-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

/* Toggle Switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform var(--transition), background var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent);
}

/* Range Slider */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.7);
  transform: scale(1.1);
}

.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.range-track-accent {
  background: linear-gradient(90deg, var(--accent) var(--value, 0%), rgba(255,255,255,0.08) var(--value, 0%));
}

/* Form Group */
.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ============================================================
   Progress Bars & Score Displays
   ============================================================ */
.progress-wrapper {
  width: 100%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.progress-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-value {
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2));
  border-radius: var(--radius-full);
}

.progress-fill-cyan   { background: linear-gradient(90deg, #00c8e8, var(--accent)); }
.progress-fill-purple { background: linear-gradient(90deg, var(--purple), var(--purple-light)); }
.progress-fill-green  { background: linear-gradient(90deg, #059669, var(--green)); }
.progress-fill-yellow { background: linear-gradient(90deg, #d97706, var(--yellow)); }
.progress-fill-red    { background: linear-gradient(90deg, #dc2626, var(--red)); }

.progress-bar-lg .progress-fill { height: 12px; }
.progress-bar-sm .progress-fill { height: 5px; }

/* Score Ring */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-ring svg {
  transform: rotate(-90deg);
}

.score-ring-bg {
  stroke: rgba(255, 255, 255, 0.06);
}

.score-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring-center {
  position: absolute;
  text-align: center;
}

.score-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  color: var(--text-primary);
}

.score-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-1);
}

/* Score grades */
.score-excellent { color: var(--green); }
.score-good      { color: var(--accent); }
.score-fair      { color: var(--yellow); }
.score-poor      { color: var(--red); }

/* Meter bar */
.meter {
  position: relative;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--purple-light));
  position: relative;
  transition: width 1s ease;
}

.meter-label {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--bg-base);
  z-index: 1;
}

/* ============================================================
   Security Audit Section
   ============================================================ */
.audit-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  align-items: start;
}

.audit-score-panel {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.audit-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.audit-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: all var(--transition);
}

.audit-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--bg-card-hover);
}

.audit-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.audit-item-icon-green  { background: var(--green-dim);  color: var(--green); }
.audit-item-icon-yellow { background: var(--yellow-dim); color: var(--yellow); }
.audit-item-icon-red    { background: var(--red-dim);    color: var(--red); }
.audit-item-icon-accent { background: var(--accent-dim); color: var(--accent); }

.audit-item-content {
  flex: 1;
}

.audit-item-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.audit-item-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.audit-item-status {
  flex-shrink: 0;
}

/* ============================================================
   VPN Recommendations
   ============================================================ */
.vpn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.vpn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.vpn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.vpn-card.top-pick::before {
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 1;
}

.vpn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.vpn-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), var(--purple));
}

.vpn-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.vpn-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.vpn-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.vpn-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.vpn-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.vpn-feature-check {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

.vpn-price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.vpn-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.vpn-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.vpn-stars {
  color: var(--yellow);
  font-size: var(--text-sm);
}

.vpn-rating-number {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ============================================================
   Comparison Table
   ============================================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table thead {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.comparison-table th.featured-col {
  color: var(--accent);
  background: var(--accent-dim);
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

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

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

.comparison-table td {
  padding: var(--space-4) var(--space-5);
  color: var(--text-secondary);
  vertical-align: middle;
}

.comparison-table td.featured-col {
  background: rgba(0, 229, 255, 0.03);
}

.comparison-table td.feature-name {
  font-weight: 600;
  color: var(--text-primary);
}

.check-icon  { color: var(--green); }
.cross-icon  { color: var(--red); }
.dash-icon   { color: var(--text-muted); }

/* Table header sort */
.sortable {
  cursor: pointer;
}

.sortable:hover {
  color: var(--text-secondary);
}

/* ============================================================
   Security Tools Section
   ============================================================ */
.tools-filter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition);
  position: relative;
}

.tool-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tool-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.tool-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-platform {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   Guide Cards
   ============================================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.guide-thumbnail {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.guide-thumbnail-cyan {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(0, 100, 180, 0.2) 100%);
  border-bottom: 1px solid var(--border-accent);
}

.guide-thumbnail-purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(60, 20, 120, 0.2) 100%);
  border-bottom: 1px solid var(--border-purple);
}

.guide-thumbnail-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 80, 55, 0.2) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.guide-thumbnail-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(100, 20, 20, 0.2) 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.guide-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.guide-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent);
}

.guide-read-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.guide-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.guide-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: var(--space-4);
}

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

.guide-level {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.guide-level-beginner { color: var(--green); }
.guide-level-intermediate { color: var(--yellow); }
.guide-level-advanced { color: var(--red); }

/* ============================================================
   Alert / Notice Boxes
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.alert-info   { background: var(--accent-dim);  border-color: var(--border-accent); color: #b0f0ff; }
.alert-info .alert-icon { color: var(--accent); }

.alert-success{ background: var(--green-dim);   border-color: rgba(16,185,129,0.25); color: #a7f3d0; }
.alert-success .alert-icon { color: var(--green); }

.alert-warning{ background: var(--yellow-dim);  border-color: rgba(245,158,11,0.25); color: #fde68a; }
.alert-warning .alert-icon { color: var(--yellow); }

.alert-danger { background: var(--red-dim);     border-color: rgba(239,68,68,0.25);  color: #fca5a5; }
.alert-danger .alert-icon { color: var(--red); }

/* ============================================================
   Stat / Metric Cards
   ============================================================ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

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

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.06;
  transform: translate(30%, -30%);
}

.stat-card-cyan::before   { background: var(--accent);       }
.stat-card-purple::before { background: var(--purple);       }
.stat-card-green::before  { background: var(--green);        }
.stat-card-yellow::before { background: var(--yellow);       }

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 18px;
}

.stat-icon-cyan   { background: var(--accent-dim);  color: var(--accent);       border: 1px solid var(--border-accent); }
.stat-icon-purple { background: var(--purple-dim);  color: var(--purple-light); border: 1px solid var(--border-purple); }
.stat-icon-green  { background: var(--green-dim);   color: var(--green);        border: 1px solid rgba(16,185,129,0.2); }
.stat-icon-yellow { background: var(--yellow-dim);  color: var(--yellow);       border: 1px solid rgba(245,158,11,0.2); }

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.stat-delta-up   { background: var(--green-dim);  color: var(--green); }
.stat-delta-down { background: var(--red-dim);    color: var(--red); }

/* ============================================================
   Tags / Pill list
   ============================================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tag:hover,
.tag.selected {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ============================================================
   Code Blocks
   ============================================================ */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  position: relative;
}

pre code {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* ============================================================
   Tooltips
   ============================================================ */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a2332;
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 100;
  box-shadow: var(--shadow);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ============================================================
   Dividers & Separators
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}

.divider-glow {
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   Accordion / Collapse
   ============================================================ */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  display: none;
}

.accordion-item.open .accordion-body {
  display: block;
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

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

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo span {
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

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

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

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

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ============================================================
   Animations (Global)
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); }
  50%       { box-shadow: 0 0 25px rgba(0, 229, 255, 0.5); }
}

@keyframes scanline {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}

.animate-fade-in       { animation: fadeIn 0.5s ease forwards; }
.animate-fade-up       { animation: fadeUp 0.5s ease forwards; }
.animate-fade-in-scale { animation: fadeInScale 0.3s ease forwards; }
.animate-float         { animation: float 4s ease-in-out infinite; }
.animate-glow          { animation: glow 2.5s ease-in-out infinite; }
.animate-pulse         { animation: shieldPulse 2s ease-in-out infinite; }

/* Stagger helpers */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

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

/* ============================================================
   Misc Utilities
   ============================================================ */
.hidden   { display: none; }
.invisible{ visibility: hidden; }

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded     { border-radius: var(--radius); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-full{ border-radius: var(--radius-full); }

.shadow-sm     { box-shadow: var(--shadow-sm); }
.shadow        { box-shadow: var(--shadow); }
.shadow-lg     { box-shadow: var(--shadow-lg); }
.shadow-accent { box-shadow: var(--shadow-accent); }
.shadow-purple { box-shadow: var(--shadow-purple); }

.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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;
}

/* Highlight text selection */
::selection {
  background: rgba(0, 229, 255, 0.25);
  color: var(--text-primary);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

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

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

  .audit-score-panel {
    position: static;
  }

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

/* Large mobile: ≤ 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section { padding: var(--space-16) 0; }
  .section-lg { padding: var(--space-20) 0; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  /* Mobile nav open state */
  .navbar-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    gap: var(--space-1);
    z-index: 999;
    animation: fadeDown 0.2s ease;
  }

  .navbar-nav.mobile-open a {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

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

  .hero-actions .btn {
    text-align: center;
  }

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

  .hero-stat-number {
    font-size: var(--text-2xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

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

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

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

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

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

  .tools-filter {
    gap: var(--space-2);
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table-wrapper {
    font-size: var(--text-xs);
  }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .card {
    padding: var(--space-5);
  }

  .section-title {
    font-size: var(--text-xl);
  }

  .guide-thumbnail {
    height: 140px;
    font-size: 48px;
  }

  .score-number {
    font-size: var(--text-2xl);
  }

  .vpn-card {
    border-radius: var(--radius-lg);
  }

  .btn-xl {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }
}
