:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: #0e1b26;
  --panel-2: #132534;
  --text: #f4f8fb;
  --muted: #9db1bf;
  --line: rgba(152, 220, 255, .17);
  --cyan: #5ee7ff;
  --mint: #74f3bd;
  --amber: #ffd166;
  --ink: #03212a;
  --danger: #ff8e94;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 5%, rgba(94, 231, 255, .11), transparent 28rem),
    radial-gradient(circle at 90% 25%, rgba(116, 243, 189, .08), transparent 26rem),
    var(--bg);
  font-family: Inter, Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--cyan);
}
.skip-link:focus { top: 12px; }

.help-sidebar {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(7, 16, 24, .89);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .05em;
  margin: 0 10px 28px;
}
.brand-mark { color: var(--cyan); }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.primary-nav a,
.language button,
.menu-toggle {
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.primary-nav a {
  width: 100%;
  border-radius: 12px;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.language button[aria-pressed="true"] {
  color: var(--text);
  background: rgba(94, 231, 255, .1);
}
.language {
  display: flex;
  margin-top: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.language button { padding: 6px 10px; font-size: 12px; }
.menu-toggle { display: none; }

main {
  min-height: calc(100vh - 92px);
  margin-left: var(--sidebar-width);
}
footer { margin-left: var(--sidebar-width); }
.view {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}
.view:focus { outline: none; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: 66vh;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(25px, 3vw, 40px); }
h3 { font-size: 19px; }
p { color: var(--muted); }
.hero-lead { max-width: 760px; font-size: clamp(17px, 1.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.primary {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}
.button.ghost { background: transparent; }
.button:hover, .copy-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button.is-disabled { opacity: .45; pointer-events: none; }

.sample-card,
.feature-card,
.example-card,
.privacy-card,
.plan-card,
.feedback-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 37, 52, .92), rgba(11, 26, 37, .92));
  box-shadow: var(--shadow);
}
.sample-card { padding: 26px; }
.sample-head { display: flex; align-items: center; gap: 9px; }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}
.check-list, .fact-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.check-list li, .fact-list li { position: relative; padding-left: 24px; color: var(--text); }
.check-list li::before, .fact-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 900;
}
.check-list.muted li { color: var(--muted); }
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0 0;
}
.live-stats div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
}
dt { color: var(--muted); font-size: 12px; }
dd { margin: 4px 0 0; color: var(--text); font-weight: 850; }

.prompt-callout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 30px 0 92px;
  padding: 24px;
  border: 1px solid rgba(255, 209, 102, .4);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, .07);
}
.prompt-callout h2 { margin-bottom: 0; font-size: 25px; }
code[data-prompt] {
  display: block;
  padding: 16px;
  border: 1px solid rgba(94, 231, 255, .25);
  border-radius: 12px;
  color: var(--cyan);
  background: #06151e;
  white-space: pre-wrap;
  
}
.content-block { margin-top: 96px; }
.content-block > h2 { max-width: 820px; }
.card-grid { display: grid; gap: 16px; margin-top: 32px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare-card h3 { margin-bottom: 12px; }
.compare-before { opacity: .55; }
.compare-before h3 { color: var(--muted); }
.compare-after { border-color: var(--mint); background: rgba(116, 243, 189, .07); }
.compare-after h3 { color: var(--mint); }
.feature-card { padding: 24px; box-shadow: none; }
.feature-card p { margin-bottom: 0; }
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  font-size: 22px;
  font-weight: 900;
}
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 27, 38, .7);
}

.page-heading { max-width: 900px; margin-bottom: 52px; }
.page-heading h1 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 64px); }
.page-heading > p:last-child { font-size: 18px; }
.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps > li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 27, 38, .7);
}
.steps h2 { margin-bottom: 8px; font-size: 23px; }
.steps p { margin: 0; }
.step-no {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cyan);
  font-weight: 900;
}
.important-step { border-color: rgba(255, 209, 102, .5) !important; }
.important-step .step-no { background: var(--amber); }
.inline-prompt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}
.text-link { display: inline-block; margin-top: 12px; color: var(--cyan); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--cyan); background: rgba(94, 231, 255, .05); }
tr:last-child td { border-bottom: 0; }

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.example-card { display: flex; flex-direction: column; padding: 28px; }
.example-card code { min-height: 140px; margin: 16px 0; }
.example-card .copy-button { align-self: flex-start; margin-top: auto; }
.tag {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(94, 231, 255, .3);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
}
.feedback-form, .privacy-card { padding: 28px; }
.feedback-form { display: grid; gap: 10px; }
.feedback-form label { margin-top: 8px; font-weight: 800; }
select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #081822;
}
select { min-height: 46px; padding: 8px 12px; }
textarea { min-height: 220px; padding: 14px; resize: vertical; }
textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(94, 231, 255, .35);
  outline-offset: 2px;
}
.form-meta { text-align: right; color: var(--muted); font-size: 12px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500 !important;
}
.consent input { margin-top: 6px; accent-color: var(--mint); }
.feedback-form .button { justify-self: start; margin-top: 12px; }
.form-status { min-height: 24px; margin-bottom: 0; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--mint); }

.plan-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
}
#plan-name { display: block; font-size: clamp(34px, 5vw, 62px); text-transform: uppercase; }
.plan-usage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}
.plan-usage div { padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
#upgrade-status { grid-column: 1 / -1; }

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--mint);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .help-sidebar {
    position: sticky;
    inset: 0;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    width: auto;
    min-height: 72px;
    padding: 10px clamp(16px, 4vw, 56px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .brand { margin: 0; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0b1822;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { border-radius: 10px; }
  .language { justify-self: end; margin: 0 0 0 10px; }
  main, footer { margin-left: 0; }
  .hero, .split, .feedback-layout { grid-template-columns: 1fr; }
  .card-grid.four, .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-callout, .plan-card { grid-template-columns: 1fr; }
  .plan-card .button { justify-self: start; }
}

@media (max-width: 650px) {
  .help-sidebar { padding: 9px 12px; }
  .brand small { display: none; }
  .language button { padding: 6px 7px; }
  .view { width: min(100% - 24px, 1180px); padding-top: 46px; }
  .hero { min-height: 0; }
  h1 { font-size: 38px; }
  .live-stats, .card-grid.four, .card-grid.two, .card-grid.three, .example-grid, .plan-usage { grid-template-columns: 1fr; }
  .prompt-callout { margin-bottom: 60px; }
  .content-block { margin-top: 64px; }
  .split { padding: 25px; gap: 20px; }
  .steps > li { grid-template-columns: 1fr; }
  .inline-prompt { grid-template-columns: 1fr; }
  .inline-prompt .copy-button { justify-self: start; }
  footer { flex-direction: column; }
}

@media print {
  .help-sidebar, .hero-actions, .copy-button, .feedback-form, .toast { display: none !important; }
  body { color: #111; background: #fff; }
  main, footer { margin-left: 0; }
  .view { display: block !important; width: 100%; padding: 24px 0; }
  .sample-card, .feature-card, .example-card, .privacy-card, .plan-card {
    color: #111; background: #fff; box-shadow: none; border-color: #bbb;
  }
  p, dt { color: #444; }
}
