:root {
  /* Brand Colors (Extracted from Logo) */
  --brand-primary: #3d75db;
  --brand-secondary: #8caae8;
  --brand-light: #f3f4f6;
  
  /* Default Dark Mode Theme */
  --bg-color: #0F172A;
  --bg-alt: #1E293B;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --accent-primary: var(--brand-primary);
  --accent-secondary: var(--brand-secondary);
  --accent-warm: #F472B6; 
  --white: #ffffff;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.05);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 5rem 1rem;
}

/* Light Mode Class Override */
body.light-mode {
  --bg-color: #F8FAFC;
  --bg-alt: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --white: #0F172A;
  --card-bg: rgba(255,255,255,0.8);
  --card-border: rgba(0,0,0,0.05);
}

/* Specific Light Mode Overrides */
body.light-mode .logo,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: var(--text-primary);
}

body.light-mode h1 {
  background: linear-gradient(to right, var(--brand-primary), #1e293b) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.light-mode .subtitle {
  color: var(--text-secondary) !important;
}

body.light-mode .mobile-menu-btn {
  color: var(--text-primary);
}

body.light-mode .step-card {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.light-mode .step-card:hover {
  background: #f8fafc !important;
}

/* Navbar: White in Light Mode */
body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Navbar: Dark in Dark Mode */
.navbar {
  background: rgba(15, 23, 42, 0.9); 
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Theme Toggle Button */
.theme-btn {
  background: none;
  border: 1px solid var(--text-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-primary);
}

/* Toggle Icons */
.sun-icon { display: none; }
.moon-icon { display: block; }

body.light-mode .sun-icon { display: block; }
body.light-mode .moon-icon { display: none; }
body.light-mode .theme-btn {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
body.light-mode .theme-btn:hover {
  background: rgba(0,0,0,0.05);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section {
  padding: var(--section-padding);
}

.alt-bg {
  background-color: var(--bg-alt);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-warm)
  );
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(61, 117, 219, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 117, 219, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text-secondary);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn-primary) {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--white);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Offset for fixed header */
  background:
    radial-gradient(
      circle at top right,
      rgba(61, 117, 219, 0.15), /* Brand Primary */
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(140, 170, 232, 0.1), /* Brand Secondary */
      transparent 40%
    );
}

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

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

/* Envelope Animation Placeholder */
.envelope-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lock-icon {
  font-size: 5rem;
  filter: drop-shadow(0 0 20px rgba(61, 117, 219, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Steps Section */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.step-card {
  background: rgba(255, 255, 255, 0.05); /* Glassmorphism light */
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s;
  border: 1px solid transparent;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-secondary);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item h3 {
  font-size: 1.25rem;
  color: var(--white);
}

.feature-item p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding: 2.5rem 1rem;
  background: #020617; /* Always dark background */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #94A3B8; /* Default text color */
}

/* Force light text in footer for all modes since background is always dark */
body.light-mode .footer h2,
.footer h2,
.footer h3,
.footer h4, 
.footer a {
  color: #F8FAFC;
}

.footer p, 
.footer .legal-links a {
  color: #94A3B8;
}

.footer .legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.app-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem 0;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  color: #F8FAFC;
  transition: all 0.3s ease;
  min-width: 220px;
  text-decoration: none;
}

.store-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.store-btn svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.store-btn:hover svg {
  transform: scale(1.1);
}

.store-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-btn .btn-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.store-btn .btn-maintext {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .navbar {
    padding: 1rem;
  }

  .nav-links {
    display: none; /* simple hide for now, would need mobile menu */
  }
}

/* Mobile Menu & Image Styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
  }
  .nav-links.active {
    transform: translateX(0);
  }
   /* Swap Hero Image for Light Mode */
  /* Hero Image is handled by HTML in Light Mode */
}

.hero-image {
  max-width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 0 20px rgba(61, 117, 219, 0.4));
  animation: float 6s ease-in-out infinite;
}
