/* ==========================================================================
   GuardianAI — Public Landing & App Download Design System
   Aesthetic: Cyber-Dark Security, Glassmorphic Neon Accents, Ultra-Crisp Typography
   ========================================================================== */

:root {
  --bg-main: #060913;
  --bg-card: rgba(13, 20, 36, 0.72);
  --bg-card-hover: rgba(20, 30, 54, 0.85);
  --bg-elevated: #0f172a;
  
  --border-glass: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(139, 92, 246, 0.3);
  --border-crimson: rgba(239, 68, 68, 0.35);
  
  --primary-purple: #8b5cf6;
  --primary-violet: #7c3aed;
  --accent-pink: #ec4899;
  --sos-crimson: #ef4444;
  --safe-emerald: #10b981;
  --telemetry-cyan: #06b6d4;
  --amber-warning: #f59e0b;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow-purple: 0 0 35px rgba(139, 92, 246, 0.35);
  --shadow-glow-crimson: 0 0 35px rgba(239, 68, 68, 0.35);
  --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.3);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(239, 68, 68, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 65%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Background Cyber Grid */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #c4b5fd 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-crimson-text {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 60%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-cyan-text {
  background: linear-gradient(135deg, #67e8f9 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Navigation Bar (Glassmorphic & Sticky)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 9, 19, 0.82);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-version-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Operational Status Pill */
.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--safe-emerald);
  box-shadow: 0 0 10px var(--safe-emerald);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text-primary);
  transition: all 0.25s ease;
}

/* Mobile Navigation Overlay & Drawer */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 500;
  display: none;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-nav-sheet {
  width: 86vw;
  max-width: 360px;
  height: 100%;
  background: #080d1a;
  border-left: 1px solid var(--border-glass);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-sheet {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.mobile-link:hover,
.mobile-link:active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateX(4px);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}

.mobile-full-btn {
  width: 100%;
  padding: 13px 18px;
  justify-content: center;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 0.92rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.btn-download-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 1.08rem;
  padding: 15px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-download-hero:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 10px 38px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 80px 0 85px;
  position: relative;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content-col {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #d8b4fe;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: 3.4rem;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  line-height: 1.16;
}

.hero-subhead {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 720px;
}

/* Download Action Box */
.download-action-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 34px 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 780px;
}

.download-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--safe-emerald), var(--primary-purple), var(--sos-crimson));
}

.download-buttons-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}

.btn-qr-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qr-toggle:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Google Play Store Coming Soon Button */
.btn-playstore-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-playstore-coming-soon:hover {
  border-color: rgba(66, 133, 244, 0.55);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 28px rgba(66, 133, 244, 0.25);
  transform: translateY(-2px);
}

.btn-playstore-coming-soon:active {
  transform: translateY(0);
}

.btn-playstore-coming-soon:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

.playstore-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn-playstore-coming-soon:hover .playstore-icon {
  transform: scale(1.08);
}

.playstore-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.playstore-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.6px;
  font-weight: 600;
}

.playstore-main {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.playstore-coming-soon-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
  margin-left: 4px;
}

.chip-playstore {
  background: rgba(66, 133, 244, 0.12) !important;
  border-color: rgba(66, 133, 244, 0.3) !important;
  color: #93c5fd !important;
}

/* Mobile Drawer Play Store Pill */
.mobile-playstore-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-playstore-pill:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(66, 133, 244, 0.4);
}

/* Play Store Notice Card in Installation Guide */
.playstore-notice-card {
  margin-top: 30px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.playstore-notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4285f4, #34a853, #fbbc04, #ea4335);
}

.playstore-notice-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.playstore-notice-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playstore-notice-text {
  flex: 1;
}

.playstore-notice-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.playstore-notice-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #f8fafc;
}

.playstore-notice-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.btn-notice-details {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  border-color: rgba(66, 133, 244, 0.3);
}

.btn-notice-details:hover {
  border-color: rgba(66, 133, 244, 0.6);
  background: rgba(66, 133, 244, 0.15);
}

/* Play Store Status Modal Dialog */
.playstore-modal-card {
  max-width: 460px;
  text-align: center;
  padding: 32px 30px;
  position: relative;
}

.playstore-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.playstore-modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.playstore-modal-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.playstore-modal-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: left;
}

.playstore-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playstore-modal-btn-download {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.playstore-modal-btn-download:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.55);
}

.playstore-modal-btn-qr {
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
}

.download-meta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Metrics Ribbon
   ========================================================================== */
.metrics-ribbon {
  padding: 24px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 16, 30, 0.5);
  margin-bottom: 80px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-item {
  text-align: center;
  padding: 12px;
}

