/* ═══════════════════════════════════════════════════════════
   2106 AG Password — Console 킷 "변형" (Secure Vault / Crypto Terminal)
   · 색: violet(#8B5CF6) → indigo(#6366F1) — 암호·볼트 무드
     (형제 Console 2105[green]·2108[cyan]·2109[blue]·2110[magenta]와 색으로 구분)
   · 모노스페이스 헤드라인 + 터미널 창(readout) + 세그먼트 강도바
   · 기본 다크(터미널), [data-theme="light"] 라이트 오버라이드
   DesignKit 변형 원칙: Console 을 참고하되 그대로 쓰지 않고 2106 고유로 변형.
═══════════════════════════════════════ */

/* ─── 다크(기본) 토큰 ─── */
:root {
  --primary:#A78BFA; --primary-dark:#8B5CF6; --accent:#818CF8;
  --grad:linear-gradient(120deg,#8B5CF6 0%,#6366F1 100%);
  --primary-alpha:rgba(139,92,246,.16); --primary-glow:rgba(139,92,246,.34);

  --bg:#0C0B12; --surface:#15131E; --surface-2:#100E18; --surface-3:#1B1826;
  --border:#241F33; --border-2:#332B48; --border-soft:#1C1829;
  --text:#DDD8EA; --text-strong:#F3F0FA; --text-2:#9990B3; --text-3:#6A6088;

  --s-vweak:#F87171; --s-weak:#FB923C; --s-fair:#FBBF24;
  --s-strong:#4ADE80; --s-vstrong:#22D3EE;

  --font-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --font-sans:'Pretendard',-apple-system,BlinkMacSystemFont,system-ui,'Segoe UI',Roboto,sans-serif;

  --r-1:8px; --r-2:12px; --r-3:16px; --r-4:20px;
  --sh-2:0 8px 28px rgba(0,0,0,.35);
  --sh-glow:0 0 0 1px var(--primary-alpha), 0 10px 40px rgba(52,211,153,.10);
  --ease:cubic-bezier(.16,1,.3,1); --t1:150ms; --t2:320ms;
}

/* ─── 라이트 오버라이드 ─── */
[data-theme="light"] {
  --bg:#F6F5FB; --surface:#FFFFFF; --surface-2:#F1EFF9; --surface-3:#E9E5F5;
  --border:#E4E0EF; --border-2:#D1CAE4; --border-soft:#EDEAF6;
  --text:#2A2440; --text-strong:#16112B; --text-2:#645A82; --text-3:#918AAC;
  --primary:#7C3AED; --primary-dark:#6D28D9;
  --sh-2:0 8px 28px rgba(60,40,110,.08);
  --sh-glow:0 0 0 1px var(--primary-alpha), 0 10px 34px rgba(139,92,246,.12);
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }

body {
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  color:var(--text); min-height:100vh;
  display:flex; flex-direction:column; align-items:center;
  padding:0 18px 72px; overflow-x:hidden;
  background:
    radial-gradient(720px 420px at 50% -8%, var(--primary-alpha), transparent 60%),
    radial-gradient(600px 340px at 92% 6%, rgba(99,102,241,.08), transparent 60%),
    var(--bg);
  background-attachment:fixed;
}
[dir="rtl"] body { direction:rtl; }

/* ─── HEADER ─── */
.site-header {
  position:sticky; top:0; z-index:50; width:100vw; margin-bottom:10px;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.site-header__inner { max-width:960px; margin:0 auto; height:58px; padding:0 20px;
  display:flex; align-items:center; justify-content:space-between; }
.site-header__logo { display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:var(--text-strong); }
.logo-badge { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:9px; background:var(--grad); color:#17102A; box-shadow:0 4px 14px var(--primary-glow); }
.logo-badge svg { width:18px; height:18px; }
.logo-text { display:inline-flex; flex-direction:column; line-height:1.1; gap:1px; }
.logo-main { font-family:var(--font-mono); font-size:1.02rem; font-weight:800; letter-spacing:-.02em; color:var(--text-strong); }
.logo-main .accent { color:var(--primary); }
.logo-sub { font-family:var(--font-mono); font-size:.56rem; font-weight:700; letter-spacing:.22em; color:var(--text-3); }
.header-actions { display:flex; align-items:center; gap:12px; }
.site-header__nav { display:flex; align-items:center; gap:18px; }
.site-header__nav a { font-size:.84rem; font-weight:600; color:var(--text-2); text-decoration:none; transition:color var(--t1); }
.site-header__nav a:hover { color:var(--primary); }
.theme-toggle-btn { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border-2); background:var(--surface-2); color:var(--text-2);
  border-radius:9px; cursor:pointer; transition:all var(--t1); }
.theme-toggle-btn:hover { color:var(--primary); border-color:var(--primary); }
.theme-toggle-btn svg { width:17px; height:17px; }
[data-theme="light"] .ic-dark { display:none; }
[data-theme="light"] .ic-light { display:inline-flex; }
.ic-light { display:none; } .ic-dark { display:inline-flex; }
/* 언어 전환 — 눈에 잘 띄는 pill (globe 아이콘 + 현재 언어 + caret) */
.lang-switch { display:inline-flex; align-items:center; gap:6px; padding:6px 10px 6px 11px;
  border:1.5px solid var(--border-2); border-radius:99px; background:var(--surface-2);
  cursor:pointer; transition:all var(--t1); }
.lang-switch:hover { border-color:var(--primary); background:var(--primary-alpha); box-shadow:0 0 0 3px var(--primary-alpha); }
.lang-switch > i[data-lucide="languages"] { width:16px; height:16px; color:var(--primary); flex-shrink:0; }
.lang-switch .lang-caret { width:14px; height:14px; color:var(--text-3); flex-shrink:0; pointer-events:none; }
.lang-select { appearance:none; -webkit-appearance:none; -moz-appearance:none;
  font-family:var(--font-mono); font-size:.8rem; font-weight:700; color:var(--text-strong);
  background:transparent; border:none; padding:0 1px; cursor:pointer; outline:none; }
.lang-select option { color:#111; background:#fff; }
@media (max-width:560px){ .site-header__nav{ display:none; } .lang-select{ max-width:6.2rem; } }

/* ─── LAYOUT ─── */
.wrap { width:100%; max-width:760px; margin:0 auto; }

/* ─── HERO ─── */
.hero { text-align:center; padding:26px 8px 14px; }
.hero .eyebrow { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono);
  font-size:.72rem; font-weight:700; letter-spacing:.06em; color:var(--primary);
  background:var(--primary-alpha); border:1px solid var(--border-2); padding:5px 12px; border-radius:99px; }
.hero .eyebrow svg { width:14px; height:14px; }
.hero h1 { margin-top:14px; font-family:var(--font-mono); font-size:1.7rem; font-weight:800;
  letter-spacing:-.03em; color:var(--text-strong); line-height:1.2; }
.hero h1 .grad { background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero .tagline { margin:12px auto 0; max-width:520px; font-size:.96rem; color:var(--text-2); line-height:1.65; }

/* ─── TOOL / TERMINAL ─── */
.tool { margin-top:22px; }
.terminal { background:var(--surface); border:1px solid var(--border-2); border-radius:var(--r-3);
  box-shadow:var(--sh-glow); overflow:hidden; }
.term-bar { display:flex; align-items:center; gap:8px; padding:11px 16px;
  background:var(--surface-2); border-bottom:1px solid var(--border); }
.term-dot { width:11px; height:11px; border-radius:50%; }
.term-dot.r{ background:#FF5F57; } .term-dot.y{ background:#FEBC2E; } .term-dot.g{ background:#28C840; }
.term-title { margin-inline-start:8px; font-family:var(--font-mono); font-size:.78rem; color:var(--text-3); letter-spacing:.02em; }

/* readout */
.readout { padding:26px 20px 20px; }
.pw-line { display:flex; align-items:center; gap:12px; }
.pw-text { flex:1; min-width:0; font-family:var(--font-mono); font-size:1.42rem; font-weight:700;
  color:var(--text-strong); word-break:break-all; line-height:1.4; letter-spacing:.01em;
  -webkit-user-select:all; user-select:all; }
.pw-text .d { color:var(--s-fair); } .pw-text .s { color:var(--accent); } .pw-text .u { color:var(--primary); }
.pw-actions { display:flex; gap:6px; flex-shrink:0; }
.icon-btn { width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border-2); background:var(--surface-2); color:var(--text-2);
  border-radius:10px; cursor:pointer; transition:all var(--t1); }
.icon-btn:hover { color:var(--primary); border-color:var(--primary); background:var(--primary-alpha); }
.icon-btn:active { transform:scale(.94); }
.icon-btn svg { width:19px; height:19px; }
.icon-btn.ok { color:var(--s-strong); border-color:var(--s-strong); }

/* strength */
.strength { margin-top:20px; }
.strength-bar { display:flex; gap:5px; }
.strength-seg { flex:1; height:7px; border-radius:99px; background:var(--surface-3); transition:background var(--t2); }
.strength-meta { display:flex; align-items:center; justify-content:space-between; margin-top:9px;
  font-family:var(--font-mono); font-size:.78rem; }
.str-label { font-weight:700; letter-spacing:.02em; }
.entropy { color:var(--text-3); }
.entropy b { color:var(--text-2); font-weight:700; }

/* ─── CONTROLS ─── */
.controls { padding:4px 20px 22px; }
.tabs { display:flex; gap:6px; background:var(--surface-2); border:1px solid var(--border);
  border-radius:12px; padding:5px; margin-bottom:20px; }
.tab { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  font-family:var(--font-mono); font-size:.84rem; font-weight:700; color:var(--text-2);
  padding:9px 10px; border-radius:8px; border:none; background:transparent; cursor:pointer; transition:all var(--t1); }
.tab svg { width:16px; height:16px; }
.tab.active { background:var(--surface); color:var(--primary); box-shadow:0 1px 3px rgba(0,0,0,.2); }
.panel.hidden { display:none; }

.field { margin-bottom:18px; }
.field:last-child { margin-bottom:0; }
.field-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.field-label { font-size:.86rem; font-weight:600; color:var(--text); }
.range-val { font-family:var(--font-mono); font-size:1.05rem; font-weight:800; color:var(--primary);
  min-width:2.4ch; text-align:center; }

/* slider */
input[type="range"] { -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:99px;
  background:var(--surface-3); outline:none; cursor:pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; width:20px; height:20px; border-radius:50%;
  background:var(--grad); border:3px solid var(--surface); box-shadow:0 2px 8px var(--primary-glow); cursor:pointer; }
input[type="range"]::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:var(--primary);
  border:3px solid var(--surface); cursor:pointer; }

/* toggle chips */
.chips { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
.chip { position:relative; display:flex; align-items:center; gap:10px; padding:12px 14px;
  border:1px solid var(--border-2); border-radius:11px; background:var(--surface-2); cursor:pointer; transition:all var(--t1); }
.chip:hover { border-color:var(--border-2); background:var(--surface-3); }
.chip input { position:absolute; opacity:0; pointer-events:none; }
.chip .box { width:20px; height:20px; border-radius:6px; border:1.5px solid var(--border-2);
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; transition:all var(--t1); }
.chip .box svg { width:13px; height:13px; color:#17102A; opacity:0; }
.chip .txt { font-family:var(--font-mono); font-size:.86rem; font-weight:700; color:var(--text-2); }
.chip .sub { font-size:.7rem; color:var(--text-3); font-family:var(--font-mono); }
.chip.on { border-color:var(--primary); background:var(--primary-alpha); }
.chip.on .box { background:var(--grad); border-color:transparent; }
.chip.on .box svg { opacity:1; }
.chip.on .txt { color:var(--text-strong); }

/* switch row */
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:12px 14px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); }
.switch-row .lbl { font-size:.86rem; font-weight:600; color:var(--text); }
.switch-row .lbl small { display:block; font-size:.72rem; color:var(--text-3); font-weight:500; margin-top:2px; }
.switch { position:relative; width:44px; height:25px; flex-shrink:0; }
.switch input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.switch .track { position:absolute; inset:0; background:var(--surface-3); border:1px solid var(--border-2);
  border-radius:99px; transition:all var(--t1); }
.switch .track::after { content:''; position:absolute; top:2px; left:2px; width:19px; height:19px;
  border-radius:50%; background:var(--text-3); transition:all var(--t1); }
.switch input:checked + .track { background:var(--grad); border-color:transparent; }
.switch input:checked + .track::after { transform:translateX(19px); background:#17102A; }

/* select */
.mini-select { font-family:var(--font-mono); font-size:.84rem; font-weight:700; color:var(--text);
  background:var(--surface-2); border:1px solid var(--border-2); border-radius:9px; padding:8px 10px; cursor:pointer; }

/* ─── GENERATE BUTTON ─── */
.gen-btn { width:100%; margin-top:20px; display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--font-mono); font-size:.98rem; font-weight:800; color:#17102A;
  background:var(--grad); border:none; border-radius:12px; padding:15px; cursor:pointer;
  box-shadow:0 8px 24px var(--primary-glow); transition:transform var(--t1), box-shadow var(--t1); }
.gen-btn:hover { transform:translateY(-1px); box-shadow:0 12px 30px var(--primary-glow); }
.gen-btn:active { transform:translateY(0); }
.gen-btn svg { width:18px; height:18px; }

/* ─── BULK ─── */
.bulk { margin-top:24px; border-top:1px solid var(--border); padding-top:20px; }
.bulk-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.bulk-title { font-family:var(--font-mono); font-size:.9rem; font-weight:800; color:var(--text-strong); display:inline-flex; align-items:center; gap:8px; }
.bulk-title svg { width:16px; height:16px; color:var(--primary); }
.bulk-ctl { display:flex; align-items:center; gap:8px; }
.num-input { width:64px; font-family:var(--font-mono); font-size:.9rem; font-weight:700; text-align:center;
  color:var(--text); background:var(--surface-2); border:1px solid var(--border-2); border-radius:9px; padding:8px; }
.btn-ghost { font-family:var(--font-mono); font-size:.82rem; font-weight:700; color:var(--text-2);
  background:var(--surface-2); border:1px solid var(--border-2); border-radius:9px; padding:8px 12px;
  cursor:pointer; display:inline-flex; align-items:center; gap:6px; transition:all var(--t1); }
.btn-ghost:hover { color:var(--primary); border-color:var(--primary); }
.btn-ghost svg { width:14px; height:14px; }
.bulk-list { display:flex; flex-direction:column; gap:7px; }
.bulk-item { display:flex; align-items:center; gap:10px; padding:11px 14px; background:var(--surface-2);
  border:1px solid var(--border); border-radius:10px; }
.bulk-item .pw { flex:1; min-width:0; font-family:var(--font-mono); font-size:.9rem; color:var(--text);
  word-break:break-all; -webkit-user-select:all; user-select:all; }
.bulk-item .icon-btn { width:32px; height:32px; }
.bulk-item .icon-btn svg { width:15px; height:15px; }

/* ─── NOTICE ─── */
.notice { display:flex; align-items:center; justify-content:center; gap:9px; margin:18px auto 0; max-width:620px;
  font-size:.82rem; color:var(--text-2); background:var(--surface); border:1px solid var(--border);
  border-radius:11px; padding:12px 16px; text-align:center; }
.notice svg { width:16px; height:16px; color:var(--primary); flex-shrink:0; }

/* ─── TRUST ─── */
.trust-bar { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 20px; margin:22px auto 0; }
.trust-item { display:inline-flex; align-items:center; gap:7px; font-size:.8rem; font-weight:600; color:var(--text-2); }
.trust-item svg { width:15px; height:15px; color:var(--primary); }

/* ─── AD ─── */
.ad-grid { display:grid; grid-template-columns:repeat(2,320px); gap:12px; justify-content:center; margin:30px auto 0; }
.ad-cell { width:320px; min-height:50px; }
@media (max-width:720px){ .ad-grid{ grid-template-columns:320px; } }

/* ─── CONTENT (SEO) ─── */
.content { margin-top:38px; }
.content section { margin-bottom:30px; }
.content h2 { font-family:var(--font-mono); font-size:1.16rem; font-weight:800; color:var(--text-strong);
  letter-spacing:-.02em; margin-bottom:14px; display:inline-flex; align-items:center; gap:9px; }
.content h2 svg { width:18px; height:18px; color:var(--primary); }
.content p { color:var(--text-2); line-height:1.75; font-size:.94rem; margin-bottom:12px; }
.steps { list-style:none; counter-reset:s; display:flex; flex-direction:column; gap:11px; }
.steps li { counter-increment:s; position:relative; padding:14px 16px 14px 52px; background:var(--surface);
  border:1px solid var(--border); border-radius:12px; color:var(--text); font-size:.92rem; line-height:1.6; }
.steps li::before { content:counter(s); position:absolute; left:14px; top:13px; width:26px; height:26px;
  display:inline-flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:800;
  font-size:.82rem; color:#17102A; background:var(--grad); border-radius:8px; }
[dir="rtl"] .steps li { padding:14px 52px 14px 16px; }
[dir="rtl"] .steps li::before { left:auto; right:14px; }

.faq-item { border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:10px; background:var(--surface); }
.faq-q { font-size:.94rem; font-weight:700; color:var(--text-strong); margin-bottom:8px; display:flex; gap:9px; }
.faq-q::before { content:'Q'; font-family:var(--font-mono); color:var(--primary); font-weight:800; }
.faq-a { font-size:.9rem; color:var(--text-2); line-height:1.7; }

/* ─── FOOTER ─── */
.site-footer { margin-top:44px; display:flex; align-items:center; justify-content:center; gap:14px;
  font-size:.82rem; color:var(--text-3); flex-wrap:wrap; }
.site-footer a { color:var(--text-2); text-decoration:none; transition:color var(--t1); }
.site-footer a:hover { color:var(--primary); }
.footer-divider { color:var(--border-2); }

/* ─── ANIM ─── */
@keyframes fadeIn { from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.animate-fade-in { animation:fadeIn var(--t2) var(--ease) both; }
@media (prefers-reduced-motion:reduce){ .animate-fade-in{ animation:none; } }

@media (max-width:560px){
  .hero h1{ font-size:1.42rem; }
  .pw-text{ font-size:1.12rem; }
  .chips{ grid-template-columns:1fr; }
  .readout,.controls{ padding-left:15px; padding-right:15px; }
}
