:root {
  color-scheme: dark;

  --bg: #0b0b11;
  --bg-soft: #101017;
  --panel: #14141d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(139, 125, 255, 0.32);
  --text: #f2f0f7;
  --muted: #a6a2b8;
  --accent: #8b7dff;
  --accent-bright: #b6acff;
  --accent-soft: rgba(139, 125, 255, 0.14);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background:
    radial-gradient(1000px 560px at 50% -220px, rgba(139, 125, 255, 0.16), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #d5ceff;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

::selection {
  background: rgba(139, 125, 255, 0.4);
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

p {
  text-wrap: pretty;
}

code {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #ded9f0;
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #1b1b26;
  color: #ded9f0;
  font-family: var(--mono);
  font-size: 0.76em;
  line-height: 1.5;
  white-space: nowrap;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0b11;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
  color: #0b0b11;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 17, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list a.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
}

.nav-list a.nav-github:hover {
  border-color: var(--accent);
  background: rgba(139, 125, 255, 0.22);
}

.nav-github svg {
  width: 15px;
  height: 15px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 125, 255, 0.18), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ee0a0;
  box-shadow: 0 0 10px rgba(94, 224, 160, 0.7);
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 4.9vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.accent-text {
  display: block;
  background: linear-gradient(100deg, #c9c1ff 0%, var(--accent) 55%, #a495ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34rem;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.13rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: #0b0b11;
  box-shadow: 0 10px 30px rgba(139, 125, 255, 0.28);
}

.btn-primary:hover {
  background: #a093ff;
  color: #0b0b11;
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero-note a {
  color: var(--muted);
}

.hero-note a:hover {
  color: var(--text);
}

.hero-shot {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  margin: 0;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: -7%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 125, 255, 0.3), transparent 72%);
  filter: blur(28px);
}

.hero-shot img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.02);
}

.hero-mascot {
  display: block;
  width: 132px;
  height: 132px;
  margin-bottom: 16px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(139, 125, 255, 0.28));
}

.hero-mascot-live {
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-mascot-live:active {
  cursor: grabbing;
}

.hero-demo-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Clickable screenshots */

.shot-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  cursor: zoom-in;
}

.shot-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shot-link::after {
  content: "View larger";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(8, 7, 14, 0.8);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
}

.shot-link:hover::after,
.shot-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hero-shot .shot-link {
  border-radius: 22px;
}

/* Screenshot lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  background: rgba(5, 4, 10, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 560px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

/* Sections */

.section {
  padding: 92px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.1vw, 2.55rem);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 26px 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.feature:hover {
  border-color: rgba(139, 125, 255, 0.34);
  background: linear-gradient(180deg, rgba(139, 125, 255, 0.07), rgba(255, 255, 255, 0.012));
  transform: translateY(-2px);
}

.feature.wide {
  grid-column: 1 / -1;
}

.feature.wide p {
  max-width: 74ch;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid rgba(139, 125, 255, 0.2);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* Screenshots */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease;
}

.shot:hover {
  border-color: rgba(139, 125, 255, 0.26);
}

.shot img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: var(--bg-soft);
}

.shot figcaption {
  padding: 12px 6px 4px;
}

.shot strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.shot span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.shot-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 920px;
  padding: 20px;
}

.shot-wide figcaption {
  padding: 0;
  max-width: 360px;
}

.shot-wide strong {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.shot-wide span {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Install */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  align-items: start;
  gap: clamp(36px, 5vw, 60px);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.steps li:first-child {
  padding-top: 0;
}

.steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 1px solid rgba(139, 125, 255, 0.35);
  border-radius: 50%;
  background: var(--accent-soft);
  color: #cdc6ff;
  font-size: 0.83rem;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.steps a {
  color: var(--accent-bright);
}

.install-aside {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(139, 125, 255, 0.11), rgba(255, 255, 255, 0.015) 62%);
}

.install-aside h3 {
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 650;
}

.install-aside ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-aside li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.install-aside li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.shortcut {
  white-space: nowrap;
}

/* Privacy */

.privacy {
  background: linear-gradient(180deg, transparent, rgba(139, 125, 255, 0.045));
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.privacy-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 11, 17, 0.45);
}

.privacy-card h3 {
  margin-bottom: 9px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.privacy-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Footer */

.site-footer {
  padding: 30px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--text);
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .install-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 64px 0 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-shot {
    max-width: 320px;
  }

  .hero-mascot {
    width: 104px;
    height: 104px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(1120px, calc(100% - 40px));
  }

  .section {
    padding: 68px 0;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .shot {
    max-width: 340px;
  }

  .shot-wide {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .shot-wide figcaption {
    max-width: none;
    padding: 0 6px 6px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    gap: 14px;
  }

  .nav-list a {
    font-size: 0.86rem;
  }

  .nav-list a.nav-github {
    padding: 7px 10px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  html {
    scroll-padding-top: 116px;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.nav-list a.lang-switch {
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-list a.lang-switch:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
