/* ==========================================================================
   Aegis Auth Landing Page Stylesheet
   Design Language: Premium Dark Mode, Glassmorphic, Glowing Accents
   ========================================================================== */

/* --- Design System & CSS Variables --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --color-bg: #030712;
  --color-surface-base: #0a0f1d;
  --color-surface-card: rgba(13, 20, 38, 0.65);
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-glow: rgba(59, 130, 246, 0.2);
  
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-glow: rgba(59, 130, 246, 0.15);
  
  --color-accent-cyan: #06b6d4;
  --color-accent-cyan-hover: #0891b2;
  --color-accent-cyan-glow: rgba(6, 182, 212, 0.15);

  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dark: #6b7280;

  /* Layout and Sizing */
  --header-height: 80px;
  --max-width: 1280px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all var(--transition-speed) var(--transition-timing);
}

/* --- Base Resets & Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Layout Containers --- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

/* --- Glowing Ambient Effects --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(59, 130, 246, 0) 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-cyan-glow) 0%, rgba(6, 182, 212, 0) 70%);
  top: 40%;
  left: -200px;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(59, 130, 246, 0) 70%);
  bottom: 50px;
  right: -100px;
}

/* --- Button Typography & Actions --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-cyan) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border: 1px solid var(--color-border);
  background-color: transparent;
  color: var(--color-text-muted);
}

.btn-outline:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-text-main);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* --- Glassmorphic Navigation Bar --- */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.glass-nav.scrolled {
  height: 70px;
  background: rgba(3, 7, 18, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 38px;
  height: 38px;
  transition: var(--transition-smooth);
}

.brand-logo:hover .logo-img {
  transform: rotate(15deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

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

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan));
  transition: var(--transition-smooth);
}

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

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.menu-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --- Mobile Drawer Navigation --- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--color-border);
  z-index: 999;
  padding: 120px 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
  color: var(--color-text-main);
}

.mobile-drawer-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer-btn {
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.badge-container {
  margin-bottom: 1.5rem;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.05);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

/* Mockup Display */
.main-mockup-wrapper {
  background-color: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 0.5rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background-color: #ff5f56; }
.mockup-dot.yellow { background-color: #ffbd2e; }
.mockup-dot.green { background-color: #27c93f; }

.mockup-tab-title {
  margin-left: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

.mockup-image {
  border-radius: calc(var(--border-radius-lg) - 6px);
  width: 100%;
}

/* --- Features Section --- */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 
              0 0 30px rgba(59, 130, 246, 0.05);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Showcase Section --- */
.showcase-section {
  padding: 6rem 0;
  background-color: rgba(6, 11, 25, 0.3);
}

.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.carousel-navigation-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: 9999px;
  max-width: fit-content;
  margin: 0 auto 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 9999px;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.carousel-viewport-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-slides-wrapper {
  position: relative;
  min-height: 480px;
  display: flex;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  position: relative;
}

.slide-mockup-frame {
  width: 100%;
  max-width: 760px;
  background-color: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 4px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.slide-image {
  border-radius: calc(var(--border-radius-md) - 4px);
  width: 100%;
}

.slide-caption {
  text-align: center;
  max-width: 580px;
}

.slide-caption h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.slide-caption p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- How It Works Section --- */
.how-it-works-section {
  padding: 6rem 0;
}

.steps-flow-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.step-card {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.step-badge {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-heading);
  font-size: 6.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.step-card-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Download CTA Section --- */
.download-cta-section {
  padding: 6rem 0;
}

.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(10, 15, 29, 0.8) 0%, rgba(3, 7, 18, 0.8) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem;
  gap: 4rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.download-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent-cyan-glow) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  opacity: 0.5;
}

.download-card-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.download-card-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.download-card-ctas {
  display: flex;
  gap: 1rem;
}

.download-card-graphic {
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.promo-tile-img {
  width: 100%;
}

/* --- Site Footer --- */
.site-footer {
  background-color: #02050c;
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 0;
  color: var(--color-text-muted);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 34px;
  height: 34px;
}

.footer-moto {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-column a {
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--color-text-dark);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .hero-description {
    margin: 0 auto 2.5rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

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

  .download-card {
    grid-template-columns: 1fr;
    padding: 3rem;
    gap: 3rem;
    text-align: center;
  }

  .download-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .download-card-ctas {
    justify-content: center;
  }

  .download-card-graphic {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

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

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
