:root {
  --bg: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e5eefb;
  --muted: #94a3b8;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --secondary: #22c55e;
  --surface-text: #0f172a;
  --surface-muted: #475569;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  --radius-md: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--surface-text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

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

figure {
  margin: 0;
}

 a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 27, 75, 0.9) 48%, rgba(15, 23, 42, 0.96) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0) 0%, rgba(139, 92, 246, 0.9) 50%, rgba(34, 197, 94, 0) 100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(15, 23, 42, 0.72);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(139, 92, 246, 0.12) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 30px rgba(15, 23, 42, 0.28);
}

.site-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.site-brand__title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(229, 238, 251, 0.86);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.32) 0%, rgba(124, 58, 237, 0.24) 100%);
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.14);
  transform: translateY(-1px);
}

.site-header__cta,
.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow:
    0 14px 32px rgba(124, 58, 237, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 72px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.35), transparent 34%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #111827 58%, #1e1b4b 100%);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.hero__text {
  padding-top: 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.hero__description,
.section__heading p,
.card p,
.feature-item p,
.architecture p,
.footer p,
.gallery-card figcaption span {
  line-height: 1.75;
}

.hero__description {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(229, 238, 251, 0.88);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button--secondary {
  color: #fff;
  border: 1px solid rgba(229, 238, 251, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.hero__note {
  margin-top: 18px;
  color: rgba(229, 238, 251, 0.68);
  font-size: 14px;
}

.hero__visual {
  position: relative;
  min-height: 560px;
}

.hero__visual-glow {
  position: absolute;
  inset: 16% 10% auto 10%;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.34) 0%, rgba(34, 197, 94, 0.14) 45%, transparent 72%);
  filter: blur(14px);
}

.hero__visual-card {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero__visual-card--main {
  top: 18px;
  right: 0;
  width: min(100%, 560px);
  padding: 14px;
}

.hero__visual-card--main img {
  width: 100%;
  border-radius: 18px;
}

.hero__visual-card--floating {
  left: 0;
  bottom: 24px;
  width: min(100%, 320px);
  padding: 24px;
}

.hero__visual-card--floating h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.hero__visual-card--floating ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(229, 238, 251, 0.86);
  line-height: 1.9;
}

.section {
  padding: 84px 0;
  scroll-margin-top: 96px;
}

.section--alt {
  background: rgba(255, 255, 255, 0.62);
}

.section--download {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(34, 197, 94, 0.06) 100%);
}

.section__heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(139, 92, 246, 0.1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section__heading h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-title--single-line {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .section-title--single-line {
    white-space: normal;
  }
}


.grid,
.feature-list,
.architecture__cards,
.download-grid,
.gallery-grid {
  display: grid;
  gap: 20px;
}

.grid--3,
.feature-list,
.architecture__cards,
.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.card,
.feature-item,
.download-card,
.gallery-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.card,
.feature-item {
  padding: 24px;
}

.card h3,
.feature-item h3,
.download-card strong,
.gallery-card figcaption strong {
  margin: 0 0 10px;
  font-size: 20px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.gallery-card--wide {
  grid-column: span 2;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.download-card__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.download-card__icon svg {
  width: 28px;
  height: 28px;
}

.download-card__arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.54);
  background: rgba(148, 163, 184, 0.12);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.download-card strong {
  margin: 0;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.download-card:hover .download-card__arrow {
  transform: translate(2px, -2px);
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.12);
}

.download-card--macos .download-card__icon {
  color: #5f6670;
  background: linear-gradient(180deg, rgba(240, 242, 245, 0.98) 0%, rgba(214, 219, 226, 0.94) 100%);
}

.download-card--windows .download-card__icon {
  color: #0078d4;
  background: linear-gradient(180deg, rgba(232, 244, 253, 0.98) 0%, rgba(201, 231, 252, 0.95) 100%);
}

.download-card--linux .download-card__icon {
  color: #2f3640;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.98) 0%, rgba(253, 215, 160, 0.95) 100%);
}

.download-card__platform {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  max-width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.download-card--linux .download-card__platform {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}


.download-card--windows .download-card__platform {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
}

.download-card--macos .download-card__platform {
  color: #4b5563;
  background: rgba(148, 163, 184, 0.16);
}

@media (max-width: 640px) {
  .download-card {
    align-items: flex-start;
    padding: 20px;
  }

  .download-card__icon {
    width: 52px;
    height: 52px;
  }
}


.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 980px) {
  .hero__content,
  .architecture,
  .grid--3,
  .feature-list,
  .architecture__cards,
  .download-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-header__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__inner {
    min-height: auto;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .gallery-card--wide {
    grid-column: auto;
  }

  .hero__visual {
    min-height: auto;
    display: grid;
    gap: 20px;
  }

  .hero__visual-card,
  .hero__visual-card--main,
  .hero__visual-card--floating {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 72px 0 56px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .site-header__cta {
    min-height: 40px;
    padding: 0 16px;
  }

  .hero__text {
    padding-top: 12px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__visual-card,
  .card,
  .feature-item,
  .download-card,
  .gallery-card figcaption {
    padding: 20px;
  }

  .gallery-card img {
    aspect-ratio: 16 / 11;
  }
}
