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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #0f1117;
  color: #e2e8f0;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #1a1f2e 0%, #16213e 100%);
  border-bottom: 1px solid #2d3748;
  padding: 2.5rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f7fafc;
}

header p {
  margin-top: 0.5rem;
  color: #718096;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  background: #1a365d;
  color: #63b3ed;
  border: 1px solid #2b6cb0;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

main {
  max-width: 1056px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a5568;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1e2533;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.card {
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, transform 0.15s;
  cursor: default;
}

.card:hover {
  border-color: #4a5568;
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.855rem;
  color: #718096;
  line-height: 1.55;
}

.tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}

.tag-blue   { background: #1a365d; color: #63b3ed; }
.tag-purple { background: #322659; color: #b794f4; }
.tag-green  { background: #1c4532; color: #68d391; }
.tag-orange { background: #7b341e; color: #fbd38d; }
.tag-pink   { background: #521b41; color: #fbb6ce; }
.tag-red    { background: #4a0a0a; color: #fc8181; }

.status-bar {
  margin-top: 3rem;
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #68d391;
  box-shadow: 0 0 6px #68d391;
  flex-shrink: 0;
}

.status-bar p {
  font-size: 0.85rem;
  color: #718096;
}

.status-bar span { color: #68d391; font-weight: 600; }

.status-bar code { color: #a0aec0; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  color: #4a5568;
  font-size: 0.8rem;
  border-top: 1px solid #1e2533;
  margin-top: 2rem;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #a0aec0;
}

/* Download modal */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.dl-modal.is-active {
  opacity: 1;
  pointer-events: all;
}
.dl-modal-box {
  background: #0f131c;
  border: 1px solid #2d3748;
  border-radius: 14px;
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
}
.dl-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: 1px solid #2d3748;
  color: #718096;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.dl-modal-close:hover { border-color: #718096; color: #fff; }
.dl-modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.dl-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.25rem;
}
.dl-modal-version {
  font-size: 0.75rem;
  color: #4a5568;
  margin: 0 0 1rem;
}
.dl-modal-desc {
  font-size: 0.82rem;
  color: #718096;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}
.dl-modal-btn {
  display: inline-block;
  background: #276749;
  color: #9ae6b4;
  border: 1px solid #276749;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.dl-modal-btn:hover {
  background: #2f855a;
  border-color: #2f855a;
  color: #c6f6d5;
}

/* Cookie notice */
.cn-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9700;
  background: #0f131c;
  border-top: 1px solid #2d3748;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cn-bar.is-visible {
  transform: translateY(0);
}
.cn-text {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}
.cn-link {
  color: #63b3ed;
  text-decoration: none;
  margin-left: 0.35rem;
}
.cn-link:hover { text-decoration: underline; }
.cn-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cn-btn {
  border: 1px solid;
  border-radius: 6px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cn-btn--accept {
  background: #276749;
  border-color: #276749;
  color: #9ae6b4;
}
.cn-btn--accept:hover {
  background: #2f855a;
  border-color: #2f855a;
  color: #c6f6d5;
}
.cn-btn--decline {
  background: transparent;
  border-color: #2d3748;
  color: #718096;
}
.cn-btn--decline:hover {
  border-color: #4a5568;
  color: #a0aec0;
}
