:root {
  color-scheme: dark;
  --bg: #000000;
  --line: #1f2b3f;
  --text: #f5f8ff;
  --muted: #b9c8ee;
  --blue: #2d86ff;
  --blue-soft: #4da0ff;
  --blue-deep: #075df0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(115deg, rgba(4, 15, 31, 0.96) 0%, rgba(0, 0, 0, 0.1) 34%, rgba(4, 19, 39, 0.94) 100%),
    linear-gradient(172deg, #00040a 0%, #061326 42%, #020913 63%, #000000 100%),
    conic-gradient(from 205deg at 48% 42%, rgba(0, 0, 0, 0.9), rgba(26, 92, 185, 0.2), rgba(0, 0, 0, 0.78), rgba(12, 48, 102, 0.28), rgba(0, 0, 0, 0.9)),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

main {
  min-height: 0;
  display: flex;
  align-items: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 42px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 260px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.github-button,
.demo-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid rgba(185, 200, 238, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.48);
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.github-button svg,
.demo-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.github-button:hover,
.demo-button:not(:disabled):hover {
  border-color: rgba(77, 160, 255, 0.5);
  background: rgba(15, 29, 54, 0.62);
}

.hero {
  width: min(100%, 960px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 32px 32px 54px;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 58px;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 296px;
  border-right: 1px solid rgba(77, 160, 255, 0.48);
  padding-right: 58px;
}

.hero-logo img {
  width: 272px;
  height: 272px;
  object-fit: contain;
}

.intro {
  min-width: 0;
}

h1,
.feature-list {
  margin: 0;
}

h1 {
  display: block;
  color: var(--text);
  font-size: clamp(54px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(77, 160, 255, 0.14);
}

h1 > span {
  display: block;
  white-space: nowrap;
}

.accent {
  color: var(--blue);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin-top: 36px;
  color: var(--blue-soft);
  font-size: 20px;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.feature-list svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-panel {
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download-button {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 46px auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 0 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b75ff, var(--blue-deep));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(0, 77, 255, 0.28);
}

.download-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2a83ff, #126bff);
}

.download-button img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  justify-self: center;
}

.download-button span {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.download-button strong {
  font-size: 22px;
  line-height: 1.15;
}

.download-button small {
  color: #d5e5ff;
  font-size: 16px;
}

.demo-button {
  width: 100%;
  justify-content: center;
}

.demo-button:disabled {
  color: rgba(245, 248, 255, 0.48);
  border-color: rgba(185, 200, 238, 0.12);
  background: rgba(5, 9, 18, 0.32);
  cursor: not-allowed;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px 22px;
  color: rgba(185, 200, 238, 0.76);
  font-size: 14px;
}

.site-footer a {
  color: var(--blue-soft);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.github-button:focus-visible,
.demo-button:focus-visible,
.download-button:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    padding: 24px 24px 0;
  }

  .brand img {
    width: 210px;
    height: 54px;
  }

  .github-button {
    min-height: 48px;
    padding: 0 16px;
    font-size: 0;
    gap: 0;
  }

  .hero {
    gap: 46px;
    padding: 34px 24px 46px;
    text-align: center;
  }

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

  .hero-logo {
    min-height: auto;
    border-right: 0;
    padding-right: 0;
  }

  .hero-logo img {
    width: 196px;
    height: 196px;
  }

  h1 {
    font-size: clamp(42px, 10vw, 48px);
  }

  .feature-list {
    justify-content: center;
    font-size: 17px;
  }

  .download-panel {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    padding: 18px 16px 0;
  }

  .brand img {
    width: 168px;
    height: 46px;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .feature-list {
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }

  .download-panel,
  .download-button {
    width: 100%;
  }

  .download-button {
    grid-template-columns: 42px auto;
    min-height: 82px;
    gap: 9px;
    padding: 0 18px;
  }

  .download-button strong {
    font-size: 18px;
  }

  .download-button small {
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }
}
