/* v2: nav a pillola, hero a tutto schermo con logo centrale, sezioni scure con accento viola/ciano. Sempre scuro. */
:root, :root[data-theme="light"], :root:not([data-theme="dark"]) {
  --bg: #0c0a16; --bg-2: #120f20; --surface: #17132a; --surface-2: #1e1936; --line: #2b2547;
  --fg: #f3f1ff; --muted: #aaa4c9; --accent: #9b7bff; --accent-2: #45d6d0; --gold: #ffd452;
  --ok: #3ee08f; --bad: #ff6a7a;
  --grad: linear-gradient(100deg, #9b7bff, #45d6d0);
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-logo: "Lilita One", "Outfit", system-ui, sans-serif;
  --shadow: 0 24px 60px -24px rgba(120, 80, 255, .55);
  color-scheme: dark;
}
body { background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.hl { color: var(--accent); text-shadow: 0 0 28px rgba(155, 123, 255, .45); }
.hl-2 { color: var(--accent-2); }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 46px; padding: 6px 48px; background: linear-gradient(90deg, #7a5cf0, #9b7bff 50%, #45d6d0);
  color: #fff; font-size: .95rem; text-align: center;
}
.topbar b { font-weight: 800; }
.topbar .sep { opacity: .6; }
.topbar a.tb-btn {
  background: #0c0a16; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.topbar a.tb-btn:hover { background: #000; color: #fff; }
.topbar .tb-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 6px;
}

/* ------------------------------------------------------------ nav */
.site-header { position: sticky; top: 0; z-index: 50; background: none; border: 0; backdrop-filter: none; padding: 12px 0 0; pointer-events: none; }
.site-header .pill {
  pointer-events: auto; display: flex; align-items: center; gap: 6px; max-width: 1240px; margin: 0 auto; padding: 8px 10px 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 11, 26, .78); backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .8);
}
.site-header .logo { display: inline-flex; align-items: center; margin-right: 6px; }
.site-header .logo img { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(155, 123, 255, .5)); }
.site-header .nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-header .nav-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: #d9d5f0;
  text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.site-header .nav-links a svg { width: 16px; height: 16px; opacity: .8; }
