@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@1.3.9/dist/web/pretendard.css");

:root {
  --bg: #e8eef6;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --ink: #161a22;
  --muted: #697281;
  --line: rgba(22, 26, 34, 0.12);
  --line-strong: rgba(22, 26, 34, 0.2);
  --glass-border: rgba(255, 255, 255, 0.76);
  --blue: #0879d7;
  --teal: #1db6a5;
  --green: #2da86f;
  --rose: #d75f72;
  --dark: #171b24;
  --shadow: 0 26px 72px rgba(31, 42, 62, 0.18);
  --shadow-hover: 0 32px 92px rgba(31, 42, 62, 0.24);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(8, 121, 215, 0.18), transparent 34%),
    linear-gradient(240deg, rgba(29, 182, 165, 0.16), transparent 38%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 46%, #f8fbff 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.38), transparent 28%, rgba(255, 255, 255, 0.18) 58%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), transparent 42%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

p,
li,
span,
a,
button,
h1,
h2,
h3 {
  word-break: keep-all;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    var(--shadow);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.1) 22%, transparent 42%, rgba(255, 255, 255, 0.22) 64%, transparent 84%);
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  width: min(1180px, calc(100% - 28px));
  border-radius: 999px;
  padding: 10px 12px 10px 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: "Sora", "Pretendard", sans-serif;
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow: 0 12px 24px rgba(8, 121, 215, 0.18);
}

.nav-right,
.nav-links,
.nav-icons,
.admin-controls,
.toolbar {
  display: flex;
  align-items: center;
}

.nav-right {
  gap: 14px;
}

.nav-links {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

body[data-page="home"] .nav-links a[data-page-link="home"],
body[data-page="servers"] .nav-links a[data-page-link="servers"],
body[data-page="support"] .nav-links a[data-page-link="support"],
body[data-page="patch"] .nav-links a[data-page-link="patch"],
body[data-page="team"] .nav-links a[data-page-link="team"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-icons,
.admin-controls {
  gap: 8px;
}

.icon-btn,
.menu-btn,
.item-action {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(22, 26, 34, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
}

.icon-btn:hover,
.menu-btn:hover,
.item-action:hover {
  transform: translateY(-1px);
  color: var(--ink);
  border-color: rgba(8, 121, 215, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.icon-btn.is-admin {
  color: var(--blue);
  border-color: rgba(8, 121, 215, 0.3);
}

.menu-btn {
  display: none;
}

.btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(22, 26, 34, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 121, 215, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 30px rgba(31, 42, 62, 0.12);
}

.btn.primary,
.mini-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 121, 215, 0.24);
}

.mini-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.mini-btn.ghost {
  background: transparent;
}

.status {
  min-width: 58px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.status.ok {
  color: var(--green);
}

.status.warn {
  color: #a16d08;
}

.status.err {
  color: var(--rose);
}

.page-main {
  padding: 56px 0 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100svh - 170px);
  padding: 46px 0 34px;
}

.eyebrow,
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(8, 121, 215, 0.16);
  background: rgba(255, 255, 255, 0.52);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin-top: 18px;
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: 4.6rem;
  line-height: 1.04;
  font-weight: 800;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--blue);
}

.hero-copy,
.page-copy,
.section-copy,
.card p,
.item-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-copy {
  max-width: 620px;
  margin-top: 20px;
  font-size: 1.12rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  min-height: 440px;
  border-radius: 34px;
  padding: 28px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(22, 26, 34, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.logo-stage {
  display: grid;
  place-items: center;
  min-height: 210px;
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(8, 121, 215, 0.16), transparent 45%),
    linear-gradient(220deg, rgba(29, 182, 165, 0.18), transparent 48%),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.logo-stage img {
  width: min(170px, 48vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 30px rgba(31, 42, 62, 0.18));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.metric strong {
  display: block;
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: 1.6rem;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.page-hero {
  padding: 34px 0 28px;
}

.page-hero h1 {
  max-width: 760px;
}

.page-copy {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1.08rem;
}

.section-block {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: 2rem;
}

.section-copy {
  max-width: 680px;
  margin-top: 8px;
}

.toolbar {
  flex-wrap: wrap;
  gap: 8px;
}

.feature-grid,
.card-grid,
.server-grid,
.team-grid,
.contact-grid,
.home-links {
  display: grid;
  gap: 18px;
}

.feature-grid,
.home-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.server-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-grid,
.contact-grid,
.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.item-card,
.contact-card {
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover,
.item-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    var(--shadow-hover);
}

.card h3,
.item-card h3,
.contact-card h3 {
  margin-top: 14px;
  font-size: 1.35rem;
}

.card p,
.item-card p,
.contact-card p {
  margin-top: 9px;
}

.card-icon,
.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 121, 215, 0.16), rgba(29, 182, 165, 0.18));
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
}

.item-top,
.team-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-actions {
  display: none;
  align-items: center;
  gap: 6px;
}

body.editing .item-actions {
  display: flex;
}

.item-action {
  width: 32px;
  height: 32px;
  font-size: 0.82rem;
}

.update-list {
  display: grid;
  gap: 14px;
}

.update-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  border-radius: var(--radius);
  padding: 22px;
}

.date {
  color: var(--muted);
  font-weight: 800;
}

.badge.urgent {
  color: #9b4d00;
  border-color: rgba(214, 133, 24, 0.22);
}

.badge.new {
  color: var(--green);
  border-color: rgba(45, 168, 111, 0.22);
}

.badge.patch {
  color: var(--blue);
}

.team-card {
  text-align: left;
}

.team-card .avatar {
  border-radius: 18px;
}

.support-band {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: stretch;
}

.dark-panel {
  min-height: 360px;
  border-radius: 30px;
  padding: 30px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(23, 27, 36, 0.98), rgba(35, 43, 55, 0.96)),
    var(--dark);
  box-shadow: var(--shadow);
}

