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

body {
  font-family: 'Space Mono', monospace;
  font-weight: 100;
  margin: 0;
  overflow-x: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.benefit {
  transition: transform 0.3s ease;
  display: inline-block; /* helps make the transform look smooth */
}

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


button {
  margin-top: 8px;
  padding: 0.5rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.9rem, 2vw, 1rem);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.5s ease;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: all 0.5s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

nav a {
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s ease;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* HERO */
.hero,
#install {
  text-align: center;
  padding: 6rem 2rem 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.hero.visible,
#install.visible,
section.visible,
footer.visible {
  opacity: 1;
  transform: translateY(0);
}

#title {
  font-size: clamp(3rem, 12vw, 15rem);
  margin-bottom: 1rem;
  font-weight: 100;
  font-family: "Montserrat";
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.2rem);
}

/* SECTIONS */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 1rem;
}

/* INSTALL STEPS */
.install-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.install-steps a {
  color: transparent !important;
}

/* FEATURES */
.features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.feature {
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.8s ease;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
}

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

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

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.feature p {
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

/* CODE / STDOUT */
.CodeMirror {
  height: auto;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  font-family: 'Space Mono', monospace !important;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  transition: transform 0.3s ease;
}

.CodeMirror:hover {
  transform: scale(1.01);
}

.stdout {
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  white-space: pre-wrap;
  min-height: 2rem;
  transition: all 0.3s ease;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  font-family: monospace;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

footer a {
  text-decoration: none;
  margin: 0 0.5rem;
  vertical-align: middle;
  transition: color 0.3s ease;
}

footer i {
  margin-right: 0.4rem;
  color: #CB3837;
}


/* CLI INPUT */
.cli-input {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-size: clamp(1.5rem, 6vw, 3rem);
  border-radius: 0.5rem;
  cursor: pointer;
  margin-top: 1rem;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.cli-input::after {
  content: '|';
  position: absolute;
  right: 0.5rem;
  animation: blink 3s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    justify-content: center;
    text-align: center;
  }

  nav a {
    margin: 0;
  }

  .install-steps {
    flex-direction: column;
  }

  .feature {
    padding: 1.5rem;
  }

  .hero {
    padding: 4rem 1rem;
  }
}

@media (max-width: 480px) {
  button {
    width: 100%;
    padding: 0.75rem;
  }

  .cli-input {
    
    font-size: 1em;
    max-width: 90%;
  }

  #title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature {
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* === DARK THEME === */
html.dark body {
  background: url('/assets/grad.png') center/cover no-repeat, #000;
  color: #fff;
}
html.dark nav a { color: #fff; }
html.dark nav a:hover { color: #ff9c00; }
html.dark .hero p { color: #e0e0e0; }
html.dark h2 { color: #ff9c00; }
html.dark .feature { background: rgba(255, 255, 255, 0.05); }
html.dark .feature:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1); }
html.dark .feature h3 { color: #fff; }
html.dark .feature p { color: #ccc; }
html.dark .stdout { background: rgba(67, 67, 67, 0.67); color: #fff; }
html.dark button { background: #ff5b5b; color: #fff; }
html.dark button:hover {
  background: linear-gradient(45deg, #ff9c00, #ff5bff);
  box-shadow: 0 0 15px #ff9c00, 0 0 25px #ff5bff;
}
html.dark footer { color: #777; }
html.dark footer a:hover { color: #ff9c00; }
html.dark .cli-input {
  background: rgba(255, 255, 255, 0.05);
  color: #ff9c00;
  border: 1px solid #ff9c00;
}
html.dark a { color: #0f0; }

/* === LIGHT THEME === */
html.light body {
  background: url('/assets/grad.png') center/cover no-repeat, #fff;
  color: #000;
}
html.light nav a { color: #000; }
html.light nav a:hover { color: #ff5b00; }
html.light .hero p { color: #444; }
html.light h2 { color: #ff5b00; }
html.light .feature { background: rgba(0, 0, 0, 0.05); }
html.light .feature:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
html.light .feature h3 { color: #000; }
html.light .feature p { color: #555; }
html.light .CodeMirror { border: 1px solid #ddd; }
html.light .stdout { background: rgba(240, 240, 240, 0.8); color: #000; }
html.light button { background: #ff5b00; color: #fff; }
html.light button:hover {
  background: linear-gradient(45deg, #ff5b00, #ff9c00);
  box-shadow: 0 0 10px rgba(255, 91, 0, 0.4);
}
html.light footer { color: #888; font-family: "Montserrat"; font-weight: 400; }
html.light footer a { color: #000; }
html.light footer a:hover { color: #ff5b00; }
html.light .cli-input {
  background: rgba(0, 0, 0, 0.05);
  color: #ff5b00;
  border: 1px solid #ff5b00;
}
html.light #title {
  color: black
}
html.light #nava a {
  color: grey !important
}
html.light a { color: #0078ff; }
html.light a:hover { color: #ff5b00; }
