/* ==========================================================================
   GAU - HOMEPAGE (INDEX) STYLES
   ========================================================================== */

/* Main Content Container */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 20px 32px;
}

/* ==========================================================================
   KEYBOARD HERO
   ========================================================================== */

.hero-keyboard {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 88px;
}

.kb-scale-wrap {
  width: 728px;
  max-width: 100%;
  height: 306.85px;
  position: relative;
}

.kb-wrap {
  user-select: none;
  -webkit-user-select: none;
  transform: scale(1.0297);
  transform-origin: top left;
}

@media (max-width: 767px) {
  .kb-scale-wrap {
    height: calc((100vw - 40px) / 707px * 0.999 * 298px);
    overflow: hidden;
  }

  .kb-wrap {
    transform: scale(calc((100vw - 40px) / 707px * 0.999));
  }
}

.keyboard-case {
  width: 707px;
  height: 298px;
  background-image: url("../assets/keyboard-base.png");
  background-size: 707px 298px;
  background-repeat: no-repeat;
  border-radius: 16px;
  position: relative;
  box-shadow:
    0px 6px 8px 0px rgba(0, 0, 0, 0.24),
    0px 16px 16px 0px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .keyboard-case {
  background-image: url("../assets/my-keyboard-dark.png");
  box-shadow:
    0px 6px 12px 0px rgba(0, 0, 0, 0.5),
    0px 16px 24px 0px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .keyboard-case {
    background-image: url("../assets/my-keyboard-dark.png");
    box-shadow:
      0px 6px 12px 0px rgba(0, 0, 0, 0.5),
      0px 16px 24px 0px rgba(0, 0, 0, 0.35);
  }
}

.recess {
  position: absolute;
  padding: 2px;
  display: flex;
}

.recess-main,
.recess-arrow {
  padding: 0 !important;
}

.keys-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 2px;
}

.keyboard-row,
.arrow-row {
  display: flex;
  gap: 2px;
  align-items: center;
  width: 100%;
}

