@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&display=swap');

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

body {
  font-family: 'Work Sans', sans-serif;
  line-height: 1.6;
  color: white;
  background-color: #0f0f0f;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0 20px;
  text-align: center;
  margin-top: -50px;
}

.hero-buttons {
  display: flex;
  gap: 9px;
}

.hero h1 {
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0px;
}

.title-logo {
  height: 1.35em;
  width: auto;
  transform: translateY(0.30em);
  margin-right: -0.32em;
}

.hero p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 30px;
}

.modern-button {
  display: inline-block;
  width: 220px;
  padding: 12px 0;
  border: none;
  border-radius: 3px;
  background: rgb(18, 18, 18);
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  font-size: 1.0rem;
  margin-right: 10px;
  outline: 1px solid #454545;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.modern-button:hover {
  background-color: rgb(38, 38, 38);
}

.features {
  background: inherit;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.features h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px 19px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  background: #1e1e1e;
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease;
  cursor: default;
  text-align: left;
}

.feature-item:hover {
  background-color: #2c2c2c;
}

.feature-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-item p {
  font-size: 1rem;
  color: #bbb;
  line-height: 1.4;
  margin: 0;
}

.footer {
  width: 100%;
  background-color: #0f0f0f;
  color: #666;
  text-align: left;
  padding: 20px 40px;
  font-size: 0.9rem;
  font-family: inherit;
  user-select: none;
  border-top: 1px solid #333;
  margin-top: 60px;
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}
.fade-in-delay-2 {
  animation-delay: 0.4s;
}
.fade-in-delay-3 {
  animation-delay: 0.5s;
}
.fade-in-delay-4 {
  animation-delay: 0.6s;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .modern-button {
    margin-right: 0;
    width: 280px;
  }
  .features h2 {
    font-size: 2rem;
  }
}

/* Scroll Pinning Scroll-Driven Layout for Desktop */
@media (min-width: 769px) {
  body.scroll-pinned {
    height: 600vh;
    overflow-x: hidden;
  }
  body.scroll-pinned .hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    margin-top: 0;
    transform: translateY(0);
  }
  body.scroll-pinned .features {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    opacity: 0;
    transform: translateY(100vh);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  body.scroll-pinned .features h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
  }
  body.scroll-pinned .features-grid {
    margin-top: 0;
    gap: 12px 16px;
    max-width: 960px;
  }
  body.scroll-pinned .feature-item {
    padding: 18px 18px;
  }
  body.scroll-pinned .feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  body.scroll-pinned .feature-item p {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  body.scroll-pinned .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
    border-top: 1px solid #222;
    padding: 15px 40px;
  }
}
