/* ==========================================================================
   AI SMART ATTENDANCE — ULTRA-PREMIUM SAAS STYLESHEET
   Design Direction: Linear, Stripe, Apple & Futuristic AI SaaS
   Palette: Deep Navy, Space Black, Electric Blue, Emerald, Coral, Purple
   ========================================================================== */

:root {
  --bg-deep: #030712;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  --electric-blue: #0066FF;
  --electric-blue-glow: rgba(0, 102, 255, 0.45);
  --sky-blue: #38BDF8;
  --cyan-accent: #06B6D4;
  --indigo-accent: #6366F1;
  --purple-accent: #9C7CFF;
  --risk-high: #FF6B6B;
  --risk-medium: #FFB74D;
  --risk-low: #69F0AE;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: #f1f5f9;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Typography Headings */
.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px -8px rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}

/* Navigation Bar */
#navbar {
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#navbar.scrolled {
  background: rgba(3, 7, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-link {
  color: #94a3b8;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(0, 102, 255, 0.35);
  font-weight: 600;
}

.mobile-nav-link {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0066FF 0%, #2563EB 50%, #4F46E5 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d72fe 0%, #3b82f6 50%, #6366f1 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px var(--electric-blue-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-download-giant {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #0052cc 0%, #0066FF 50%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 45px -10px rgba(0, 102, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-download-giant:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 55px -8px rgba(0, 102, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Animated Background */
.hero-bg-media-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-media-container video,
.hero-bg-media-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  object-position: center;
}

/* Hero Section Animations */
@keyframes pulseSlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

.animate-pulse-slow {
  animation: pulseSlow 7s ease-in-out infinite;
}

/* Floating Information Cards */
.floating-badge {
  position: absolute;
  z-index: 20;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 102, 255, 0.15);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.floating-badge:hover {
  transform: scale(1.04);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 102, 255, 0.3);
}

/* Positions for desktop floating badges */
.badge-pos-top-left {
  top: 10%;
  left: -8%;
}

.badge-pos-top-right {
  top: 16%;
  right: -10%;
}

.badge-pos-bottom-left {
  bottom: 14%;
  left: -10%;
}

.badge-pos-bottom-right {
  bottom: 8%;
  right: -8%;
}

/* Keyframes for Floating Cards */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.8deg); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-0.8deg); }
}

.float-card-1 { animation: float1 6s ease-in-out infinite; }
.float-card-2 { animation: float2 7s ease-in-out 1s infinite; }
.float-card-3 { animation: float3 6.5s ease-in-out 2s infinite; }
.float-card-4 { animation: float4 7.5s ease-in-out 1.5s infinite; }

/* Responsive Adjustments for Floating Badges on Mobile */
@media (min-width: 769px) {
  .hero-badges-container {
    display: contents;
  }
}

@media (max-width: 768px) {
  .hero-badges-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    margin-top: 1.25rem;
    position: relative;
    z-index: 20;
  }
  .floating-badge {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    padding: 0.65rem 0.75rem !important;
    border-radius: 1rem !important;
    animation: none !important;
    box-sizing: border-box;
  }
  .floating-badge:hover {
    transform: none !important;
  }
}

/* Features Section Cards */
.feature-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  background: rgba(22, 33, 58, 0.75);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(0, 102, 255, 0.2);
}

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

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Showcase Screen Switcher Tabs */
.showcase-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.showcase-tab-btn:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.showcase-tab-btn.active {
  color: #ffffff;
  background: rgba(0, 102, 255, 0.25);
  border-color: rgba(0, 102, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

/* REALISTIC SMARTPHONE CHASSIS */
.smartphone-chassis {
  width: 100%;
  max-width: 360px;
  height: 720px;
  background: #11141c;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 0 0 6px #1a202c,
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(0, 102, 255, 0.25);
  position: relative;
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #121212;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.android-status-bar {
  height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121212;
  position: relative;
  z-index: 20;
}

.phone-notch {
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.android-top-bar {
  height: 48px;
  padding: 0 16px;
  background: #1E1E1E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 20;
}

.phone-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #121212;
  position: relative;
}

/* Custom scrollbar for phone */
.phone-scroll-body::-webkit-scrollbar {
  width: 4px;
}
.phone-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.screen-view {
  display: none;
  animation: fadeInView 0.25s ease-out forwards;
}

.screen-view.active {
  display: block;
}

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

.app-card {
  background: #1E1E1E;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
}

.android-bottom-nav {
  height: 56px;
  background: #1E1E1E;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 20;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #71717a;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
}

.nav-tab-item:hover {
  color: #d4d4d8;
}

.nav-tab-item.active {
  color: #9C7CFF;
  font-weight: 700;
}

/* Interactive Simulator */
.interactive-simulator-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 20px 45px -10px rgba(0, 102, 255, 0.25);
}

.sim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #1e293b;
  outline: none;
  transition: all 0.2s;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0066FF;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.8);
  transition: all 0.2s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(0, 102, 255, 1);
}

/* How It Works Steps */
.step-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  background: rgba(22, 33, 58, 0.8);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px -10px rgba(0, 102, 255, 0.25);
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.25rem;
}

/* Download Section CTA Box */
.download-cta-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: 2.5rem;
  padding: 4rem 2rem;
  box-shadow: 0 25px 70px -15px rgba(0, 102, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* FAQ Accordion */
.faq-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(22, 33, 58, 0.7);
}

.faq-trigger {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  padding-right: 1rem;
}

.faq-icon {
  color: #94a3b8;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #38bdf8;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
}

.faq-item.active .faq-content {
  max-height: 400px;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 1rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 102, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
}

.toast-msg {
  font-size: 0.775rem;
  color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .download-cta-box {
    padding: 2.5rem 1.25rem;
  }
  .btn-download-giant {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
  }
}


/* ==========================================================================
   OFFLINE CSS UTILITY FALLBACKS (Guarantees layout even without CDN)
   ========================================================================== */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-sky-300 { color: #7dd3fc; }
.text-sky-400 { color: #38bdf8; }
.text-cyan-400 { color: #22d3ee; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.hidden { display: none; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}
