:root {
  color-scheme: light dark;
  --md-sys-color-surface: #faf7ff;
  --md-sys-color-on-surface: #211929;
  --md-sys-color-on-surface-variant: #5e5367;
  --md-sys-color-surface-container-low: #f1ebf9;
  --md-sys-color-primary: #66339e;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ead9ff;
  --md-sys-color-on-primary-container: #291047;
  --md-sys-color-secondary-container: #e8dcf3;
  --md-sys-color-on-secondary-container: #30233c;
  --md-sys-color-outline-variant: #ddd0e5;
  --md-sys-color-art-ground: #5a2785;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-expressive: 44px;
  --md-sys-shape-corner-full: 9999px;
  --md-sys-typescale-display: clamp(3.5rem, 8.1vw, 6.35rem);
  --md-sys-typescale-headline: clamp(1.7rem, 3.3vw, 2.25rem);
  --md-sys-typescale-title: clamp(1.38rem, 3vw, 2rem);
  --md-sys-typescale-body: 1.125rem;
  --md-sys-typescale-label: 0.94rem;
  --md-sys-motion-standard: 200ms cubic-bezier(.2, 0, 0, 1);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-surface: #17131d;
    --md-sys-color-on-surface: #ede4f3;
    --md-sys-color-on-surface-variant: #cfc0db;
    --md-sys-color-surface-container-low: #231c2c;
    --md-sys-color-primary: #d9b9ff;
    --md-sys-color-on-primary: #3f1267;
    --md-sys-color-primary-container: #382451;
    --md-sys-color-on-primary-container: #f4e4ff;
    --md-sys-color-secondary-container: #40334d;
    --md-sys-color-on-secondary-container: #f0e0fc;
    --md-sys-color-outline-variant: #4c3d56;
    --md-sys-color-art-ground: #502477;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 3px solid var(--md-sys-color-primary);
  outline-offset: 4px;
}

.frame { width: min(100% - 48px, 1040px); margin-inline: auto; }

.top-bar-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark, .nav-link, .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--md-sys-shape-corner-full);
  font-weight: 650;
}

.wordmark { font-size: 1.08rem; white-space: nowrap; }

.wordmark-icon {
  display: block;
  flex: none;
  object-fit: contain;
}

.wordmark { letter-spacing: .07em; }
.top-bar nav { display: flex; gap: 2px; }
.language { justify-content: center; }

.nav-link {
  padding-inline: 16px;
  font-size: var(--md-sys-typescale-label);
  color: var(--md-sys-color-primary);
}

.nav-link:hover { background: var(--md-sys-color-surface-container-low); }
.arrow { font-family: Arial, sans-serif; font-size: 1em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  overflow: hidden;
  min-height: 370px;
  margin-top: 20px;
  border-radius: var(--md-sys-shape-corner-expressive);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.hero-copy {
  align-self: center;
  padding: 50px clamp(32px, 5vw, 72px);
}

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: var(--md-sys-typescale-display);
  line-height: .99;
  font-weight: 750;
  letter-spacing: .012em;
}

h1 span { display: block; }
.hero-copy p { margin-top: 26px; font-size: var(--md-sys-typescale-body); }

.hero-art {
  display: grid;
  place-items: center;
  background: var(--md-sys-color-art-ground);
  --wave-edge: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M6%200C2%206.25%202%2018.75%206%2025C10%2031.25%2010%2043.75%206%2050C2%2056.25%202%2068.75%206%2075C10%2081.25%2010%2093.75%206%20100L100%20100L100%200Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-image: var(--wave-edge);
  mask-image: var(--wave-edge);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-art img {
  display: block;
  width: 67%;
  max-width: 240px;
  height: auto;
  border-radius: var(--md-sys-shape-corner-extra-large);
}

.ports { margin-block: 48px 44px; }
.ports h2 { margin-bottom: 16px; font-size: var(--md-sys-typescale-headline); letter-spacing: -.035em; }
.port-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }

.port {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-surface-container-low);
}

.port-icon {
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: var(--md-sys-shape-corner-large);
  object-fit: cover;
}

.port h3 {
  font-size: var(--md-sys-typescale-title);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.port-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.button {
  justify-content: center;
  padding-inline: 19px;
  font-size: var(--md-sys-typescale-label);
  transition: background-color var(--md-sys-motion-standard);
}

.button-filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.button-tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.button-filled:hover { background: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 10%); }
.button-tonal:hover { background: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 9%); }

.download-icon {
  position: relative;
  width: 15px;
  height: 17px;
  border-bottom: 2px solid currentColor;
}

.download-icon::before, .download-icon::after {
  position: absolute;
  content: "";
  left: 50%;
}

.download-icon::before { height: 10px; border-left: 2px solid; transform: translateX(-50%); }
.download-icon::after {
  top: 4px;
  width: 6px;
  height: 6px;
  border-inline-end: 2px solid;
  border-block-end: 2px solid;
  transform: translateX(-50%) rotate(45deg);
}

.footer {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding-block: 20px 28px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .frame { width: min(100% - 32px, 1040px); }
  .top-bar-inner { min-height: 68px; }
  .hero { min-height: 285px; margin-top: 12px; border-radius: var(--md-sys-shape-corner-extra-large); }
  .hero-copy { padding: 32px 26px; }
  .ports { margin-block-start: 32px; }
}

@media (max-width: 520px) {
  :root { --md-sys-typescale-display: clamp(2.15rem, 10.6vw, 3.7rem); }
  .top-bar-inner { gap: 4px; }
  .wordmark { font-size: .95rem; gap: 8px; }
  .nav-link { padding-inline: 10px; }
  .hero { min-height: 216px; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); }
  .hero-copy { padding: 24px 20px; }
  .hero-copy p { margin-top: 15px; font-size: .95rem; }
  .port { display: block; padding: 18px; }
  .port-icon { width: 68px; height: 68px; display: block; margin-bottom: 14px; }
  .port-actions { margin-top: 16px; }
  .button { flex-grow: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

@media (max-width: 360px) {
  .top-bar .nav-link { padding-inline: 7px; }
  .top-bar .wordmark { font-size: .85rem; }
}
