:root {
  --bg: #0f1115;
  --panel: #1a1d24;
  --panel-soft: #20242d;
  --line: #2a2e37;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #34d399;
  --primary-hover: #10b981;
  --secondary: #38bdf8;
  --violet: #a78bfa;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.ambient {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(44px);
  opacity: 0.45;
  z-index: -1;
}

.ambientOne {
  top: -260px;
  left: -220px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.28), rgba(15, 17, 21, 0) 70%);
}

.ambientTwo {
  right: -180px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), rgba(15, 17, 21, 0) 70%);
}

.siteHeader {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(26, 29, 36, 0.68);
  border-bottom: 1px solid rgba(42, 46, 55, 0.76);
  backdrop-filter: blur(14px);
}

.brand,
.footerLogo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img,
.footerLogo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a,
.footerLinks a {
  transition: color 140ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.footerLinks a:hover,
.footerLinks a:focus-visible {
  color: var(--text);
}

.navButton,
.downloadButton,
.ghostButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.navButton,
.downloadButton {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #07110f;
}

.navButton:hover,
.navButton:focus-visible,
.downloadButton:hover,
.downloadButton:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.ghostButton {
  border: 1px solid var(--line);
  background: rgba(26, 29, 36, 0.64);
  color: var(--text);
}

.ghostButton:hover,
.ghostButton:focus-visible {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--primary);
}

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
  gap: 48px;
  align-items: center;
  padding: 126px 0 72px;
}

.heroCopy {
  position: relative;
  z-index: 2;
}

.versionBadge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.versionBadge span {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.versionBadge span::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(52, 211, 153, 0.42);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 28px 0 22px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

p {
  color: var(--muted);
}

.heroCopy > p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 18px;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.systemNote {
  display: block;
  margin-top: 18px;
  font-size: 13px !important;
}

.mockupWrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
  animation: float 5.8s ease-in-out infinite;
}

.mockupGlow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.3;
  filter: blur(12px);
}

.mockupWindow {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #0f1115;
  box-shadow: var(--shadow);
}

.mockupHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.mockupTitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mockupTitle img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.appShot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.featuresSection,
.communitySection,
.downloadSection {
  position: relative;
  z-index: 1;
}

.featuresSection {
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(42, 46, 55, 0.72);
  background: #1a1d24;
}

.sectionIntro {
  max-width: 680px;
  margin: 0 auto 46px;
  text-align: center;
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.featureGrid article,
.miniPanel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f1115;
}

.featureGrid article {
  padding: 30px;
  transition: border-color 150ms ease, transform 150ms ease;
}

.featureGrid article:hover {
  border-color: rgba(52, 211, 153, 0.42);
  transform: translateY(-2px);
}

.featureMark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--primary);
  font-weight: 900;
}

.featureMark.blue {
  background: rgba(56, 189, 248, 0.1);
  color: var(--secondary);
}

.featureMark.violet {
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
}

.featureGrid p {
  margin-bottom: 0;
  font-size: 14px;
}

.communitySection {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 320px;
  gap: 32px;
  align-items: center;
  padding: 90px 0;
}

.communitySection p {
  max-width: 680px;
  margin-bottom: 0;
}

.miniPanel {
  padding: 28px;
}

.miniPanel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.miniPanel strong {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 30px;
}

.miniPanel p {
  margin-top: 10px;
}

.downloadSection {
  padding: 84px 24px;
  text-align: center;
  border-top: 1px solid rgba(42, 46, 55, 0.72);
}

.downloadSection p {
  margin-bottom: 0;
}

.heroActions.center {
  justify-content: center;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(42, 46, 55, 0.72);
  background: #0f1115;
  color: var(--muted);
  font-size: 14px;
}

.footerLogo {
  font-size: 18px;
  opacity: 0.75;
}

.footerLinks {
  display: flex;
  gap: 20px;
}

.footer p {
  justify-self: end;
  margin-bottom: 0;
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: min(380px, calc(100% - 48px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.toast.show {
  opacity: 1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .siteHeader {
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 118px;
  }

  .mockupWrap {
    animation: none;
  }

  .featureGrid,
  .communitySection {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer p {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .siteHeader {
    min-height: 68px;
  }

  .brand span {
    font-size: 20px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .navButton {
    display: none;
  }

  .hero {
    width: calc(100% - 30px);
    gap: 34px;
    padding-bottom: 54px;
  }

  h1 {
    max-width: 330px;
    font-size: 40px;
    overflow-wrap: break-word;
  }

  .heroCopy > p {
    max-width: 330px;
    font-size: 16px;
  }

  .heroActions {
    max-width: 330px;
    flex-direction: column;
  }

  .systemNote {
    max-width: 330px;
  }

  .downloadButton,
  .ghostButton {
    width: 100%;
    border-radius: 14px;
  }

  .appShot {
    object-fit: contain;
    background: #0f1115;
  }

  .featuresSection {
    padding: 62px 15px;
  }

  .communitySection {
    width: calc(100% - 30px);
    padding: 62px 0;
  }

  .featureGrid article,
  .miniPanel {
    padding: 24px;
    border-radius: 14px;
  }

  .footer {
    padding: 28px 20px;
  }
}
