:root{
  --bg: #070b10;
  --panel: rgba(12, 16, 22, .78);
  --panel2: rgba(10, 14, 20, .60);
  --text: #e7edf6;
  --muted: #a9b5c6;
  --gold: #c8a24a;
  --gold2:#8a6a2a;
  --ice: #74c8ff;
  --border: rgba(200,162,74,.25);
  --shadow: 0 14px 40px rgba(0,0,0,.55);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background: radial-gradient(1200px 700px at 50% 0%, #101a28 0%, var(--bg) 55%, #05070b 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-size-adjust: 0.52;
  position: relative;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(180deg,
      rgba(0,0,0,.06) 0%,
      rgba(0,0,0,.18) 55%,
      rgba(0,0,0,.32) 100%
    ),
    url("../img/hero.jpg") center/cover no-repeat;

  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.02);
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: radial-gradient(900px 520px at 50% 0%,
    rgba(16,26,40,.28) 0%,
    rgba(0,0,0,.22) 60%,
    rgba(0,0,0,.40) 100%
  );
}

.wrap{ width:min(1160px, calc(100% - 32px)); margin:0 auto; }

.hero{
  border-bottom: 0;
  position: relative;
  z-index: 100;
  overflow: visible;
}

.hero__bg{ display: none; }

.hero__inner{
  position: relative;
  z-index: 1;
  padding: 18px 0 16px;
  min-height: 320px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-top: 8px;
}
.brand__link{ display:inline-flex; align-items:center; text-decoration:none; }
.brand__logo{
  width: 320px;
  max-width: 78vw;
  height: auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.65));
}
.brand__tag{
  font-family: Cinzel, serif;
  font-size-adjust: .52;
  letter-spacing: .06em;
  color: rgba(233,245,255,.85);
  text-shadow: 0 2px 18px rgba(0,0,0,.65);
}

.nav{
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  width: fit-content;
  max-width: 100%;
  margin: auto auto 6px;
  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(8, 10, 14, .72);
  border: 1px solid rgba(200,162,74,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}

.nav__item, .nav__cta{
  font-family: Cinzel, serif;
  text-decoration:none;
  color: rgba(230,240,250,.92);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  min-height: 44px;
  font-size-adjust: .52;
}
.nav__item:hover{ border-color: rgba(116,200,255,.35); }
.nav__item.is-active{
  border-color: rgba(200,162,74,.55);
  box-shadow: 0 0 0 1px rgba(200,162,74,.15) inset;
}

.nav__item--dd{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  line-height: 1.05;
  padding-bottom: 18px;
}

.nav__item--dd::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 9px;
  height: 9px;

  border-right: 2px solid rgba(116,200,255,.90);
  border-bottom: 2px solid rgba(116,200,255,.90);
  transform: translateX(-50%) rotate(45deg);
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
  opacity: .9;
}

details.nav__dd[open] > summary.nav__item--dd::after{
  transform: translateX(-50%) rotate(-135deg);
}

.nav__item--dd:hover::after{
  opacity: 1;
  border-color: rgba(116,200,255,1);
}

.nav__item--dd.is-active::after{
  border-color: rgba(200,162,74,.95);
}

.nav__cta{
  border-color: rgba(200,162,74,.55);
  background: linear-gradient(180deg, rgba(200,162,74,.25), rgba(90,70,25,.25));
}
.nav__cta:hover{ border-color: rgba(200,162,74,.9); }

main{ padding: 22px 0 40px; }

.nav__dd{
  position: relative;
  display: inline-block;
}

.nav__dd > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav__dd > summary.nav__item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav__menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  z-index: 9999;

  background: rgba(8, 10, 14, .92);
  border: 1px solid rgba(200,162,74,.28);
  box-shadow: 0 18px 44px rgba(0,0,0,.60);

  backdrop-filter: blur(6px);
}

