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

body {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: white;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
nav {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
}

.nav-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  transition: color 0.2s;
}

.nav-login:hover {
  color: #4b5563;
}

.nav-login svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Main content */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
}

.hero {
  text-align: center;
  animation: fadeIn 0.8s ease-out forwards;
  width: 100%;
  max-width: 36rem;
}

.ssh-command {
  font-size: 1.25rem;
  transition: text-shadow 0.3s ease;
  white-space: nowrap;
}

.ssh-command:hover {
  text-shadow:
    0 0 20px rgba(0, 255, 0, 0.5),
    0 0 40px rgba(0, 255, 0, 0.25),
    0 0 60px rgba(0, 255, 0, 0.1);
}

.cursor {
  animation: cursor 1s infinite;
  user-select: none;
}

.tagline {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Mobile login button */
.mobile-login {
  display: none;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: #111;
  color: white;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.mobile-login:hover {
  background: #333;
}

/* Testimonials */
.testimonials {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 36rem;
  text-align: center;
  padding: 0 1rem;
}

.testimonial {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.testimonial.visible {
  opacity: 1;
}

.attribution {
  margin-top: 1rem;
  color: #6b7280;
}

.source-link {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
  color: #9ca3af;
  transition: color 0.2s;
}

.source-link:hover {
  color: #4b5563;
}

.source-link svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Footer */
footer {
  font-size: 0.875rem;
  color: #9ca3af;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer a:hover {
  text-decoration: underline;
}

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

@keyframes cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Responsive */
@media (min-width: 640px) {
  .ssh-command {
    font-size: 1.875rem;
  }
  .tagline {
    margin-top: 2rem;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .ssh-command {
    font-size: 3.75rem;
  }
  .tagline {
    font-size: 1.125rem;
  }
}

@media (max-width: 639px) {
  nav .nav-login {
    display: none;
  }
  .mobile-login {
    display: inline-block;
  }
  .testimonials {
    bottom: 1rem;
  }
  .testimonial {
    font-size: 0.75rem;
  }
}

@media (max-height: 500px) {
  .testimonials {
    display: none;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background: #111;
    color: #f3f4f6;
  }
  .nav-login {
    color: #6b7280;
  }
  .nav-login:hover {
    color: #9ca3af;
  }
  .tagline {
    color: #9ca3af;
  }
  .mobile-login {
    background: #f3f4f6;
    color: #111;
  }
  .mobile-login:hover {
    background: #d1d5db;
  }
  .testimonial {
    color: #9ca3af;
  }
  .attribution {
    color: #6b7280;
  }
  .source-link {
    color: #6b7280;
  }
  .source-link:hover {
    color: #9ca3af;
  }
  footer {
    color: #6b7280;
  }
}