.site-header .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.site-header .nav-links a[aria-current="page"] { color: var(--accent); background: rgba(155, 123, 255, .14); }
.site-header .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ip-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border-radius: 999px;
  border: 1px solid rgba(155, 123, 255, .5); background: rgba(155, 123, 255, .06); color: #fff; font-weight: 700; font-size: .92rem;
  cursor: pointer;
}
.ip-pill .on { display: inline-flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 1px solid var(--line); }
.ip-pill .on i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.ip-pill .cp { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; }
.ip-pill .cp svg { width: 16px; height: 16px; }
.ip-pill:hover .cp { background: var(--accent-2); }
.circle-btn {
  display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #fff; text-decoration: none; font-weight: 800; font-size: .85rem;
}
.circle-btn svg { width: 22px; height: 22px; }
.circle-btn:hover { border-color: var(--accent); color: #fff; }
.menu-toggle { display: none; }
@media (max-width: 1360px) {
  .site-header .nav-links a svg { display: none; }
  .site-header .nav-links a { padding: 10px 10px; }
}
@media (max-width: 940px) {
  .site-header { padding: 8px 10px 0; }
  .site-header .pill { border-radius: 22px; flex-wrap: wrap; }
  .menu-toggle { display: grid; }
  .site-header .nav-links { display: none; order: 9; width: 100%; flex-direction: column; padding: 6px 0 4px; }
  .site-header .nav-links.open { display: flex; }
  .ip-pill .addr { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero2 {
  position: relative; min-height: calc(100vh - 46px); margin-top: -70px; display: grid; place-items: center; overflow: hidden;
  background: #0c0a16 url("img/hero-bg.jpg") center/cover no-repeat;
}
.hero2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(12, 10, 22, .55) 75%), linear-gradient(transparent 70%, var(--bg));
}
.hero2 canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero2 .center { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; padding: 120px 20px 80px; }
.hero2 .emblem { width: min(250px, 50vw); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(155, 123, 255, .45)); animation: float 6s ease-in-out infinite; }
.wordmark {
  margin-top: -10px; font: 400 clamp(3.4rem, 10vw, 8rem)/.9 var(--font-logo); letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #d8cbff 45%, #9b7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #3b2a8a) drop-shadow(0 10px 0 #241a58) drop-shadow(0 20px 30px rgba(0, 0, 0, .7));
}
.wordmark small { display: block; font-size: .42em; letter-spacing: .32em; background: linear-gradient(90deg, #45d6d0, #b9fff9); -webkit-background-clip: text; background-clip: text; }
.hero2 .tagline { margin-top: 26px; color: #e3defa; font-weight: 600; font-size: 1.08rem; max-width: 52ch; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
.side {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: #fff; background: none; border: 0; cursor: pointer; font: inherit; text-align: left;
}
.side.left { left: max(16px, calc(50% - 560px)); }
.side.right { right: max(16px, calc(50% - 560px)); text-align: right; }
.side .big { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(155, 123, 255, .18), 0 10px 30px rgba(155, 123, 255, .5); transition: transform .2s; }
.side.right .big { background: none; box-shadow: none; width: auto; height: auto; color: var(--accent); }
.side .big svg { width: 22px; height: 22px; fill: #fff; }
.side.right .big svg { width: 58px; height: 58px; fill: currentColor; }
.side:hover .big { transform: scale(1.08); }
.side .count {
  position: absolute; left: 6px; top: -30px; background: var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .85rem;
}
.side .t1 { display: block; font: 400 1.35rem/1.1 var(--font-logo); color: var(--accent); text-transform: uppercase; letter-spacing: .02em; }
.side.right .t1 { color: var(--accent-2); }
.side .t2 { display: block; font: 400 .95rem var(--font-logo); text-transform: uppercase; letter-spacing: .04em; }
.side .toast-s { position: absolute; left: 74px; top: 52px; font-size: .85rem; color: var(--accent-2); white-space: nowrap; }
.enter { position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cfc9e8; letter-spacing: .3em; font-weight: 800; font-size: .78rem; text-decoration: none; opacity: .7; }
.enter:hover { opacity: 1; color: #fff; }
@media (max-width: 900px) {
  .side { position: static; transform: none; }
  .hero2 .center { padding-bottom: 20px; }
  .hero2 .sides { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; padding: 0 20px 90px; position: relative; z-index: 3; }
}
@media (min-width: 901px) { .hero2 .sides { display: contents; } }
@media (prefers-reduced-motion: reduce) { .hero2 .emblem { animation: none; } }

/* ------------------------------------------------------------ section heads */
.sec { padding-block: clamp(70px, 9vw, 120px); }
.sec-title { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(155, 123, 255, .55); background: rgba(155, 123, 255, .08);
  color: var(--accent); font-weight: 800; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
}
.sec-title h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.02; }
.sec-title p { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* ------------------------------------------------------------ feature timeline */
.tl { position: relative; display: grid; gap: clamp(70px, 9vw, 120px); }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--line) 8%, var(--line) 92%, transparent); }
.tl-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.tl-row::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(155, 123, 255, .18), 0 0 20px var(--accent);
}
.tl-row:nth-child(even) .tl-text { order: 2; }
.tl-text .kick { font-weight: 800; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: #8d86ad; }
.tl-text h3 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); color: var(--accent); margin: 10px 0 18px; line-height: 1; }
.tl-row:nth-child(3n+2) .tl-text h3 { color: var(--accent-2); }
.tl-text p { color: #d4cfea; font-size: 1.06rem; line-height: 1.75; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.tags span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-weight: 700; font-size: .88rem; }
.more { color: var(--accent); font-weight: 800; text-decoration: none; font-size: .95rem; }
.more:hover { color: var(--accent-2); }
.shot { padding: 12px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
@media (max-width: 860px) {
  .tl::before, .tl-row::after { display: none; }
  .tl-row { grid-template-columns: 1fr; }
  .tl-row:nth-child(even) .tl-text { order: 0; }
}

/* ------------------------------------------------------------ boxed sections */
.sec-head { max-width: 1240px; margin: 0 auto; padding: 0 20px 18px; }
.sec-head h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 14px; }
.sec-head h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.box {
  position: relative; max-width: 1240px; margin: 0 auto clamp(50px, 7vw, 90px); padding: clamp(28px, 4vw, 48px); border-radius: 26px;
  border: 1px solid var(--line); background: linear-gradient(135deg, rgba(155, 123, 255, .1), rgba(69, 214, 208, .04) 60%, transparent), var(--surface);
  overflow: hidden;
}
.box-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.box .lead { color: #d4cfea; font-size: 1.1rem; max-width: 56ch; }
.box .note { margin-top: 22px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.box .note b { display: block; color: var(--accent-2); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.box .note p { color: var(--muted); }
.pkg-list { display: grid; gap: 10px; }
.pkg-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #fff; font-weight: 800;
}
.pkg-list a span { color: var(--accent-2); }
.pkg-list a:hover { border-color: var(--accent); transform: translateX(4px); transition: .15s; }
.btn-xl {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: 800 1rem var(--font-display); text-decoration: none; box-shadow: 0 12px 30px -10px rgba(155, 123, 255, .8);
}
.btn-xl:hover { background: #ae93ff; color: #fff; }
.btn-xl.ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); box-shadow: none; }
.btn-xl.ghost:hover { border-color: var(--accent); }
.btn-xl svg { width: 20px; height: 20px; }
.creator-links { display: grid; gap: 12px; }
.creator-links a {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; text-decoration: none; color: #fff;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25);
}
.creator-links a svg { width: 34px; height: 34px; flex: none; }
.creator-links a small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.creator-links a b { font: 400 1.25rem var(--font-logo); text-transform: uppercase; }
.creator-links a:hover { border-color: var(--accent); }
@media (max-width: 860px) { .box-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ server info */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-card { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.info-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.info-card.wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.info-card.wide p { color: var(--muted); max-width: 70ch; }
.steps2 { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps2 li { display: flex; gap: 16px; align-items: flex-start; color: #d4cfea; }
.steps2 li > i {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(155, 123, 255, .15);
  border: 1px solid rgba(155, 123, 255, .5); color: var(--accent); font: 800 1rem var(--font-display); font-style: normal;
}
.steps2 code { color: #fff; background: rgba(155, 123, 255, .15); padding: 2px 8px; border-radius: 6px; cursor: pointer; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.facts div { padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.facts dt { color: #8d86ad; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.facts dd a { color: #fff; text-decoration: none; }
.facts dd a:hover { color: var(--accent); }
@media (max-width: 860px) { .info-grid, .facts { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ news + vote reuse */
.news2 .news-grid { margin-top: 0; }
.vote-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ discord band + footer */
.band {
  position: relative; display: grid; place-items: center; gap: 14px; text-align: center; padding: 90px 20px 70px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(155, 123, 255, .35), transparent 60%), #0e0b1c;
  border-top: 1px solid var(--line);
}
.band img { width: 110px; filter: drop-shadow(0 0 30px rgba(155, 123, 255, .6)); }
.band .ip-big {
  font: 400 clamp(1.8rem, 4vw, 2.8rem) var(--font-logo); color: #fff; background: none; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .02em;
}
.band .ip-big:hover { color: var(--accent); }
.band .online { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ok); }
.band .online i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.band .fine { color: #8d86ad; font-size: .85rem; }
.site-footer { background: #0a0814; border-top: 1px solid var(--line); padding: 60px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.foot-grid h3 { font-size: 1.05rem; margin-bottom: 14px; color: #fff; }
.foot-grid p { color: var(--muted); font-size: .95rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid .ipbox {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 10px 10px 16px; border-radius: 14px;
  border: 1px solid rgba(155, 123, 255, .5); background: rgba(155, 123, 255, .06); color: #fff; font-weight: 800; cursor: pointer; width: 100%; font-family: inherit; font-size: .95rem;
}
.foot-grid .ipbox span.cp { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); }
.foot-grid .ipbox svg { width: 16px; height: 16px; }
.foot-legal { max-width: 1240px; margin: 40px auto 0; padding: 20px 20px 0; border-top: 1px solid var(--line); color: #7d7799; font-size: .82rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* other pages: header now floats, give their first section some air */
main > section:first-child:not(.hero2) { padding-top: clamp(40px, 6vw, 70px); }
@media (max-width: 560px) {
  .topbar { font-size: .85rem; padding: 6px 40px 6px 12px; gap: 10px; }
  .topbar .sep, .topbar .sub { display: none; }
  .site-header .pill { flex-wrap: nowrap; padding: 6px 6px 6px 8px; gap: 4px; }
  .site-header .pill.open { flex-wrap: wrap; }
  .site-header .logo img { width: 38px; height: 38px; }
  .site-header .right { gap: 4px; }
  .circle-btn { min-width: 40px; height: 40px; padding: 0 8px; }
  .ip-pill { padding: 4px 4px 4px 10px; }
  .hero2 .emblem { width: 150px; }
}
