:root {
  --bg: #15131A;
  --bg-alt: #1D1B23;
  --bg-card: #2B2832;
  --accent: #A5AEF7;
  --accent-strong: #7D88EF;
  --text: #EDEDED;
  --text-muted: #A8A4B0;
  --border: #4A4754;
  --border-soft: rgba(165, 174, 247, 0.22);
  --strong: #6FCF97;
  --mixed: #E8B860;
  --weak: #EC8C8C;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21, 19, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 71, 84, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-glyph {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #15131A;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}

.lang-switch {
  flex: none;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(165, 174, 247, 0.12);
}

.lang-btn[aria-current="true"] {
  background: var(--accent);
  color: #15131A;
}

/* sections */

.section {
  padding: 52px 0;
}

.section + .section {
  padding-top: 0;
}

.section-hero {
  padding-top: 64px;
}

.hero-title {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 18ch;
}

.section-title {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.lead {
  margin: 0 0 14px;
  color: var(--text-muted);
  max-width: 72ch;
}

.lead b {
  color: var(--text);
  font-weight: 600;
}

/* three groups */

.groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 0;
}

.group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--group);
  border-radius: 14px;
  padding: 20px;
}

.group--strong { --group: var(--strong); }
.group--mixed { --group: var(--mixed); }
.group--weak { --group: var(--weak); }

.group-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--group);
  background: color-mix(in srgb, var(--group) 16%, transparent);
  margin-bottom: 12px;
}

.group-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.group-title {
  margin: 0 0 6px;
  font-size: 17px;
}

.group-text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* bullets */

.bullets {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  max-width: 78ch;
}

.bullets li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--text-muted);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.bullets li b {
  color: var(--text);
  font-weight: 600;
}

/* screenshots */

.shot {
  margin: 32px 0 0;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.shot-frame {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
  line-height: 0;
  transition: border-color 0.18s, transform 0.18s;
}

.shot-frame:hover,
.shot-frame:focus-visible {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-2px);
}

.shot-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
}

.shot--wide .shot-img {
  height: auto;
  max-height: 520px;
}

/* fade at the crop edge: makes it obvious the shot continues */
.shot-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(21, 19, 26, 0), rgba(21, 19, 26, 0.92));
  pointer-events: none;
}

.shot-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(21, 19, 26, 0.72);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
  transition: background 0.18s, color 0.18s;
}

.shot-frame:hover .shot-badge,
.shot-frame:focus-visible .shot-badge {
  background: var(--accent);
  color: #15131A;
}

.shot-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 12px 14px;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.18s, color 0.18s;
}

.shot-frame:hover .shot-hint,
.shot-frame:focus-visible .shot-hint {
  opacity: 1;
  color: var(--accent);
}

.shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* cta */

.cta {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 34px 36px;
  text-align: center;
}

.cta-title {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  color: var(--accent);
}

.cta-text {
  margin: 0 auto 12px;
  color: var(--text-muted);
  max-width: 72ch;
  font-size: 16px;
}

.cta-link {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #15131A;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.cta-link:hover {
  background: #fff;
}

/* footer */

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(74, 71, 84, 0.6);
  padding: 24px 0 40px;
}

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

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  /* Opaque rather than a blurred backdrop: blurring a 2582px screenshot
     full-screen is expensive and buys nothing at this opacity. */
  background: #0D0C11;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(74, 71, 84, 0.5);
}

.lightbox-caption {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-zoom,
.lightbox-close {
  flex: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lightbox-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.lightbox-zoom:hover,
.lightbox-close:hover,
.lightbox-zoom:focus-visible,
.lightbox-close:focus-visible {
  background: rgba(165, 174, 247, 0.16);
  border-color: var(--accent);
  outline: none;
}

.lightbox-scroll {
  flex: 1;
  overflow: auto;
  padding: 18px;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.lightbox-img {
  display: inline-block;
  width: 100%;
  max-width: 1600px;
  height: auto;
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}

.lightbox.is-actual .lightbox-scroll {
  text-align: left;
}

.lightbox.is-actual .lightbox-img {
  width: auto;
  max-width: none;
  cursor: grab;
}

@media (max-width: 900px) {
  .groups,
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .brand-sub {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 36px 0;
  }

  .section-hero {
    padding-top: 40px;
  }

  .hero-title {
    max-width: none;
  }

  .shot-img {
    height: 300px;
  }

  .shot--wide .shot-img {
    max-height: 300px;
  }

  .cta {
    padding: 26px 20px;
  }

  .lightbox-bar {
    padding: 10px 12px;
  }

  .lightbox-scroll {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
