@font-face {
  font-family: 'Pretendard Variable';
  src: url('/assets/PretendardVariable.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --line: #e6e6eb;
  --accent-a: #2f6bff;
  --accent-b: #8a4dff;
  --accent: linear-gradient(100deg, var(--accent-a) 0%, var(--accent-b) 100%);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 12px 40px -12px rgb(0 0 0 / 12%);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.011em;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 3px; }

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--line); }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  min-height: 68px;
  padding-block: 10px;
}
.brand, .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  min-height: 44px;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}
.brand img { display: block; flex: none; }
.nav-actions { flex-wrap: wrap; gap: 4px 10px; }
.portfolio {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.portfolio:hover { text-decoration: underline; text-underline-offset: 3px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-a) 99%, #000);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out);
}
.pill:hover { background: #1f5af0; }
.pill:active { background: #1947c4; }
.pill:disabled { opacity: 0.6; cursor: default; }
.nav .pill { padding-inline: 11px; font-size: 12px; white-space: nowrap; }
.pill-quiet { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.pill-quiet:hover { background: var(--bg-alt); }
.pill-quiet:active { background: var(--line); }

.intro {
  display: grid;
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  padding-block: clamp(38px, 6.6vw, 94px);
}
h1 {
  font-size: clamp(46px, 6.45vw, 94px);
  font-weight: 820;
  line-height: 0.99;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}
.intro-copy h1 { max-width: 760px; text-wrap: balance; }
.intro-copy p {
  max-width: 470px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
}
h2 {
  font-size: clamp(29px, 3.6vw, 50px);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.pin-panel {
  min-width: 0;
  padding: clamp(18px, 2.55vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.pin-panel h2 { font-size: clamp(23px, 2.35vw, 33px); letter-spacing: -0.044em; }
.pin-panel p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.pin-panel .form-error {
  margin-top: 12px;
  padding-inline-start: 9px;
  border-inline-start: 3px solid var(--accent-a);
  color: var(--ink);
  font-weight: 650;
}
.pin-form {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}
.pin-form label { font-size: 14px; font-weight: 650; }
.pin-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1.3vw, 8px);
}
.pin-field, .pin-digit {
  width: 100%;
  min-width: 0;
  height: 49px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pin-field { max-width: 15rem; padding-inline: 12px; letter-spacing: 0.22em; }
.pin-digit { padding: 0; text-align: center; }
.pin-form .pill { justify-self: start; margin-top: 6px; }

.showcase {
  padding-block: clamp(34px, 5vw, 69px) clamp(48px, 7vw, 96px);
  background: var(--bg-alt);
}
.showcase h2 { margin-bottom: clamp(19px, 2.5vw, 32px); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: clamp(18px, 2.1vw, 27px);
  overflow-wrap: anywhere;
}
.trade { color: var(--ink-2); font-size: 14px; font-weight: 650; }
.card h3 { font-size: 34px; font-weight: 790; line-height: 1.04; letter-spacing: -0.048em; }
.description { margin-top: 3px; margin-bottom: 13px; color: var(--ink-2); font-size: 16px; }
.card .pill { margin-top: auto; }
.card .pill:focus-visible { outline-offset: 3px; }
.empty { color: var(--ink-2); }

.private-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-block: clamp(38px, 6vw, 82px);
}
.private-intro h1, .error-page h1 { font-size: clamp(41px, 5.7vw, 78px); }
.private-main .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); }
.error-page { padding-block: clamp(45px, 8vw, 100px); }
.error-page .pill { margin-top: 23px; }
.sample { min-height: 100vh; padding-block: clamp(32px, 6vw, 80px); }
.sample .trade { margin-bottom: 7px; }
.sample h1 { font-size: clamp(46px, 8vw, 82px); }
.sample .preview {
  max-width: 840px;
  margin-block: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

@media (width < 480px) {
  .nav { flex-wrap: nowrap; }
  .nav .portfolio { display: none; }
}
@media (min-width: 760px) {
  .brand { font-size: 16px; gap: 10px; }
  .nav-actions { gap: 18px; }
  .portfolio { font-size: 15px; }
  .nav .pill { padding-inline: 18px; font-size: 14px; }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(310px, 0.55fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}
