/* ==========================================================================
   REFUT — modern site
   Dark, teal (brand logo), clean sans. Intentionally simple.
   ========================================================================== */
:root {
  --bg: #0a0e13;
  --bg-soft: #0d1119;
  --card: #10151e;
  --card-2: #141b26;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f7;
  --muted: #98a3b3;
  --faint: #626d7d;
  --teal: #2cd1e3;
  --teal-2: #5ce4f2;
  --teal-ink: #04171b;
  --amber: #f3c969;
  --discord: #5865f2;
  --grad: linear-gradient(104deg, #5ce4f2, #26c2d6 48%, #2a93d8);
  --maxw: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--teal); color: var(--teal-ink); }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 14px; top: 14px; z-index: 200; padding: 10px 14px; border-radius: 8px;
  background: var(--teal); color: var(--teal-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

.wrap, .nav__in, .hero__in, .about, .team, .foot__in {
  width: min(100% - 40px, var(--maxw)); margin-inline: auto;
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; color: var(--teal); filter: drop-shadow(0 0 14px rgba(44, 209, 227, 0.35)); }
.brand__mark-img {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px -8px rgba(44, 209, 227, 0.55);
}
.brand__word { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.14em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 19, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.tabs { display: flex; gap: 4px; margin-left: 8px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9px;
  font-weight: 500; font-size: 0.95rem; color: var(--muted); white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.tab__logo { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; flex: none; filter: grayscale(0.35) opacity(0.8); transition: filter 0.2s; }
.tab:hover .tab__logo, .tab.is-active .tab__logo { filter: none; }
.tab__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tab__dot--live { background: var(--teal); box-shadow: 0 0 0 0 rgba(44, 209, 227, 0.5); animation: pulse 2.4s var(--ease) infinite; }
.tab__dot--test { background: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(44, 209, 227, 0.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(44, 209, 227, 0); } }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-team { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.link-team:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: 11px;
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s, box-shadow 0.25s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background-image: var(--grad); color: var(--teal-ink); box-shadow: 0 10px 30px -12px rgba(44, 209, 227, 0.6); }
.btn--primary:hover { box-shadow: 0 14px 38px -12px rgba(44, 209, 227, 0.8); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-2); }
.btn--discord { height: 40px; padding: 0 15px; border-radius: 10px; background: var(--discord); color: #fff; font-size: 0.92rem; }
.btn--discord:hover { background: #6b77f5; }
.btn--discord svg { width: 18px; height: 18px; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px rgba(44, 209, 227, 0.8); }
.display {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.015em; margin-top: 14px;
}
.lead { margin-top: 20px; max-width: 46ch; font-size: 1.12rem; color: var(--muted); }
.fineprint { margin-top: 18px; font-size: 0.86rem; color: var(--faint); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -20%; height: 620px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 18% 0%, rgba(44, 209, 227, 0.18), transparent 70%),
    radial-gradient(40% 50% at 70% 10%, rgba(42, 147, 216, 0.12), transparent 70%);
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* banner + status stack */
.hero__side { display: flex; flex-direction: column; gap: 14px; }
.hero__banner {
  border-radius: 16px; overflow: hidden; line-height: 0;
  border: 1px solid var(--line); box-shadow: 0 26px 54px -30px rgba(0, 0, 0, 0.85);
}
.hero__banner img { width: 100%; height: auto; }

/* ---------- status card ---------- */
.status {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.status__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.status__list { margin: 14px 0 18px; }
.status__list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.98rem;
}
.status__list li:first-child { border-top: 0; }
.status__list span { color: var(--muted); }
.status__list b { font-weight: 600; }
.status__list .ok { color: var(--teal-2); }
.status__list .test { color: var(--amber); }
.status__list .muted { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.status__cta { display: inline-block; font-weight: 600; font-size: 0.92rem; color: var(--teal-2); transition: opacity 0.2s; }
.status__cta:hover { opacity: 0.75; }

/* ---------- about ---------- */
.about { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.about__p { margin-top: 22px; max-width: 64ch; font-size: 1.1rem; color: var(--muted); }

/* ---------- team ---------- */
.team { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.team .h2 { margin-bottom: 36px; }
.team__group + .team__group { margin-top: 32px; }
.team__tag {
  display: inline-block; margin-bottom: 14px; padding: 5px 11px; border-radius: 7px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em;
}
.team__tag--22 { background: rgba(44, 209, 227, 0.12); color: var(--teal-2); }
.team__tag--20 { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dev {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s var(--ease), background-color 0.2s;
}
.dev:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--card-2); }
.dev__pic { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; background: var(--card-2); }
.dev__pic img { width: 100%; height: 100%; object-fit: cover; }
.dev__pic--ph {
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--a), var(--b));
  color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
}
.dev__meta { min-width: 0; }
.dev__name { font-weight: 600; font-size: 1.05rem; }
.dev__handle { font-size: 0.86rem; color: var(--faint); }
.dev__role { grid-column: 1 / -1; font-size: 0.92rem; color: var(--muted); padding-top: 2px; }
.dev__chip, .dev__link {
  align-self: start; padding: 6px 11px; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
}
.dev__chip { background: rgba(44, 209, 227, 0.12); color: var(--teal-2); }
.dev__link { background: rgba(255, 255, 255, 0.05); color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.dev__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 34px 0; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.foot__links a:hover { color: var(--text); }
.foot__legal { flex-basis: 100%; font-size: 0.82rem; color: var(--faint); max-width: 90ch; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .status { order: 2; }
  .team__grid { grid-template-columns: 1fr; }
  .link-team { display: none; }
  .brand__word { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .nav__in { gap: 10px; }
  .tab { padding: 7px 11px; font-size: 0.9rem; }
  .btn--discord span { display: none; }
  .btn--discord { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 0.001ms !important; }
}

/* ---------- music ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sound {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); color: var(--muted); font-weight: 600; font-size: 0.9rem;
  transition: color 0.2s, background-color 0.2s;
}
.sound:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.sound__eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__eq i { width: 3px; height: 35%; border-radius: 1px; background: currentColor; }
.sound.is-on { color: var(--teal-2); }
.sound.is-on .sound__eq i { background: var(--teal); animation: eq 0.8s ease-in-out infinite alternate; }
.sound.is-on .sound__eq i:nth-child(2) { animation-duration: 0.55s; }
.sound.is-on .sound__eq i:nth-child(3) { animation-duration: 0.95s; }
.sound.is-on .sound__eq i:nth-child(4) { animation-duration: 0.65s; }
@keyframes eq { from { height: 18%; } to { height: 100%; } }

.music {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 14px;
  background: rgba(13, 17, 25, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s var(--ease), border-color 0.3s;
}
.music.is-open { opacity: 1; transform: none; pointer-events: auto; }
.music.is-announce { border-color: rgba(44, 209, 227, 0.5); }
.music__video { flex: none; width: 96px; height: 54px; border-radius: 8px; overflow: hidden; background: #000; }
.music__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.music__info { width: 150px; min-width: 0; }
.music__label { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-2); }
.music__title { display: block; margin-top: 3px; font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music__artist { display: block; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music__ctrl { display: flex; align-items: center; gap: 6px; }
.music__btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--text); transition: background-color 0.2s; }
.music__btn:hover { background: rgba(255, 255, 255, 0.12); }
.music__btn svg { width: 16px; height: 16px; }
[data-m="toggle"] svg:nth-child(2) { display: none; }
.music:not(.is-playing) [data-m="toggle"] svg:first-child { display: none; }
.music:not(.is-playing) [data-m="toggle"] svg:nth-child(2) { display: block; }
.music__vol input { width: 66px; accent-color: var(--teal); cursor: pointer; }
.music__lists[hidden] { display: none; }
@media (max-width: 820px) { .sound__txt { display: none; } .sound { padding: 0 11px; } }
@media (max-width: 480px) { .music { left: 12px; right: 12px; } .music__info { flex: 1; width: auto; } .music__vol { display: none; } }
