:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  --ink: #1d1d1f;
  --muted: #5f6470;
  --secondary: #6e7480;
  --blue: #147ef5;
  --blue-deep: #0d65cf;
  --glass: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .78);
}

* { box-sizing: border-box; }

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: #e9edf4;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: '';
  background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.92), transparent 40%), linear-gradient(135deg, #f4f6fa 0%, #e7ecf4 48%, #dde6f2 100%);
}

.glass-surface {
  --glass-x: 50%;
  --glass-y: 20%;
  --glass-stretch: 1;
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .34);
  box-shadow: 0 22px 60px rgba(63, 79, 107, .12), inset 0 1px 0 rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  corner-shape: squircle;
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow .35s ease, border-color .35s ease, transform .25s ease;
}

.glass-surface::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 155px 96px at var(--glass-x) var(--glass-y), rgba(255,255,255,.72), transparent 72%);
  transform: scaleX(var(--glass-stretch));
  transition: opacity .65s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}

.glass-surface.is-hovered {
  border-color: rgba(255,255,255,.94);
  box-shadow: 0 26px 72px rgba(63, 79, 107, .16), inset 0 1px 0 rgba(255,255,255,.9);
}

.glass-surface.is-hovered::after { opacity: .82; }

.glass-surface.is-pressed {
  transform: scale(.992);
  box-shadow: 0 14px 35px rgba(63, 79, 107, .12), inset 0 2px 8px rgba(83, 104, 138, .1), inset 0 1px 0 rgba(255,255,255,.8);
}

.glass-surface.is-pressed::after { opacity: .98; transform: scaleX(1.35); }

.button, .copy-button, .language-picker select { position: relative; overflow: hidden; }
.button::after, .copy-button::after, .language-picker select::after {
  position: absolute;
  inset: -50%;
  content: '';
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.6) 48%, transparent 62%);
  transform: translateX(-55%) skewX(-16deg);
}
.button.is-clicked::after, .copy-button.is-clicked::after, .language-picker select.is-clicked::after { animation: liquid-sheen .7s cubic-bezier(.2,.8,.2,1); }
@keyframes liquid-sheen { 0% { opacity: 0; transform: translateX(-55%) skewX(-16deg); } 25% { opacity: .8; } 100% { opacity: 0; transform: translateX(55%) skewX(-16deg); } }

.topbar {
  display: flex;
  width: min(100% - 40px, 1120px);
  margin: 20px auto 0;
  padding: 12px 14px 12px 18px;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
}

