:root {
  --bg: #07090f;
  --text: #e8ecf3;
  --muted: #9aa4b5;
  --line: #242a3a;
  --panel: #0f131d;
  --feature-cta-gradient-start: #b14dff;
  --feature-cta-gradient-end: #5836d7;
  --feature-cta-text-color: #f5f1ff;
  --feature-cta-border-color: #7b5bef;
  --feature-divider-line-start: rgba(123, 91, 239, 0);
  --feature-divider-line-mid: rgba(171, 138, 255, 0.9);
  --feature-divider-line-end: rgba(123, 91, 239, 0);
  --feature-divider-dot-color: #b98bff;
  --feature-divider-glow-color: rgba(173, 137, 255, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(84, 106, 210, 0.24), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(63, 140, 255, 0.2), transparent 32%),
    var(--bg);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border: 1px solid #2b3348;
  border-radius: 18px;
  background: rgba(10, 14, 23, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand {
  text-decoration: none;
  color: #f1f5ff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.header-nav a {
  text-decoration: none;
  color: #b4bfd4;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.header-nav a:hover {
  background: #1d2538;
  color: #e6ebfb;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 40;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  color: #eef3ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid #33405d;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(29, 37, 57, 0.96), rgba(15, 22, 37, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.language-button:hover,
.language-button:focus {
  border-color: #5b73b7;
  outline: none;
}

.language-globe,
.language-globe svg {
  width: 17px;
  height: 17px;
  display: inline-flex;
}

.language-current {
  min-width: 18px;
}

.language-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #c7d2ff;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 8px;
  border: 1px solid #273452;
  border-radius: 10px;
  background: rgba(12, 19, 36, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.language-option {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #d8e2f8;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.language-option:hover,
.language-option.is-active {
  background: rgba(61, 84, 132, 0.42);
  color: #ffffff;
}

.language-check {
  color: #5f7cff;
  opacity: 0;
  font-weight: 900;
}

.language-option.is-active .language-check {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main {
  padding: 24px 0 54px;
}

.panel {
  background: linear-gradient(160deg, rgba(18, 23, 35, 0.95), rgba(12, 16, 27, 0.95));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 3.2vw, 34px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0;
  width: fit-content;
  border: 1px solid #354060;
  border-radius: 999px;
  background: rgba(82, 109, 210, 0.18);
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2ff;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  color: #f5f7fb;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.description {
  margin-top: 6px;
}

.feature-section-title {
  margin: 24px 0 14px;
  font-size: 1.3rem;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.spotlight {
  border: 1px solid #2e3b5f;
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(130, 93, 246, 0.15), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(65, 104, 230, 0.15), transparent 38%),
    linear-gradient(145deg, #131b35, #0f1730);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(22px);
  transition:
    transform 0.45s ease,
    border-color 0.2s ease,
    opacity 0.45s ease;
  will-change: transform, opacity;
}

.spotlight:hover {
  transform: translateY(-2px);
  border-color: #3a4668;
}

.feature-text {
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateX(-36px);
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.spotlight img {
  width: min(100%, 360px);
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  justify-self: center;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateX(36px) scale(0.985);
  transition: transform 0.55s ease, opacity 0.55s ease;
}

body.detail-landscape .spotlight {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

body.detail-landscape .spotlight img {
  width: min(100%, 560px);
}

.feature-badge {
  display: none;
}

.feature-title {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.8rem);
  line-height: 1.04;
  color: #f1f5ff;
}

.feature-subtitle {
  margin: 0;
  color: #afb9d4;
  font-size: clamp(0.98rem, 1.15vw, 1.28rem);
  line-height: 1.5;
  max-width: 44ch;
}

.feature-divider {
  margin: 2px 0 4px;
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--feature-divider-line-start),
    var(--feature-divider-line-mid),
    var(--feature-divider-line-end)
  );
  position: relative;
}

.feature-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--feature-divider-dot-color);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--feature-divider-glow-color);
}

.feature-core-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: #e4ebff;
}

.feature-core-list li {
  line-height: 1.5;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 14px 16px 14px 84px;
  border-radius: 14px;
  background: rgba(25, 33, 61, 0.6);
  border: 1px solid #2d3b5f;
}

.feature-core-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2e3962, #1b2446);
  border: 1px solid #40507a;
  transform: translateY(-50%);
}

.feature-core-list li::after {
  content: "01";
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffdc7a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.feature-core-list li:nth-child(2)::after {
  content: "02";
}

.feature-core-list li:nth-child(3)::after {
  content: "03";
}

.feature-cta {
  margin-top: 4px;
  width: min(100%, 580px);
  border: 1px solid var(--feature-cta-border-color);
  background: linear-gradient(135deg, var(--feature-cta-gradient-start), var(--feature-cta-gradient-end));
  color: var(--feature-cta-text-color);
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(102, 68, 227, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.feature-cta:hover {
  transform: translateY(-1px);
  opacity: 0.98;
}

.feature-cta:focus-visible {
  outline: 2px solid #d9ccff;
  outline-offset: 2px;
}

.feature-cta-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.feature-cta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.download-modal-open {
  overflow: hidden;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.7);
  backdrop-filter: blur(4px);
}

.download-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  border-radius: 20px;
  border: 1px solid #36486c;
  background:
    radial-gradient(circle at 12% 0%, rgba(129, 143, 255, 0.24), transparent 36%),
    linear-gradient(160deg, rgba(18, 26, 44, 0.98), rgba(12, 18, 34, 0.98));
  padding: 20px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.45);
}

.download-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #425580;
  background: rgba(16, 25, 44, 0.9);
  color: #d8e2ff;
  font-size: 1rem;
  cursor: pointer;
}

