:root {
  --accent: #0055ff;
  --bg: #0e0e0e;
  --surface: #181818;
  --text: #e6e6e6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  line-height: 1.6;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  flex-direction: column;
  padding-top: 3rem;
}

main,
.hero,
.features,
.download-page,
.doc-page,
.status-page {
  flex: 1 0 auto;
}

/* Navbar */

.navbar {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.logo {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a::after {
  background-color: var(--accent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 0.3s ease;
  width: 0%;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  color: var(--text);
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    background-color: rgba(0, 0, 0);
    border-radius: 0.5rem;
    display: none;
    flex-direction: column;
    padding: 1rem;
    position: absolute;
    right: 2rem;
    top: 70px;
  }

  .nav-links.active {
    display: flex;
  }
}

.hero {
  align-items: center;
  background: url('') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  height: 80vh;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero::before {
  background: rgba(0, 0, 0, 0.6);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.hero h1,
.hero p,
.hero .btn-primary {
  animation: fadeInUp 1s forwards;
  opacity: 0;
  position: relative;
  transform: translateY(20px);
  z-index: 1;
}

.hero h1 {
  animation-delay: 0.3s;
  color: #fff;
  font-size: 3rem;
}

.hero p {
  animation-delay: 0.6s;
  margin: 1rem 0 2rem;
}

.hero .btn-primary {
  animation-delay: 1s;
}

/* Features Section */

.features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 3rem 2rem;
}

.feature {
  background: var(--surface);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-10px);
}

/* Download Page */

.download-page {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 85, 255, 0.3);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 5rem auto;
  max-width: 400px;
  padding: 3rem 2.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.download-page:hover {
  box-shadow: 0 12px 40px rgba(0, 85, 255, 0.5);
}

.download-page h2 {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

.download-page input[type="text"] {
  background: #121212;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.2rem;
  transition: border-color 0.3s ease;
  width: 100%;
}

.download-page input[type="text"]:focus {
  border-color: #0080ff;
  box-shadow: 0 0 8px #0080ff;
  outline: none;
}

/* Buttons */

.btn-primary {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 85, 255, 0.4);
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.btn-primary:hover:not(:disabled) {
  background: #003fcc;
  box-shadow: 0 6px 18px rgba(0, 63, 204, 0.6);
}

.btn-primary:disabled {
  background: #555;
  box-shadow: none;
  cursor: not-allowed;
}

/* Messages */

#message {
  color: #ff6b6b;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  min-height: 1.2rem;
  transition: color 0.3s ease;
}

#message.valid {
  color: #28a745;
}

/* Footer */

.footer {
  background: var(--surface);
  flex-shrink: 0;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  text-align: center;
}

/* Download Section */

.download-section {
  height: 0;
  margin-top: 2rem;
  opacity: 0;
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.4s ease;
}

.download-section.active {
  height: auto;
  opacity: 1;
}

/* Status Section */

.status-items {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 1000px;
  padding: 2rem 1rem;
}

.status-item {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  flex: 1 1 10px;
  margin-bottom: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.status-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-10px);
}

.status-item h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 0.1rem;
}

.status-item p {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 100;
}


.status-title {
  color: var(--accent);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow:
    0 0 5px rgb(0, 0, 0),
    0 0 10px rgb(0, 0, 0),
    0 0 15px rgba(0, 0, 0, 0.6),
    0 0 20px var(--accent),
    0 0 30px var(--accent);
  text-transform: uppercase;
}

.status-page {
      max-width: 800px;
      margin: 4rem auto;
      padding: 2rem;
    }

    .status-title {
      font-size: 2rem;
      margin-bottom: 1.5rem;
      color: var(--accent);
    }

    .status-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .status-item {
      background: var(--surface);
      padding: 1rem 1.5rem;
      border-radius: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 1rem;
    }

    .status-label {
      font-weight: 500;
    }

    .status-indicator {
      padding: 0.4rem 1rem;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
    }

    .status-up {
      background-color: #28a745;
      color: white;
    }

    .status-down {
      background-color: #dc3545;
      color: white;
    }

    .status-maintenance {
      background-color: #ffc107;
      color: #000;
    }

/* Announcement Bar */

#announcement-bar {
  align-items: center;
  background: linear-gradient(270deg, #0055ff, #00ffcc);
  background-size: 400% 400%;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 12px rgba(0, 85, 255, 0.4);
  color: #000;
  display: flex;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  left: 50%;
  max-width: 1200px;
  padding: 0.6rem 1rem;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  user-select: none;
  z-index: 10000;
  animation: gradientGlow 15s ease infinite;
}

#announcement-bar .icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  margin-right: 0.6rem;
}

#announcement-text {
  flex-grow: 1;
  text-shadow: 0 0 6px rgba(255 255 255 / 0.6);
}

#announcement-close {
  background: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 1rem;
  outline: none;
  padding: 0;
  transition: color 0.2s ease;
}

#announcement-close:hover,
#announcement-close:focus {
  color: #003fcc;
}

@media (max-width: 480px) {
  #announcement-bar {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  #announcement-close {
    font-size: 1.3rem;
    margin-left: 0.6rem;
  }
}

/* Popup */

#popup-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 11000;
}

#popup-overlay.show {
  display: flex;
}

#popup-box {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 85, 255, 0.4);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
  max-width: 400px;
  opacity: 0;
  padding: 1.8rem 2rem;
  position: relative;
  text-align: center;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#popup-overlay.show #popup-box {
  animation: fadeIn 0.5s ease forwards;
  opacity: 1;
  transform: translateY(0);
}

#popup-close {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  outline: none;
  position: absolute;
  right: 0.6rem;
  top: 0.4rem;
  transition: color 0.2s ease;
}

#popup-close:hover,
#popup-close:focus {
  color: var(--accent);
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
