/**
 * WebFlag Landing Page
 * Modern Design System 2024
 */

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

:root {
  /* Brand Colors - Unified WebFlag Palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-subtle: rgba(37, 99, 235, 0.08);

  /* Accent Colors */
  --accent: #ec1c24;
  --accent-dark: #dc2626;

  /* Neutrals */
  --black: #0f172a;
  --dark: #1e293b;
  --gray-dark: #334155;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --gray-lighter: #f1f5f9;
  --gray-lightest: #f8fafc;
  --white: #ffffff;

  /* Functional Colors */
  --success: #10b981;
  --success-light: #34d399;
  --success-subtle: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-subtle: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-light: #f87171;
  --danger-subtle: rgba(239, 68, 68, 0.08);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Shadows - Modern layered approach */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.2);
  --shadow-glow-lg: 0 0 60px rgba(37, 99, 235, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 200ms var(--ease-out);
  --transition-slow: 300ms var(--ease-out);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
  color: var(--gray-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-lg);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--gray-lighter);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px var(--space-xl);
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--black);
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--gray-lighter);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.lang-toggle svg {
  transition: transform var(--transition-fast);
}

.lang-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  min-width: 160px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-dropdown a:hover {
  background: var(--gray-lightest);
  color: var(--primary);
}

.lang-dropdown a.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.lang-dropdown a::after {
  display: none;
}

/* Footer language selector */
.footer-lang .lang-dropdown {
  bottom: calc(100% + var(--space-xs));
  top: auto;
  transform: translateY(8px);
}

.footer-lang .lang-dropdown.show {
  transform: translateY(0);
}

.footer .lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
}

.footer .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.footer .lang-dropdown {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.1);
}

.footer .lang-dropdown a {
  color: var(--gray-light);
}

.footer .lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.footer .lang-dropdown a.active {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition-base);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--gray-lightest) 0%, var(--white) 50%, var(--gray-lightest) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: var(--space-xl);
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-trust {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-lighter);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

.trust-item svg {
  color: var(--success);
}

/* Hero Demo Window */
.hero-demo {
  position: relative;
}

.demo-window {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.demo-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-lightest);
  border-bottom: 1px solid var(--gray-lighter);
}

.demo-dots {
  display: flex;
  gap: 8px;
}

.demo-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }

.demo-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--gray);
  border: 1px solid var(--gray-lighter);
}

.demo-url svg {
  color: var(--success);
}

.demo-content {
  position: relative;
  padding: var(--space-lg);
  min-height: 280px;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-lightest) 100%);
}

.demo-banner {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  animation: bannerSlide 4s ease-in-out infinite;
}

@keyframes bannerSlide {
  0%, 10% { opacity: 0; transform: translateX(100%); }
  20%, 70% { opacity: 1; transform: translateX(0); }
  80%, 100% { opacity: 0; transform: translateX(100%); }
}

.demo-flag {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.demo-info {
  display: flex;
  flex-direction: column;
}

.demo-company {
  font-weight: 600;
  font-size: 0.9375rem;
}

.demo-location {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.demo-page {
  padding-top: 80px;
}

.demo-skeleton {
  height: 12px;
  background: linear-gradient(90deg, var(--gray-lighter) 25%, var(--gray-light) 50%, var(--gray-lighter) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  animation: shimmer 1.5s infinite;
}

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

.demo-skeleton.short { width: 40%; }
.demo-skeleton.medium { width: 70%; }
.demo-skeleton.wide { width: 100%; height: 24px; }

/* Section Styles */
section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Mission Section */
.mission {
  background: var(--white);
  position: relative;
}

.mission-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

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

.mission-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  color: var(--gray-dark);
}

.mission-reasons {
  list-style: none;
  margin: var(--space-lg) 0;
  padding: 0;
}

.mission-reasons li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-dark);
}

.mission-reasons li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.mission-reasons li strong {
  color: var(--black);
}

.mission-philosophy {
  font-size: 1.125rem;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  margin: var(--space-xl) 0;
}

.mission-tagline {
  font-size: 1.25rem;
  color: var(--black);
}

.mission-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.stat-card {
  background: linear-gradient(135deg, var(--gray-lightest) 0%, var(--white) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-subtle);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countries-coverage {
  background: var(--gray-lightest);
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  text-align: center;
}

.countries-coverage h3 {
  margin-bottom: var(--space-sm);
}

.countries-coverage > p {
  color: var(--gray);
  margin-bottom: var(--space-lg);
}

.country-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.country-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
  border: 1px solid var(--gray-lighter);
  transition: all var(--transition-fast);
}

.country-tag:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.countries-note {
  font-size: 0.875rem;
  color: var(--gray);
  font-style: italic;
}

@media (max-width: 1024px) {
  .mission-content {
    grid-template-columns: 1fr;
  }

  .mission-stats {
    flex-direction: row;
    justify-content: center;
  }

  .stat-card {
    flex: 1;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .mission-stats {
    flex-direction: column;
  }

  .stat-card {
    max-width: none;
  }
}

/* Features Section */
.features {
  background: var(--gray-lightest);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-light) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-subtle);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
  background: var(--white);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-subtle);
}

