:root {
  --ink: #10233f;
  --muted: #60708a;
  --blue: #147be8;
  --blue-deep: #0b4ea8;
  --sky: #67c7ff;
  --yellow: #ffd44a;
  --cream: #fffdf6;
  --panel: #f5faff;
  --line: rgba(20, 74, 135, 0.13);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(27, 76, 132, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 22px 0;
  color: #fff;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    #1369be
    url("assets/hero.webp")
    center center / cover
    no-repeat
    fixed;
}

.hero-media {
  display: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 25, 55, 0.83) 0%,
      rgba(4, 36, 73, 0.63) 34%,
      rgba(9, 59, 100, 0.15) 63%,
      rgba(5, 34, 60, 0.01) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 18, 40, 0.18) 0%,
      rgba(3, 18, 40, 0) 54%,
      rgba(3, 18, 40, 0.20) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 82px;
}

.eyebrow,
.kicker {
  display: inline-block;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
}

.eyebrow {
  margin-bottom: 16px;
  color: #fff2a8;
  font-size: 0.95rem;
}

.hero h1,
.section h2,
.download-main h3,
.steps h3 {
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(3.4rem, 6.7vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(0,0,0,0.14);
}

.hero h1 span {
  color: #aee7ff;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.08rem, 1.7vw, 1.27rem);
  font-weight: 600;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  text-decoration: none;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  background: var(--yellow);
  color: #17345c;
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.18);
}

.button-primary:hover {
  background: #ffe06e;
}

.button-secondary {
  color: #fff;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.31);
  backdrop-filter: blur(10px);
}

.hero-note {
  margin: 18px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

.section {
  padding: 96px 0;
}

.download {
  position: relative;
  z-index: 2;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 45px rgba(4, 28, 59, 0.18);
  background:
    radial-gradient(circle at top right, rgba(103,199,255,0.16), transparent 34%),
    var(--cream);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}

.kicker {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 1rem;
}

.section h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.3rem, 4vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.section-heading > p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 4px;
}

.download-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px;
  border: 2px solid rgba(20,123,232,0.11);
  border-radius: 26px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.download-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -78px;
  top: -94px;
  border-radius: 50%;
  background: rgba(103,199,255,0.12);
  pointer-events: none;
}

.download-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.flatpak-badge {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #258cf4, #0b55b6);
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  transform: rotate(-2deg);
}

.download-main h3,
.steps h3 {
  margin: 0;
}

.download-main h3 {
  font-size: 1.35rem;
}

.download-main p {
  margin: 5px 0 0;
  color: var(--muted);
}

.download-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button-download {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(11,94,215,0.20);
}

.button-download:hover {
  background: var(--blue-deep);
}

.text-link {
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.steps article {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27,76,132,0.05);
}

.steps article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0d5ab7;
  background: #e9f5ff;
  border-radius: 50%;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.steps h3 {
  font-size: 1.22rem;
}

.steps p {
  color: var(--muted);
  margin: 8px 0 0;
}

.about {
  position: relative;
  z-index: 2;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(103,199,255,0.22), transparent 27%),
    linear-gradient(160deg, #102d57, #09162b 72%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.kicker-light {
  color: #8edcff;
}

.about-copy {
  color: rgba(255,255,255,0.80);
  font-size: 1.07rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

.disclaimer {
  padding-top: 18px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.58);
  font-size: 0.93rem;
}

footer {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.60);
  background: #06101f;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 0.88rem;
}

.footer-wrap span:first-child {
  color: #fff;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
}

@media (max-width: 820px) {
  .hero {
    background-attachment: scroll;
    background-position: 61% center;
  }

  .hero {
    position: relative;
    top: auto;
  }

  .download {
    border-radius: 0;
    box-shadow: none;
  }

  .site-header {
    padding-top: 18px;
  }

  .nav {
    gap: 15px;
  }

  .nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 720px;
  }


  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(3,22,51,0.88) 0%,
        rgba(3,28,64,0.70) 58%,
        rgba(3,30,60,0.18) 100%
      ),
      linear-gradient(
        180deg,
        rgba(3,18,40,0.14),
        rgba(3,18,40,0.20)
      );
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero h1 {
    max-width: 590px;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .download-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-actions {
    justify-content: flex-start;
  }

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

}

@media (max-width: 540px) {
  .hero {
    background-position: 66% center;
  }

  .shell {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    font-size: 0.94rem;
  }

  .nav {
    font-size: 0.88rem;
  }

  .nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 700px;
  }


  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(3,22,51,0.92) 0%,
        rgba(3,28,64,0.72) 76%,
        rgba(3,30,60,0.25) 100%
      ),
      linear-gradient(
        180deg,
        rgba(3,18,40,0.10),
        rgba(3,18,40,0.30)
      );
  }

  .hero h1 {
    font-size: clamp(3.05rem, 15vw, 4.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .download-main {
    align-items: flex-start;
  }

  .download-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  .footer-wrap {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
