@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --paper: #eef3f8;
  --paper-strong: #ffffff;
  --ink: #111827;
  --ink-soft: #475467;
  --line: rgba(17, 24, 39, 0.08);
  --teal: #2152ff;
  --teal-deep: #1639c7;
  --clay: #1cb5a3;
  --gold: #d9ecff;
  --moss: #6b7280;
  --sky: #edf6ff;
  --danger: #c2414c;
  --ok: #0f8a6b;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(33, 82, 255, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(28, 181, 163, 0.08), transparent 26%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f5 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black 45%, transparent 100%);
}

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

img {
  max-width: 100%;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--teal), var(--clay));
  box-shadow: 0 12px 28px rgba(33, 82, 255, 0.18);
}

.brand-copy strong,
.hero-copy h1,
.section-title h2,
.paper-title,
.stat-card strong,
.kicker,
.mini-title,
.product-card strong,
.ledger-title {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.brand-copy span,
.eyebrow,
.muted,
.meta-list span,
.table-note,
.field-hint,
.tiny {
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: rgba(17, 24, 39, 0.04);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(33, 82, 255, 0.1);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-card,
.panel,
.paper,
.stat-card,
.product-card,
.timeline-card,
.export-card,
.ledger-preview,
.login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 82, 255, 0.16), transparent 64%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: rgba(33, 82, 255, 0.08);
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 58ch;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.cta-row,
.chip-row,
.meta-list,
.tag-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--clay));
  box-shadow: 0 14px 28px rgba(33, 82, 255, 0.18);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.88);
}

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

.hero-side {
  display: grid;
  gap: 18px;
}

.login-card,
.panel,
.paper,
.timeline-card,
.export-card,
.ledger-preview {
  padding: 26px;
}

.login-card h3,
.panel h3,
.paper h3,
.export-card h3,
.ledger-preview h3,
.timeline-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.login-card p,
.panel p,
.paper p,
.timeline-card p,
.export-card p,
.ledger-preview p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
}

.field-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.field,
.textarea,
.select,
.qty,
.chip,
.status-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
}

.field,
.select {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
}

.textarea {
  min-height: 92px;
  padding: 14px;
}

.chip,
.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.badge {
  color: var(--teal-deep);
  background: rgba(33, 82, 255, 0.08);
}

.chip {
  color: var(--teal-deep);
  background: rgba(33, 82, 255, 0.06);
}

.status-pill.ok {
  color: var(--ok);
  background: rgba(15, 138, 107, 0.12);
}

.status-pill.wait {
  color: #9a6700;
  background: rgba(245, 158, 11, 0.16);
}

.status-pill.warn {
  color: var(--danger);
  background: rgba(194, 65, 76, 0.12);
}

.section {
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.panel {
  display: grid;
  gap: 14px;
}

.panel ul,
.paper ul,
.timeline {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.paper {
  position: relative;
  overflow: hidden;
}

.paper::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--clay));
}

.paper-title,
.ledger-title {
  margin: 0;
  font-size: 1.65rem;
}

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

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.stat-card small {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 20px;
}

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

.product-card {
  padding: 18px;
  border: 1px solid rgba(33, 82, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 255, 0.78));
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.06);
}

.product-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.product-card .price {
  color: var(--teal-deep);
  font-weight: 800;
}

.qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 40px;
  margin-top: 14px;
  font-weight: 700;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

th {
  position: sticky;
  top: 0;
  background: rgba(246, 248, 251, 0.98);
  color: var(--ink);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

.table-compact th,
.table-compact td {
  padding: 10px 12px;
  font-size: 0.93rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--teal);
}

.notice {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(33, 82, 255, 0.08);
  color: #1f3a8a;
}

.timeline-card {
  display: grid;
  gap: 14px;
}

.timeline {
  list-style: none;
  padding: 0;
}

.timeline li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--clay));
}

.two-columns,
.three-columns {
  display: grid;
  gap: 20px;
}

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

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

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

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(17, 24, 39, 0.12);
}

.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-row strong {
  font-size: 1.08rem;
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.receipt-sheet {
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    repeating-linear-gradient(0deg, rgba(17, 24, 39, 0.015), rgba(17, 24, 39, 0.015) 1px, transparent 1px, transparent 28px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

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

.stamp {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(33, 82, 255, 0.25);
  border-radius: 50%;
  color: var(--teal-deep);
  font-weight: 700;
  transform: rotate(-12deg);
}

.sheet-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.meta-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(237, 246, 255, 0.75);
}

.meta-box strong {
  display: block;
  margin-bottom: 6px;
}

.ledger-preview {
  overflow: hidden;
}

.ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ledger-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ledger-band .chip {
  justify-content: space-between;
  min-height: 58px;
}

.export-card {
  display: grid;
  gap: 16px;
}

.tag-row .chip {
  background: rgba(33, 82, 255, 0.06);
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.account-item strong {
  display: block;
}

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

.flow-step {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--clay));
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(237, 246, 255, 0.82);
}

.reveal {
  animation: reveal 0.7s ease both;
}

.reveal.delay-1 {
  animation-delay: 0.12s;
}

.reveal.delay-2 {
  animation-delay: 0.24s;
}

.reveal.delay-3 {
  animation-delay: 0.36s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .paper-layout {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .product-grid,
  .flow-grid,
  .stat-grid,
  .three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

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

  .hero-card,
  .login-card,
  .panel,
  .paper,
  .timeline-card,
  .export-card,
  .ledger-preview,
  .receipt-sheet {
    padding: 22px;
  }

  .grid-2,
  .grid-3,
  .product-grid,
  .flow-grid,
  .stat-grid,
  .two-columns,
  .three-columns,
  .sheet-meta,
  .ledger-band {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .receipt-head,
  .account-item,
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}