/* ============================================
   KeyGhost - Marketing Site Styles
   ============================================ */

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

:root {
  /* Light mode */
  --bg: #fafafa;
  --bg-alt: #f1f1f1;
  --text: #1a1a1a;
  --text-muted: #636363;
  --accent: #5b21b6;
  --accent-hover: #4c1d95;
  --border: #e2e2e2;
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --code-comment: #6c7086;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --hero-bg: #f5f5f5;
  --tag-bg: #e8e8e8;
  --tag-text: #555555;
  --link: #5b21b6;

  /* Demo */
  --desk-grad-a: #4f46e5;
  --desk-grad-b: #0e7490;
  --window-bg: rgba(255, 255, 255, 0.92);
  --window-border: rgba(0, 0, 0, 0.08);
  --window-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  --overlay-bg: rgba(20, 20, 28, 0.65);
  --overlay-tile: rgba(255, 255, 255, 0.10);
  --overlay-tile-bound: rgba(255, 255, 255, 0.16);
  --overlay-text: #ffffff;
  --overlay-muted: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] {
  --bg: #0e0e10;
  --bg-alt: #161618;
  --text: #e4e4e4;
  --text-muted: #9a9a9e;
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --border: #26262a;
  --code-bg: #08080a;
  --code-text: #cdd6f4;
  --code-comment: #6c7086;
  --card-bg: #18181b;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --hero-bg: #131316;
  --tag-bg: #26262a;
  --tag-text: #aaaaaa;
  --link: #a78bfa;

  --desk-grad-a: #312e81;
  --desk-grad-b: #134e4a;
  --window-bg: rgba(34, 34, 38, 0.92);
  --window-border: rgba(255, 255, 255, 0.10);
  --window-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: "SF Mono", "Fira Code", "JetBrains Mono", Menlo, monospace; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--wide { max-width: 1080px; }

/* --- Theme Toggle --- */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  z-index: 1000;
  transition: background 0.2s;
  font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
:root:not([data-theme]) .theme-toggle .icon-moon { display: inline; }

/* --- Hero --- */
.hero {
  background: var(--hero-bg);
  padding: 2.5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 4px 12px rgba(91, 33, 182, 0.25));
}

[data-theme="dark"] .hero-logo {
  filter: drop-shadow(0 4px 16px rgba(167, 139, 250, 0.35));
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-nav__sep { color: var(--text-muted); user-select: none; }
.hero-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.25rem;
}
.hero-nav a:hover { color: var(--text); text-decoration: none; }

.hero-nav__primary {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.5rem !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.hero-nav__primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); }

.github-link svg { vertical-align: -2px; fill: currentColor; }

/* --- Section rule --- */
.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Pitch --- */
.pitch { padding: 3.5rem 0; }

.pitch h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.05em 0.4em;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}
[data-theme="dark"] .accent { color: #1a1a1a; }

.pitch-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* --- Demo section --- */
.demo-section { padding: 3rem 0 4rem; }
.demo-section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }

.demo-instructions {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-hint-text { max-width: 540px; }

/* keycap chip used in instructions */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.4em;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  user-select: none;
  vertical-align: -2px;
}

.kbd--small { font-size: 0.75em; min-width: 1.5em; height: 1.5em; }

.kbd--caps {
  min-width: 4em;
  cursor: pointer;
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--bg-alt) 100%);
  transition: transform 0.05s, box-shadow 0.05s, border-color 0.15s;
}
.kbd--caps:hover { border-color: var(--accent); color: var(--accent); }
.kbd--caps.kbd--down {
  transform: translateY(2px);
  border-bottom-width: 1px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Demo stage = fake macOS desktop + overlay --- */
.demo-stage {
  position: relative;
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--window-shadow);
  background: var(--bg-alt);
  outline: none;
  cursor: pointer;
}
.demo-stage:focus { box-shadow: var(--window-shadow), 0 0 0 3px var(--accent); }

.fake-desktop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--desk-grad-a) 0%, var(--desk-grad-b) 100%);
  overflow: hidden;
}

