:root{
  --bg0:#07060a;
  --bg1:#0c0a12;
  --panel: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --muted2: rgba(255,255,255,.50);

  --accent:#b26cff;
  --accent2:#6a5cff;
  --good:#47ffa4;
  --bad:#ff5c7a;

  --radius: 18px;
  --shadow: 0 10px 35px rgba(0,0,0,.45);
  --maxw: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color:var(--text);
  background: radial-gradient(1000px 600px at 20% -10%, rgba(178,108,255,.20), transparent 60%),
              radial-gradient(900px 600px at 85% 10%, rgba(106,92,255,.18), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100vh;
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(178,108,255,.12), transparent 60%),
    radial-gradient(500px 260px at 20% 30%, rgba(106,92,255,.10), transparent 65%),
    linear-gradient(transparent, rgba(0,0,0,.15));
  mix-blend-mode:screen;
  opacity:.9;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--maxw), calc(100% - 40px)); margin:0 auto; }

.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(8,6,12,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:750;
  letter-spacing:.2px;
}
.brand img{
  width:34px;height:34px;
  border-radius:10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 10px 25px rgba(0,0,0,.35);
}
.brand span{ display:flex; flex-direction:column; line-height:1.05; }
.brand small{ font-weight:600; color:var(--muted); font-size:12px; }

.nav-links{ display:flex; align-items:center; gap:18px; }
.nav-links a{ color:var(--muted); font-weight:650; font-size:14px; }
.nav-links a:hover{ color:var(--text); }

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

.lang{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:750;
  font-size:13px;
  cursor:pointer;
}
.lang:hover{
  border-color: rgba(178,108,255,.40);
  background: rgba(178,108,255,.08);
  color: rgba(255,255,255,.86);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(178,108,255,.40);
  background: rgba(178,108,255,.10);
}
.btn.primary{
  border-color: rgba(178,108,255,.45);
  background: linear-gradient(135deg, rgba(178,108,255,.28), rgba(106,92,255,.20));
}
.btn.ghost{ background: transparent; }

.burger{
  display:none;
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.burger svg{ width:20px;height:20px; }

.mobile{ display:none; padding:0 0 14px; }
.mobile a, .mobile button{
  display:block; width:100%; text-align:left;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--muted);
  font-weight:650;
  background:transparent;
  border-left:0;border-right:0;border-bottom:0;
  cursor:pointer;
}
.mobile a:hover, .mobile button:hover{ color:var(--text); }

.hero{ padding:62px 0 26px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:20px;
  align-items:stretch;
}
.panel{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-main{
  padding:34px;
  overflow:hidden;
  position:relative;
}
.hero-main:after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 300px at 30% 10%, rgba(178,108,255,.22), transparent 70%),
              radial-gradient(500px 280px at 90% 40%, rgba(106,92,255,.18), transparent 68%);
  pointer-events:none;
}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  font-weight:750; color:var(--muted); font-size:13px;
  letter-spacing:.15px; position:relative; z-index:1;
}
.pill{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(178,108,255,.10);
  border:1px solid rgba(178,108,255,.25);
  color: rgba(255,255,255,.86);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height:1.05;
  letter-spacing:-.6px;
  position:relative; z-index:1;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  max-width:70ch;
  position:relative; z-index:1;
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:18px; position:relative; z-index:1;
}

.hero-side{ padding:18px; display:flex; flex-direction:column; gap:12px; }
.card{
  padding:16px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.card h3{ margin:0 0 8px; font-size:14px; color: rgba(255,255,255,.84); }
.meta{ display:flex; flex-direction:column; gap:8px; color:var(--muted); font-size:14px; }
.row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  padding:4px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.86);
}
.status{ display:inline-flex; align-items:center; gap:8px; font-weight:750; }
.dot{ width:10px;height:10px;border-radius:999px; background: rgba(255,255,255,.25); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.dot.good{ background: var(--good); box-shadow: 0 0 0 3px rgba(71,255,164,.12); }
.dot.bad{ background: var(--bad); box-shadow: 0 0 0 3px rgba(255,92,122,.12); }

.server-icon{
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}
.motd{
  margin-top:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.80);
  line-height: 1.4;
}
.motd .line{ display:block; white-space:nowrap; overflow:hidden; text-overflow: ellipsis; }

.section{ padding:26px 0; }
.section-head{
  display:flex; align-items:end; justify-content:space-between;
  gap:14px; margin-bottom:14px;
}
.section-head h2{ margin:0; font-size:18px; letter-spacing:.1px; }
.section-head p{ margin:0; color:var(--muted); font-size:14px; }

.grid{ display:grid; gap:14px; grid-template-columns: repeat(12, 1fr); }
.col-4{ grid-column: span 4; } .col-6{ grid-column: span 6; } .col-12{ grid-column: span 12; }

