/* Home page (design 6 · Arcane Fullpage): menus, live data from the Team Panel and scroll reveals. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--font-body, 'Inter', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head, 'Outfit', sans-serif); line-height: 1.1; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* icons */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.hd.scrolled, .hd.open { background: var(--head-bg); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hd-in { width: min(1200px, 100% - 32px); margin: auto; height: 68px; display: flex; align-items: center; gap: 24px; }
.hd-logo img { height: 30px; width: auto; }
.hd-toggle { margin-left: auto; display: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; }
.hd-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hd-group { position: relative; }
.hd-group > button { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.hd-group > button:hover, .hd-group.open > button { color: var(--fg); background: var(--hover, rgba(127,127,127,.12)); }
.hd-group > button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s; }
.hd-group.open > button svg { transform: rotate(180deg); }
.hd-drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; padding: 6px; display: grid; background: var(--drop-bg, var(--card)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.hd-group.open .hd-drop { opacity: 1; visibility: visible; transform: none; }
.hd-drop a { padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.hd-drop a:hover { color: var(--fg); background: var(--hover, rgba(127,127,127,.12)); }
.hd-cta { margin-left: 10px; padding: 9px 18px; border-radius: var(--btn-radius, 999px); background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 14px; }
@media (max-width: 860px) {
  .hd-toggle { display: block; }
  .hd-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 18px; background: var(--head-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-height: calc(100svh - 68px); overflow: auto; }
  .hd.open .hd-nav { display: flex; }
  .hd-group > button { width: 100%; justify-content: space-between; }
  .hd-drop { position: static; display: none; box-shadow: none; border: 0; background: none; padding: 0 0 6px 12px; opacity: 1; visibility: visible; transform: none; }
  .hd-group.open .hd-drop { display: grid; }
  .hd-cta { margin: 10px 0 0; text-align: center; }
}

/* latest updates (filled by live.js) */
.upd { display: flex; flex-direction: column; gap: 8px; }
.upd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.upd-head b { font-family: var(--font-head, 'Outfit', sans-serif); font-size: 18px; }
.upd-head time, .upd-meta { color: var(--muted); font-size: 14px; }
.upd-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.upd-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.upd-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.upd-list li.added::before { background: #3ddc84; }
.upd-list li.updated::before { background: var(--accent); }
.upd-list li.removed::before { background: #ff5d6c; }
.upd-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* status dot */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
[data-status].on.dot, [data-status].on .dot { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: ping 2s infinite; }
[data-status].off.dot, [data-status].off .dot { background: #ff5d6c; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* footer */
.ft { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.ft-in { width: min(1200px, 100% - 32px); margin: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.ft-in img { height: 26px; width: auto; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.ft-links a:hover { color: var(--fg); }
.ft small { flex-basis: 100%; font-size: 12px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
