:root {
  --bg: #070b16;
  --ink: #e8eefb;
  --muted: #9aa7c2;
  --faint: #5f6d8c;
  --line: rgb(148 170 214 / .16);
  --blue: #3b82f6;
  --err: #f87171;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 배경: 점 격자 + 번진 빛 + 흐린 파이프라인 ---- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #0f1830 0%, #0a1122 45%, #060913 100%); }
.grid { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgb(148 170 214 / .16) 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 30%, transparent 85%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.g1 { width: 46vw; height: 46vw; left: 27vw; top: -8vw; background: rgb(37 99 235 / .16); }
.g2 { width: 40vw; height: 30vw; right: -10vw; bottom: -12vw; background: rgb(56 189 248 / .07); }
.vignette { position: absolute; inset: 0; background: radial-gradient(100% 80% at 50% 45%, transparent 55%, rgb(3 6 14 / .75)); }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { stroke: rgb(96 165 250 / .3); stroke-width: 1.4; stroke-dasharray: 4 7; animation: flow 3.5s linear infinite; }
.joint { fill: #0b1224; stroke: rgb(96 165 250 / .45); stroke-width: 1.4; }
.node rect { fill: rgb(18 27 48 / .55); stroke: rgb(148 170 214 / .14); stroke-width: 1; }
.node svg { stroke: #8fa3c7; opacity: .75; }
.node text { fill: #8193b5; stroke: none; font: 500 14px var(--font); text-anchor: middle; }
.node { opacity: .72; animation: breathe 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes flow { to { stroke-dashoffset: -44; } }
@keyframes breathe { 0%, 100% { opacity: .6; } 50% { opacity: .9; } }

/* ---- 모서리 문구 ---- */
.top { position: fixed; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 30px 54px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 19px; letter-spacing: .14em; }
.logo { width: 44px; height: 40px; }
.logo path { stroke: none; }
.tag, .ideas, .corner { color: #7a88a6; font-size: 11px; letter-spacing: .32em; font-weight: 500; }
.tag { display: flex; align-items: center; gap: 18px; }
.tag i, .corner i { display: inline-block; width: 26px; height: 1px; background: #54627f; vertical-align: middle; }
.ideas { position: fixed; z-index: 1; right: 54px; top: 16vh; line-height: 2; color: #5f6d8c; }
.corner { position: fixed; z-index: 1; bottom: 42px; line-height: 1.9; color: #5f6d8c; }
.corner.left { left: 54px; }
.corner.right { right: 54px; text-align: right; }
.corner.right i { margin-right: 18px; }

/* ---- 왼쪽 소개 ---- */
.hero { position: fixed; z-index: 1; left: 54px; top: 50%; transform: translateY(-38%); width: min(30vw, 440px); }
.eyebrow { margin: 0 0 30px; color: #8391ad; font-size: 13px; letter-spacing: .42em; line-height: 2; }
.hero h1 { margin: 0; font-size: clamp(30px, 2.75vw, 42px); line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #4f8ff7; }
.hero hr { width: 34px; margin: 30px 0 26px; border: 0; border-top: 2px solid #aab6cf; }
.lead { margin: 0 0 30px; color: #b3bdd1; font-size: 16px; line-height: 1.65; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feats li { display: flex; align-items: center; gap: 16px; color: #d3dbea; font-size: 15px; }
.feats b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: rgb(30 44 72 / .75); border: 1px solid var(--line); color: #7fb0ff; }
.feats b svg { width: 20px; height: 20px; }

/* ---- 카드 ---- */
.wrap { position: relative; z-index: 3; min-height: 100vh; display: grid; place-items: center; padding: 110px 16px 90px; }
.card {
  width: min(534px, 100%); padding: 38px 40px 30px; border-radius: 22px;
  background: linear-gradient(180deg, rgb(26 36 60 / .78), rgb(15 22 40 / .82));
  border: 1px solid rgb(148 170 214 / .22);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .65), inset 0 1px 0 rgb(255 255 255 / .05);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  text-align: center;
}
.lock { width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 18px;
  background: rgb(10 16 30 / .7); border: 1px solid rgb(148 170 214 / .28); color: #dbe5f7; }
.lock svg { width: 34px; height: 34px; }
.card h2 { margin: 0 0 10px; font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.sub { margin: 0 0 32px; color: #aab5cb; font-size: 19px; }
.card label[for] { display: block; text-align: left; font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.field { position: relative; }
.field + label[for] { margin-top: 20px !important; }
#id { padding-right: 22px; letter-spacing: .01em; }
.field input {
  width: 100%; height: 62px; padding: 0 58px 0 22px; border-radius: 12px;
  background: rgb(7 11 22 / .7); border: 1px solid rgb(148 170 214 / .26); color: var(--ink);
  font: 500 18px/1 var(--font); letter-spacing: .08em; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(59 130 246 / .18); }
.eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #8a97b3; cursor: pointer; }
.eye:hover { color: #dbe5f7; background: rgb(148 170 214 / .08); }
.eye:focus-visible { outline: 2px solid var(--blue); }
.eye svg { width: 22px; height: 22px; }
.eye .on, .eye[aria-pressed="true"] .off { display: none; }
.eye[aria-pressed="true"] .on { display: block; }
.err { margin: 12px 0 0; text-align: left; color: var(--err); font-size: 14px; }
.check { display: flex; align-items: center; gap: 12px; margin: 22px 0 32px; font-size: 16px; color: #d3dbea; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid rgb(148 170 214 / .35); background: rgb(7 11 22 / .6); transition: background .15s, border-color .15s; }
.check .box svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.6; opacity: 0; }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgb(59 130 246 / .3); }
.go {
  width: 100%; height: 64px; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: #fff; font: 600 20px var(--font);
  background: linear-gradient(90deg, #2f6fe4, #3b82f6 55%, #2f6fe4);
  box-shadow: 0 12px 30px -10px rgb(37 99 235 / .8), inset 0 1px 0 rgb(255 255 255 / .18);
  transition: filter .15s, transform .15s;
}
.go svg { width: 24px; height: 24px; stroke-width: 2.2; transition: transform .2s; }
.go:hover { filter: brightness(1.08); }
.go:hover svg { transform: translateX(3px); }
.go:active { transform: translateY(1px); }
.go:focus-visible { outline: 2px solid #bcd4ff; outline-offset: 3px; }
.busy .go { filter: saturate(.6) brightness(.85); cursor: progress; }
.busy .go svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; padding-top: 30px;
  border-top: 1px solid rgb(148 170 214 / .16); color: #a3aec4; font-size: 16px; }
.foot svg { width: 20px; height: 20px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---- 좁은 화면 ---- */
@media (max-width: 1280px) {
  .hero { width: 26vw; }
  .hero h1 { font-size: 28px; }
  .ideas { display: none; }
}
@media (max-width: 1100px) {
  .hero, .corner, .flow { display: none; }
}
@media (max-width: 600px) {
  .top { padding: 20px 16px; }
  .tag { display: none; }
  .brand { font-size: 15px; gap: 10px; }
  .logo { width: 34px; height: 31px; }
  .wrap { padding: 88px 16px 32px; align-items: start; }
  .card { padding: 30px 22px 24px; border-radius: 18px; }
  .lock { width: 62px; height: 62px; margin-bottom: 18px; }
  .card h2 { font-size: 30px; }
  .sub { font-size: 16px; margin-bottom: 28px; }
  .field input, .go { height: 56px; }
  .foot { font-size: 14px; margin-top: 26px; padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .wire, .node, .shake, .busy .go svg { animation: none; } }