.brand { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.018em; line-height: 22px; text-decoration: none; }
.language-picker { position: relative; }
.language-picker::after { position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; content: ''; border-right: 1.5px solid #556176; border-bottom: 1.5px solid #556176; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.language-picker select { appearance: none; min-width: 86px; padding: 9px 28px 9px 12px; color: #3b3d42; border: 1px solid rgba(255,255,255,.72); border-radius: 14px; outline: none; background: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.68); font: inherit; font-size: 13px; font-weight: 500; letter-spacing: -.01em; line-height: 18px; cursor: pointer; corner-shape: squircle; }

.page-shell { display: grid; min-height: calc(100svh - 120px); padding: 40px 20px 24px; place-items: center; }
.error-card { position: relative; width: min(100%, 530px); padding: 54px 52px 30px; overflow: hidden; border-radius: 34px; text-align: center; background: rgba(255,255,255,.27); }
.error-icon { position: relative; display: grid; width: 104px; height: 104px; margin: 0 auto 18px; place-items: center; }
.error-icon svg { width: 60px; height: 60px; fill: none; stroke: #e66b52; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.error-icon text { fill: #e66b52; stroke: none; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; font-size: 17px; font-weight: 700; }
.eyebrow { margin: 0 0 12px; color: var(--secondary); font-size: 13px; font-weight: 600; letter-spacing: .035em; line-height: 18px; }
h1 { margin: 0; color: var(--ink); font-size: clamp(32px, 5vw, 42px); font-weight: 700; letter-spacing: -.045em; line-height: 1.14; }
.lede { max-width: 360px; margin: 18px auto 0; color: var(--muted); font-size: 17px; font-weight: 400; letter-spacing: -.018em; line-height: 1.52; }
.actions { display: flex; gap: 10px; margin-top: 30px; justify-content: center; }
.button, .copy-button { min-height: 46px; border-radius: 15px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.018em; line-height: 21px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; corner-shape: squircle; }
.button { flex: 1; padding: 0 18px; }
.button:hover, .copy-button:hover { transform: translateY(-1px); }
.button:active, .copy-button:active { transform: scale(.98); }
.button-primary { color: #fff; border: 1px solid rgba(255,255,255,.52); background: rgba(20,126,245,.78); box-shadow: 0 10px 24px rgba(20,126,245,.2), inset 0 1px 0 rgba(255,255,255,.5); }
.button-secondary { color: #26334c; border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.68); }
.details { display: flex; margin-top: 22px; padding: 13px 14px 13px 17px; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.72); border-radius: 18px; background: rgba(231,237,247,.32); text-align: left; corner-shape: squircle; }
.details-label { display: block; margin-bottom: 4px; color: var(--secondary); font-size: 11px; font-weight: 600; letter-spacing: .045em; line-height: 15px; text-transform: uppercase; }
code { color: #3b414d; font-family: 'SF Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .01em; line-height: 16px; }
.copy-button { min-height: auto; padding: 8px 11px; color: var(--blue-deep); border: 0; background: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; letter-spacing: -.01em; line-height: 18px; }
.copy-status { min-height: 17px; margin: 8px 0 -2px; color: #23734b; font-size: 12px; font-weight: 500; letter-spacing: -.01em; line-height: 17px; }
.home-shell { padding-top: 34px; }
.home-card { width: min(100%, 920px); padding: 46px 46px 42px; border-radius: 34px; background: rgba(255,255,255,.25); }
.home-heading { max-width: 620px; margin: 0 auto 30px; text-align: center; }
.home-heading .lede { max-width: 460px; }
.shortcut-grid { --desktop-columns: 4; display: grid; grid-template-columns: repeat(var(--desktop-columns), minmax(0, 1fr)); gap: 12px; }
.shortcut { display: flex; min-height: 112px; padding: 18px 16px; align-items: center; gap: 12px; color: var(--ink); border-radius: 22px; text-decoration: none; background: rgba(255,255,255,.24); }
.shortcut:hover { transform: translateY(-2px); }
.shortcut:focus-visible { transform: translateY(-1px); }
.shortcut-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: var(--shortcut-color, #147ef5); }
.shortcut-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.25; }
.shortcut-icon circle { fill: currentColor; stroke: none; }
.shortcut-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.shortcut-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; letter-spacing: -.025em; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-copy small { overflow: hidden; color: var(--secondary); font-size: 11px; font-weight: 500; letter-spacing: -.01em; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-arrow { align-self: flex-start; color: rgba(85, 94, 111, .62); font-size: 18px; line-height: 18px; transition: transform .25s ease, color .25s ease; }
.shortcut:hover .shortcut-arrow { color: var(--shortcut-color, var(--blue)); transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid rgba(20,126,245,.48); outline-offset: 3px; }
@media (max-width: 900px) { .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .topbar { width: calc(100% - 24px); margin-top: 12px; } .page-shell { min-height: calc(100svh - 92px); padding: 28px 12px 20px; } .error-card { padding: 54px 22px 24px; border-radius: 28px; } .home-card { padding: 36px 18px 24px; border-radius: 28px; } .home-shell { padding-top: 24px; } .shortcut-grid { grid-template-columns: 1fr; gap: 10px; } .shortcut { min-height: 82px; padding: 14px; } .actions { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