.feature{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  position:relative; overflow:hidden;
}
.feature:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(380px 220px at 25% 15%, rgba(178,108,255,.16), transparent 70%);
  opacity:.9; pointer-events:none;
}
.feature h3{ margin:0 0 8px; font-size:16px; position:relative; }
.feature p{ margin:0; color:var(--muted); line-height:1.6; font-size:14px; position:relative; }

.footer{
  padding:30px 0 38px;
  margin-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:14px;
}
.foot h4{ margin:0 0 10px; font-size:14px; color: rgba(255,255,255,.84); }
.foot a, .foot div{ display:block; color: var(--muted); font-size:14px; padding:6px 0; }
.foot a:hover{ color: var(--text); }
.copy{ margin-top:14px; color: var(--muted2); font-size:13px; }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

/* ===== News layout (EnderCity-inspired) ===== */
.tabs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 18px 0 6px;
}
.tabbar{
  display:flex;
  gap:6px;
  padding:6px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.tab{
  min-width: 160px;
  padding:10px 14px;
  border-radius: 12px;
  border:1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}
.tab.active{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
}
.news-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(12, 1fr);
}
.news-card{
  grid-column: span 4;
  overflow:hidden;
  padding:0;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.news-media{
  position:relative;
  height: 190px;
  background:
    radial-gradient(600px 280px at 25% 20%, rgba(178,108,255,.20), transparent 60%),
    radial-gradient(520px 280px at 85% 15%, rgba(106,92,255,.18), transparent 60%),
    rgba(0,0,0,.25);
}
.news-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.02);
}
.news-tags{
  position:absolute;
  top:10px;
  right:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tag{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.86);
  font-weight:900;
  font-size:12px;
}
.tag.purple{ border-color: rgba(178,108,255,.40); background: rgba(178,108,255,.18); }
.tag.blue{ border-color: rgba(106,92,255,.45); background: rgba(106,92,255,.18); }
.tag.green{ border-color: rgba(71,255,164,.35); background: rgba(71,255,164,.14); }
.tag.yellow{ border-color: rgba(255,214,102,.35); background: rgba(255,214,102,.14); }
.tag.red{ border-color: rgba(255,92,122,.35); background: rgba(255,92,122,.14); }

.news-body{ padding:16px 16px 14px; }
.news-title{ margin:0 0 6px; font-size:15px; letter-spacing:.1px; }
.news-text{
  margin:0;
  color: var(--muted);
  font-size:13px;
  line-height:1.55;
  min-height: 42px;
}
.news-footer{ display:flex; align-items:center; justify-content:flex-end; padding: 10px 16px 14px; }
.news-link{ color: rgba(255,255,255,.80); font-weight:900; font-size:13px; }
.news-link:hover{ color: rgba(255,255,255,.95); }

/* Form */
.form{
  display:grid; gap:12px;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.input, .textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.88);
  outline:none;
}
.textarea{ min-height:120px; resize: vertical; }
.label{ color: var(--muted); font-size:13px; font-weight:800; }
.hint{ color: var(--muted2); font-size:13px; line-height:1.5; }

/* responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px){
  .news-card{ grid-column: span 6; }
}
@media (max-width: 720px){
  .nav-links, .nav-cta{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
  .mobile{ display:block; }
  .col-4, .col-6{ grid-column: span 12; }
  .hero-main{ padding:22px; }
  .news-card{ grid-column: span 12; }
  .tab{ min-width: 140px; }
}

/* ===== News Tabs + Cards (v2 nicer) ===== */
.tabs{
  display:inline-flex;
  gap:0;
  padding:6px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.tab{
  border:0;
  cursor:pointer;
  padding:10px 18px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.70);
  font-weight:900;
  font-size:13px;
  letter-spacing:.2px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  user-select:none;
  outline:none;
}

.tab:hover{
  color: rgba(255,255,255,.92);
}

.tab.active{
  background: linear-gradient(135deg, rgba(178,108,255,.35), rgba(106,92,255,.25));
  color: rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 28px rgba(0,0,0,.28);
}

.tab:active{ transform: translateY(1px); }

.news-card{ padding:0; overflow:hidden; }

.news-thumb{
  height: 180px;
  background: radial-gradient(500px 180px at 20% 30%, rgba(178,108,255,.26), transparent 60%),
              radial-gradient(500px 200px at 85% 20%, rgba(106,92,255,.22), transparent 60%),
              rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position:relative;
}

.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.95;
}

.news-badge{
  position:absolute;
  top:12px;
  right:12px;
  padding:6px 10px;
  border-radius: 999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.40);
  color: rgba(255,255,255,.92);
}

.news-content{ padding:16px 18px 18px; }
.news-content h3{ margin:0 0 8px; font-size:16px; }
.news-content p{ margin:0; color: rgba(255,255,255,.66); line-height:1.55; font-size:14px; }

.divider{ height:1px; width:100%; background: rgba(255,255,255,.08); }

.ideas{
  text-align:center;
  color: rgba(255,255,255,.55);
  font-weight:700;
}
.ideas a{ color: var(--accent); font-weight:900; }
