:root {
  color-scheme: light;
  --ink: #102027;
  --muted: #5d6b75;
  --line: #d8e2e6;
  --surface: #ffffff;
  --soft: #eef4f2;
  --teal: #0f766e;
  --teal-deep: #0b4f4a;
  --gold: #b7791f;
  --blue: #2f5f98;
  --danger: #b42318;
  --ok: #0f7a45;
  --shadow: 0 18px 45px rgba(16, 32, 39, 0.12);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #edf3f5;
  color: var(--ink);
}

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

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
}

.topnav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.install-button,
.primary-action,
.secondary-action,
.ghost-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.install-button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
}

.secondary-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-color: #b8ccd2;
  color: var(--teal-deep);
}

main {
  padding: 28px clamp(16px, 4vw, 54px) 72px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  min-height: 470px;
}

.hero-copy,
.command-panel,
.section,
.ops-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 62px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.command-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.panel-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.panel-header strong {
  color: var(--ink);
}

.metric-grid {
  display: grid;
  gap: 14px;
}

.metric-grid article {
  border: 1px solid var(--line);
  background: #f8fbfb;
  padding: 22px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.section {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 34px);
}

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

.section-heading h2,
.ops-card h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: #f8fbfb;
  padding: 22px;
}

.app-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #e6f2ef;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
}

.app-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.app-card p {
  color: var(--muted);
  line-height: 1.55;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8ccd2;
  border-radius: 8px;
  background: #fff;
  color: var(--teal-deep);
  font-weight: 900;
  padding: 0 14px;
}

.app-actions a:first-child {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.status-board,
.ops-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #f8fbfb;
  padding: 16px;
}

.status-row strong {
  display: block;
  margin-bottom: 3px;
}

.status-row small {
  color: var(--muted);
}

.status-pill {
  border-radius: 999px;
  font-weight: 900;
  padding: 7px 10px;
}

.status-pill.ok {
  background: #e7f5ee;
  color: var(--ok);
}

.status-pill.warn {
  background: #fff2e2;
  color: var(--gold);
}

.status-pill.down {
  background: #fee4e2;
  color: var(--danger);
}

.route-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.route-list div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.route-list dt {
  color: var(--muted);
  font-weight: 800;
}

.route-list dd {
  margin: 4px 0 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.install-section p {
  color: var(--muted);
  line-height: 1.7;
}

.install-steps {
  display: grid;
  gap: 12px;
}

.install-steps article,
.agent-grid article {
  border: 1px solid var(--line);
  background: #f8fbfb;
  padding: 20px;
}

.install-steps strong,
.install-steps span {
  display: block;
}

.install-steps span {
  margin-top: 6px;
  color: var(--muted);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.agent-grid h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.agent-grid p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
  }

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

  .app-grid,
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding: 18px 12px 44px;
  }

  .topbar {
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .topnav a {
    white-space: nowrap;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy,
  .command-panel,
  .section,
  .status-board,
  .ops-card {
    padding: 20px;
  }

  .app-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

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

  .status-row {
    grid-template-columns: 1fr;
  }
}