.metric-value {
  font-size: 2.3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-main-title {
  font-size: 2.35rem;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-lead-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */
.features-section {
  padding-bottom: 90px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 25px rgba(139, 92, 246, 0.15);
}

.feature-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.icon-crimson { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.4)); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.icon-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 116, 144, 0.4)); border: 1px solid rgba(6, 182, 212, 0.4); color: #38bdf8; }
.icon-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(4, 120, 87, 0.4)); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.icon-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.4)); border: 1px solid rgba(139, 92, 246, 0.4); color: #c084fc; }
.icon-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(190, 24, 93, 0.4)); border: 1px solid rgba(236, 72, 153, 0.4); color: #f472b6; }
.icon-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.4)); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; }

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Installation Guide (3-Step Walkthrough)
   ========================================================================== */
.install-section {
  padding: 80px 0;
  background: rgba(9, 14, 26, 0.6);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
}

.step-number-bubble {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.step-title {
  font-size: 1.15rem;
  margin: 12px 0 10px;
}

.step-instruction {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Emergency Helplines Directory
   ========================================================================== */
.helplines-section {
  padding: 85px 0;
}

.helplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.helpline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.helpline-card:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-3px);
}

.helpline-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: #f87171;
}

.helpline-number-tag {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fca5a5;
}

.helpline-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

.helpline-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   QR Code Modal / Overlay
   ========================================================================== */
.qr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 17, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.qr-modal-backdrop.active {
  display: flex;
}

.qr-modal-card {
  background: #0f172a;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), var(--shadow-glow-purple);
  position: relative;
}

.qr-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.qr-close-btn:hover {
  color: #ffffff;
}

.qr-canvas-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin: 20px 0 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.qr-instructions {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.qr-url-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #c4b5fd;
  word-break: break-all;
  font-family: monospace;
}

/* ==========================================================================
   Engineering Team Showcase Section
   ========================================================================== */
.team-section {
  padding: 85px 0 95px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 25px rgba(139, 92, 246, 0.15);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card.lead-card {
  grid-column: span 2;
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(15, 23, 42, 0.85));
}

.team-card.lead-card::before {
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #3b82f6);
  opacity: 1;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.team-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.avatar-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); border: 1px solid rgba(139, 92, 246, 0.4); }