.nav__subitem{
  display: block;
  padding: 11px 12px;
  line-height: 1.15;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(236,244,255,.92);
  font-family: Cinzel, serif;
  letter-spacing: .02em;
  font-size-adjust: .52;
  margin: 8px 0;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.nav__subitem:hover{
  background: rgba(116,200,255,.08);
  border-color: rgba(116,200,255,.28);
}

.nav__subitem.is-active{
  background: rgba(200,162,74,.10);
  border-color: rgba(200,162,74,.45);
  box-shadow: 0 0 0 1px rgba(200,162,74,.10) inset;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
  position: relative;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .hero__inner{ align-items:center; }
  .nav{ justify-content:center; }
  .nav__menu{ left: 50%; transform: translateX(-50%); }

  .addon__thumb img{
    width: 80px;
    height: 80px;
  }
  .post__title{
    min-height: 2.3em;
  }
}

h1,h2,h3{
  font-family: Cinzel, serif;
  font-size-adjust: .52;
  margin: 0 0 10px;
  line-height: 1.15;
}
h1{ font-size: 28px; }
h2{ font-size: 22px; }

.post{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.post__meta{ margin-bottom: 8px; }
.post__title{
  margin: 0 0 10px;
  line-height: 1.15;
  font-size-adjust: .52;
}

.post__body p{ color: rgba(231,237,246,.92); line-height: 1.65; }
.post__body a{ color: var(--ice); }

.post ul{ padding-left: 38px; }
.post ul li{ margin: 10px 0; }

.badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: rgba(230,240,250,.85);
  font-size: 12px;
}

.side .widget{
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.widget__title{
  font-family: Cinzel, serif;
  letter-spacing: .04em;
  margin-bottom: 10px;
  color: rgba(240,248,255,.92);
}
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 16px;
  line-height: 1.1;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.22));
  color: rgba(240,248,255,.94);
  text-decoration:none;
  width: auto;
  max-width: 100%;
  box-shadow:
    0 10px 22px rgba(0,0,0,.45),
    0 0 0 1px rgba(200,162,74,.10) inset;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{
  border-color: rgba(116,200,255,.45);
  box-shadow:
    0 14px 30px rgba(0,0,0,.52),
    0 0 0 1px rgba(116,200,255,.12) inset,
    0 0 18px rgba(116,200,255,.12);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(0); }
.btn--primary{
  border-color: rgba(200,162,74,.55);
  background: linear-gradient(180deg, rgba(200,162,74,.30), rgba(90,70,25,.22));
}

.btn--sm{
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.btn--block{ width: 100%; }

.btnrow{ text-align:center; margin: 12px 0; }

.btnrow--left{ text-align:left; }

.addon{
  display:flex;
  gap: 16px;
  align-items: center;
}
.addon__content{ flex: 1 1 auto; min-width: 0; }
.addon__media{
  flex: 0 0 auto;
  display:block;
  text-decoration:none;
}
.addon__img{
  width: 300px;
  max-width: 42vw;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(116,200,255,.22);
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.addon__media:hover .addon__img{
  transform: translateY(-1px);
  border-color: rgba(116,200,255,.45);
  box-shadow: 0 16px 34px rgba(0,0,0,.60), 0 0 18px rgba(116,200,255,.12);
}
.addon__hint{
  margin-top: 6px;
  color: rgba(230,240,250,.70);
  font-size: 12px;
}

.addon__mediaCol{ flex: 0 0 auto; }

.addon__thumbs{
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.addon__thumb img{
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(116,200,255,.22);
  box-shadow: 0 10px 20px rgba(0,0,0,.45);
  transition: transform .12s ease, border-color .12s ease;
}
.addon__thumb:hover img{
  transform: translateY(-1px);
  border-color: rgba(116,200,255,.45);
}

@media (max-width: 980px){
  .addon{ flex-direction: column; align-items: flex-start; }
  .addon__img{ width: 100%; max-width: 100%; }
}

.status{ display:flex; align-items:center; gap: 10px; margin-bottom: 6px; }
.dot{ width:10px; height:10px; border-radius:999px; background:#444; box-shadow: 0 0 0 2px rgba(255,255,255,.06); }
.dot--on{ background: #1fd27a; box-shadow: 0 0 12px rgba(31,210,122,.65); }
.dot--off{ background: #ff4d4d; box-shadow: 0 0 12px rgba(255,77,77,.45); }

.kpi{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.kpi__label{ color: rgba(230,240,250,.72); font-size: 12px; }
.kpi__value{ font-family: Cinzel, serif; font-size: 26px; color: rgba(240,248,255,.95); }

.footer{
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  background: rgba(0,0,0,.25);
  text-align: center;
}

.footer__inner{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

code{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  padding: 2px 6px;
  border-radius: 8px;
}

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lightbox.is-open{ display:block; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(2px);
}
.lightbox__dialog{
  position:absolute;
  inset: 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.lightbox__img{
  max-width: min(1200px, calc(100vw - 80px));
  max-height: calc(100vh - 110px);
  width:auto;
  height:auto;
  border-radius: 16px;
  border: 1px solid rgba(116,200,255,.22);
  box-shadow: 0 24px 70px rgba(0,0,0,.75);
  pointer-events:auto;
  background: rgba(0,0,0,.12);
}
.lightbox__close{
  position:absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(200,240,255,.22);
  background: rgba(10,14,20,.55);
  color: var(--text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  line-height: 1;
  pointer-events:auto;
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.lightbox__close:hover{
  transform: translateY(-1px);
  background: rgba(10,14,20,.75);
  border-color: rgba(116,200,255,.45);
}
body.is-lightbox-open{ overflow:hidden; }

@media (min-width: 981px){
  .nav{
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: 64px;
  }

  .nav__item{
    min-width: 92px;
  }

  .nav__item--dd{
    min-width: 112px;
  }
}
