@import url("/assets/css/tokens.css");
@import url("/assets/css/servers.css");
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    15px/1.65 Inter,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171719;
  color: #fff;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 550;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover,
.button:hover {
  background: #29292c;
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #f5f5f5;
  color: #111;
  border-color: #f5f5f5;
}
.primary:hover {
  background: #dcdcdc;
}
.quiet {
  background: transparent;
}
.danger {
  border-style: dashed;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 32px;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 1.07;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 500;
}
h3 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 7px;
}
.brand span small {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-left: 7px;
}
.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.navlinks {
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 13px;
  color: #b5b5bb;
}
.hero {
  padding: 100px 0 78px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 55px;
  align-items: center;
}
.hero p {
  max-width: 440px;
  font-size: 17px;
  color: #a1a1a9;
}
.hero .eyebrow {
  margin-bottom: 27px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #ddd;
  border-radius: 50%;
  display: inline-block;
}
.hero h1 em {
  font-style: normal;
  color: #797980;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}
.hero-note {
  font-size: 11px !important;
  letter-spacing: 0.03em;
}
.preview {
  border: 1px solid #353538;
  border-radius: 13px;
  background: #111113;
  box-shadow: 0 30px 70px #0006;
  overflow: hidden;
  transform: rotate(-1deg);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #898990;
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
}
.preview-body {
  display: grid;
  grid-template-columns: 90px 1fr;
  min-height: 330px;
}
.mini-nav {
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  font-size: 9px;
  color: #777;
}
.mini-nav b {
  color: #fff;
}
.mini-main {
  padding: 24px 20px;
}
.mini-main h3 {
  font-size: 18px;
}
.mini-stats {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.mini-stat {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font-size: 9px;
  color: #9c9ca5;
}
.mini-stat strong {
  font-size: 21px;
  display: block;
  color: #eee;
  font-weight: 400;
}
.mini-event {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.mini-date {
  font-size: 17px;
  line-height: 1.1;
  text-align: center;
}
.mini-date small {
  font-size: 8px;
  display: block;
  margin-bottom: 5px;
}
.mini-event strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
}
.mini-event span {
  font-size: 9px;
  color: #777;
}
.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 38px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head p {
  max-width: 320px;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 31px;
}
.feature svg {
  width: 23px;
  height: 23px;
  margin-bottom: 23px;
  stroke: #bdbdc5;
  fill: none;
  stroke-width: 1.4;
}
.feature p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.feature .tag {
  font-size: 10px;
  color: #bcbcc3;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.step-no {
  color: #6a6a72;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 25px;
}
.steps p {
  font-size: 14px;
  color: var(--muted);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-size: 16px;
}
details p {
  color: var(--muted);
  max-width: 850px;
  margin: 15px 0 0;
}
.cta {
  text-align: center;
  padding: 80px 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111113;
}
.cta h2 {
  max-width: 600px;
  margin: 0 auto 20px;
}
.cta p {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
}
.app {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #0e0e10;
  overflow-y: auto;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-menu,
.sidebar-close,
.sidebar-backdrop {
  display: none;
}
.mobile-menu svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.sidebar .brand {
  padding: 0 10px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 10px 13px;
  color: #94949c;
  font-size: 13px;
}
.side-nav a:hover,
.side-nav a.active {
  background: #202023;
  color: #fff;
}
.side-nav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.side-bottom {
  margin-top: auto;
  font-size: 11px;
  padding: 10px;
  color: #777;
}
.app-content {
  min-width: 0;
}
.app-top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.app-top select {
  max-width: 270px;
}
.account {
  font-size: 12px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 12px;
}
.account button {
  padding: 6px 10px;
  font-size: 11px;
}
.content {
  padding: 39px 42px;
  max-width: 1450px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: 7px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
.stat,
.panel,
.record {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111113;
  padding: 22px;
}
.stat small {
  font-size: 11px;
}
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 450;
  margin-top: 12px;
  letter-spacing: -0.03em;
}
.columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}
.panel h2 {
  font-size: 17px;
}
.record {
  margin-bottom: 15px;
}
.record-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: start;
}
.record h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.record p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #a5a5ad;
  font-size: 13px;
}
.record .actions {
  margin: 16px 0 0;
}
.record button {
  padding: 6px 12px;
  font-size: 12px;
}
.badge {
  font-size: 10px;
  letter-spacing: 0.03em;
  border: 1px solid #38383f;
  padding: 3px 8px;
  border-radius: 5px;
  color: #bebec6;
  white-space: nowrap;
}
.record code {
  font-size: 10px;
  color: #888;
  overflow-wrap: anywhere;
}
.empty {
  padding: 65px 25px;
  text-align: center;
  border: 1px dashed #303036;
  border-radius: 10px;
  color: #85858f;
}
.empty h3 {
  color: #e5e5e9;
}
.empty p {
  font-size: 13px;
  max-width: 460px;
  margin: auto;
}
.notice {
  padding: 16px 20px;
  border: 1px solid #555;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 13px;
}
.error {
  border-style: dashed;
  color: #eee;
}
.loading {
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.35;
  }
}
input,
textarea,
select {
  border: 1px solid #36363d;
  background: #141417;
  color: #eee;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #b1b1b9;
  font-size: 12px;
  margin-bottom: 15px;
}
label.check {
  flex-direction: row;
  align-items: center;
}
dialog {
  background: #111113;
  border: 1px solid #45454e;
  border-radius: 13px;
  color: #eee;
  padding: 28px;
  max-width: 580px;
  width: calc(100% - 36px);
  max-height: 88vh;
  overflow: auto;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 24px;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 390px;
  background: #eee;
  color: #111;
  padding: 13px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 40px #0008;
  z-index: 10;
  font-size: 13px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.kanban-col {
  padding: 12px;
  background: #0c0c0e;
  border-radius: 7px;
}
.kanban-col h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
}
.task {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.task p {
  margin: 0;
}
.task button {
  margin-top: 7px;
}
.bracket {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 15px 0;
}
.round {
  min-width: 210px;
}
.match {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin: 12px 0;
  font-size: 11px;
}
.match p {
  margin-bottom: 3px;
}
.match code {
  font-size: 9px;
}
.poll-option {
  margin: 10px 0;
  font-size: 13px;
}
.poll-option progress {
  width: 100%;
  accent-color: #ddd;
  height: 5px;
}
.activity {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  color: #aaa;
}
.activity time {
  display: block;
  color: #666;
  font-size: 10px;
}
.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-card {
  max-width: 470px;
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #111113;
}
.login-card h1 {
  font-size: 38px;
  margin-top: 35px;
}
.login-card p {
  color: #999;
}
.login-card .button {
  width: 100%;
  margin: 15px 0;
}
.mobile-nav {
  display: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1050px) {
  .hero {
    gap: 30px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .app {
    grid-template-columns: 195px 1fr;
  }
  .content {
    padding: 28px;
  }
  .app-top {
    padding: 0 28px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .preview-body {
    grid-template-columns: 65px 1fr;
  }
  .mini-main {
    padding: 20px 12px;
  }
  .mini-nav {
    font-size: 8px;
    padding: 20px 7px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding: 0 22px;
  }
  .nav {
    height: 74px;
  }
  .navlinks > a:not(.button) {
    display: none;
  }
  .brand span small {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 0;
    gap: 40px;
  }
  .hero h1 {
    max-width: 530px;
  }
  .preview {
    transform: none;
    max-width: 530px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 55px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step-no {
    margin-bottom: 15px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    align-items: start;
  }
  .app {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(290px, 85vw);
    height: 100dvh;
    padding: 24px 20px;
    gap: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.22s ease,
      visibility 0.22s;
  }
  .sidebar-open {
    overflow: hidden;
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-menu,
  .sidebar-close {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 8px;
  }
  .sidebar-close {
    background: transparent;
  }
  .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #0009;
    backdrop-filter: blur(3px);
  }
  .sidebar .brand {
    padding: 0;
  }
  .side-nav {
    flex-direction: column;
    overflow: visible;
    gap: 5px;
  }
  .side-nav a {
    white-space: nowrap;
    font-size: 14px;
    padding: 12px;
  }
  .side-nav svg {
    display: block;
  }
  .side-bottom {
    display: block;
  }
  .app-top {
    height: auto;
    min-height: 72px;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .app-top select {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 52px);
  }
  .content {
    padding: 26px 20px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading button {
    font-size: 11px;
    padding: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .account {
    margin-left: auto;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 25px;
  }
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .login-card {
    padding: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
