* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Section color scheme - alternating white and slate-50 */
#hero {
  background: #ffffff;
  border-top: 4px solid #dc2626;
}

#how {
  background: #f8fafc;
}

#simplicity {
  background: #ffffff;
}

.section:has(h2:contains("The right choice")) {
  background: #f8fafc;
}

#waitlist-cta {
  background: linear-gradient(to bottom right, #dc2626, #991b1b);
  border-top: 4px solid #7f1d1d !important;
}

#waitlist-cta ~ section {
  background: #ffffff;
}

footer {
  background: #111827;
  border-top: 4px solid #dc2626;
}

/* Sections animation */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for child elements */
.section.visible h2 {
  animation: slideInDown 0.6s ease-out 0.1s both;
}

.section.visible p {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.section.visible > div > div {
  animation: slideInUp 0.6s ease-out 0.3s both;
}

.section.visible div[class*="grid"] > div {
  animation: scaleIn 0.5s ease-out;
}

.section.visible div[class*="grid"] > div:nth-child(1) {
  animation-delay: 0.1s;
}

.section.visible div[class*="grid"] > div:nth-child(2) {
  animation-delay: 0.2s;
}

.section.visible div[class*="grid"] > div:nth-child(3) {
  animation-delay: 0.3s;
}

.section.visible div[class*="grid"] > div:nth-child(4) {
  animation-delay: 0.4s;
}

/* Animation keyframes */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Section dividers */
.section {
  border-top: 1px solid #e5e7eb;
}

.section:first-of-type {
  border-top: none;
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
  }
}

/* Tablet improvements */
@media (min-width: 641px) and (max-width: 1024px) {
  body {
    font-size: 15px;
  }
}

/* Dashboard animation */
.dashboard-item {
  animation: slideUp 0.5s ease-out forwards;
}

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

/* Improved form inputs */
input, textarea, select {
  font-size: 16px;
}

/* Better touch targets on mobile */
@media (max-width: 640px) {
  button, a.button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Color accent consistency */
.bg-slate-50 {
  background-color: #f8fafc;
}

.border-primary-600 {
  border-color: #dc2626;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

/* Form success message animation */
.form-success {
  animation: slideUp 0.5s ease-out;
}

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