/* ===== LANDING.CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
  background: #ffffff;
}

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

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== HERO HEADER ===== */
.hero-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.02"/><circle cx="10" cy="80" r="0.8" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
  background: linear-gradient(45deg, #ffffff, #f0f9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary, .btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #667eea;
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
  font-weight: 700;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  flex: 1;
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 28px;
  line-height: 1.05;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-text h1 br {
  display: block;
  content: "";
  margin-bottom: 8px;
}

.gradient-text {
  background: linear-gradient(45deg, #ffffff 0%, #e0f2fe 50%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, #ffffff, #e0f2fe);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-text p {
  font-size: 22px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 120px;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-card {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 40px;
  box-shadow:
    0 25px 80px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.2);
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.floating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(1deg);
  }
  66% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
}

.calendar-preview {
  text-align: center;
  position: relative;
  z-index: 1;
}

.preview-header {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 240px;
  margin: 0 auto;
}

.day-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.day.present {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.day.bunk {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.day:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.day:not(.present):not(.bunk):hover {
  background: #f3f4f6;
  color: #374151;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features h2 {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 48px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: #ffffff;
  padding: 48px 36px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  border-color: #667eea;
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 24px;
  display: block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.about h2 {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.about p {
  text-align: center;
  font-size: 20px;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 80px;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 48px;
  position: relative;
  z-index: 1;
}

.about-card {
  background: #ffffff;
  padding: 48px 36px;
  border-radius: 20px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  border-color: #667eea;
}

.about-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.about-card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 100px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cta-section p {
  font-size: 22px;
  margin-bottom: 48px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #9ca3af;
  padding: 80px 0 40px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: 60px;
  align-items: start;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 32px;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

/* ===== ENHANCED BUTTONS ===== */
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ===== IMPROVED FOCUS STATES ===== */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}

/* ===== BETTER TEXT SELECTION ===== */
::selection {
  background: rgba(102, 126, 234, 0.2);
  color: #1f2937;
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.2);
  color: #1f2937;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.feature-card:focus-within {
  outline: 2px solid #667eea;
  outline-offset: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== PERFORMANCE & LOADING ===== */
img {
  max-width: 100%;
  height: auto;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* ===== REDUCE MOTION FOR 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;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1024px) {
  .hero-content {
    gap: 60px;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 52px;
  }

  .hero-stats {
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-header {
    min-height: auto;
  }

  .navbar {
    padding: 20px;
  }

  .brand {
    font-size: 28px;
  }

  .nav-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .nav-actions .btn-primary,
  .nav-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    padding: 40px 20px;
    min-height: auto;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .hero-text h1 br {
    display: none;
  }

  .hero-text p {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat {
    min-width: 100px;
    padding: 16px;
  }

  .stat-number {
    font-size: 36px;
  }

  .hero-visual {
    order: -1;
  }

  .floating-card {
    padding: 32px;
    max-width: 300px;
  }

  .preview-grid {
    max-width: 200px;
  }

  .features {
    padding: 80px 0;
  }

  .features h2 {
    font-size: 36px;
    margin-bottom: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-card {
    padding: 36px 24px;
  }

  .feature-icon {
    font-size: 48px;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .cta-section {
    padding: 80px 20px;
  }

  .cta-section h2 {
    font-size: 36px;
  }

  .cta-section p {
    font-size: 18px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-links {
    justify-content: center;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat {
    min-width: 80px;
    padding: 12px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }

  .floating-card {
    padding: 24px;
  }

  .preview-header {
    font-size: 16px;
  }

  .features h2 {
    font-size: 30px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .cta-section h2 {
    font-size: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}