:root {
  --bg: #0B0D11;
  --card: #15171C;
  --border: #23262E;
  --text: #E7E9EE;
  --muted: #9AA0AC;
  --blue: #1D4ED8;
  --blue-bright: #5B9BFF;
  --purple: #A855F7;
  --orange: #EA580C;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo",
          "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- layout shell ---- */
main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; border-top: 1px solid var(--border); }
section:first-child { border-top: none; }
h2 { font-size: 24px; margin: 0 0 24px; }

/* ---- header ---- */
.site-header {
  max-width: 1040px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-logo { color: var(--blue-bright); }
.lang-toggle { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang-toggle button {
  background: none; border: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
}
.lang-toggle button.active { background: var(--blue); color: #fff; }

/* ---- hero (split) ---- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--blue-bright); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
.hero-title { font-size: 44px; line-height: 1.08; margin: 0 0 16px; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 34ch; margin: 0 0 24px; }
.downloads { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.desktop-downloads, .download-primary, .download-secondary { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:not(:disabled):hover { background: #2554e6; }
.btn-app { min-width: 220px; padding: 10px 18px; text-align: left; }
.btn-copy { display: flex; flex-direction: column; gap: 2px; }
.btn-copy strong { font: inherit; line-height: 1.15; }
.btn-copy small { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 500; }
.btn-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-app-icon { width: 26px; height: 26px; border-radius: 6px; }
.btn-download { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-download:hover { background: #20232b; border-color: #3a3f4b; }
.btn-download.is-disabled { color: var(--muted); cursor: not-allowed; opacity: .65; }
.dl-note { color: var(--muted); font-size: 12px; margin: 4px 0 0; }

/* ---- hero visual: glass keycap device ---- */
.hero-visual { display: flex; justify-content: center; }
.device {
  width: 100%; max-width: 380px; aspect-ratio: 16 / 10; border-radius: 16px;
  background: linear-gradient(135deg, #15171C, #0B0D11); border: 1px solid var(--border);
  position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
/* top-left HUD: settings gear + profile chip (mirrors the viewer overlay) */
.hud-row { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; align-items: center; }
.hud-btn {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.9);
  font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.hud-chip {
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.10); color: #fff;
  font-size: 11px; padding: 6px 10px; border-radius: 14px;
}
/* bottom-left tinted-glass keycap deck */
.keycap-deck { position: absolute; left: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 56%; max-width: 210px; }
.keycap {
  position: relative; aspect-ratio: 1; border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 2px 6px rgba(0,0,0,.4);
}
.kc-blue { background: linear-gradient(#3b6ae8, var(--blue)); }
.kc-purple { background: linear-gradient(#bd76f7, var(--purple)); }
.kc-orange { background: linear-gradient(#f3873f, var(--orange)); }
.kc-dim { background: linear-gradient(#26282f, #1F1F23); }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- screenshot: detailed in-use mockup ---- */
.shot-frame {
  background: radial-gradient(130% 130% at 72% 18%, #1c2030, #0a0c10 72%); border: 1px solid var(--border);
  border-radius: 16px; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
}
/* mirrored fullscreen app: menubar */
.shot-menubar { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: rgba(0,0,0,.35); border-bottom: 1px solid rgba(255,255,255,.05); }
.mb-menus { display: flex; gap: 8px; }
.mb-menus i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.mb-clock { color: rgba(255,255,255,.5); font-size: 11px; }
/* canvas + multi-colour pen sketch */
.shot-canvas { position: absolute; inset: 26px 0 0 0; display: flex; align-items: center; justify-content: center; }
.shot-stroke { width: 62%; height: 74%; }
.shot-stroke path { fill: none; stroke-linecap: round; }
.shot-stroke .s1 { stroke: var(--blue-bright); stroke-width: 5; }
.shot-stroke .s2 { stroke: var(--purple); stroke-width: 4; opacity: .8; }
.shot-stroke .s3 { stroke: #f3873f; stroke-width: 3.5; opacity: .75; }
/* floating overlay HUD: gear + profile chip */
.shot-hud { position: absolute; top: 36px; left: 16px; display: flex; gap: 8px; align-items: center; }
/* glass keycap deck with glyphs, bottom-left */
.shot-keys { position: absolute; left: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: 32%; max-width: 168px; }
.kc-glyph { font-style: normal; display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-size: 18px; line-height: 1; }
.kc-badge { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 9px; color: rgba(255,255,255,.85); }
/* S Pen drawing + HiDPI pressure echo dot */
.shot-pen {
  position: absolute; right: 30%; bottom: 34%; width: 9px; height: 118px;
  background: linear-gradient(#474b58, #1b1d23); border-radius: 6px;
  transform: rotate(40deg); transform-origin: bottom center; box-shadow: 0 6px 14px rgba(0,0,0,.55);
}
.shot-pen::after {
  content: ""; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 11px solid #2a2c33;
}
.shot-echo { position: absolute; right: calc(30% + 1px); bottom: 33%; width: 16px; height: 16px; border: 2px solid rgba(33,150,243,.7); border-radius: 50%; }
.shot-caption-chip {
  position: absolute; right: 16px; bottom: 16px; max-width: 52%;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); color: var(--muted);
  font-size: 12px; padding: 7px 12px; border-radius: 14px;
}

/* ---- requirements ---- */
.req-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.req-list li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; }
.install-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.install-block h3 { margin: 0 0 8px; font-size: 15px; }
.install-block p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- faq ---- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--card); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font: inherit; font-weight: 600; font-size: 15px; padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; }
.faq-q::after { content: "+"; color: var(--muted); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 20px 16px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- footer ---- */
.site-footer { max-width: 1040px; margin: 0 auto; padding: 32px 24px 48px; display: flex; gap: 16px; justify-content: space-between; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.site-footer a { color: var(--blue-bright); text-decoration: none; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
  .features { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
