/* Email Triage - Landing Page Styles */
/* Modern, clean design with nimbus blue (#003366) as primary */

:root {
  --nimbus-blue: #003366;
  --nimbus-blue-light: #5A9FD4;
  --nimbus-blue-dark: #002244;
  --nimbus-blue-pale: #E6F0F8;

  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;

  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;

  --border-gray: #e5e7eb;
  --border-gray-dark: #d1d5db;

  --success-green: #10b981;
  --warning-orange: #f59e0b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --gradient-blue: linear-gradient(135deg, var(--nimbus-blue) 0%, var(--nimbus-blue-light) 100%);
  --gradient-pale: linear-gradient(135deg, var(--nimbus-blue-pale) 0%, rgba(90, 159, 212, 0.1) 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--nimbus-blue);
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: inline;
  }
}

.btn-nav-login {
  padding: 0.625rem 1.5rem;
  background: var(--nimbus-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-login:hover {
  background: var(--nimbus-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  padding: 8rem 2rem 6rem;
  background: var(--gradient-pale);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(90, 159, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nimbus-blue);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-subtitle em {
  color: var(--nimbus-blue);
  font-style: normal;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary,
.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--nimbus-blue);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(0, 51, 102, 0.25);
}

.btn-primary-large {
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
}

.btn-primary:hover,
.btn-primary-large:hover {
  background: var(--nimbus-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 51, 102, 0.35);
}

.btn-primary:active,
.btn-primary-large:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--nimbus-blue);
  border: 2px solid var(--nimbus-blue);
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--nimbus-blue-pale);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--nimbus-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

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

/* Hero Visual - Animated Email Cards */
.hero-visual {
  display: none;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 500px;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
  .hero-content {
    max-width: 50%;
  }
}

.email-preview-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.email-card {
  position: absolute;
  width: 320px;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-gray);
}

.email-card.card-1 {
  top: 0;
  left: 0;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.email-card.card-2 {
  top: 120px;
  left: 40px;
  z-index: 2;
  animation: float 6s ease-in-out infinite 2s;
  opacity: 0.9;
}

.email-card.card-3 {
  top: 240px;
  left: 0;
  z-index: 1;
  animation: float 6s ease-in-out infinite 4s;
  opacity: 0.75;
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-dot {
  width: 32px;
  height: 32px;
  background: var(--gradient-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.card-line {
  height: 12px;
  background: var(--bg-gray-100);
  border-radius: 6px;
  flex: 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-line.short {
  width: 60%;
}

.card-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--nimbus-blue-pale);
  color: var(--nimbus-blue);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  width: fit-content;
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  background: white;
}

.features-container,
.timeline-container,
.social-proof-container,
.cta-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

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

.feature-card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: var(--nimbus-blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-pale);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: var(--nimbus-blue);
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Timeline Section */
.timeline {
  padding: 6rem 2rem;
  background: var(--bg-gray-50);
}

.timeline-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--border-gray);
}

@media (max-width: 640px) {
  .timeline-steps::before {
    left: 20px;
  }
}

.timeline-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.timeline-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-number {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.step-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

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

/* Social Proof Section */
.social-proof {
  padding: 6rem 2rem;
  background: white;
}

.proof-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.proof-icon {
  font-size: 3rem;
}

.proof-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* CTA Section */
.cta {
  padding: 6rem 2rem;
  background: var(--gradient-blue);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-note {
  font-size: 0.9375rem;
  margin-top: 1.5rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  background: var(--nimbus-blue-dark);
  color: white;
  text-align: center;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 48px;
  height: 48px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 4rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .features,
  .timeline,
  .social-proof,
  .cta {
    padding: 4rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-step {
    gap: 1rem;
  }

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

@media (max-width: 480px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .btn-nav-login {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

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

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .features,
  .timeline,
  .social-proof,
  .cta {
    padding: 3rem 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .nav,
  .hero-visual,
  .cta,
  .footer {
    display: none;
  }
}
