/* KRX Client site: dark, glassy, the KRX pink-violet glow */
:root {
  --bg: #0b0a10;
  --bg2: #121019;
  --card: rgba(255, 255, 255, 0.045);
  --card-b: rgba(255, 255, 255, 0.09);
  --text: #f4f2fa;
  --muted: rgba(236, 232, 248, 0.62);
  --dim: rgba(236, 232, 248, 0.4);
  --pink: #ff7eb6;
  --violet: #b388ff;
  --gold: #ffc940;
  --green: #3ddc84;
  --red: #ff5d6c;
  --grad: linear-gradient(120deg, var(--pink), var(--violet));
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---------- background glow ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 620px; height: 520px; left: -120px; top: -160px; background: #ff4f9d; }
.aurora span:nth-child(2) { width: 560px; height: 520px; right: -140px; top: 140px; background: #7a4dff; animation-duration: 28s; }
.aurora span:nth-child(3) { width: 520px; height: 420px; left: 30%; top: 70%; background: #3b2a8f; animation-duration: 32s; opacity: 0.35; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora span, .stage img, .ring { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  max-width: 1160px; margin: 12px auto 0; padding: 10px 12px 10px 16px;
  border-radius: 16px; background: rgba(14, 12, 20, 0.72); border: 1px solid var(--card-b);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-weight: 800; letter-spacing: 0.02em; }
.brand span { color: var(--muted); font-weight: 500; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: color 0.15s, background 0.15s; }
.links a:hover, .links a.on { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 13px; border: 1px solid var(--card-b);
  background: rgba(255, 255, 255, 0.07); color: var(--text); font: 700 14px Inter, sans-serif; cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.11); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.glow { border: 0; background: var(--grad); color: #160b1e; box-shadow: 0 12px 34px -12px rgba(255, 126, 182, 0.85); }
.btn.glow:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn.big { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 15px; }
.btn.wide { width: 100%; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; min-height: 600px; padding: 40px 0 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--card-b); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { margin: 18px 0 16px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.hero-art { position: relative; height: 520px; }
.stage { position: absolute; inset: 0; }
.ring { position: absolute; left: 50%; top: 52%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(179, 136, 255, 0.35), transparent 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.06); } }
.stage img { position: absolute; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }
.stage .h1 { width: 62%; left: 19%; top: 2%; z-index: 1; }
.stage .h2 { width: 30%; left: 0; top: 46%; z-index: 2; animation-delay: -1.5s; }
.stage .h3 { width: 36%; right: 0; top: 52%; z-index: 2; animation-delay: -3s; }
.stage .h4 { width: 22%; right: 4%; top: 2%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 30px; }
.strip div { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--card-b); text-align: center; }
.strip b { display: block; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: var(--muted); font-size: 13.5px; }

/* ---------- sections ---------- */
.section { padding: 70px 0 10px; scroll-margin-top: 80px; }
.section.narrow { max-width: 780px; margin: 0 auto; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.sub { color: var(--muted); margin: 10px 0 28px; max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--card-b); border-radius: var(--r); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.grid.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card.f { padding: 20px; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.card.f:hover { transform: translateY(-3px); border-color: rgba(255, 126, 182, 0.35); background: rgba(255, 255, 255, 0.06); }
.card.f h3 { font-size: 16.5px; margin: 12px 0 6px; }
.card.f p { color: var(--muted); font-size: 14px; }
.ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-style: normal; font-size: 22px;
  background: linear-gradient(135deg, rgba(255, 126, 182, 0.2), rgba(179, 136, 255, 0.2)); border: 1px solid rgba(255, 255, 255, 0.08); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: #ffb3d6; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- wardrobe ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 15px; background: rgba(14, 12, 20, 0.6); border: 1px solid var(--card-b); margin-bottom: 18px; }
.tabs button { border: 0; background: none; color: var(--muted); font: 600 13.5px Inter, sans-serif; padding: 8px 14px; border-radius: 11px; cursor: pointer; transition: color 0.15s, background 0.2s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: #160b1e; background: var(--grad); box-shadow: 0 6px 20px -8px rgba(255, 126, 182, 0.9); }
.ward { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ward figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--card-b);
  background: radial-gradient(90% 90% at 50% 35%, rgba(179, 136, 255, 0.22), rgba(13, 12, 20, 0.9) 75%); transition: transform 0.2s, border-color 0.2s; animation: pop 0.35s both; }
.ward figure:hover { transform: translateY(-3px) scale(1.02); border-color: rgba(255, 126, 182, 0.45); }
.ward img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
.ward figcaption { position: absolute; left: 10px; bottom: 9px; right: 10px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ---------- compare ---------- */
.compare { padding: 8px 0; max-width: 820px; }
.compare .row { display: grid; grid-template-columns: 1fr 110px 110px; align-items: center; gap: 10px; padding: 13px 22px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.compare .row.head { border-top: 0; font-size: 13.5px; }
.compare .row b { text-align: center; color: var(--muted); }
.compare .row b.plus { color: var(--gold); }
.compare .row span { color: var(--muted); font-size: 14.5px; }
.compare i { justify-self: center; width: 22px; height: 22px; border-radius: 50%; position: relative; }
.compare i.yes { background: rgba(61, 220, 132, 0.16); }
.compare i.yes::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.compare i.no::after { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 2.5px; border-radius: 2px; background: var(--dim); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; scroll-margin-top: 90px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.plan:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.plan .big { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.plan .big b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(135deg, #fff, #d9c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .big span { font-size: 16px; font-weight: 700; color: var(--muted); }
.plan .note { color: var(--muted); font-size: 13.5px; min-height: 21px; }
.plan .price { margin: 12px 0 16px; font-size: 14px; color: var(--muted); }
.plan .price b { font-size: 26px; color: var(--text); font-weight: 800; }
.plan .btn[disabled] { opacity: 0.55; cursor: default; filter: saturate(0.6); }
.plan.best .big b { background: linear-gradient(135deg, #fff3c4, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.plan .btn { margin-top: auto; }
.plan.best { border-color: rgba(255, 201, 64, 0.55); background: linear-gradient(160deg, rgba(255, 201, 64, 0.14), rgba(255, 126, 182, 0.05) 60%); box-shadow: 0 24px 60px -30px rgba(255, 201, 64, 0.6); }
.plan.best .btn { background: linear-gradient(135deg, #ffe08a, var(--gold)); color: #1b1306; border: 0; }
.plan .tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; color: #1b1306; background: var(--gold); }
.plan.target { animation: flash 1.6s ease 2; }
@keyframes flash { 40% { box-shadow: 0 0 0 3px rgba(255, 126, 182, 0.7), 0 20px 60px -20px rgba(255, 126, 182, 0.8); } }
.trial-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 20px 22px;
  background: linear-gradient(120deg, rgba(255, 126, 182, 0.12), rgba(179, 136, 255, 0.12)); }
.trial-banner p { color: var(--muted); font-size: 14px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { padding: 20px; }
.steps i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-style: normal; font-weight: 800; color: #160b1e; background: var(--grad); margin-bottom: 12px; }
.steps b { display: block; font-size: 16px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 14px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { border-radius: 15px; background: var(--card); border: 1px solid var(--card-b); padding: 0 20px; transition: background 0.2s; }
.faq details[open] { background: rgba(255, 255, 255, 0.06); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 20px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 18px; }

/* ---------- footer ---------- */
.foot { max-width: 1160px; margin: 90px auto 0; padding: 26px 20px 40px; border-top: 1px solid rgba(255, 255, 255, 0.06); display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.foot p { max-width: 640px; text-align: right; }
.brand.small { font-size: 14px; }
.brand.small img { width: 24px; height: 24px; }

/* ---------- cabinet ---------- */
#cabinet { padding-top: 40px; min-height: 70vh; }
.auth { max-width: 420px; margin: 40px auto 0; padding: 30px; text-align: center; }
.auth-logo { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; box-shadow: 0 10px 40px -10px rgba(255, 126, 182, 0.8); }
.auth h2 { font-size: 26px; margin-bottom: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, 0.3); margin-bottom: 18px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 14px Inter, sans-serif; padding: 9px; border-radius: 10px; cursor: pointer; }
.seg button.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
form label { display: block; text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
input {
  display: block; width: 100%; height: 46px; margin-top: 6px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.35); color: var(--text); font: 500 15px Inter, sans-serif; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { border-color: rgba(201, 180, 255, 0.7); box-shadow: 0 0 0 3px rgba(179, 136, 255, 0.2); }
input::placeholder { color: var(--dim); }
.hint { font-size: 12.5px; color: var(--dim); text-align: left; margin: -4px 0 14px; }
.err { color: var(--red); font-size: 13.5px; min-height: 0; margin-top: 10px; }
.err:empty, .ok:empty { display: none; }
.ok { color: var(--green); font-size: 13.5px; margin-top: 10px; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.dash-head h2 { font-size: 32px; font-weight: 800; }
.dgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.dgrid .card { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.dgrid .card .btn { align-self: flex-start; margin-top: 10px; }
.label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pink); }
.dgrid h3 { font-size: 20px; }
.plan-card { grid-column: span 2; }
.code-card { grid-column: span 4; }
.trial-card, .key-card, .pw-card { grid-column: span 2; }
.plan-card.paid { border-color: rgba(255, 201, 64, 0.5); background: linear-gradient(160deg, rgba(255, 201, 64, 0.14), rgba(255, 255, 255, 0.03) 60%); }
.plan-card.paid h3 { color: var(--gold); }
.code { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.code span { font: 800 40px/1 "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: 0.14em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--card-b); background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 18px; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.12); }
.timer { font-size: 13px; color: var(--muted); }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.row-form input { flex: 1 1 220px; min-width: 0; }
.row-form .btn { flex: 1 0 auto; }
.row-form input { margin: 0; text-transform: uppercase; letter-spacing: 0.06em; font-family: ui-monospace, Consolas, monospace; }
.row-form .btn { margin: 0 !important; height: 46px; }
.pw-card form input { margin: 0 0 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 13px; background: rgba(20, 18, 28, 0.95);
  border: 1px solid var(--card-b); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid.features, .plans, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { height: 380px; }
   .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .dgrid { grid-template-columns: 1fr 1fr; }
  .plan-card, .code-card, .trial-card, .key-card, .pw-card { grid-column: span 2; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav { margin: 10px 10px 0; }
  main { padding: 0 16px; }
  .grid.features, .plans, .steps, .strip { grid-template-columns: 1fr 1fr; }
  .grid.features { grid-template-columns: 1fr; }
  .compare .row { grid-template-columns: 1fr 64px 64px; padding: 12px 14px; }
  .trial-banner, .foot { flex-direction: column; align-items: flex-start; }
  .foot p { text-align: left; }
  .code span { font-size: 30px; }
  .ward { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ward figure { border-radius: 14px; }
  .ward figcaption { font-size: 11px; left: 7px; bottom: 6px; }
  .plan { padding: 16px; }
  .plan .big b { font-size: 36px; }
  .plan .big span { font-size: 14px; }
  .plan .price { display: none; }
  .plan .note { margin-bottom: 12px; }
  .plan .btn { padding-left: 8px; padding-right: 8px; }
}

.err.info { color: var(--muted); }
.auth .hint.login-only { text-align: center; margin: 16px 0 0; }