.download-modal-eyebrow {
  margin: 0;
  color: #aebde0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-modal-title {
  margin: 8px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.download-links {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.download-badge-link {
  display: inline-flex;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.download-badge-link img {
  width: 170px;
  height: auto;
  display: block;
}

.download-badge-link.is-disabled {
  opacity: 0.42;
  filter: grayscale(1) saturate(0.2);
  pointer-events: none;
  cursor: not-allowed;
}

.spotlight:nth-child(even) .feature-text {
  order: 2;
  transform: translateX(36px);
}

.spotlight:nth-child(even) img {
  order: 1;
  transform: translateX(-36px) scale(0.985);
}

.spotlight.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spotlight.is-visible .feature-text,
.spotlight.is-visible img {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (max-width: 860px) {
  .site-header {
    top: 0;
  }

  .header-inner {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 10px 0;
    background: rgba(10, 14, 23, 0.9);
  }

  .spotlight {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .spotlight img {
    width: min(100%, 280px);
    height: auto;
    max-width: 100%;
    max-height: none;
    justify-self: center;
  }

  body.detail-landscape .spotlight img {
    width: min(100%, 620px);
  }

  .feature-title {
    font-size: clamp(1.45rem, 6.5vw, 2.1rem);
  }

  .feature-subtitle {
    font-size: 0.95rem;
  }

  .feature-cta {
    width: 100%;
    justify-content: center;
  }

  .download-modal-panel {
    padding: 18px 14px;
  }

  .download-links {
    justify-content: center;
  }

  .download-badge-link img {
    width: min(170px, 39vw);
  }

  .spotlight:nth-child(even) .feature-text {
    order: 1;
  }

  .spotlight:nth-child(even) img {
    order: 2;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-left: 1px solid #2b3348;
    border-right: 1px solid #2b3348;
    border-radius: 14px;
  }

  .brand {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.5rem, 7.2vw, 2rem);
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .header-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .header-nav a {
    text-align: center;
    padding: 9px 6px;
    font-size: 0.96rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .language-switcher,
  .language-button {
    width: 100%;
  }

  .language-switcher {
    display: flex;
  }

  .language-button {
    justify-content: center;
  }

  .language-menu {
    left: 0;
    right: 0;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding: 10px;
    gap: 8px;
  }

  .header-nav a {
    padding: 8px 4px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight,
  .spotlight .feature-text,
  .spotlight img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid #252c3d;
  padding: 16px 0 24px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: #8f9bb2;
  font-size: 0.9rem;
  line-height: 1.5;
}
