@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2")
    format("woff2-variations");
}

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e9f2;
  --line-strong: #cfd8e6;
  --blue: #2f7ff5;
  --blue-strong: #1b64da;
  --blue-soft: #edf5ff;
  --green: #06a66a;
  --green-soft: #eafaf2;
  --red: #d92d20;
  --red-soft: #fff1f0;
  --dark: #101828;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f7af8, #08bb73 52%, #f3b33d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 25px rgba(47, 127, 245, 0.18);
}

.brand-bars {
  display: flex;
  align-items: flex-end;
  height: 25px;
  gap: 3px;
}

.brand-bars span {
  display: block;
  width: 7px;
  border-radius: 999px 999px 3px 3px;
  background: #fff;
}

.brand-bars span:nth-child(1) {
  height: 13px;
}

.brand-bars span:nth-child(2) {
  height: 20px;
}

.brand-bars span:nth-child(3) {
  height: 25px;
}

.brand-title {
  display: block;
  overflow: hidden;
  max-width: 230px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 920;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.pill,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: 0.16s ease;
  white-space: normal;
}

.pill:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: #b9d4ff;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 127, 245, 0.22);
}

.btn.dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.btn.soft {
  border-color: transparent;
  background: var(--blue-soft);
  color: var(--blue);
}

.btn.danger {
  border-color: transparent;
  background: var(--red-soft);
  color: var(--red);
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.landing {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(47, 127, 245, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(47, 127, 245, 0.08) 1px, transparent 1px),
    #f7faff;
  background-size: 48px 48px;
}

.landing-inner {
  position: relative;
  display: grid;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 70px;
  gap: 38px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
}

.landing-inner > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 920;
}

.hero-title {
  margin: 0;
  max-width: 650px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 920;
  word-break: keep-all;
}

.hero-title .accent {
  color: var(--blue);
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 610px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  max-width: 100%;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
}

.product-strip {
  display: flex;
  overflow: hidden;
  max-width: 100%;
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.strip-track {
  display: flex;
  min-width: max-content;
  gap: 10px;
  padding: 10px;
  animation: stripMove 22s linear infinite;
}

.strip-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.browser-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.16);
}

.browser-top {
  display: flex;
  align-items: center;
  height: 42px;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #28c840;
}

.browser-url {
  overflow: hidden;
  margin-left: 8px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-mock {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8fafc;
}

.mock-top {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.1fr 0.9fr;
}

.mock-panel {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.04);
}

.balance-panel {
  background: linear-gradient(135deg, #2f7ff5, #1d6ef0);
  color: #fff;
}

.mock-label {
  color: inherit;
  opacity: 0.75;
  font-size: 12px;
  font-weight: 800;
}

.mock-value {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 920;
}

.mock-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.mock-mini {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.login-screen {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 30px 16px;
}

.login-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 22px 0 8px;
  font-size: 30px;
  line-height: 1.18;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.field {
  display: block;
  margin-top: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #f9fbff;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field textarea {
  min-height: 110px;
  padding-top: 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  background: #fff;
}

.app-shell {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 20px;
}

.user-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9fbff;
  padding: 16px;
}

.user-card strong {
  display: block;
  font-size: 16px;
}

.user-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.side-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.side-nav button.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.content {
  min-width: 0;
  padding: 30px;
}

.mobile-tabs {
  display: none;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px;
}

.mobile-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-tabs button.active {
  background: var(--blue);
  color: #fff;
}

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

.section-head h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 920;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  word-break: keep-all;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.grid.main {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.metric {
  min-height: 132px;
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 14px;
  font-size: 34px;
  font-weight: 920;
}

.blue-panel {
  border: 0;
  background: linear-gradient(135deg, #2f7ff5, #1669ec);
  color: #fff;
}

.blue-panel p {
  color: rgba(255, 255, 255, 0.78);
}

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

.row {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 920;
}

.row-sub {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2f4f7;
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

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

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.amount {
  color: var(--dark);
  font-size: 15px;
  font-weight: 920;
  white-space: nowrap;
}

.amount.plus {
  color: var(--blue);
}

.catalog {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  text-align: left;
}

.product-card.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.product-card small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 920;
}

.product-card h3 {
  margin: 8px 0 6px;
  font-size: 17px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

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

.stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
  font-weight: 920;
}

.stepper span {
  display: grid;
  min-width: 70px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 920;
}

.cms-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.cms-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  grid-template-columns: 110px minmax(0, 1fr) 140px 112px;
}

.cms-row input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.cms-actions {
  display: flex;
  gap: 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  transform: translateY(20px);
  border-radius: 16px;
  background: #101828;
  padding: 14px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes stripMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .landing-inner {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    display: none;
  }

  .mobile-tabs {
    display: flex;
  }

  .grid.main,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    width: min(100% - 28px, 1240px);
  }

  .top-actions .pill,
  .top-actions .btn:not(.primary) {
    display: none;
  }

  .top-actions .btn.primary {
    width: 98px;
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .icon-button {
    display: grid;
    place-items: center;
  }

  .landing-inner {
    width: min(100% - 28px, 1240px);
    padding: 42px 0 46px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .mock-top,
  .mock-grid,
  .grid.cols-2,
  .catalog {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 18px 14px 40px;
  }

  .section-head {
    display: block;
  }

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

  .amount {
    text-align: left;
  }

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

  .login-card {
    padding: 22px;
  }
}
