:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #17243b;
  background: #f6f8fb;
  --ink: #17243b;
  --muted: #4f5f75;
  --brand: #2865e8;
  --brand-dark: #1b53cc;
  --soft: #eaf1ff;
  --line: #e0e7f1;
  --red: #bc283c;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
button { font: inherit; }
button:focus-visible, dialog:focus-visible { outline: 3px solid #4d7ef0; outline-offset: 4px; }
.site-header, main { max-width: 1336px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 74px); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand img { border-radius: 10px; }
.button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: wait; }
.primary { color: #fff; background: var(--brand); }
.primary:hover:not(:disabled) { background: var(--brand-dark); }
.secondary { color: #2b456f; background: #e9eef6; }
.secondary:hover:not(:disabled) { background: #dde7f8; }
.stop { color: var(--red); background: #fcf0f2; }
.stop:hover:not(:disabled) { background: #f9e2e7; }
.intro {
  min-height: min(700px, calc(100svh - 82px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  padding: clamp(40px, 7vw, 92px) 0;
}
.intro-copy { animation: enter 360ms ease both; }
.eyebrow { color: var(--brand-dark); font-size: 15px; font-weight: 800; margin: 0 0 12px; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; letter-spacing: -.045em; line-height: 1.15; font-size: clamp(40px, 5vw, 65px); }
.lede { color: var(--muted); font-size: clamp(16px, 1.7vw, 20px); margin: 24px 0 34px; line-height: 1.65; letter-spacing: -.025em; }
.intro .primary { min-height: 57px; font-size: 17px; padding-inline: 23px; }
.demonstration {
  padding: clamp(26px, 5.5vw, 80px) clamp(21px, 4vw, 55px);
  border-radius: clamp(22px, 3vw, 38px);
  background: #e9effc;
  overflow: hidden;
  animation: enter 440ms 40ms ease both;
}
.demo-window {
  border-radius: 17px;
  background: white;
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 18px 38px #34568d26;
}
.demo-chrome { display: flex; gap: 5px; padding: 11px 14px; background: #f0f4fa; }
.demo-chrome i { width: 5px; height: 5px; background: #b6c6dc; border-radius: 50%; }
.demo-sheet { padding: 11% 12% 9%; position: relative; }
.demo-heading { width: 44%; height: 9px; background: #526d9e; border-radius: 4px; margin-bottom: 11px; }
.demo-line { width: 61%; height: 5px; background: #d2dbeb; border-radius: 3px; }
.demo-graph { display: flex; gap: 9%; height: clamp(68px, 11vw, 156px); margin-top: 5%; align-items: flex-end; border-bottom: 1px solid #dde5f2; }
.demo-graph i { width: 12%; background: #d4e4ff; border-radius: 4px 4px 0 0; height: 35%; }
.demo-graph i:nth-child(2) { height: 54%; }
.demo-graph i:nth-child(3) { height: 48%; }
.demo-graph i:nth-child(4) { height: 69%; }
.demo-graph i:nth-child(5) { height: 92%; background: #3974ee; }
.demo-oval {
  position: absolute; right: 25%; top: 39%; width: 19%; height: 47%; border: clamp(2px, .45vw, 5px) solid #9248e5;
  border-radius: 50%; transform: rotate(17deg); animation: demo-ink 5s ease infinite;
}
.demo-pointer {
  position: absolute; right: -5%; top: 37%; width: 33%; height: clamp(10px, 2.6vw, 21px);
  border-radius: 50% 6px 6px 50%; rotate: -35deg; background: linear-gradient(#fff 20%, #e0e9fa);
  box-shadow: 0 4px 9px #294b852e; animation: demo-pencil 5s ease infinite;
}
.workspace { padding: 25px 0 60px; animation: enter 290ms ease both; }
.workspace-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 25px; }
.workspace h1 { font-size: clamp(32px, 4vw, 47px); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.workspace-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(248px, 300px); gap: 24px; align-items: start; }
.preview { min-width: 0; }
.projector { background: #0d1523; position: relative; aspect-ratio: 16 / 9; border-radius: 19px; overflow: hidden; }
.projector video { width: 100%; height: 100%; object-fit: contain; display: block; }
.projector canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.viewer-body { background: #0d1523; margin: 0; }
.viewer-body .projector { width: 100vw; height: 100vh; border-radius: 0; }
.viewer-controls { position: fixed; top: 16px; right: 16px; display: flex; gap: 8px; opacity: 0; transition: opacity 160ms; }
.viewer-controls:focus-within, .viewer-controls:hover, .viewer-controls.visible { opacity: 1; }
.viewer-empty { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; margin: auto; padding: 24px; text-align: center; pointer-events: none; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 12px 0 0; }
.feedback { color: var(--red); font-weight: 650; line-height: 1.55; margin: 15px 0 0; }
.connection { background: #fff; border: 1px solid var(--line); border-radius: 21px; padding: clamp(17px, 2vw, 25px); }
.connection h2 { margin: 14px 0 8px; font-size: 23px; line-height: 1.24; letter-spacing: -.05em; }
.connection p:not(.hint) { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.connection .button { width: 100%; margin-top: 17px; }
.status-badge { display: inline-block; max-width: 100%; border-radius: 99px; padding: 6px 10px; background: var(--soft); color: var(--brand-dark); font-weight: 750; font-size: 13px; }
.status-badge[data-state="live"] { background: #e1f5e9; color: #13633a; }
.qr-box { margin-top: 16px; text-align: center; }
.qr-box canvas { display: block; margin: 0 auto; height: auto; width: min(100%, 222px); image-rendering: pixelated; border: 1px solid var(--line); border-radius: 12px; }
.qr-time { font-variant-numeric: tabular-nums; }
#copy-fallback { width: 100%; margin-top: 8px; border: 1px solid var(--line); padding: 8px 9px; border-radius: 8px; color: var(--ink); font-size: 12px; }
#copy-fallback:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
dialog { border: 0; padding: 0; width: min(calc(100% - 25px), 530px); max-height: calc(100dvh - 25px); border-radius: 23px; color: var(--ink); }
dialog[open] { animation: enter 210ms ease both; }
dialog::backdrop { background: #12203b70; }
.dialog-inner { padding: clamp(21px, 5vw, 34px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-head h2 { margin: 0; letter-spacing: -.04em; font-size: 26px; }
.guide-demo { display: flex; align-items: center; justify-content: center; gap: clamp(17px, 6vw, 40px); min-height: 81px; border-radius: 17px; background: #eef3ff; margin-top: 20px; }
.guide-art { display: block; width: 37px; height: 33px; position: relative; animation: guide-step 6s ease infinite; color: var(--brand-dark); }
.art-screen { border: 3px solid; border-radius: 5px; height: 26px; }
.art-screen::after { content: ""; width: 18px; position: absolute; height: 3px; border-radius: 4px; background: currentColor; bottom: -9px; left: 7px; }
.art-qr { border: 3px dashed; border-radius: 5px; width: 33px; animation-delay: 2s; }
.art-qr::after { content: ""; background: currentColor; width: 12px; height: 12px; position: absolute; left: 8px; top: 8px; }
.art-ink { width: 37px; height: 19px; border: solid; border-width: 0 0 4px 4px; border-radius: 0 0 0 6px; rotate: -35deg; animation-delay: 4s; }
.guide-steps { margin: 10px 0; padding-left: 25px; }
.guide-steps li { padding: 12px 0 9px 5px; }
.guide-steps li::marker { color: var(--brand-dark); font-weight: 800; }
.guide-steps li p { color: var(--muted); line-height: 1.5; font-size: 14px; margin: 4px 0 0; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes demo-ink { 0%, 17% { clip-path: inset(100% 0 0); } 43%, 81% { clip-path: inset(0); } 100% { clip-path: inset(0); } }
@keyframes demo-pencil { 0%, 16% { translate: -10% 31%; } 47%, 80% { translate: 2% -3%; } }
@keyframes guide-step { 0%, 32%, 100% { opacity: .55; transform: translateY(0); } 13%, 23% { opacity: 1; transform: translateY(-5px); } }
@media (max-width: 820px) {
  .intro, .workspace-body { grid-template-columns: 1fr; }
  .intro { padding-top: 45px; gap: 37px; min-height: 0; }
  .demonstration { max-width: 560px; }
  .workspace-head { align-items: start; flex-direction: column; }
  .connection { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
