/* ============================================================
   Droxid — site.css (shared across every page)
   Dark base + a drifting glow mesh, faint grid and film grain.
   Each page sets its own accent hue with body[data-page].
   ============================================================ */
:root{
  --accent:#2fd4a7; --accent-deep:#1fae85; --accent-soft:rgba(47,212,167,.45); --accent-faint:rgba(47,212,167,.12);
  --glow1:rgba(47,212,167,.22); --glow2:rgba(41,132,196,.18); --glow3:rgba(124,77,188,.16);
  --bg:#0b1210; --bg-side:#131c18; --bg-main:#1a2420; --bg-comp:#212d28;
  --text:#eef5f1; --text-mid:#9db3aa; --text-lo:#5f756d;
  --line:rgba(255,255,255,.10); --line2:rgba(255,255,255,.18);
  --danger:#ff7369; --radius:12px;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:"Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background:var(--bg); color:var(--text); line-height:1.55; min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 22px; }
.muted{ color:var(--text-mid); }
.small{ font-size:13px; }
.mono{ font-family:ui-monospace, Consolas, "Cascadia Mono", monospace; font-size:.92em; }
.center{ text-align:center; }
.center .lead{ margin-left:auto; margin-right:auto; }

/* ---------- animated background layers ---------- */
.bg{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.bg .mesh{
  position:absolute; inset:-35%;
  background:
    radial-gradient(42% 38% at 18% 22%, var(--glow1), transparent 62%),
    radial-gradient(38% 34% at 82% 14%, var(--glow2), transparent 62%),
    radial-gradient(46% 42% at 58% 88%, var(--glow3), transparent 66%);
  filter:blur(28px);
  animation:drift 28s ease-in-out infinite alternate;
}
.bg .grid{
  position:absolute; inset:0; opacity:.45;
  background-image:linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(78% 62% at 50% 0%, #000 18%, transparent 74%);
          mask-image:radial-gradient(78% 62% at 50% 0%, #000 18%, transparent 74%);
}
.bg .grain{
  position:absolute; inset:0; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift{
  0%   { transform:translate3d(-3%, -2%, 0) scale(1);    }
  50%  { transform:translate3d(4%, 3%, 0)  scale(1.10);  }
  100% { transform:translate3d(-2%, 4%, 0)  scale(1.04);  }
}
@media (prefers-reduced-motion:reduce){ .bg .mesh{ animation:none; } html{ scroll-behavior:auto; } }

/* page accents */
body[data-page="features"]{ --accent:#b07cff; --accent-deep:#9359e8; --accent-soft:rgba(176,124,255,.45); --accent-faint:rgba(176,124,255,.12); --glow1:rgba(176,124,255,.22); --glow2:rgba(47,212,167,.14); --glow3:rgba(61,109,142,.18); }
body[data-page="servers"] { --accent:#5fb2ff; --accent-deep:#3d8fdb; --accent-soft:rgba(95,178,255,.45); --accent-faint:rgba(95,178,255,.12); --glow1:rgba(61,109,142,.26); --glow2:rgba(95,178,255,.20); --glow3:rgba(47,212,167,.12); }
body[data-page="download"]{ --accent:#ffb45c; --accent-deep:#e2913b; --accent-soft:rgba(255,180,92,.45); --accent-faint:rgba(255,180,92,.12); --glow1:rgba(255,180,92,.20); --glow2:rgba(47,212,167,.14); --glow3:rgba(255,115,105,.14); }
body[data-page="host"], body[data-page="setup"]{ --accent:#4fd6d2; --accent-deep:#2fb2ae; --accent-soft:rgba(79,214,210,.45); --accent-faint:rgba(79,214,210,.12); --glow1:rgba(79,214,210,.22); --glow2:rgba(47,212,167,.16); --glow3:rgba(41,132,196,.18); }
body[data-page="faq"]{ --accent:#9db3aa; --accent-deep:#7f9a90; --accent-soft:rgba(157,179,170,.40); --accent-faint:rgba(157,179,170,.10); --glow1:rgba(157,179,170,.16); --glow2:rgba(47,212,167,.12); --glow3:rgba(124,77,188,.12); }

/* ---------- nav ---------- */
nav{ position:sticky; top:0; z-index:50; background:rgba(11,18,16,.82); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.nav-in{ display:flex; align-items:center; gap:18px; min-height:64px; flex-wrap:wrap; }
.logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; color:var(--text); letter-spacing:.2px; }
.logo:hover{ text-decoration:none; }
.logo .mark{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--accent); color:#08130e; font-weight:900; font-size:13px; }
.nav-links{ display:flex; gap:2px; flex-wrap:wrap; }
.nav-links a{ color:var(--text-mid); font-size:14.5px; font-weight:600; padding:8px 11px; border-radius:8px; }
.nav-links a:hover{ color:var(--text); background:rgba(255,255,255,.06); text-decoration:none; }
.nav-links a.on{ color:var(--accent); background:var(--accent-faint); }
.nav-cta{ margin-left:auto; }
@media (max-width:900px){ .nav-links{ display:none; } .nav-cta{ margin-left:0; } }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:12px 22px; border-radius:10px;
  border:1px solid var(--line2); font-size:15px; font-weight:700; cursor:pointer; text-decoration:none;
  background:var(--bg-comp); color:var(--text); transition:transform .06s ease, background .15s ease, border-color .15s ease; }
.btn:hover{ background:#2a3833; text-decoration:none; }
.btn:active{ transform:translateY(1px); }
.btn.primary{ background:var(--accent); border-color:var(--accent); color:#08130e; }
.btn.primary:hover{ background:var(--accent-deep); }
.btn.big{ padding:16px 34px; font-size:17px; border-radius:12px; }
.btn.sm{ padding:8px 14px; font-size:13.5px; border-radius:8px; }
.btn.ghost{ background:transparent; }

/* ---------- page hero ---------- */
.hero{ padding:84px 0 54px; position:relative; }
.hero .kicker{ color:var(--accent); font-weight:800; font-size:13px; letter-spacing:1.7px; text-transform:uppercase; }
.hero h1{ font-size:clamp(32px, 5vw, 52px); font-weight:900; letter-spacing:-1px; line-height:1.08; margin-top:10px; }
.hero h1 em{ font-style:normal; color:var(--accent); }
.hero p.sub{ max-width:660px; margin-top:18px; font-size:17.5px; color:var(--text-mid); }
.hero .ctas{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero .meta{ margin-top:18px; color:var(--text-lo); font-size:13.5px; }
.hero .meta b{ color:var(--text-mid); font-weight:600; }

/* ---------- sections + cards ---------- */
section{ padding:56px 0; }
section + section{ border-top:1px solid var(--line); }
.kicker{ color:var(--accent); font-weight:800; font-size:13px; letter-spacing:1.6px; text-transform:uppercase; }
h2{ font-size:clamp(24px, 3.4vw, 34px); font-weight:850; letter-spacing:-.5px; margin-top:8px; }
h3{ font-size:17px; font-weight:800; }
.lead{ color:var(--text-mid); max-width:660px; margin-top:12px; font-size:16.5px; }
.grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:34px; }
.grid2{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:34px; }
@media (max-width:980px){ .grid3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px){ .grid3, .grid2{ grid-template-columns:1fr; } }
.card{ background:var(--bg-side); border:1px solid var(--line); border-radius:var(--radius); padding:22px 20px;
  transition:border-color .15s ease, transform .12s ease; display:flex; flex-direction:column; gap:6px; }
.card:hover{ border-color:var(--accent-soft); transform:translateY(-2px); }
.card .ic{ width:40px; height:40px; border-radius:11px; display:grid; place-items:center; margin-bottom:12px;
  background:var(--accent-faint); border:1px solid var(--accent-soft); color:var(--accent); }
.card .ic svg{ width:21px; height:21px; }
.card h3{ font-size:16.5px; }
.card p{ color:var(--text-mid); font-size:14px; }
.card .go{ margin-top:8px; font-weight:700; font-size:14px; }

/* reveal on scroll */
.rv{ opacity:0; transform:translateY(14px); transition:opacity .5s ease, transform .5s ease; }
.rv.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .rv{ opacity:1; transform:none; transition:none; } }

/* steps */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:34px; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; } }
.step{ background:var(--bg-side); border:1px solid var(--line); border-radius:var(--radius); padding:24px 22px; }
.step .n{ width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:var(--accent-faint); border:1px solid var(--accent-soft); color:var(--accent); font-weight:900; font-size:16px; }
.step h3{ margin-top:16px; font-size:17px; }
.step p{ margin-top:7px; color:var(--text-mid); font-size:14.5px; }

/* servers */
.srv-list{ margin-top:28px; display:grid; gap:12px; }
.srv{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; background:var(--bg-side);
  border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; }
.srv .dot{ width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-faint); flex:none; }
.srv .nm{ font-weight:800; font-size:16px; }
.srv .addr{ color:var(--text-lo); font-size:13px; font-family:ui-monospace, Consolas, monospace; }
.srv .desc{ color:var(--text-mid); font-size:14px; flex-basis:100%; }
.srv .act{ margin-left:auto; display:flex; gap:8px; align-items:center; }

/* downloads */
.dl-hero{ margin-top:32px; background:linear-gradient(150deg, #14201b, rgba(255,180,92,.10));
  border:1px solid var(--accent-soft); border-radius:16px; padding:34px; display:flex; align-items:center;
  gap:24px; flex-wrap:wrap; justify-content:space-between; }
.dl-hero .t h3{ font-size:24px; font-weight:900; letter-spacing:-.4px; }
.dl-hero .t p{ color:var(--text-mid); margin-top:6px; max-width:480px; font-size:15px; }
.dl-hero .t .ver{ margin-top:10px; font-size:13px; color:var(--text-lo); }
.dl-hero .t .ver b{ color:var(--text-mid); }
.dl-card .meta{ font-size:12.5px; color:var(--text-lo); }
.dl-card .btn{ margin-top:10px; align-self:flex-start; }
.pill{ display:inline-block; padding:3px 9px; border-radius:999px; font-size:11.5px; font-weight:800;
  letter-spacing:.6px; text-transform:uppercase; background:var(--accent-faint); color:var(--accent);
  border:1px solid var(--accent-soft); }
.pill.soon{ background:rgba(255,255,255,.05); color:var(--text-lo); border-color:var(--line); }

/* code + commands */
pre{ background:#08110e; border:1px solid var(--line); border-radius:10px; padding:14px 16px; overflow:auto;
  font-family:ui-monospace, Consolas, monospace; font-size:13px; line-height:1.6; color:#d9e6df; margin-top:12px; }
pre .c{ color:var(--text-lo); }
.cmd{ position:relative; }
.cmd .copy{ position:absolute; top:8px; right:8px; padding:5px 10px; font-size:11.5px; font-weight:700;
  border-radius:7px; border:1px solid var(--line2); background:rgba(255,255,255,.06); color:var(--text-mid); cursor:pointer; }
.cmd .copy:hover{ color:var(--text); border-color:var(--accent-soft); }
table.ports{ width:100%; border-collapse:collapse; margin-top:18px; font-size:14px; }
table.ports th, table.ports td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); }
table.ports th{ color:var(--text-mid); font-size:12.5px; text-transform:uppercase; letter-spacing:.8px; }
table.ports td:first-child{ font-family:ui-monospace, Consolas, monospace; color:var(--accent); white-space:nowrap; }

/* tabs (setup page) */
.tabs{ display:flex; gap:8px; margin-top:26px; flex-wrap:wrap; }
.tabs button{ padding:11px 18px; border-radius:10px; border:1px solid var(--line2); background:var(--bg-side);
  color:var(--text-mid); font-weight:800; font-size:14.5px; cursor:pointer; }
.tabs button.on{ background:var(--accent-faint); border-color:var(--accent-soft); color:var(--accent); }
.tabpane[hidden]{ display:none; }

/* faq */
.faq{ margin-top:26px; display:grid; gap:10px; max-width:820px; }
details{ background:var(--bg-side); border:1px solid var(--line); border-radius:10px; padding:0 18px; }
details[open]{ border-color:var(--accent-soft); }
summary{ cursor:pointer; list-style:none; padding:15px 0; font-weight:700; font-size:15.5px;
  display:flex; justify-content:space-between; align-items:center; gap:12px; }
summary::-webkit-details-marker{ display:none; }
summary::after{ content:"+"; color:var(--text-lo); font-size:20px; }
details[open] summary::after{ content:"–"; }
details .ans{ padding:0 0 16px; color:var(--text-mid); font-size:14.5px; }
details .ans b{ color:var(--text); }

/* callouts */
.note{ margin-top:18px; background:var(--accent-faint); border:1px solid var(--accent-soft);
  border-radius:10px; padding:14px 16px; font-size:14px; color:var(--text-mid); }
.note b{ color:var(--text); }

/* ---------- app preview mockup (homepage) ---------- */
.appshot-wrap{ margin-top:44px; perspective:1400px; }
.appshot{
  max-width:980px; margin:0 auto; border-radius:16px; overflow:hidden;
  border:1px solid var(--line2); background:var(--bg-main);
  box-shadow:0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform:rotateX(4deg); transition:transform .4s ease;
  display:grid; grid-template-columns:64px 210px 1fr 170px;
}
.appshot:hover{ transform:rotateX(0deg); }
.appshot .as-title{ grid-column:1 / -1; display:flex; align-items:center; gap:8px; padding:10px 14px;
  background:var(--bg-rail, #0d1512); background:var(--bg); border-bottom:1px solid var(--line); font-size:12.5px; color:var(--text-lo); }
.appshot .as-title .dots{ display:flex; gap:5px; }
.appshot .as-title .dots i{ width:9px; height:9px; border-radius:50%; background:var(--line2); display:block; }
.appshot .as-rail{ background:var(--bg); border-right:1px solid var(--line); padding:12px 0; display:flex; flex-direction:column; align-items:center; gap:10px; }
.appshot .as-rail .ico{ width:38px; height:38px; border-radius:12px; display:grid; place-items:center; font-weight:900; font-size:12px; color:#08130e; background:var(--accent); }
.appshot .as-rail .srv{ width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--bg-comp); border:1px solid var(--line); color:var(--text-mid); font-size:13px; font-weight:800; position:relative; }
.appshot .as-rail .srv.on{ border-color:var(--accent-soft); color:var(--text); }
.appshot .as-rail .srv.on::before{ content:""; position:absolute; left:-8px; width:3.5px; height:20px; border-radius:3px; background:var(--accent); }
.appshot .as-side{ background:var(--bg-side); border-right:1px solid var(--line); padding:12px 0; display:flex; flex-direction:column; gap:4px; }
.appshot .as-side .ch-h{ font-size:10.5px; font-weight:800; letter-spacing:.9px; text-transform:uppercase; color:var(--text-lo); padding:8px 14px 5px; }
.appshot .as-side .ch{ padding:5.5px 14px; font-size:13px; color:var(--text-mid); border-radius:7px; margin:0 8px; }
.appshot .as-side .ch.on{ background:var(--accent-faint); color:var(--text); font-weight:600; }
.appshot .as-side .ch .h{ color:var(--text-lo); font-weight:700; margin-right:5px; }
.appshot .as-chat{ padding:14px 16px; display:flex; flex-direction:column; gap:11px; min-height:340px; }
.appshot .as-chat .ch-head{ font-weight:800; font-size:14.5px; border-bottom:1px solid var(--line); padding-bottom:10px; }
.appshot .as-chat .ch-head .h{ color:var(--text-lo); font-weight:700; margin-right:5px; }
.msg{ display:flex; gap:10px; align-items:flex-start; }
.msg .ava{ width:30px; height:30px; border-radius:50%; flex:none; display:grid; place-items:center; font-weight:800; font-size:11px; color:#0b1210; position:relative; }
.msg .ava .d{ position:absolute; right:-2px; bottom:-2px; width:10px; height:10px; border-radius:50%; border:2px solid var(--bg-main); background:#4ade80; }
.msg .ava .d.idle{ background:#f0b232; }
.msg .b .who{ font-weight:700; font-size:13px; display:flex; gap:7px; align-items:baseline; }
.msg .b .who time{ color:var(--text-lo); font-size:10.5px; font-weight:500; }
.msg .b p{ color:var(--text-mid); font-size:13px; margin-top:2px; line-height:1.45; }
.msg.me .ava{ background:var(--accent); }
.msg.m1 .ava{ background:#5cc8ff; } .msg.m2 .ava{ background:#b07cff; } .msg.m3 .ava{ background:#ffb45c; }
.appshot .as-composer{ margin-top:auto; border:1px solid var(--line2); border-radius:9px; padding:9px 12px; font-size:12.5px; color:var(--text-lo); background:var(--bg-comp); }
.appshot .as-mem{ background:var(--bg-side); border-left:1px solid var(--line); padding:14px 12px; display:flex; flex-direction:column; gap:10px; }
.appshot .as-mem .h{ font-size:10.5px; font-weight:800; letter-spacing:.9px; text-transform:uppercase; color:var(--text-lo); }
.appshot .as-mem .m{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-mid); }
.appshot .as-mem .m .a{ width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:9.5px; font-weight:800; color:#0b1210; position:relative; }
.appshot .as-mem .m .a i{ position:absolute; right:-2px; bottom:-2px; width:8px; height:8px; border-radius:50%; border:1.5px solid var(--bg-side); background:#4ade80; }
.appshot .as-mem .m .a i.idle{ background:#f0b232; }
.appshot .as-mem .m .a i.dnd{ background:#f23f43; }
.appshot .as-user{ grid-column:1 / -1; display:flex; align-items:center; gap:9px; padding:9px 14px; background:var(--bg-side); border-top:1px solid var(--line); }
.appshot .as-user .a{ width:26px; height:26px; border-radius:50%; background:var(--accent); display:grid; place-items:center; font-size:10.5px; font-weight:800; color:#08130e; }
.appshot .as-user .n{ font-size:12.5px; font-weight:700; }
.appshot .as-user .n small{ display:block; font-weight:500; color:var(--text-lo); font-size:10.5px; }
.appshot .as-user .btns{ margin-left:auto; display:flex; gap:6px; }
.appshot .as-user .btns i{ width:26px; height:26px; border-radius:7px; background:var(--bg-comp); border:1px solid var(--line); display:block; }
@media (max-width:860px){
  .appshot{ transform:none; grid-template-columns:56px 1fr; }
  .appshot .as-side, .appshot .as-mem{ display:none; }
}
@media (prefers-reduced-motion:reduce){ .appshot{ transform:none; } }

/* what's-new strip */
.newstrip{ margin-top:34px; border:1px solid var(--accent-soft); background:var(--accent-faint); border-radius:14px; padding:18px 20px; display:flex; gap:14px; align-items:flex-start; flex-wrap:wrap; }
.newstrip .pill{ flex:none; margin-top:2px; }
.newstrip p{ color:var(--text-mid); font-size:14px; flex:1; min-width:240px; }
.newstrip p b{ color:var(--text); }

/* footer */
footer{ border-top:1px solid var(--line); padding:30px 0 40px; margin-top:26px; }
.foot-in{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.foot-in .links{ display:flex; gap:16px; margin-left:auto; flex-wrap:wrap; }
.foot-in .links a{ color:var(--text-mid); font-size:14px; }
.status{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; color:var(--text-mid); }
.status .d{ width:9px; height:9px; border-radius:50%; background:var(--text-lo); }
.status.ok .d{ background:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,.18); }
.status.bad .d{ background:var(--danger); box-shadow:0 0 0 3px rgba(255,115,105,.18); }