.step-content h3 {
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.step-connector {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  margin-top: 36px;
  border-radius: var(--radius-full);
  opacity: 0.3;
}

/* Interactive Demo Section */
.demo-section {
  margin-top: var(--space-3xl);
}

.demo-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--gray-dark);
  font-weight: 600;
}

.demo-container {
  max-width: 720px;
  margin: 0 auto;
}

.demo-browser {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: var(--space-xl);
}

.demo-browser-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-lightest);
  border-bottom: 1px solid var(--gray-lighter);
}

.demo-browser-dots {
  display: flex;
  gap: 8px;
}

.demo-browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-browser-dots span:nth-child(1) { background: #ff5f57; }
.demo-browser-dots span:nth-child(2) { background: #febc2e; }
.demo-browser-dots span:nth-child(3) { background: #28c840; }

.demo-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--gray);
  border: 1px solid var(--gray-lighter);
}

.demo-browser-url svg {
  color: var(--success);
}

.demo-browser-content {
  position: relative;
  padding: var(--space-lg);
  min-height: 220px;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-lightest) 100%);
}

.demo-flag-banner {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transition: all var(--transition-slow);
}

.demo-flag-banner.slide-in {
  animation: slideInBanner 0.5s var(--ease-out) forwards;
}

.demo-flag-banner.slide-out {
  animation: slideOutBanner 0.5s var(--ease-out) forwards;
}

@keyframes slideInBanner {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutBanner {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

.demo-flag-icon {
  font-size: 2.25rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.demo-flag-info {
  display: flex;
  flex-direction: column;
}

.demo-flag-company {
  font-weight: 600;
  font-size: 0.9375rem;
}

.demo-flag-location {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.demo-website-mock {
  padding-top: 72px;
}

.demo-mock-header {
  height: 44px;
  background: var(--gray-lighter);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.demo-mock-content {
  padding: var(--space-md);
}

.demo-mock-line {
  height: 12px;
  background: var(--gray-lighter);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.demo-mock-line.short {
  width: 60%;
}

.demo-controls {
  text-align: center;
}

.demo-controls p {
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
}

.demo-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.demo-btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 2px solid var(--gray-lighter);
  border-radius: var(--radius-lg);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.demo-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Download Section */
.download {
  background: var(--gray-lightest);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 840px;
  margin: 0 auto;
}

.download-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-subtle);
}

.browser-icon {
  margin-bottom: var(--space-lg);
}

.browser-icon svg {
  width: 72px;
  height: 72px;
}

.download-card h3 {
  margin-bottom: var(--space-sm);
}

.download-card > p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.download-card .btn {
  width: 100%;
  margin-bottom: var(--space-md);
}

.download-meta {
  font-size: 0.8125rem;
  color: var(--gray);
  font-weight: 500;
}

/* FAQ Section */
.faq {
  background: var(--white);
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-lighter);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: start;
  color: var(--black);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--gray);
  width: 24px;
  height: 24px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

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

.faq-answer p {
  padding-bottom: var(--space-lg);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand > p {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  color: var(--gray);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-column a {
  display: block;
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.footer-column a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: var(--space-xl);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-demo {
    max-width: 540px;
    margin: 0 auto;
  }

  .demo-window {
    transform: none;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--gray-lighter);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a::after {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

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

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 48px;
    margin: 0;
  }

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

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

@media (max-width: 480px) {
  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .demo-buttons {
    flex-direction: column;
  }

  .demo-btn {
    width: 100%;
  }
}

/* ===== Support Section ===== */
.support {
  background: linear-gradient(135deg, var(--gray-lightest) 0%, var(--white) 100%);
  position: relative;
}

.support::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-light) 50%, transparent 100%);
}

.support-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.support-text {
  margin-bottom: var(--space-xl);
}

.support-text p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.support-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-subtle);
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.support-icon.github {
  background: linear-gradient(135deg, #24292e 0%, #1b1f23 100%);
  color: var(--white);
}

.support-icon.coffee {
  background: linear-gradient(135deg, #ffdd00 0%, #ff813f 100%);
  color: var(--white);
}

.support-icon.kofi {
  background: linear-gradient(135deg, #ff5e5b 0%, #ff1f1c 100%);
  color: var(--white);
}

.support-card:hover .support-icon {
  transform: scale(1.1);
}

.support-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--black);
}

.support-info p {
  font-size: 0.875rem;
  color: var(--gray);
}

.support-note {
  padding: var(--space-lg);
  background: var(--primary-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.support-note p {
  font-size: 0.9375rem;
  color: var(--primary-dark);
  margin: 0;
}

@media (max-width: 768px) {
  .support-options {
    grid-template-columns: 1fr;
  }

  .support-card {
    flex-direction: row;
    text-align: left;
    gap: var(--space-md);
  }

  .support-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}
