/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
  /* Colors */
  --color-primary: #0b1220;
  --color-secondary: #1e293b;
  --color-accent: #dc2626;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-text-light: #f8fafc;
  --color-text-dark: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #334155;
  --color-bg-light: #ffffff;
  --color-bg-dark: #0f172a;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-hero: linear-gradient(135deg, #0b1220 0%, #1e293b 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #ef4444 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  
  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-2xl: 1.5rem;  /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===========================
   RESET & BASE STYLES
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-light);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 900;
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

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

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

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   UTILITY CLASSES
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

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

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

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  border-color: var(--color-accent);
}

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

.btn-secondary {
  background: var(--gradient-primary);
  color: var(--color-text-light);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border-color: var(--color-border);
}

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

.btn-accent {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  border-color: #ff0000;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #cc0000, #990000);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

/* ===========================
   NAVIGATION
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: var(--font-size-xl);
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

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

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-light);
}

.nav-button {
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
}

.nav-button svg {
  width: 16px;
  height: 16px;
}

.nav-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  transition: all var(--transition-fast);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
}

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

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-title-main {
  display: block;
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.hero-title-highlight {
  display: block;
  font-size: var(--font-size-6xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-accent) 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

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

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 30px;
  padding: 20px;
  box-shadow: var(--shadow-2xl);
  border: 2px solid var(--color-border);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   PROBLEM & SOLUTION SECTION
=========================== */
.problem-solution {
  padding: var(--space-32) 0;
  background: var(--color-bg-dark);
}

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

.stat-card {
  background: var(--gradient-primary);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card.critical {
  border-left: 4px solid var(--color-accent);
}

.stat-card.positive {
  border-left: 4px solid var(--color-success);
}

.stat-card.warning {
  border-left: 4px solid var(--color-warning);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  margin-bottom: var(--space-2);
}

.stat-description {
  color: var(--color-text-muted);
  font-weight: 500;
}

.solution-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.solution-features {
  margin-top: var(--space-8);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.feature-text h4 {
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

.feature-text p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.solution-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.diagram-step {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--font-size-xl);
  margin: 0 auto var(--space-2);
}

.step-label {
  font-weight: 600;
  color: var(--color-text-light);
}

.diagram-arrow {
  font-size: var(--font-size-2xl);
  color: var(--color-accent);
  font-weight: bold;
}

/* ===========================
   FEATURES SECTION
=========================== */
.features {
  padding: var(--space-32) 0;
  background: var(--color-primary);
}

.features .container {
  position: relative;
}

.features .container::after {
  content: "← Scroll to see more features →";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-style: italic;
  opacity: 0.7;
  pointer-events: none;
}

.features-grid {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-secondary);
}

.features-grid::-webkit-scrollbar {
  height: 8px;
}

.features-grid::-webkit-scrollbar-track {
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

.features-grid::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.features-grid::-webkit-scrollbar-thumb:hover {
  background: #ef4444;
}

.feature-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  cursor: pointer;
  flex: 0 0 350px;
  min-width: 350px;
  height: fit-content;
}

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

.feature-card .feature-icon {
  width: 60px;
  height: 60px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.feature-card .feature-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.feature-card h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text-light);
}

.feature-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.feature-screenshot {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-screenshot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.feature-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.spec {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-accent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* ===========================
   TECHNOLOGY SECTION
=========================== */
.technology {
  padding: var(--space-32) 0;
  background: var(--color-bg-dark);
}

.tech-architecture {
  margin-bottom: var(--space-16);
}

.architecture-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: var(--space-12);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.arch-step {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.arch-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-3);
  color: var(--color-accent);
}

.arch-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.arch-step h4 {
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

.arch-step p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.arch-arrow {
  font-size: var(--font-size-3xl);
  color: var(--color-accent);
  font-weight: bold;
}

.tech-stack {
  margin-bottom: var(--space-16);
}

.tech-stack h3 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

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

.tech-logo {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.tech-logo svg {
  width: 100%;
  height: 100%;
}

.tech-info h4 {
  margin-bottom: var(--space-1);
  color: var(--color-text-light);
}

.tech-info p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.performance-metrics {
  margin-bottom: var(--space-16);
}

.performance-metrics h3 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.metric-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-5px);
}

.metric-number {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.metric-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.metric-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.code-showcase h3 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.code-block {
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
}

.code-language {
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.code-file {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.code-block pre {
  padding: var(--space-6);
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: #f8f8f2;
}

/* ===========================
   GALLERY SECTION
=========================== */
.gallery {
  padding: var(--space-32) 0;
  background: var(--color-primary);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.gallery-nav-btn {
  padding: var(--space-3) var(--space-6);
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-nav-btn.active,
.gallery-nav-btn:hover {
  background: var(--gradient-accent);
  border-color: var(--color-accent);
  color: white;
}

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

.gallery-item {
  position: relative;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.phone-frame {
  position: relative;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 25px;
  padding: 15px;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--color-border);
}

.phone-frame img {
  width: 100%;
  border-radius: 15px;
  aspect-ratio: 9/19;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h4 {
  color: white;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.gallery-overlay p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* ===========================
   DEMO SECTION
=========================== */
.demo {
  padding: var(--space-32) 0;
  background: var(--color-bg-dark);
}

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

.video-wrapper {
  position: relative;
}

.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: var(--space-8);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: all var(--transition-normal);
}

.play-button svg {
  width: 32px;
  height: 32px;
  color: white;
  margin-left: 4px;
}

.video-placeholder:hover .play-button {
  transform: scale(1.1);
}

.video-overlay h3 {
  color: white;
  margin-bottom: var(--space-3);
}

.video-overlay p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.demo-features h3 {
  margin-bottom: var(--space-6);
}

.demo-points {
  space-y: var(--space-6);
}

.demo-point {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.point-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.point-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.point-text h4 {
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

.point-text p {
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

/* ===========================
   TEAM SECTION
=========================== */
.team {
  padding: var(--space-32) 0;
  background: var(--color-primary);
}

.team-photo-container {
  text-align: center;
  margin-bottom: var(--space-16);
}

.team-photo-placeholder {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--color-border);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.team-photo-placeholder:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 32, 0.8);
  color: var(--color-text-light);
  text-align: center;
  padding: var(--space-8);
}

.photo-icon {
  width: 60px;
  height: 60px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.photo-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.team-photo-overlay h3 {
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

.team-photo-overlay p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-member {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition-normal);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.member-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--color-accent);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info h3 {
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

.member-info h4 {
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.member-info h5 {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.member-info p {
  color: var(--color-text-muted);
  text-align: left;
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.skill-tag {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-accent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.member-social {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.member-social a {
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.member-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.member-social svg {
  width: 20px;
  height: 20px;
}

/* ===========================
   IMPACT SECTION
=========================== */
.impact {
  padding: var(--space-32) 0;
  background: var(--color-bg-dark);
}

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

.impact-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal);
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}

.impact-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.impact-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.impact-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.impact-card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.testimonials h3 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--gradient-primary);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.testimonial-content {
  margin-bottom: var(--space-6);
}

.testimonial-content p {
  font-style: italic;
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.author-photo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--color-accent);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: var(--space-1);
  color: var(--color-text-light);
}

.author-info p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* ===========================
   SPECIFICATIONS SECTION
=========================== */
.specifications {
  padding: var(--space-32) 0;
  background: var(--color-primary);
}

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

.spec-category {
  background: var(--gradient-primary);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.spec-category h3 {
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
  text-align: center;
}

.spec-list {
  space-y: var(--space-4);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--color-text-light);
  flex-shrink: 0;
  margin-right: var(--space-4);
}

.spec-value {
  color: var(--color-text-muted);
  text-align: right;
  line-height: var(--line-height-tight);
}

/* ===========================
   CTA SECTION
=========================== */
.cta {
  padding: var(--space-32) 0;
  background: var(--gradient-hero);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-6);
}

.cta-content > p {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

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

.cta-secondary {
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
}

.cta-secondary h3 {
  margin-bottom: var(--space-4);
}

.cta-secondary p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--color-bg-dark);
  padding: var(--space-20) 0 var(--space-8);
  border-top: 1px solid var(--color-border);
}

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

.footer-main {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-weight: 800;
  font-size: var(--font-size-xl);
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.footer-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

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

.footer-column h4 {
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer-column a,
.footer-column span {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-text-light);
}

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

.footer-copyright p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

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

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

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

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }
  
  .solution-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .demo-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;     /* 40px */
    --font-size-6xl: 3rem;       /* 48px */
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title-main {
    font-size: var(--font-size-4xl);
  }
  
  .hero-title-highlight {
    font-size: var(--font-size-5xl);
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  
  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    gap: var(--space-6);
  }
  
  .feature-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
  
  .features .container::after {
    display: none;
  }
  
  .architecture-diagram {
    flex-direction: column;
  }
  
  .arch-arrow {
    transform: rotate(90deg);
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .phone-mockup {
    width: 200px;
    height: 400px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .diagram-step,
  .arch-step {
    min-width: 100px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-nav-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ===========================
   ACCESSIBILITY
=========================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-text-muted: #a0a0a0;
    --color-border: #666666;
  }
}

/* ===========================
   PRINT STYLES
=========================== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  .navbar,
  .footer,
  .cta {
    display: none;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
}
