* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #000;
  color: #fff;
  line-height: 1.6;
}

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

nav {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
}

.logo span {
  background: linear-gradient(45deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-image {
  height: 2rem;
  width: auto;
  margin-right: -0.2rem;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0;
}

.hero-content {
  max-width: 800px;
  padding: 2rem 0;
}

h1 {
  font-size: 4rem;
  margin-bottom: 3.5rem;
  line-height: 1.4;
}

.subtitle {
  font-size: 1.5rem;
  color: #888;
  margin-bottom: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: #f149a7;
  /* background: linear-gradient(45deg, rgba(255,255,255,1) 1%, rgba(241,73,167,1) 100%);  */
  /* background: linear-gradient(45deg, #5c42f3, #3f5efb); */
  /* background: linear-gradient(45deg, rgba(250,184,222,1) 1%, rgba(253,227,242,1) 16%, rgba(251,199,229,1) 31%, rgba(241,73,167,1) 100%); */
  color: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s;
  display: inline-block;
}

.cta-button:hover {
  cursor: pointer;
  transform: translateY(-2px);
}

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

.feature {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: transform 0.3s;
  cursor: pointer;
}

.feature:hover {
  transform: translateY(-10px);
}

.feature svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.feature h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature p {
  color: #888;
}

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

.github-link {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.github-link:hover {
  opacity: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  align-items: center;
  margin-top: 2rem;
}

.cta-button.secondary {
  background: #fff;
  color: #000;
  border: none;
  position: relative;
  z-index: 1;
}

.cta-button.secondary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, transparent, #f149a7, transparent);
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button.secondary.highlight::before {
  opacity: 1;
  animation: borderWave 2s linear infinite;
}

@keyframes borderWave {
  0% {
    background: linear-gradient(90deg, transparent, #f149a7, transparent);
  }
  50% {
    background: linear-gradient(90deg, #f149a7, transparent, #f149a7);
  }
  100% {
    background: linear-gradient(90deg, transparent, #f149a7, transparent);
  }
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.copyright {
  color: #666;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    line-height: 1.3;
  }

  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    line-height: 1.4;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .feature h3 {
    font-size: 1.2rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-image {
    height: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 0;
  }

  .features {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 3rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    width: 100%;
  }

  .cta-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  .feature {
    padding: 1.5rem;
  }

  .feature svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  /* Footer mobile styles */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

  .footer-links a {
    display: block;
    font-size: 0.9rem;
  }

  .copyright {
    width: 100%;
  }

  .hero {
    padding: 1.5rem 0;
  }

  .features {
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 0.8rem;
  }

  .email-input {
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .waitlist-form .cta-button {
    width: 100%;
  }
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.waitlist-form {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  max-width: 500px;
  min-height: 60px;
}

.email-input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Animation for modal */
@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.modal:not(.hidden) {
  animation: slideDown 0.3s ease-out forwards;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .modal {
    width: 90%;
    top: 10px;
  }

  .waitlist-form {
    width: 100%;
  }

  .email-input {
    flex: 1;
    min-width: unset;
  }
}

.waitlist-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.success-message {
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

.success-message.visible {
  opacity: 1;
  transform: translateY(0);
  display: flex;
  animation: fadeInOut 5s ease forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.cta-button.secondary {
  background: #fff;
  color: #000;
  border: none;
  position: relative;
  z-index: 1;
}

.cta-button.secondary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, transparent, #f149a7, transparent);
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button.secondary.highlight::before {
  opacity: 1;
  animation: borderWave 2s linear infinite;
}

@keyframes borderWave {
  0% {
    background: linear-gradient(90deg, transparent, #f149a7, transparent);
  }
  50% {
    background: linear-gradient(90deg, #f149a7, transparent, #f149a7);
  }
  100% {
    background: linear-gradient(90deg, transparent, #f149a7, transparent);
  }
}

<<<<<<< HEAD
.methodology-explanation {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

=======
>>>>>>> 5130da5 (add simulations page with depth first)
.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.simulation-content {
  padding: 4rem 0;
}

.simulation-case {
  margin-bottom: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}

.simulation-case h2 {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  color: #888;
  margin-top: 2rem;
}

.simulation-case h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #888;
  font-size: 1.1rem;
}

.simulation-desc {
  margin-top: 2rem;
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.simulation-desc ul {
  margin-top: 2.5rem;
  margin-left: 2rem;
}

.simulation-desc li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.simulation-desc li + li {
  margin-top: 0.8rem;
}

/* Dark theme for mermaid diagrams */
.mermaid {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

/* Feature pages styles */
.feature-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.feature-content h1 {
    text-align: left;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.feature-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.feature-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.feature-section p {
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-section ul {
    list-style: none;
    padding: 0;
}

.feature-section ul li {
    color: #888;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-section ul li:before {
    content: "•";
    color: #f149a7;
    position: absolute;
    left: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .feature-content {
        padding: 2rem 0;
    }

    .feature-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-section h2 {
        font-size: 1.4rem;
    }

    .feature-content h1 {
        padding: 0 1.5rem;
        font-size: 1.8rem;
    }

    .simulation-case h2 {
        font-size: 1.2rem;
    }

    .simulation-desc {
        font-size: 1rem;
    }
    
    .simulation-desc ul {
        margin-top: 2rem;
    }
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    opacity: 0.9;
}

.chain-demo {
    padding: 8rem 0;
    text-align: center;
}

.chain-demo h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.chain-demo-desc {
    color: #888;
    margin-top: 2rem;
    font-size: 1.1rem;
    width: 840px;
    margin-left: auto;
    margin-right: auto;
    text-align: start;
}

/* Update mermaid diagram styles */
.mermaid {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .chain-demo {
        padding: 2.4rem 0;
    }
    
    .chain-demo h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .chain-demo-desc {
        font-size: 1rem;
        width: 88%;
    }
}

.preference-section {
    margin: 20px 0;
}

.preference-options {
    margin-left: 24px;
    margin-top: 8px;
}

.preference-options div {
    margin: 8px 0;
    line-height: 1.4;
}

.diagram-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
}
