/* CSS Variables */
:root {
  /* Primary Colors */
  --navy: #020469;
  --purple: #7B2CBF;
  --blue: #4318FF;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F4F7FE;
  --medium-gray: #A3AED0;
  --dark-gray: #2B3674;
  --neutral-navy: #1B2559;
  
  /* Status Colors */
  --success: #05CD99;
  --warning: #FFB547;
  --error: #E31A1A;
  --info: #3965FF;
  
  /* Dark Theme */
  --dark-bg: #0B1426;
  --dark-surface: #111C44;
  --dark-card: #1B2559;
  
/* Animation Durations */
  --anim-fast: 200ms;
  --anim-normal: 300ms;
  --anim-slow: 500ms;
  --cascade-duration: 600ms;
  
  /* Easing Functions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --cascade-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(163, 174, 208, 0.2);
  z-index: 1000;
  padding: 0.5rem 0;
  transition: all var(--anim-normal) var(--ease-in-out);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--neutral-navy);
  cursor: pointer;
  transition: all var(--anim-normal) var(--smooth);
}

.logo:hover {
  transform: scale(1.02);
}

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

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-gray);
  margin: 3px 0;
  transition: all var(--anim-normal) var(--ease-in-out);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--anim-normal) var(--ease-in-out);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
  
  .nav-link:hover {
    background: rgba(67, 24, 255, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
}

.nav-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--anim-normal) var(--smooth);
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--blue);
  background: rgba(67, 24, 255, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: all var(--anim-normal) var(--ease-out);
  transform: translateX(-50%);
}

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

.nav-link.active {
  color: var(--blue);
  background: rgba(67, 24, 255, 0.1);
  font-weight: 600;
}

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

/* Hero Section */
.hero {
  padding: 60px 0 20px;
  background: linear-gradient(135deg, var(--light-gray) 0%, rgba(67, 24, 255, 0.05) 100%);
  display: flex;
  align-items: center;
}

/* Reduced padding for About and Contact pages */
.hero.about-hero,
.hero.contact-hero {
  padding: 45px 0 15px;
}

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

.hero-title {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp var(--anim-slow) var(--ease-out) 0.3s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  opacity: 0;
  animation: fadeInUp var(--anim-slow) var(--ease-out) 0.6s both;
}

/* Hero Cards */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin: 3rem auto 0;
}

@media (max-width: 900px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }
}

.solution-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--anim-normal) var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid rgba(67, 24, 255, 0.1);
}

.solution-card[data-animate="fade-up"] {
  animation: fadeInUp var(--anim-slow) var(--ease-out) forwards;
}

.solution-card[data-delay="100"] {
  animation-delay: 200ms;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(67, 24, 255, 0.1);
  border-color: rgba(67, 24, 255, 0.2);
}

.card-icon {
  margin-bottom: 1.5rem;
}

.solution-card h3 {
  margin-bottom: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-badge.coming-soon {
  background: rgba(255, 181, 71, 0.1);
  color: var(--warning);
}

.status-badge.available {
  background: rgba(5, 205, 153, 0.1);
  color: var(--success);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--medium-gray);
  opacity: 0;
  animation: fadeInUp var(--anim-normal) var(--ease-out) forwards;
}

.feature-list li:nth-child(1) { animation-delay: 0.8s; }
.feature-list li:nth-child(2) { animation-delay: 1.0s; }
.feature-list li:nth-child(3) { animation-delay: 1.2s; }
.feature-list li:nth-child(4) { animation-delay: 1.4s; }

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--anim-normal) var(--smooth);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transform: perspective(1px) translateZ(0);
}


.cta-button.primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%);
  color: var(--white);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 44, 191, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.cta-button.secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 24, 255, 0.2);
}

/* Content Section */
.content-section {
  padding: 40px 0;
  background: var(--white);
}

/* Value Proposition Section */
.value-prop {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

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

.value-card {
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--anim-normal) var(--ease-out);
  border-radius: 16px;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(67, 24, 255, 0.1);
}

.value-card[data-animate="slide-up"] {
  animation: fadeInUp var(--anim-slow) var(--ease-out) forwards;
}

.value-card[data-delay="100"] {
  animation-delay: 100ms;
}

.value-card[data-delay="200"] {
  animation-delay: 200ms;
}

.value-icon {
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--medium-gray);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--medium-gray);
}

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

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-column a {
  display: block;
  color: var(--medium-gray);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--anim-fast) var(--ease-in-out);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(163, 174, 208, 0.1);
  color: var(--medium-gray);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn var(--anim-normal) var(--ease-out);
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 3rem;
  border-radius: 20px;
  max-width: 500px;
  position: relative;
  animation: scaleIn var(--anim-normal) var(--ease-out);
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--medium-gray);
  transition: color var(--anim-fast) var(--ease-in-out);
}

.close:hover {
  color: var(--dark-gray);
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--medium-gray);
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  gap: 1rem;
}

.waitlist-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color var(--anim-fast) var(--ease-in-out);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--blue);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cascade-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all var(--anim-normal) var(--ease-out);
}

/* Scroll animations */
.animated {
  opacity: 0;
  transition: all var(--anim-slow) var(--ease-out);
}

.animated.visible {
  opacity: 1;
}

/* Gradient definitions for SVGs */
#shield-gradient stop:first-child { stop-color: var(--success); }
#shield-gradient stop:last-child { stop-color: rgba(5, 205, 153, 0.3); }

#clock-gradient stop:first-child { stop-color: var(--blue); }
#clock-gradient stop:last-child { stop-color: rgba(67, 24, 255, 0.3); }

#chart-gradient stop:first-child { stop-color: var(--purple); }
#chart-gradient stop:last-child { stop-color: rgba(123, 44, 191, 0.3); }

/* Cascading Perspective Scroll Animation */
.cascade-section {
  position: relative;
  z-index: 1;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: none; /* Remove transitions for smooth frame-by-frame animation */
}

/* Enhanced smooth scrolling for better effect */
html {
  scroll-behavior: smooth;
}

/* Ensure sections have proper spacing for the effect */
section.cascade-section {
  min-height: 80vh;
  padding: 80px 0;
}

/* Special case for hero section */
.hero.cascade-section {
  /* Removed min-height */
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .cascade-section {
    transition: none;
  }
  
  .cascade-section.entering,
  .cascade-section.in-view,
  .cascade-section.exiting {
    opacity: 1;
    transform: none;
  }
}