.keycap {
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  border-radius: 8px;
  overflow: clip;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .keycap {
  border-color: rgba(255, 255, 255, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .keycap {
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.keycap.w-40 { width: 40px; }
.keycap.w-50 { width: 50px; }
.keycap.w-60 { width: 60px; }
.keycap.w-70 { width: 70px; }
.keycap.w-80 { width: 80px; }
.keycap.w-90 { width: 90px; }
.keycap.w-92 { width: 92px; }
.keycap.w-260 { width: 260px; }

/* Keycap face */
.key-face {
  position: absolute;
  inset: 0;
  background-image: url("../assets/key-sprite.png");
  background-repeat: no-repeat;
  background-size: 312px 120px;
  transition: filter 0.08s cubic-bezier(0.25, 1, 0.5, 1), transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="dark"] .key-face {
  background-image: url("../assets/key-sprite-dark.png");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .key-face {
    background-image: url("../assets/key-sprite-dark.png");
  }
}

.keycap.pressed .key-face {
  filter: brightness(0.85);
  transform: translateY(1px);
}

.keycap.knob {
  border-radius: 50%;
}

.tex-grey { background-position: 0px 0px; }
.tex-white { background-position: -40px 0px; }
.tex-knob { background-position: -80px 0px; }
.tex-go { background-position: -120px 0px; }
.tex-w70 { background-position: -160px 0px; }
.tex-w60 { background-position: -230px 0px; }
.tex-enter { background-position: 0px -40px; }
.tex-backspace { background-position: -92px -40px; }
.tex-w50 { background-position: -172px -40px; }
.tex-shiftl { background-position: -222px -40px; }
.tex-space { background-position: 0px -80px; }

.key-legend {
  position: absolute;
  left: 50%;
  top: calc(50% - 2px);
  transform: translate(-50%, -50%);
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 17.5px;
  color: #000;
  letter-spacing: -0.875px;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

.key-legend.key-medium {
  font-size: 15px;
  letter-spacing: -0.75px;
  left: calc(50% + 0.5px);
  top: calc(50% - 1.5px);
}

.key-legend.key-small {
  font-size: 12px;
  letter-spacing: -0.6px;
  left: calc(50% - 0.5px);
  top: 50%;
}

.key-legend.key-legend-light {
  color: #fff;
}

.legend-top {
  position: absolute;
  left: 50%;
  top: calc(50% - 8px);
  transform: translate(-50%, -50%);
  font-family: 'Rubik', sans-serif;
  font-size: 10px;
  letter-spacing: -0.5px;
  color: #000;
  line-height: 1;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

.legend-bottom {
  position: absolute;
  left: calc(50% + 0.5px);
  top: calc(50% + 4.5px);
  transform: translate(-50%, -50%);
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  color: #000;
  line-height: 1;
  letter-spacing: -0.65px;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="dark"] .keyboard-case .key-legend:not(.key-legend-light),
[data-theme="dark"] .keyboard-case .legend-top,
[data-theme="dark"] .keyboard-case .legend-bottom {
  color: #b8b8b8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .keyboard-case .key-legend:not(.key-legend-light),
  :root:not([data-theme="light"]) .keyboard-case .legend-top,
  :root:not([data-theme="light"]) .keyboard-case .legend-bottom {
    color: #b8b8b8;
  }
}

.keycap.pressed .key-legend,
.keycap.pressed .legend-top,
.keycap.pressed .legend-bottom {
  transform: translate(-50%, -50%) translateY(1px) scale(0.98);
}

/* ==========================================================================
   BRAND & HERO TEXT
   ========================================================================== */

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   DOWNLOAD CALL TO ACTION (CTA)
   ========================================================================== */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-desktop[hidden],
[hidden] {
  display: none !important;
}

.cta-mobile-text {
  display: none;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .cta-desktop {
    display: none;
  }

  .cta-mobile-text {
    display: block;
  }
}

.download-keycap {
  box-sizing: border-box;
  width: 180px;
  height: 40px;
  border: 1px solid #141414;
  border-radius: 8px;
  overflow: clip;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

.download-keycap:active {
  transform: scale(0.99);
  box-shadow: none;
}

.download-keycap .key-base {
  position: absolute;
  inset: -1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'><g transform='matrix(-4.996e-16 3 -3 -2.498e-16 20 20)'><foreignObject x='-126.67' y='-126.67' width='253.33' height='253.33'><div xmlns='http://www.w3.org/1999/xhtml' style='background-image: conic-gradient(from 90deg, rgb(126, 25, 39) 0%, rgb(101, 20, 31) 12.755%, rgb(143, 29, 44) 17.277%, rgb(184, 37, 57) 21.8%, rgb(212, 42, 65) 38%, rgb(212, 42, 65) 62%, rgb(184, 37, 57) 78.953%, rgb(143, 29, 44) 83.186%, rgb(101, 20, 31) 87.419%, rgb(126, 25, 39) 100%); opacity:1; height: 100%; width: 100%;'></div></foreignObject></g></svg>");
  background-size: 100% 100%;
  transition: filter 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

.download-keycap .key-upper {
  position: absolute;
  inset: 1px 4px 7px 4px;
  border-radius: 8px;
  border: 0.75px solid #f24960;
  background: linear-gradient(to bottom, #b32437, #f24960);
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), filter 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

.download-keycap:hover .key-upper {
  filter: brightness(1.05);
}

.download-keycap:active .key-upper {
  transform: translateY(2px);
  filter: brightness(0.95);
}

.download-keycap .key-legend {
  position: absolute;
  left: 50%;
  top: calc(50% - 2px);
  transform: translate(-50%, -50%);
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.7px;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

.download-keycap:active .key-legend {
  transform: translate(-50%, -50%) translateY(1.5px);
}

/* Light Theme Secondary Keycap (Silver/Light variant) */
.download-keycap.light .key-base {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'><g transform='matrix(-4.996e-16 3 -3 -2.498e-16 20 20)'><foreignObject x='-126.67' y='-126.67' width='253.33' height='253.33'><div xmlns='http://www.w3.org/1999/xhtml' style='background-image: conic-gradient(from 90deg, rgb(152, 152, 152) 0%, rgb(120, 120, 120) 12.755%, rgb(156, 156, 156) 17.277%, rgb(192, 192, 192) 21.8%, rgb(224, 224, 224) 29.9%, rgb(255, 255, 255) 38%, rgb(255, 255, 255) 62%, rgb(224, 224, 224) 71.461%, rgb(192, 192, 192) 80.922%, rgb(156, 156, 156) 84.17%, rgb(120, 120, 120) 87.419%, rgb(152, 152, 152) 100%); opacity:1; height: 100%; width: 100%;'></div></foreignObject></g></svg>");
}

.download-keycap.light .key-upper {
  border: 0.75px solid #ffffff;
  background: linear-gradient(to bottom, #d6d6d6, #ffffff);
}

.download-keycap.light:hover .key-upper {
  filter: brightness(1.05);
}

.download-keycap.light:active .key-upper {
  transform: translateY(2px);
  filter: brightness(0.95);
}

.download-keycap.light .key-legend {
  color: #202020;
}

/* Dark Theme Secondary Keycap (Dark Slate matching keyboard theme) */
[data-theme="dark"] .download-keycap.light .key-base {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'><g transform='matrix(-4.996e-16 3 -3 -2.498e-16 20 20)'><foreignObject x='-126.67' y='-126.67' width='253.33' height='253.33'><div xmlns='http://www.w3.org/1999/xhtml' style='background-image: conic-gradient(from 90deg, rgb(29, 34, 42) 0%, rgb(20, 24, 30) 12.755%, rgb(35, 42, 52) 17.277%, rgb(46, 55, 68) 21.8%, rgb(54, 65, 80) 29.9%, rgb(60, 72, 88) 38%, rgb(60, 72, 88) 62%, rgb(54, 65, 80) 71.461%, rgb(46, 55, 68) 80.922%, rgb(35, 42, 52) 84.17%, rgb(20, 24, 30) 87.419%, rgb(29, 34, 42) 100%); opacity:1; height: 100%; width: 100%;'></div></foreignObject></g></svg>");
}

[data-theme="dark"] .download-keycap.light .key-upper {
  border: 0.75px solid #3d4858;
  background: linear-gradient(to bottom, #29303c, #303946);
}

[data-theme="dark"] .download-keycap.light:hover .key-upper {
  filter: brightness(1.15);
}

[data-theme="dark"] .download-keycap.light:active .key-upper {
  transform: translateY(2px);
  filter: brightness(0.92);
}

[data-theme="dark"] .download-keycap.light .key-legend {
  color: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .download-keycap.light .key-base {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'><g transform='matrix(-4.996e-16 3 -3 -2.498e-16 20 20)'><foreignObject x='-126.67' y='-126.67' width='253.33' height='253.33'><div xmlns='http://www.w3.org/1999/xhtml' style='background-image: conic-gradient(from 90deg, rgb(29, 34, 42) 0%, rgb(20, 24, 30) 12.755%, rgb(35, 42, 52) 17.277%, rgb(46, 55, 68) 21.8%, rgb(54, 65, 80) 29.9%, rgb(60, 72, 88) 38%, rgb(60, 72, 88) 62%, rgb(54, 65, 80) 71.461%, rgb(46, 55, 68) 80.922%, rgb(35, 42, 52) 84.17%, rgb(20, 24, 30) 87.419%, rgb(29, 34, 42) 100%); opacity:1; height: 100%; width: 100%;'></div></foreignObject></g></svg>");
  }

  :root:not([data-theme="light"]) .download-keycap.light .key-upper {
    border: 0.75px solid #3d4858;
    background: linear-gradient(to bottom, #29303c, #303946);
  }

  :root:not([data-theme="light"]) .download-keycap.light:hover .key-upper {
    filter: brightness(1.15);
  }

  :root:not([data-theme="light"]) .download-keycap.light:active .key-upper {
    transform: translateY(2px);
    filter: brightness(0.92);
  }

  :root:not([data-theme="light"]) .download-keycap.light .key-legend {
    color: #e2e8f0;
  }
}

.download-keycap.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cta-caption {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}

.cta-alt {
  display: flex;
  gap: 4px;
  align-items: center;
}

.cta-alt a {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cta-alt a:hover {
  color: var(--accent-red-hover);
  text-decoration: underline;
}

.cta-alt svg {
  width: 16px;
  height: 16px;
}

.cta-alt-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent-red);
  transition: color 0.15s ease;
}

.cta-alt-toggle:hover {
  color: var(--accent-red-hover);
  text-decoration: underline;
}

.cta-alt-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cta-mobile-cta {
  display: none;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.cta-mobile-cta:hover {
  background-color: var(--accent-red-light);
  border-color: var(--accent-red);
  text-decoration: none;
}

.cta-mobile-cta svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .cta-mobile-cta {
    display: inline-flex;
  }
}

/* ==========================================================================
   ALL VERSIONS OVERLAY MODAL
   ========================================================================== */

.versions-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 96px 24px 24px;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease,
              background-color 0.5s ease;
}

.versions-overlay[hidden] {
  display: none !important;
}

.versions-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.versions-modal {
  position: relative;
  width: min(1080px, 100%);
  margin: auto;
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.versions-overlay.open .versions-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.versions-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease;
}

.versions-close:hover {
  background-color: var(--border-subtle);
}

.versions-close svg {
  width: 18px;
  height: 18px;
}

.versions-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-modal);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 40px 24px;
  box-shadow: var(--shadow-card-large);
}

.version-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-left: 1px solid var(--border-divider);
  text-align: left;
}

.version-col:first-child {
  border-left: none;
}

.version-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

[data-theme="dark"] .version-icon[src*="icon-mac"],
[data-theme="dark"] img[src*="icon-mac"] {
  content: url("../assets/icon-mac-dark.svg");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .version-icon[src*="icon-mac"],
  :root:not([data-theme="light"]) img[src*="icon-mac"] {
    content: url("../assets/icon-mac-dark.svg");
  }
}

.version-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.version-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-primary);
  text-align: center;
}

/* Ghi chú nhỏ ngay dưới tiêu đề thẻ phiên bản (vd "Apple Silicon"/"x86") —
   cùng cỡ/màu với .cta-caption ở khối CTA download ngoài hero, kéo sát lên
   .version-name hơn khoảng cách mặc định giữa các dòng trong .version-info. */
.version-note {
  margin-top: -8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.version-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.version-points {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.version-points li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.version-spacer {
  flex: 1 1 auto;
  min-height: 20px;
  width: 100%;
}

.version-btn {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bg-card-subtle);
  color: var(--accent-red);
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.version-btn svg {
  width: 16px;
  height: 16px;
}

.version-btn:hover {
  background-color: var(--accent-red-light);
}

.version-btn.primary {
  background-color: var(--accent-red);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.version-btn.primary:hover {
  background-color: var(--accent-red-hover);
}

.versions-github {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
}

.versions-github:hover {
  color: var(--accent-red);
}

@media (max-width: 860px) {
  .versions-card {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
    padding: 32px 20px;
  }

  .version-col:nth-child(2n+1) {
    border-left: none;
  }

  .version-col:nth-child(n+3) {
    border-top: 1px solid var(--border-divider);
    padding-top: 28px;
  }
}

@media (max-width: 640px) {
  .versions-overlay {
    padding: 80px 16px 16px;
  }

  .versions-close {
    top: -40px;
  }

  .versions-card {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding: 24px 16px;
  }

  .version-col {
    border-left: none !important;
    border-top: 1px solid var(--border-divider);
    padding: 20px 0;
  }

  .version-col:first-child {
    border-top: none;
    padding-top: 0;
  }

  .version-col:last-child {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   FEATURES BLOCK
   ========================================================================== */

.features-blocks {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.feature-card {
  flex: 1 1 0;
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.feature-icon-container {
  width: 40px;
  height: 40px;
}

.feature-icon-container svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .features-blocks {
    flex-direction: column;
  }
}

/* ==========================================================================
   HIGHLIGHTS BAR
   ========================================================================== */

.highlights-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.highlights-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.highlights-extra {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.highlights-extra h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
}

.highlights-extra ul {
  list-style: disc;
  padding-left: 24px;
  width: 100%;
}

.highlights-extra li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.highlights-extra li:last-child {
  margin-bottom: 0;
}

.highlights-extra a {
  color: var(--accent-red);
  text-decoration: underline;
}

.highlight-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.highlight-item img {
  width: 24px;
  height: 24px;
}

.highlight-item p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}

.highlight-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-divider);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .highlights-row {
    flex-direction: column;
    gap: 20px;
  }

  .highlight-divider {
    display: none;
  }

  .highlight-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .highlight-item img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   SCREENSHOTS SHOWCASE
   ========================================================================== */

.shots-showcase {
  width: 100%;
  display: flex;
  justify-content: center;
}

.shots-scale-wrap {
  width: 660px;
  max-width: 100%;
  height: 520px;
  position: relative;
}

.shots-wrap {
  position: relative;
  width: 660px;
  height: 520px;
  transform-origin: top left;
}

.shot {
  position: absolute;
  overflow: clip;
  box-shadow:
    0px 6px 4px rgba(0, 0, 0, 0.24),
    0px 16px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .shot {
  box-shadow:
    0px 6px 8px rgba(0, 0, 0, 0.5),
    0px 16px 16px rgba(0, 0, 0, 0.35);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-1 {
  width: 340px;
  border-radius: 12px;
  left: 312px;
  top: 7px;
  z-index: 2;
}

.shot-2 {
  width: 372px;
  border-radius: 12px;
  border: 1px solid var(--border-divider);
  left: 8px;
  top: 0;
  z-index: 1;
}

.shot-3 {
  width: 460px;
  border-radius: 12px;
  left: -30px;
  top: 0px;
  z-index: 3;
}

.shot-4 {
  width: 460px;
  border-radius: 12px;
  border: 1px solid var(--border-divider);
  left: 230px;
  top: 96px;
  z-index: 4;
}

@media (max-width: 699px) {
  .shots-scale-wrap {
    height: calc((100vw - 40px) / 660px * 0.999 * 520px);
    overflow: hidden;
  }

  .shots-wrap {
    transform: scale(calc((100vw - 40px) / 660px * 0.999));
  }
}

/* ==========================================================================
   SECTIONS & NEWS LATEST
   ========================================================================== */

.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.section h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
}

.news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.news-viewall {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-red);
  text-decoration: none;
  white-space: nowrap;
}

.news-viewall:hover {
  text-decoration: underline;
}

.feed-empty {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
}

.news-latest-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}

.news-latest-card .changelog-entry-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-latest-card .changelog-version {
  background: var(--accent-red-light);
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

.news-latest-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.news-latest-card .changelog-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: auto;
}

.news-latest-card h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 16px 0 6px;
}

.news-latest-card h3:first-child {
  margin-top: 0;
}

.news-latest-card p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.news-latest-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.news-latest-card ul:last-child {
  margin-bottom: 0;
}

.news-latest-card li {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.news-latest-card li:last-child {
  margin-bottom: 0;
}

.news-latest-card code {
  background: var(--bg-code);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.news-latest-card a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.news-latest-card a:hover {
  color: var(--accent-red-hover);
}

@media (max-width: 640px) {
  .news-latest-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-table);
  border: 1px solid var(--border-table);
  border-radius: 16px;
  overflow: clip;
}

.faq-item {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.faq-q {
  display: flex;
  gap: 4px;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 12px 8px;
}

.faq-q span {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: var(--text-primary);
}

.faq-q .faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

[data-theme="dark"] .faq-q .faq-icon path {
  stroke: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .faq-q .faq-icon path {
    stroke: var(--text-primary);
  }
}

.faq-item.open .faq-q .faq-icon {
  transform: rotate(90deg);
}

.faq-a {
  display: none;
  padding: 0 36px 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.faq-a p {
  margin-bottom: 8px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a ul {
  list-style: disc;
  padding-left: 20px;
}

.faq-a li {
  margin-bottom: 6px;
}

.faq-a li:last-child {
  margin-bottom: 0;
}

.faq-item.open .faq-a {
  display: block;
}

/* ==========================================================================
   PROBLEMS & TROUBLESHOOTING TABLE
   ========================================================================== */

.problems-table {
  width: 100%;
  background: var(--border-table);
  border: 1px solid var(--border-table);
  border-radius: 8px;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.problems-row {
  display: flex;
  gap: 1px;
  width: 100%;
}

.problems-row.header .cell {
  background: var(--bg-table-header);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  padding: 12px 8px 4px;
  color: var(--text-primary);
}

.cell {
  background: var(--bg-card);
  padding: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}

.cell.label {
  width: 280px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.cell.solution {
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
}

.cell ul {
  padding-left: 24px;
}

@media (max-width: 640px) {
  .problems-row {
    flex-direction: column;
  }

  .cell.label {
    width: 100%;
    font-weight: 500;
  }

  .problems-row.header {
    display: none;
  }
}

.problems-help {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.problems-help a {
  color: var(--accent-red);
  text-decoration: underline;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contact-text a {
  color: var(--accent-red);
  text-decoration: underline;
}
