/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* IMPORTANT:
   Paint the background on html AND body and make it FIXED to prevent scroll seams.
*/
html, body {
  height: 100%;
  background-color: #121212;
}

html {
  background:
    radial-gradient(900px circle at 18% 12%, rgba(21, 200, 242, 0.16), transparent 62%),
    radial-gradient(900px circle at 85% 18%, rgba(21, 200, 242, 0.10), transparent 64%),
    #121212;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

body {
  font-family: Arial, sans-serif;
  color: #ffffff;
  min-height: 100vh;
  background: transparent;
  overflow-x: hidden;

  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: #0f0f0f;
  border-bottom: 1px solid #222;
}

.nav-inner {
  max-width: 1044px;
  margin: 0 auto;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #15C8F2;
  display: inline-block;
}

.brand-text { font-size: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: #cfcfcf;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.15s ease;
  font-size: 14px;
}

.nav-link:hover {
  color: #fff;
  border-color: #2a2a2a;
  background: #141414;
}

.nav-link.active {
  color: #ffffff;
  border-color: #15C8F2;
  background: rgba(21, 200, 242, 0.12);
}

/* PAGE */
.page {
  max-width: 1044px;
  margin: 0 auto;
  padding: 22px 12px 60px;
  background: transparent;
}

.card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-img {
  height: 46px;
  width: auto;
  border-radius: 10px;
  border: 1px solid #222;
}

.hero-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.hero-subtitle {
  color: #bdbdbd;
  font-size: 14px;
}

/* Viewer */
.viewer {
  width: 100%;
  margin-top: 10px;
}

.textbox {
  width: 100%;
  height: calc(100vh - 320px);
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
  padding: 12px;
  font-size: 15px;
  resize: none;
  outline: none;
  border-radius: 10px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background-color: #15C8F2;
  color: white;
  border-radius: 10px;
  transition: 0.15s ease;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  background-color: #12B0D8;
}

.btn-primary {
  background-color: #15C8F2;
}

.btn-primary:hover {
  background-color: #12B0D8;
}

.btn-secondary {
  background: #111;
  border: 1px solid #2a2a2a;
  color: #eaeaea;
}

.btn-secondary:hover {
  background: #141414;
  border-color: #3a3a3a;
}

.popup {
  visibility: hidden;
  min-width: 220px;
  background-color: #15C8F2;
  color: white;
  text-align: center;
  border-radius: 10px;
  padding: 10px;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.popup.show {
  visibility: visible;
  opacity: 1;
}

.small-note {
  margin-top: 12px;
  color: #9e9e9e;
  font-size: 12px;
  text-align: center;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Legal page typography */
.h2 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.p {
  line-height: 1.6;
  margin-bottom: 12px;
  color: #e7e7e7;
  font-size: 15px;
}

.ul {
  margin: 8px 0 12px 18px;
}

.ul li {
  margin-bottom: 8px;
  color: #e7e7e7;
  line-height: 1.6;
  font-size: 15px;
}

.footer {
  margin-top: 16px;
  color: #9e9e9e;
  font-size: 12px;
  text-align: center;
}

/* ---------------------------
   HOMEPAGE (NEW, CLEAN)
---------------------------- */

.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid #222;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  margin-top: 10px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: rgba(0,0,0,0.22);
  color: #d9d9d9;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #15C8F2;
  box-shadow: 0 0 0 4px rgba(21,200,242,0.12);
}

.landing-title {
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.landing-subtitle {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 14px;
}

.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-card {
  height: 100%;
  border: 1px solid #222;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}

.logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* FIX: avoid ugly crop/zoom inside the hero logo card */
.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* change to contain if you prefer no crop at all */
  display: block;
}

.logo-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-name {
  font-size: 16px;
  font-weight: 800;
}

.logo-desc {
  font-size: 12px;
  color: #bdbdbd;
}

.stats-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  border: 1px solid #222;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  padding: 14px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-label {
  color: #bdbdbd;
  font-size: 12px;
  font-weight: 800;
}

.stat-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.stat-foot {
  margin-top: 6px;
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 700;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: rgba(0,0,0,0.20);
  width: fit-content;
  font-weight: 900;
  font-size: 13px;
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #666;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.pill-text {
  color: #eaeaea;
}

/* ONLINE SHOULD BE GREEN */
.pill-online {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.10);
}

.dot-online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.16);
}

/* Optional degraded/offline polish */
.pill-degraded {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.10);
}

.dot-degraded {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.16);
}

.pill-offline {
  border-color: rgba(239, 68, 68, 0.50);
  background: rgba(239, 68, 68, 0.08);
}

.dot-offline {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.14);
}

.product-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product {
  border: 1px solid #222;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  padding: 16px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
}

.product-media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.product-icon {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.soft-badge {
  font-size: 11px;
  font-weight: 900;
  color: #9ee9ff;
  margin-bottom: 6px;
}

.soft-name {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
}

.soft-sub {
  font-size: 11px;
  color: #bdbdbd;
  font-weight: 700;
}

.product-kicker {
  font-size: 11px;
  color: #9e9e9e;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.product-text {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 80ch;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 860px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .product {
    grid-template-columns: 1fr;
  }
  .product-media {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-inner { padding: 12px 10px; }
  .page { padding: 18px 10px 50px; }
  .hero-title { font-size: 22px; }
  .textbox { height: calc(100vh - 340px); }
  .landing-title { font-size: 28px; }
}