.avatar-crimson { background: linear-gradient(135deg, #ef4444, #b91c1c); border: 1px solid rgba(239, 68, 68, 0.4); }
.avatar-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); border: 1px solid rgba(6, 182, 212, 0.4); }
.avatar-pink { background: linear-gradient(135deg, #ec4899, #be185d); border: 1px solid rgba(236, 72, 153, 0.4); }
.avatar-emerald { background: linear-gradient(135deg, #10b981, #047857); border: 1px solid rgba(16, 185, 129, 0.4); }

.team-role-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.role-lead { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.35); }
.role-security { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.role-cloud { background: rgba(6, 182, 212, 0.18); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.35); }
.role-design { background: rgba(236, 72, 153, 0.18); color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.35); }
.role-telemetry { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.team-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.team-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-tag {
  font-size: 0.74rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Team Social & Profile Links */
.team-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.team-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

.team-social-btn.portfolio-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #d8b4fe;
}

.team-social-btn.portfolio-btn:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.team-social-btn.linkedin-btn {
  background: rgba(10, 102, 194, 0.16);
  border: 1px solid rgba(10, 102, 194, 0.4);
  color: #60a5fa;
}

.team-social-btn.linkedin-btn:hover {
  background: rgba(10, 102, 194, 0.3);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.team-social-btn.github-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.team-social-btn.github-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 70px 0 90px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: rgba(139, 92, 246, 0.4);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary-purple);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: #04070e;
  padding: 60px 0 36px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links-col h5 {
  font-size: 0.96rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1180px) */
@media (max-width: 1180px) {
  .nav-links {
    gap: 16px;
  }
  .system-status-indicator {
    display: none;
  }
}

/* Medium Tablets & Mobile Navigation Trigger (<= 920px) */
@media (max-width: 920px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .hero-subhead {
    margin-left: auto;
    margin-right: auto;
  }
  .download-buttons-group {
    justify-content: center;
  }
  .download-meta-chips {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .team-card.lead-card {
    grid-column: span 1;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .helplines-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Small Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .site-header {
    background: rgba(6, 9, 19, 0.94);
  }
  .nav-content {
    height: 66px;
  }
  .hero-section {
    padding: 56px 0 60px;
  }
  .hero-headline {
    font-size: clamp(2.1rem, 6.5vw, 2.8rem);
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .helplines-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .site-footer {
    padding: 48px 0 28px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Standard Mobile Smartphones (<= 580px) */
@media (max-width: 580px) {
  .container {
    padding: 0 16px;
  }
  .nav-content {
    height: 60px;
    gap: 8px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    border-radius: 10px;
  }
  .brand-version-pill {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .nav-btn-admin {
    padding: 7px 10px;
    border-radius: 10px;
  }
  .nav-btn-admin .btn-text-responsive {
    display: none;
  }
  .nav-btn-download {
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
  }
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  
  /* Hero on Mobile */
  .hero-section {
    padding: 40px 0 46px;
  }
  .hero-badge-pill {
    font-size: 0.74rem;
    padding: 5px 11px;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  .hero-headline {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }
  .hero-subhead {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .download-action-card {
    padding: 22px 14px;
    border-radius: 18px;
    margin-bottom: 18px;
  }
  .download-buttons-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-download-hero {
    width: 100%;
    font-size: 0.98rem;
    padding: 13px 18px;
    justify-content: center;
    border-radius: 14px;
  }
  .btn-qr-toggle {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
  }
  .btn-playstore-coming-soon {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
  }
  #hero-github-mirror-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
  }
  .download-meta-chips {
    gap: 5px;
  }
  .meta-chip {
    font-size: 0.7rem;
    padding: 3px 7px;
  }

  /* Metrics Ribbon Mobile */
  .metrics-ribbon {
    padding: 16px 0;
    margin-bottom: 44px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric-item {
    padding: 6px 4px;
  }
  .metric-value {
    font-size: 1.5rem;
  }
  .metric-label {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  /* Section Headers Mobile */
  .section-header-block {
    margin-bottom: 30px;
    padding: 0 4px;
  }
  .section-pill-tag {
    font-size: 0.74rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .section-main-title {
    font-size: 1.68rem;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
    line-height: 1.22;
  }
  .section-lead-text {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Features Section Mobile */
  .features-section {
    padding-bottom: 48px;
  }
  .feature-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .feature-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .feature-title {
    font-size: 1.12rem;
    margin-bottom: 6px;
  }
  .feature-description {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  /* Installation Walkthrough Mobile */
  .install-section {
    padding: 48px 0;
  }
  .step-card {
    padding: 24px 16px 16px;
    border-radius: 16px;
  }
  .step-number-bubble {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
    top: -12px;
    left: 16px;
  }
  .step-title {
    font-size: 1.08rem;
  }
  .step-instruction {
    font-size: 0.86rem;
  }

  /* Helplines Mobile */
  .helplines-section {
    padding: 48px 0;
  }
  .helpline-card {
    padding: 14px 12px;
    gap: 10px;
    border-radius: 12px;
  }
  .helpline-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 10px;
  }
  .helpline-number-tag {
    font-size: 1.15rem;
  }
  .helpline-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-left: 4px;
  }
  .helpline-desc {
    font-size: 0.76rem;
  }

  /* Team Showcase Mobile */
  .team-section {
    padding: 48px 0 56px;
  }
  .team-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .team-avatar-box {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    border-radius: 12px;
  }
  .team-name {
    font-size: 1.08rem;
  }
  .team-role-pill {
    font-size: 0.66rem;
    padding: 2px 6px;
  }
  .team-desc {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .team-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  /* FAQ Accordion Mobile */
  .faq-section {
    padding: 44px 0 56px;
  }
  .faq-question {
    padding: 14px 16px;
    font-size: 0.94rem;
  }
  .faq-answer {
    padding: 0 16px 14px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  /* Site Footer Mobile */
  .site-footer {
    padding: 40px 0 24px;
  }
  .footer-grid {
    gap: 22px;
    margin-bottom: 24px;
  }
  .footer-brand h4 {
    font-size: 1.15rem;
  }
  .footer-links-col h5 {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  .footer-links-col a {
    font-size: 0.84rem;
  }
  .footer-bottom-bar {
    font-size: 0.75rem;
    padding-top: 16px;
  }
}

/* Compact Smartphones (<= 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  .brand-version-pill {
    display: none;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .nav-actions {
    gap: 4px;
  }
  .nav-btn-download {
    padding: 6px 9px;
    font-size: 0.76rem;
  }
  .nav-btn-admin {
    padding: 6px 8px;
  }
  .hero-headline {
    font-size: 1.62rem;
  }
  .download-action-card {
    padding: 18px 12px;
  }
  .btn-download-hero {
    font-size: 0.92rem;
    padding: 12px 14px;
  }
}