.dark-panel p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.68;
}

.contact-card .btn {
  margin-top: 20px;
}

.footer {
  padding: 42px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-only,
.edit-mode-only {
  display: none !important;
}

body.admin-on .admin-only:not(.edit-mode-only) {
  display: inline-flex !important;
}

body.admin-on .toolbar.admin-only:not(.edit-mode-only) {
  display: flex !important;
}

body.admin-on.editing .edit-mode-only {
  display: inline-flex !important;
}

body.admin-on.editing .toolbar.edit-mode-only {
  display: flex !important;
}

body.admin-on.editing .item-actions.edit-mode-only {
  display: flex !important;
}

body.admin-on.editing .edit-start-only {
  display: none !important;
}

.editable {
  border-radius: 8px;
  outline: none;
  border-bottom: 1px dashed transparent;
}

body.editing .editable {
  border-color: rgba(8, 121, 215, 0.35);
  background: rgba(255, 255, 255, 0.28);
}

body.editing .editable:focus {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(8, 121, 215, 0.12);
}

.single-line {
  white-space: nowrap;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 100%);
  border-radius: 28px;
  padding: 30px;
}

.auth-title {
  margin: 18px 0 6px;
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: 1.8rem;
}

.subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.tab {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: rgba(8, 121, 215, 0.36);
  box-shadow: 0 0 0 3px rgba(8, 121, 215, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.message {
  min-height: 22px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.message.error {
  color: var(--rose);
}

.message.success {
  color: var(--green);
}

.profile {
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

@media (max-width: 980px) {
  .nav {
    top: 8px;
    margin-top: 8px;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav-links {
    display: none;
  }

  body.nav-open .nav-links {
    position: fixed;
    top: 76px;
    right: 18px;
    width: min(260px, calc(100vw - 36px));
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }

  body.nav-open .nav-links a {
    justify-content: flex-start;
  }

  .hero,
  .support-band {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
    min-height: auto;
  }

  .feature-grid,
  .home-links {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .nav {
    width: min(100% - 18px, 1180px);
    border-radius: 24px;
  }

  .nav-inner {
    align-items: flex-start;
  }

  .nav-right {
    margin-left: auto;
  }

  .admin-controls {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    justify-content: center;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }

  .nav-icons a[href*="github"] {
    display: none;
  }

  .page-main {
    padding-top: 32px;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.65rem;
  }

  .hero-copy,
  .page-copy {
    font-size: 1rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .update-item {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .card-actions .btn {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }
}
