:root {
  color-scheme: light;
  --ink: #17151f;
  --muted: #5f6270;
  --line: #dedce8;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #5f3dc4;
  --accent-strong: #4828a8;
  --mint: #35c486;
  --gold: #d8a52f;
  --shadow: 0 24px 80px rgba(29, 24, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid rgba(222, 220, 232, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

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

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

nav a:hover,
.language-toggle:hover {
  color: var(--ink);
}

.language-toggle {
  height: 32px;
  min-width: 48px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 92px) 72px;
  background: #f0edf8;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 90px clamp(18px, 4vw, 76px) 26px;
}

.hero-media img {
  width: min(58vw, 780px);
  max-height: 76vh;
  object-fit: contain;
  opacity: 0.86;
  filter: drop-shadow(0 28px 40px rgba(29, 24, 48, 0.22));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 12vw, 138px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: #3f3e48;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.section {
  padding: 74px clamp(20px, 6vw, 92px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 250px;
  padding: 28px;
  background: var(--panel);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

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

.feature-grid p,
.download-copy p,
.notes p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  overflow: visible;
  background: #201b2e;
  color: white;
}

.download .eyebrow {
  color: var(--mint);
}

.download-copy p {
  color: #cbc7d8;
}

.download-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.download-row,
.download-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 94px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.download-row:hover,
.download-menu[open] > .download-row,
.download-options a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}

.download-row strong,
.download-row small,
.download-options strong,
.download-options small {
  display: block;
}

.download-row strong,
.download-options strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.download-row small,
.download-options small {
  color: #bbb4cf;
  line-height: 1.4;
}

.download-row em,
.download-options em {
  min-width: 58px;
  color: var(--mint);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.download-menu {
  position: relative;
  z-index: 2;
}

.download-menu summary {
  cursor: pointer;
  list-style: none;
}

.download-menu summary::-webkit-details-marker {
  display: none;
}

.download-menu summary em::after {
  content: "⌄";
  display: inline-block;
  margin-left: 10px;
  color: #a69abe;
  font-size: 16px;
  transform: translateY(-1px);
}

.download-menu[open] summary em::after {
  transform: rotate(180deg) translateY(1px);
}

.download-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: min(360px, 100%);
  display: none;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(26, 21, 39, 0.98);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.download-menu[open] .download-options {
  display: grid;
}

.download-menu[open]::after {
  content: "";
  position: absolute;
  z-index: 19;
  top: 100%;
  right: 0;
  width: min(360px, 100%);
  height: 10px;
}

.download-options a {
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .download-menu:not([open]):hover .download-options {
    display: grid;
  }
}

.notes {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 6vw, 92px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    padding: 14px 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 330px;
    background: #fbfaf7;
  }

  .hero-media {
    align-items: flex-end;
    justify-content: center;
    padding: 0 18px 18px;
  }

  .hero-media img {
    width: min(92vw, 520px);
    max-height: 320px;
  }

  .feature-grid,
  .download,
  .notes {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 14px;
    font-size: 13px;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding-bottom: 280px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .download-row,
  .download-options a {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-row em,
  .download-options em {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }
}
