:root {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --bg-3: #1d1d1d;
  --border: #222222;
  --text: #f0f0f0;
  --text-muted: #7a7a7a;
  --primary: #a10000;
  --accent: #f70000;

  --radius-window: 0px;
  --radius-child: 6px;
  --radius-frame: 5px;
  --pad-window: 10px;
  --pad-frame: 8px;
  --gap: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/*  BASE  */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity .2s ease;
}
a:hover { opacity: 0.85; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/*  HEADER  */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.nav a {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  background: #121212b3;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}
.nav .btn { background: var(--bg-3); }
.nav .btn-primary {
  border-color: var(--primary);
  color: var(--primary);
}

/*  HERO  */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  text-align: center;
}
.hero h1 {
  font-size: clamp(26px, 6vw, 42px);
  margin-bottom: 16px;
}
.hero p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 17px;
  padding: 0 10px;
}
.hero .cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/*  BUTTONS  */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  background: #1a1a1a;
  transition: all .2s ease;
  cursor: pointer;
  font-size: 15px;
}
.btn:hover { background: var(--bg-3); }
.btn-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary);
  color: #fff;
}

/*  SECTIONS & GRID  */
.section { padding: 40px 0; }

.grid {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/*  CARD  */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-child);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.card h3 {
  margin: 8px 0 10px;
  font-size: 18px;
}
.muted { color: var(--text-muted); }

/*  BADGES  */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  margin-right: 6px;
}
.badge.online { border-color: #33ef04; color: #00b928; }
.badge.maintenance { border-color: #ffc700; color: #ff9500; }
.badge.offline { border-color: #ff004d; color: #d51a52; }

/*  PRODUCT CARD  */
.product-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: outline .2s ease;
}
.product-card:hover { outline: 1px solid var(--primary); }

/*  TABLE  */
.table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}
.table th, .table td {
  padding: 10px;
  border: 1px solid var(--border);
  word-break: break-word;
}
.table th {
  background: var(--bg-3);
  text-align: left;
}

/*  FORM  */
.form { display: grid; gap: 12px; }
.input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  background: #111;
  color: var(--text);
  font-size: 15px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/*  FOOTER  */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: auto;
  padding-top: 20px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/*  RESPONSIVE  */
@media (max-width: 900px) {
  .header-inner, .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .nav a { font-size: 14px; padding: 10px 12px; }
  .btn { font-size: 14px; padding: 10px 14px; }
  .footer-inner { flex-direction: column; }
  .brand-text { font-size: 16px; }
}

@media (max-width: 400px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 22px; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .btn { padding: 9px 12px; font-size: 13px; }
  .card { padding: 12px; }
}

/*  SUPPORT / DOCS  */
.support-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.support-hero h1 {
  color: var(--text);
  font-size: clamp(30px, 6vw, 44px);
  margin-bottom: 12px;
  font-weight: 700;
}
.support-hero p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
  max-width: 820px;
  margin: 0 auto 25px;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s ease;
}
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span {
  color: var(--text-muted);
  margin: 0 4px;
}

/* Support list / article */
.support-section {
  padding: 60px 20px;
  text-align: center;
}
.support-list {
  max-width: 800px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s ease;
  box-shadow: var(--shadow);
}
.support-item:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}
.support-article {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-frame);
  padding: 32px 36px;
  max-width: 820px;
  margin: 0 auto 60px;
  text-align: left;
  box-shadow: var(--shadow);
  font-size: 16px;
  line-height: 1.8;
}
.support-article p {
  margin-bottom: 18px;
  color: var(--text);
}

/* Discord Support Box */
.discord-box {
  background: linear-gradient(145deg, var(--primary), var(--accent));
  border-radius: var(--radius-frame);
  color: #fff;
  padding: 40px 30px;
  margin: 60px auto 0;
  max-width: 700px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  text-align: center;
}
.discord-box h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.discord-box p {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}
.discord-box a {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-frame);
  font-weight: 600;
  transition: all .2s ease;
}
.discord-box a:hover {
  background: #000;
  color: #fff;
}

/*  HAMBURGER MENU  */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 26px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 60;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .site-header { padding: 0; }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 12px 18px;
    min-height: 68px;
  }

  .brand {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .logo {
    height: 34px;
    width: auto;
    display: block;
  }

  .menu-toggle {
    margin-left: auto;
    margin-right: 4px;
    width: 36px;
    height: 28px;
    justify-content: space-between;
  }

  .menu-toggle span {
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    opacity: 0;
    transform: translateY(-10px);
    z-index: 55;
  }

  .nav.open {
    max-height: 380px;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  }

  .nav a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 16px 0;
    background: var(--bg-2);
    font-size: 15px;
  }

  .nav a:last-child { border-bottom: none; }
}
