:root {
  --bg: #09090f;
  --panel: rgba(18, 18, 30, 0.82);
  --text: #f4f4fb;
  --muted: #b8b8ca;
  --line: rgba(255,255,255,0.08);
  --purple: #8b5cf6;
  --purple-soft: #c4b5fd;
  --pink: #ec6bff;
  --shadow: 0 20px 80px rgba(111, 76, 255, 0.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #131326 0%, var(--bg) 45%, #07070b 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 780px; }
.bg-glow { position: fixed; border-radius: 999px; filter: blur(80px); opacity: 0.22; pointer-events: none; z-index: 0; }
.bg-glow-a { width: 360px; height: 360px; background: var(--purple); top: 120px; left: -80px; }
.bg-glow-b { width: 320px; height: 320px; background: var(--pink); top: 360px; right: -60px; }
.site-header, .hero, .install, .providers, .site-footer, .focus-note, .demo, .download, .advantages { position: relative; z-index: 1; }
.site-header { width: min(1080px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand img { width: 38px; height: 38px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 28px; align-items: center; padding: 38px 0 18px; }
.eyebrow { color: var(--purple-soft); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.77rem; font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(3rem, 5.3vw, 5.4rem); line-height: 0.94; margin: 0; letter-spacing: -0.05em; }
.hero h1 span { color: #dcd3ff; }
.lede, .section-copy, .provider-copy, .study-link { color: var(--muted); }
.lede { margin: 18px 0 0; font-size: 1.08rem; max-width: 60ch; }
.lede-strong { font-size: 1.22rem; color: #ebe6ff; max-width: 52ch; }
.hotkey-note { margin: 14px 0 0; color: var(--purple-soft); font-weight: 600; }
.custom-note { margin-top: 10px; }
.custom-note strong { color: var(--text); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); transition: transform 0.18s ease; font-weight: 700; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(236,107,255,0.9)); border-color: transparent; box-shadow: var(--shadow); }
.button-secondary { background: rgba(255,255,255,0.03); }
.hero-art-simple { display: flex; justify-content: center; }
.ghost-large { width: min(100%, 140px); filter: drop-shadow(0 20px 70px rgba(139,92,246,0.34)); animation: floaty 3.8s ease-in-out infinite; }
@keyframes floaty {
  0% { transform: translateY(0px) rotate(-2deg) scale(1); }
  25% { transform: translateY(-10px) rotate(1deg) scale(1.015); }
  50% { transform: translateY(-18px) rotate(2deg) scale(1.03); }
  75% { transform: translateY(-8px) rotate(-1deg) scale(1.015); }
  100% { transform: translateY(0px) rotate(-2deg) scale(1); }
}
.demo { padding: 0 0 16px; }
.demo-card {
  border: 1px solid var(--line);
  background: rgba(15, 15, 24, 0.88);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.demo-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.18); }
.demo-label { margin-left: 8px; color: var(--muted); font-size: 0.92rem; }
.demo-screen { min-height: 220px; padding: 22px 20px 22px; }
.demo-input-shell { border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; background: rgba(255,255,255,0.025); padding: 14px; }
.demo-input-label { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.demo-input-box {
  position: relative;
  min-height: 92px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(7,7,11,0.66);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
  line-height: 1.45;
}
.demo-stage {
  position: absolute;
  left: 14px;
  top: 14px;
  white-space: nowrap;
  max-width: calc(100% - 28px);
}
.demo-stage-typed {
  color: #f0d8de;
  text-decoration: underline wavy rgba(236,107,255,0.72);
  text-underline-offset: 4px;
  overflow: hidden;
  width: 64ch;
  animation: typedStage 16s infinite steps(64, end), typingJitter 0.18s infinite;
}
.demo-stage-selected {
  color: #0b0716;
  background: rgba(196,181,253,0.88);
  border-radius: 6px;
  opacity: 0;
  animation: selectedStage 16s infinite;
}
.demo-stage-good {
  color: var(--text);
  opacity: 0;
  animation: goodStage 16s infinite;
}
.demo-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: rgba(196,181,253,0.82);
  vertical-align: -0.15em;
  animation: caretBlink 0.9s step-end infinite;
}
.demo-action-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.demo-keys { display: inline-flex; align-items: center; gap: 8px; }
.keycap {
  min-width: 54px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 rgba(255,255,255,0.04);
  animation: keyPress 16s infinite;
}
.keycap-g { animation-delay: 0.12s; }
.key-plus { color: var(--muted); font-weight: 700; }
.demo-ghost-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(196,181,253,0.18); background: rgba(139,92,246,0.12);
  color: var(--purple-soft); font-size: 0.92rem; min-width: 118px;
}
.demo-ghost-chip img { width: 20px; height: 20px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing: -0.04em; }
.install, .providers, .advantages { padding: 34px 0 34px; }
.install-primary { padding-top: 20px; }
#install .section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#install .section-heading h2 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}
.install-subhead {
  margin: 8px 0 0;
  font-size: 1.15rem;
  color: var(--purple-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
}
#install .section-copy {
  font-size: 1.12rem;
}
.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 420px));
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.command-card, .provider-pill, .install-link, .advantage-card { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.command-card { border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.command-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.platform-badge { color: var(--purple-soft); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; }
.copy-btn { appearance: none; border: 1px solid rgba(196,181,253,0.22); background: rgba(255,255,255,0.04); color: var(--text); border-radius: 12px; min-height: 38px; padding: 0 14px; cursor: pointer; }
.copy-btn:hover { border-color: rgba(196,181,253,0.5); }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; color: #ddddef; font-size: 1.08rem; line-height: 1.5; }
code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.advantage-card {
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.advantage-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139,92,246,0.24), rgba(236,107,255,0.16));
  border: 1px solid rgba(196,181,253,0.24);
  box-shadow: 0 10px 30px rgba(111, 76, 255, 0.2);
  font-size: 1.55rem;
}
.advantage-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.advantage-card p {
  margin: 0;
  color: var(--muted);
}
.focus-note { margin-top: 12px; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; background: var(--panel); backdrop-filter: blur(10px); }
.focus-note p { margin: 0 0 10px; }
.focus-note p:last-child { margin-bottom: 0; }
.catch-note { margin-top: 8px; }
.catch-line { font-size: 1.18rem; color: #ebe6ff; }
.providers-heading {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem) !important;
  max-width: 14ch;
}
.provider-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.provider-pill { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; padding: 12px 16px; color: #ebeafb; }
.provider-pill img { width: 22px; height: 22px; object-fit: contain; }
.provider-pill img.logo-white { filter: brightness(0) invert(1); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 36px 0 56px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
@keyframes typedStage {
  0% { width: 0ch; opacity: 1; }
  2% { width: 4ch; opacity: 1; }
  4% { width: 7ch; opacity: 1; }
  5% { width: 6ch; opacity: 1; }
  8% { width: 12ch; opacity: 1; }
  10% { width: 15ch; opacity: 1; }
  11% { width: 14ch; opacity: 1; }
  14% { width: 22ch; opacity: 1; }
  16% { width: 26ch; opacity: 1; }
  17% { width: 24ch; opacity: 1; }
  20% { width: 31ch; opacity: 1; }
  22% { width: 36ch; opacity: 1; }
  23% { width: 35ch; opacity: 1; }
  26% { width: 43ch; opacity: 1; }
  28% { width: 47ch; opacity: 1; }
  29% { width: 45ch; opacity: 1; }
  32% { width: 53ch; opacity: 1; }
  34% { width: 58ch; opacity: 1; }
  35% { width: 57ch; opacity: 1; }
  39% { width: 64ch; opacity: 1; }
  43% { width: 64ch; opacity: 1; }
  44%, 100% { width: 64ch; opacity: 0; }
}
@keyframes selectedStage {
  0%, 43% { opacity: 0; }
  44%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
@keyframes goodStage {
  0%, 48% { opacity: 0; filter: brightness(1); }
  49%, 54% { opacity: 1; filter: brightness(1.45); text-shadow: 0 0 20px rgba(196,181,253,0.28); }
  55%, 84% { opacity: 1; filter: brightness(1); text-shadow: none; }
  85%, 100% { opacity: 0; }
}
@keyframes keyPress {
  0%, 41%, 100% { transform: translateY(0); filter: brightness(1); box-shadow: inset 0 -2px 0 rgba(255,255,255,0.04), 0 0 0 rgba(236,107,255,0); border-color: rgba(255,255,255,0.12); }
  42% { transform: translateY(3px); filter: brightness(1.24); box-shadow: inset 0 0 0 rgba(255,255,255,0.04), 0 0 0 rgba(236,107,255,0); border-color: rgba(255,255,255,0.32); }
  44% { transform: translateY(0); filter: brightness(1.7); box-shadow: inset 0 -2px 0 rgba(255,255,255,0.04), 0 0 42px rgba(236,107,255,0.72), 0 0 16px rgba(255,255,255,0.28); border-color: rgba(236,107,255,0.9); }
  46% { transform: translateY(0); filter: brightness(1.14); box-shadow: inset 0 -2px 0 rgba(255,255,255,0.04), 0 0 12px rgba(236,107,255,0.2); border-color: rgba(255,255,255,0.2); }
}
@keyframes typingJitter {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  12% { transform: translateX(0.2px) translateY(-0.1px) rotate(-0.15deg); }
  24% { transform: translateX(-0.15px) translateY(0.15px) rotate(0.12deg); }
  36% { transform: translateX(0.25px) translateY(0) rotate(-0.12deg); }
  48% { transform: translateX(-0.2px) translateY(-0.12px) rotate(0.14deg); }
  60% { transform: translateX(0.18px) translateY(0.08px) rotate(-0.08deg); }
  72% { transform: translateX(-0.22px) translateY(0.14px) rotate(0.1deg); }
  84% { transform: translateX(0.15px) translateY(-0.1px) rotate(-0.1deg); }
  100% { transform: translateX(0) translateY(0) rotate(0deg); }
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes mobileTypedStage {
  0%, 38% {
    opacity: 1;
    transform: translateY(0);
  }
  42%, 100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes mobileSelectedStage {
  0%, 40% {
    opacity: 0;
  }
  44%, 56% {
    opacity: 1;
  }
  60%, 100% {
    opacity: 0;
  }
}
@keyframes mobileGoodStage {
  0%, 58% {
    opacity: 0;
    transform: translateY(4px);
  }
  64%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 960px) {
  .hero, .command-grid, .advantage-grid { grid-template-columns: 1fr; }
  .demo-screen { min-height: 250px; }
  .demo-input-box { min-height: 110px; }
  .command-grid { justify-content: stretch; }
}
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  nav { flex-wrap: wrap; gap: 14px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .demo-action-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .demo-screen { min-height: auto; }
  .demo-input-box {
    min-height: 112px;
    padding: 14px;
    overflow: hidden;
  }
  .demo-stage {
    left: 14px;
    top: 14px;
    right: 14px;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }
  .demo-stage-typed {
    width: auto;
    animation: mobileTypedStage 12s infinite;
  }
  .demo-stage-selected {
    animation: mobileSelectedStage 12s infinite;
  }
  .demo-stage-good {
    animation: mobileGoodStage 12s infinite;
  }
  .demo-caret {
    display: none;
  }
  .demo-keys {
    flex-wrap: wrap;
  }
}
