/* ========================================
   ULTRA PROFESSIONAL CSS DESIGN SYSTEM
   Modern, Responsive & High-Performance
======================================== */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Color Palette - Professional Blue Theme */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;
  --color-primary-950: #172554;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #06b6d4;

  /* Background System */
  --bg-primary: var(--color-white);
  --bg-secondary: var(--color-gray-50);
  --bg-tertiary: var(--color-gray-100);
  --bg-card: var(--color-white);
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Text System */
  --text-primary: var(--color-gray-900);
  --text-secondary: var(--color-gray-600);
  --text-tertiary: var(--color-gray-500);
  --text-inverse: var(--color-white);
  --text-brand: var(--color-primary-600);

  /* Border System */
  --border-light: var(--color-gray-200);
  --border-medium: var(--color-gray-300);
  --border-heavy: var(--color-gray-400);
  --border-brand: var(--color-primary-200);

  /* Spacing Scale */
  --space-0: 0;
  --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;

  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-base: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-2xl: 0 50px 100px -20px rgb(0 0 0 / 0.25);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-800) 50%, var(--color-primary-900) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--color-gray-900);
    --bg-secondary: var(--color-gray-800);
    --bg-tertiary: var(--color-gray-700);
    --bg-card: var(--color-gray-800);
    --text-primary: var(--color-gray-100);
    --text-secondary: var(--color-gray-300);
    --text-tertiary: var(--color-gray-400);
    --border-light: var(--color-gray-700);
    --border-medium: var(--color-gray-600);
    --border-heavy: var(--color-gray-500);
  }
}

/* ========================================
   RESET & BASE STYLES
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-variation-settings: 'wght' 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========================================
   TYPOGRAPHY SYSTEM
======================================== */

/* Base heading styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-800); /* Default for white backgrounds */
  margin-bottom: var(--space-4);
  font-variation-settings: 'wght' 700;
}

/* Hero section - dark background, white text */
.hero h1 {
  font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-7xl));
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
  color: #ffffff; /* White text on dark gradient */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Features section (#features) - white background */
#features h2,
#features h3,
#features h4,
#features h5,
#features h6 {
  color: var(--color-gray-800); /* Dark text on white */
}

/* About section (#about) - light blue background (.section.alt) */
#about h2,
#about h3,
#about h4,
#about h5,
#about h6 {
  color: var(--color-gray-800); /* Dark text on light blue */
}

/* FAQ section (#faq) - white background */
#faq h2,
#faq h3,
#faq h4,
#faq h5,
#faq h6 {
  color: var(--color-gray-800); /* Dark text on white */
}

/* Terms section (#terms) - white background */
#terms h2,
#terms h3,
#terms h4,
#terms h5,
#terms h6 {
  color: var(--color-gray-800); /* Dark text on white */
}

/* Privacy section (#privacy) - white background */
#privacy h2,
#privacy h3,
#privacy h4,
#privacy h5,
#privacy h6 {
  color: var(--color-gray-800); /* Dark text on white */
}

/* Newsletter section - gradient background */
.newsletter h2,
.newsletter h3,
.newsletter h4,
.newsletter h5,
.newsletter h6 {
  color: #ffffff; /* White text on gradient */
}

/* Footer - dark background */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: #ffffff; /* White text on dark */
}

/* Section title styling based on background */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* White background sections */
#features .section-title,
#faq .section-title,
#terms .section-title,
#privacy .section-title {
  color: var(--color-gray-800);
}

/* Light blue background sections */
#about .section-title {
  color: var(--color-gray-800);
}

/* Gradient background sections */
.newsletter .newsletter-title {
  color: #ffffff;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--text-brand);
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

/* ========================================
   LAYOUT SYSTEM
======================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-8); }
}

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

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

.section.alt {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
  position: relative;
}

.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.03'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
  z-index: 0;
}

.section.alt > * {
  position: relative;
  z-index: 1;
}

#terms {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.narrow {
  max-width: 768px;
  margin: 0 auto;
}

/* ========================================
   HEADER COMPONENT
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.site-header:hover::before {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-gray-800);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  transition: all var(--transition-base);
}

.brand:hover {
  transform: scale(1.02);
  color: var(--text-brand);
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
  fill: var(--color-primary-600);
  transition: all var(--transition-base);
}

.brand:hover svg {
  fill: var(--color-primary-700);
  transform: rotate(10deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--color-gray-700);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-base);
  z-index: -1;
}

.nav-links a:hover {
  color: var(--text-inverse);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.menu-toggle:hover {
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-base);
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--color-gray-700);
  margin: 2px auto;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--color-primary-700);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--color-primary-700);
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  padding: var(--space-32) 0 var(--space-24);
  background: var(--gradient-hero);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-7xl));
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
  /* Gradient text removed for better visibility */
}

.lead {
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-2xl));
  color: #f8fafc;
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: var(--font-weight-medium);
}

.store-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn small {
  display: block;
  font-size: var(--font-size-sm);
  opacity: 0.8;
  line-height: 1;
}