.fake-menubar {
  height: 24px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fake-menubar__apple { font-size: 14px; line-height: 1; }
.fake-menubar__app { font-weight: 700; }
.fake-menubar__menu { font-weight: 400; opacity: 0.95; }
.fake-menubar__spacer { flex: 1; }
.fake-menubar__icon { display: inline-flex; align-items: center; opacity: 0.85; color: #fff; }
.fake-menubar__clock { font-variant-numeric: tabular-nums; }

.fake-desktop__bg {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.fake-window {
  background: var(--window-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--window-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  color: var(--text);
}

.fake-window--editor { width: 56%; }
.fake-window--note   { width: 38%; margin-top: 28px; }

.fake-window__title {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--window-border);
  text-align: center;
}

.fake-window__body {
  padding: 14px 18px;
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text);
}

.fake-window--note .fake-window__body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
}

.syn-kw { color: #c026d3; }
.syn-fn { color: #2563eb; }
.syn-arg { color: var(--text-muted); }
[data-theme="dark"] .syn-kw { color: #f0abfc; }
[data-theme="dark"] .syn-fn { color: #7dd3fc; }

/* "Click to focus" pre-hint */
.demo-pre-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.demo-pre-hint .kbd { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.demo-pre-hint--hidden { opacity: 0; transform: translate(-50%, 8px); }

.demo-pre-hint__pulse {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* --- KeyGhost overlay --- */
.kg-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  z-index: 5;
}
.kg-overlay--visible { opacity: 1; }

.kg-overlay__keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kg-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.kg-row--3 { padding-left: 22px; }
.kg-row--4 { padding-left: 44px; }

.kg-key {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--overlay-tile);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--overlay-text);
  position: relative;
  transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
}

.kg-key__letter {
  font-size: 14px;
  font-weight: 600;
  color: var(--overlay-muted);
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
}

.kg-key--bound {
  background: var(--overlay-tile-bound);
  border-color: rgba(255, 255, 255, 0.18);
}

.kg-key__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-key__icon svg { width: 100%; height: 100%; display: block; border-radius: 7px; }

.kg-key__label {
  font-size: 8.5px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.kg-key--nested::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 4px rgba(167, 139, 250, 0.8);
}

.kg-key--passthrough::before {
  content: "↪";
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.kg-key--armed {
  background: rgba(167, 139, 250, 0.25);
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.6), 0 0 16px rgba(167, 139, 250, 0.5);
}

.kg-key--fired {
  background: rgba(52, 211, 153, 0.35);
  border-color: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.7), 0 0 20px rgba(52, 211, 153, 0.55);
  transform: scale(1.08);
}

.kg-key--miss {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.kg-overlay__hint {
  color: var(--overlay-muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.kg-overlay__hint .kbd {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* --- Radial menu (nested) --- */
.kg-radial {
  position: absolute;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.18s ease-out;
  z-index: 2;
}
.kg-radial--visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.kg-radial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0) 70%);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.kg-radial__slot {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.kg-radial__slot--up    { top: 0;    left: 50%; transform: translate(-50%, 0); }
.kg-radial__slot--right { top: 50%;  right: 0;  transform: translate(0, -50%); }
.kg-radial__slot--down  { bottom: 0; left: 50%; transform: translate(-50%, 0); }
.kg-radial__slot--left  { top: 50%;  left: 0;   transform: translate(0, -50%); }

.kg-radial__slot--empty { background: rgba(0,0,0,0.15); border-style: dashed; opacity: 0.5; }

.kg-radial__slot--armed {
  background: rgba(52, 211, 153, 0.35);
  border-color: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.6), 0 0 20px rgba(52, 211, 153, 0.5);
}
.kg-radial__slot--armed.kg-radial__slot--up    { transform: translate(-50%, -4px); }
.kg-radial__slot--armed.kg-radial__slot--right { transform: translate(4px, -50%); }
.kg-radial__slot--armed.kg-radial__slot--down  { transform: translate(-50%, 4px); }
.kg-radial__slot--armed.kg-radial__slot--left  { transform: translate(-4px, -50%); }

.kg-radial__icon { width: 36px; height: 36px; }
.kg-radial__icon svg { width: 100%; height: 100%; border-radius: 7px; display: block; }

.kg-radial__label {
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

.kg-radial__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: rgba(167, 139, 250, 0.25);
  border: 2px solid #a78bfa;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
}
.kg-radial__center .kg-radial__icon { width: 40px; height: 40px; }
.kg-radial__center .kg-radial__label { font-size: 10px; }

/* --- Launch toast --- */
.launch-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s ease-out;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.launch-toast--visible { opacity: 1; transform: translate(-50%, 0); }
.launch-toast__icon { width: 36px; height: 36px; }
.launch-toast__icon svg { width: 100%; height: 100%; border-radius: 8px; display: block; }
.launch-toast__label { font-weight: 600; letter-spacing: 0.01em; }

.demo-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Feature grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.15s, border-color 0.15s;
}
.feature:hover { transform: translateY(-2px); border-color: var(--accent); }

.feature-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.feature p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.feature p code {
  background: var(--tag-bg);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* --- Principles ("how it works") --- */
.principles { padding: 4rem 0; }
.principles h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; text-align: center; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.principle {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}

.principle h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.principle p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.principle p code {
  background: var(--card-bg);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* --- Install --- */
.install { padding: 4rem 0; }
.install h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.install p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.install-sub { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 1rem; text-align: center; }
.install pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 auto 1rem;
  max-width: 640px;
}
.install pre .comment { color: var(--code-comment); }
.install code:not(pre code) {
  background: var(--tag-bg);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-sep { color: var(--text-muted); user-select: none; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* --- Responsive --- */
@media (max-width: 760px) {
  .hero h1 { font-size: 2.5rem; }
  .hero .tagline { font-size: 1.02rem; }

  .fake-window--editor { width: 60%; }
  .fake-window--note { width: 36%; }

  .kg-key { width: 40px; height: 40px; border-radius: 6px; }
  .kg-key__icon { width: 26px; height: 26px; }
  .kg-key__label { font-size: 7px; }
  .kg-key__letter { font-size: 12px; }
  .kg-row--3 { padding-left: 18px; }
  .kg-row--4 { padding-left: 32px; }

  .kg-radial { width: 200px; height: 200px; }
  .kg-radial__slot { width: 50px; height: 50px; }
  .kg-radial__center { width: 60px; height: 60px; }
  .kg-radial__center .kg-radial__icon { width: 32px; height: 32px; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 2rem; }
  .fake-desktop__bg { padding: 18px; gap: 12px; }
  .fake-window__body { padding: 8px 12px; font-size: 9px; }
  .fake-window__title { padding: 6px 10px; font-size: 9px; }

  .features-grid, .principles-grid { grid-template-columns: 1fr; }

  .kg-overlay__keyboard { padding: 8px; gap: 4px; }
  .kg-row { gap: 4px; }
  .kg-key { width: 30px; height: 30px; border-radius: 5px; }
  .kg-key__icon { width: 20px; height: 20px; }
  .kg-key__label { display: none; }
  .kg-key__letter { font-size: 10px; }

  .kg-radial { width: 160px; height: 160px; }
  .kg-radial__slot { width: 42px; height: 42px; }
  .kg-radial__slot .kg-radial__label { display: none; }
  .kg-radial__center { width: 50px; height: 50px; }
  .kg-radial__center .kg-radial__label { display: none; }
}
