:root {
  --navy: #071a34;
  --navy-2: #0b2548;
  --ink: #10213b;
  --muted: #607089;
  --line: #dce4ef;
  --blue: #1054d8;
  --green: #45b977;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 36, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    Arial,
    sans-serif;
  line-height: 1.55;
  background: var(--white);
}

body.admin-page {
  min-height: 100vh;
  background: var(--soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 0 clamp(20px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 228, 239, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  background: linear-gradient(135deg, #0c55d9 0%, #0c55d9 48%, #35bc78 49%, #35bc78 100%);
  transform: skew(-9deg);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand strong {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
}

.brand small {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  color: #15213a;
  font-weight: 800;
}

.primary-nav a {
  position: relative;
  padding: 32px 0;
}

.primary-nav a::after {
  position: absolute;
  right: -16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  content: "";
  transform: translateY(-60%) rotate(45deg);
  opacity: 0.65;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(16, 84, 216, 0.24);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(69, 185, 119, 0.9);
  background: rgba(7, 26, 52, 0.24);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(620px, calc(100vh - 190px), 720px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 17, 35, 0.95) 0%, rgba(5, 17, 35, 0.88) 33%, rgba(5, 17, 35, 0.3) 62%, rgba(5, 17, 35, 0.06) 100%),
    linear-gradient(180deg, rgba(5, 17, 35, 0.08), rgba(5, 17, 35, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  padding: clamp(76px, 10vw, 118px) 0 86px clamp(20px, 5vw, 74px);
}

.eyebrow,
.kicker {
  position: relative;
  margin: 0 0 24px;
  color: #dce8ff;
  font-weight: 900;
}

.eyebrow {
  padding-left: 22px;
  font-size: clamp(16px, 1.8vw, 21px);
}

.eyebrow::before {
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.6em;
  content: "";
  background: var(--green);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.16;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-copy {
  width: min(600px, 100%);
  margin: 28px 0 42px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions .button {
  min-width: 210px;
  min-height: 64px;
  font-size: 18px;
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.support-strip article {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 120px;
  padding: 24px clamp(20px, 4vw, 54px);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.support-strip article:last-child {
  border-right: 0;
}

.line-icon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #98d970;
  font-size: 30px;
  font-weight: 900;
}

.support-strip strong {
  display: block;
  font-size: 20px;
}

.support-strip p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 5px;
  border-radius: 50%;
  background: #7ed957;
}

.section {
  padding: clamp(68px, 8vw, 112px) clamp(20px, 5vw, 74px);
}

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

.kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading > a {
  color: var(--muted);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  min-height: 230px;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(14, 36, 68, 0.03);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(16, 84, 216, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 19px;
  font-weight: 900;
  border: 2px solid rgba(16, 84, 216, 0.25);
  border-radius: 8px;
  background: #f7fbff;
}

.service-card h3,
.feature-list h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.service-card p,
.feature-list p,
.split-copy p,
.contact-band p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
  background: var(--soft);
}

.split-copy p:not(.kicker) {
  margin-top: 22px;
  font-size: 19px;
}

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

.metric-panel article {
  min-height: 180px;
  padding: 30px;
  color: var(--white);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--navy) 0%, #10345f 100%);
}

.metric-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.metric-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.feature-band {
  color: var(--white);
  background: var(--navy-2);
}

.feature-band .kicker,
.feature-band h2 {
  color: var(--white);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-list article {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.feature-list span {
  display: inline-block;
  margin-bottom: 28px;
  color: #7ed957;
  font-weight: 900;
}

.feature-list p {
  color: rgba(255, 255, 255, 0.68);
}

.notice-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 54px;
}

.notice-list {
  border-top: 2px solid var(--ink);
}

.notice-list a,
.notice-list button {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 74px;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
}

.notice-list button:hover strong,
.notice-list button:focus-visible strong {
  color: var(--blue);
}

.notice-list span {
  color: var(--blue);
  font-weight: 900;
}

.notice-list time {
  color: var(--muted);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 clamp(20px, 5vw, 74px) clamp(68px, 8vw, 108px);
  padding: clamp(34px, 5vw, 56px);
  color: var(--white);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 26, 52, 0.94), rgba(7, 26, 52, 0.84)),
    url("assets/data-center-hero.png") center / cover;
}

.contact-band .kicker,
.contact-band p {
  color: rgba(255, 255, 255, 0.74);
}

.inquiry-dialog {
  width: min(760px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(5, 17, 35, 0.34);
}

.inquiry-dialog::backdrop {
  background: rgba(5, 17, 35, 0.64);
  backdrop-filter: blur(5px);
}

.notice-dialog {
  width: min(720px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(5, 17, 35, 0.34);
}

.notice-dialog::backdrop {
  background: rgba(5, 17, 35, 0.64);
  backdrop-filter: blur(5px);
}

.notice-detail {
  padding: clamp(26px, 4vw, 42px);
}

.notice-detail time {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.notice-detail-content {
  min-height: 150px;
  padding: 24px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: pre-wrap;
}

.inquiry-form {
  padding: clamp(26px, 4vw, 42px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.dialog-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.form-grid textarea {
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 3px solid rgba(16, 84, 216, 0.16);
  border-color: var(--blue);
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.admin-section {
  background: var(--soft);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(110px, auto);
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-login label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.admin-login input {
  min-height: 50px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-login .button {
  min-width: 110px;
  white-space: nowrap;
  word-break: keep-all;
}

.admin-login-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-login-message.is-error {
  color: #c53131;
}

.admin-login-message.is-success {
  color: #1f8f55;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  color: var(--ink);
  font-size: 14px;
  background: #eef4fb;
}

.admin-table td {
  color: var(--muted);
}

.admin-table td:last-child {
  color: var(--ink);
  white-space: pre-wrap;
}

.admin-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-section.has-items .admin-empty {
  display: none;
}

.admin-section:not(.has-items) .admin-table-wrap {
  display: none;
}

.site-footer {
  padding: 46px clamp(20px, 5vw, 74px);
  color: rgba(255, 255, 255, 0.68);
  background: #061224;
}

.footer-brand {
  margin-bottom: 22px;
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

[hidden] {
  display: none !important;
}

.notice-loading {
  padding: 24px 0;
  color: var(--muted);
}

.admin-section {
  padding: clamp(30px, 4vw, 52px);
}

.admin-page .admin-section {
  min-height: 100vh;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-page .admin-shell:has(.admin-sidebar[hidden]) {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.admin-page .admin-shell:has(.admin-sidebar[hidden]) .admin-main {
  width: 100%;
}

.admin-sidebar,
.admin-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(14, 36, 68, 0.03);
}

.admin-sidebar {
  position: sticky;
  top: 112px;
  padding: 22px;
}

.admin-brand {
  margin-bottom: 24px;
}

.admin-tabs {
  display: grid;
  gap: 8px;
}

.admin-tab {
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.admin-tab.is-active,
.admin-tab:hover {
  color: var(--blue);
  border-color: rgba(16, 84, 216, 0.18);
  background: #f2f7ff;
}

.admin-main {
  padding: clamp(24px, 4vw, 36px);
}

.admin-heading {
  margin-bottom: 22px;
}

.admin-content {
  display: grid;
  gap: 24px;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: grid;
  gap: 22px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-panel-head h3,
.admin-box h4 {
  margin: 0;
}

.admin-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-grid article,
.admin-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.admin-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bar-chart {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.bar-row b {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.bar-row em {
  font-style: normal;
  text-align: right;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.compact-list strong {
  word-break: break-all;
}

.compact-list span,
.muted {
  color: var(--muted);
}

.admin-form {
  display: grid;
  grid-template-columns: 160px 180px auto;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  align-self: end;
  min-height: 48px;
}

.checkbox-label input {
  width: 18px;
  min-height: auto;
  margin-right: 8px;
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.admin-table-wrap {
  display: block;
}

.admin-section:not(.has-items) .admin-table-wrap {
  display: block;
}

.admin-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.row-actions button:hover {
  border-color: rgba(16, 84, 216, 0.35);
  color: var(--blue);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .site-header.nav-open .primary-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-bottom: 18px;
  }

  .site-header.nav-open .primary-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-header.nav-open .primary-nav a::after {
    right: 2px;
  }

  .support-strip,
  .service-grid,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .notice-section {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid,
  .admin-two-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 74px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brand small {
    font-size: 12px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 78px;
    padding-bottom: 76px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .support-strip,
  .service-grid,
  .metric-panel,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .support-strip article {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section-heading,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
  }

  .admin-tabs,
  .stats-grid,
  .admin-two-column,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-panel-head,
  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions .button {
    width: 100%;
  }

  .notice-list a,
  .notice-list button {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 0;
  }
}