.store-btn span {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-top: var(--space-1);
}

.bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #f1f5f9;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ========================================
   CARD COMPONENTS
======================================== */

.doc-box {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.doc-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.doc-box h3,
.doc-box h4,
.doc-box h5 {
  color: var(--color-gray-800);
  font-weight: var(--font-weight-bold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.doc-box h3 {
  font-size: var(--font-size-2xl);
  border-bottom: 2px solid var(--color-primary-200);
  padding-bottom: var(--space-2);
}

.doc-box h4 {
  font-size: var(--font-size-xl);
  color: var(--color-primary-700);
}

.doc-box h5 {
  font-size: var(--font-size-lg);
}

.doc-box p {
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.doc-box ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.doc-box li {
  color: var(--color-gray-600);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-relaxed);
}

.show-more-btn {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-8);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-base);
  margin-top: var(--space-6);
  position: relative;
  overflow: hidden;
}

.show-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.show-more-btn:hover::before {
  left: 100%;
}

.show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hidden-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease-out;
}

.hidden-content.active {
  max-height: 10000px;
  transition: max-height var(--transition-slow) ease-in;
}

/* ========================================
   FAQ COMPONENT
======================================== */

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

.faq-box details {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.faq-box details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.faq-box details:hover {
  box-shadow: var(--shadow-base);
  border-color: var(--color-primary-200);
}

.faq-box details[open] {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-md);
}

.faq-box details[open]::before {
  transform: scaleY(1);
}

.faq-box summary {
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  color: var(--color-gray-800);
  padding: var(--space-2) var(--space-8) var(--space-2) 0;
  list-style: none;
  position: relative;
  transition: all var(--transition-base);
}

.faq-box summary::-webkit-details-marker {
  display: none;
}

.faq-box summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-600);
  transition: all var(--transition-base);
}

.faq-box details[open] summary {
  color: var(--color-primary-700);
  margin-bottom: var(--space-4);
}

.faq-box details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-box details p {
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
  margin: var(--space-4) 0 0 0;
  padding: 0;
}

/* ========================================
   FEATURES GRID
======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.feature {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.feature:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  display: inline-block;
  padding: var(--space-4);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  color: var(--text-inverse);
  box-shadow: var(--shadow-base);
}

.feature h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-800);
  margin-bottom: var(--space-3);
}

.feature p {
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   CONTACT SECTION
======================================== */

.contact-section {
  background: var(--color-white);
  padding: var(--space-20) 0;
  border-top: 1px solid var(--color-gray-200);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-800);
  margin-bottom: var(--space-4);
}

.contact-content p {
  font-size: var(--font-size-lg);
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-email::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.contact-email:hover::before {
  left: 100%;
}

.contact-email:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: white;
}

.contact-email-icon {
  font-size: var(--font-size-xl);
}

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-12) 0 var(--space-8);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
}

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

.footer-brand svg {
  width: 28px;
  height: 28px;
  fill: var(--color-primary-600);
}

.footer-brand span {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  color: var(--color-white);
  margin-left: var(--space-2);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--text-brand);
  background: var(--color-primary-50);
  transform: translateY(-1px);
}

.footer-copyright {
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */

.to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-inverse);
  font-size: var(--font-size-xl);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

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

.to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.to-top:hover::before {
  opacity: 1;
}

/* ========================================
   UTILITY CLASSES
======================================== */

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

.text-primary { color: var(--color-gray-900); }
.text-secondary { color: var(--color-gray-600); }
.text-tertiary { color: var(--color-gray-500); }
.text-brand { color: var(--text-brand); }
.text-inverse { color: var(--text-inverse); }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

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

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

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

/* Flexbox Utilities */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

/* Border Utilities */
.border { border: 1px solid var(--border-light); }
.border-t { border-top: 1px solid var(--border-light); }
.border-b { border-bottom: 1px solid var(--border-light); }
.border-l { border-left: 1px solid var(--border-light); }
.border-r { border-right: 1px solid var(--border-light); }

.rounded { border-radius: var(--radius-base); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow-none { box-shadow: none; }
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-base { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-32: 5rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: var(--space-4);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
  }
  
  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    border-radius: var(--radius-lg);
  }
  
  .nav-links a:hover {
    background: var(--gradient-primary);
    color: white;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .to-top {
    right: var(--space-4);
    bottom: var(--space-4);
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .doc-box {
    padding: var(--space-6);
  }
  
  .feature {
    padding: var(--space-6);
  }
  
  .faq-box details {
    padding: var(--space-4);
  }
  
  .nav {
    padding: 0 var(--space-2);
  }
}

/* ========================================
   ANIMATION CLASSES
======================================== */

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -10px, 0);
  }
  70% {
    transform: translate3d(0, -5px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Animation Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */

/* Hardware acceleration for smooth animations */
.site-header,
.store-btn,
.feature,
.doc-box,
.faq-box details,
.to-top {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
  .site-header,
  .to-top,
  .menu-toggle {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .doc-box,
  .feature {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  
  a {
    text-decoration: underline !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
}
