@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080d17;
  --raised: #0e1624;
  --panel: #101b2a;
  --line: #263549;
  --muted: #acbbce;
  --text: #f4f8ff;
  --accent: #83e8ff;
  --accent-bright: #b2f2ff;
  --title-font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body-font: "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.125rem, 4.75vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--body-font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
p, h1, h2, h3, ul, ol, dl { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--title-font); line-height: 1.04; font-weight: 700; }
h1 { font-size: clamp(2.75rem, 6.4vw, 5.625rem); letter-spacing: -0.065em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.125rem); letter-spacing: -0.05em; }
h3 { font-size: 1.32rem; letter-spacing: -0.025em; }
:is(h1, h2, h3, .eyebrow):dir(rtl) { line-height: 1.25; letter-spacing: normal; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
.wrap { width: min(100% - var(--gutter) * 2, 74rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; transform: translateY(-150%); padding: 0.5rem 1rem; color: var(--bg); background: var(--accent); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid #233145; background: #080e19; }
.nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand main languages download"; align-items: center; gap: clamp(0.8rem, 2.5vw, 2rem); min-height: 4.6rem; }
.nav > .wordmark { grid-area: brand; }
.wordmark { width: fit-content; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.35rem; white-space: nowrap; text-decoration: none; letter-spacing: -0.045em; }
.wordmark img { flex: none; padding: 0.16rem; background: #eef7ff; border: 1px solid #b5c9dc; border-radius: 0.45rem; }
.brand-dot { color: var(--accent); }
.nav-main, .site-footer nav { display: flex; gap: clamp(1rem, 3.25vw, 2.5rem); align-items: center; }
.nav-main { grid-area: main; justify-content: center; flex-wrap: wrap; }
.nav-main a, .language-nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 600; }
.nav-main a:hover, .language-nav a:hover, .site-footer nav a:hover, .nav nav a[aria-current] { color: var(--accent); }
.language-picker { grid-area: languages; position: relative; z-index: 2; justify-self: end; }
.language-picker summary { cursor: pointer; padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 0.45rem; color: var(--text); font-size: 0.925rem; }
.language-picker summary:hover { border-color: var(--accent); }
.language-nav {
  position: absolute;
  inset-block-start: calc(100% + 0.5rem);
  inset-inline-end: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  inline-size: min(22rem, calc(100vw - 2 * var(--gutter)));
  max-block-size: min(24rem, 60vh);
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--raised);
  box-shadow: 0 0.65rem 1.5rem #030811a6;
}
.language-nav a { display: flex; align-items: center; min-block-size: 2.75rem; padding: 0.4rem 0.6rem; border-radius: 0.3rem; overflow-wrap: anywhere; }
.language-nav a:focus-visible { outline-offset: -2px; }
.language-nav a[aria-current] { background: var(--panel); }
.nav-download { grid-area: download; justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; width: fit-content; padding: 0.68rem 1.25rem; border: 1px solid transparent; border-radius: 0.5rem; text-decoration: none; text-align: center; font-size: 0.95rem; font-weight: 700; line-height: 1.25; }
.button-small { min-height: 2.6rem; padding: 0.55rem 1rem; }
.button-primary { color: #07131d; background: var(--accent); box-shadow: 0 0.35rem 1.6rem #3cd1ff21; }
.button-primary:hover { background: var(--accent-bright); }
.button-outline { color: var(--text); border-color: #5a6b81; background: #0a1623b3; }
.button-outline:hover, .button-outline[aria-current] { color: var(--accent-bright); border-color: var(--accent); background: #132637; }
.actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.text-link { color: var(--accent); font-weight: 650; text-decoration: underline; text-decoration-color: #5ecad5; text-decoration-thickness: 1px; }
.text-link:hover { color: white; text-decoration-color: white; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.875rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.125em; font-weight: 700; line-height: 1.25; }
.windows-icon { flex: none; color: inherit; width: 0.9rem; aspect-ratio: 1; display: inline-block; background: linear-gradient(currentColor, currentColor) 0 0 / 44% 44% no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 44% 44% no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 44% 44% no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / 44% 44% no-repeat; }

.hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(33rem, 47vw, 43rem); display: grid; align-items: center; background: #031224; border-bottom: 1px solid #2d4861; }
.hero:dir(rtl) { --hero-shade-angle: 270deg; --hero-tablet-position: 43%; --hero-phone-position: 39%; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero::after { position: absolute; content: ""; z-index: -1; inset: 0; background: linear-gradient(var(--hero-shade-angle, 90deg), #040b17 0%, #050d1bf5 24%, #060e1cbc 43%, #06112730 75%, #0611270d 100%), linear-gradient(0deg, #060d19cc, #060d1905 36%); }
.hero-inner { padding-block: 5.1rem 5.4rem; }
.hero h1 { margin-top: 1rem; max-width: 45rem; text-shadow: 0 3px 25px #0209167a; }
.hero-inner > p:not(.eyebrow) { max-width: 29rem; margin-block: 1.25rem 1.75rem; color: #d1dded; font-size: clamp(1rem, 2.3vw, 1.22rem); }

.section { padding-block: clamp(3.5rem, 7.5vw, 7rem); }
.section-tinted { background: #0c1422; border-block: 1px solid #1e3045; }
.section-copy > .eyebrow { margin-bottom: 0.85rem; }
.section-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; max-width: 39rem; }
.section-copy > .actions, .section-copy > .text-link { margin-top: 1.45rem; }
.section-copy > .text-link { display: inline-block; }
.section-heading { max-width: 42rem; margin-bottom: 2.35rem; }
.section-heading > p { color: var(--muted); margin-top: 0.8rem; }

.gallery {
  --gallery-inline-direction: 1;
  background: linear-gradient(#08111fe0, #090f1cf5), url("../images/space-connections.webp") center / cover;
  border-bottom: 1px solid var(--line);
}
.gallery:dir(rtl) { --gallery-inline-direction: -1; }
.gallery .section-heading { margin-inline: auto; text-align: center; }
.gallery-frame {
  max-width: 66rem;
  margin-inline: auto;
  border: 1px solid #38556e;
  border-radius: 0.9rem;
  background: #0c1523;
  box-shadow: 0 1.2rem 4rem #020712a6, 0 0 3rem #469cce18;
}
.gallery [hidden] { display: none; }
.gallery-slide { margin: 0; }
.gallery-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  block-size: min(64vh, 40rem);
  padding: clamp(0.5rem, 2vw, 1.4rem);
  overflow: hidden;
  border-radius: 0.875rem 0.875rem 0 0;
  background: radial-gradient(ellipse at 48% 85%, #173a57 0%, #102839 35%, #080e1b 78%);
  touch-action: pan-y pinch-zoom;
}
.gallery-stage::before, .gallery-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 68%;
  border: 1px solid #6fe7ff35;
  border-radius: 50%;
  transform: rotate(-20deg) translateX(-5%);
}
.gallery-stage::after { border-color: #ffc97130; transform: rotate(23deg) translateX(5%); }
.gallery-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 0.4rem 1.4rem #03070faa);
  user-select: none;
}
.gallery-slide[data-direction="previous"] { --gallery-offset: calc(-1.5rem * var(--gallery-inline-direction)); }
.gallery-slide[data-direction="next"] { --gallery-offset: calc(1.5rem * var(--gallery-inline-direction)); }
.gallery-slide[data-direction] .gallery-image { animation: gallery-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes gallery-enter {
  from { opacity: 0.3; transform: translateX(var(--gallery-offset)); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-slide[data-direction] .gallery-image { animation: none; }
}
.gallery-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.4rem;
  padding: 1.05rem clamp(0.9rem, 3vw, 1.9rem);
  border-block: 1px solid var(--line);
}
.gallery-caption p { color: var(--muted); margin-block-start: 0.35rem; }
.gallery-controls, .gallery-dots { display: flex; align-items: center; justify-content: center; }
.gallery-controls { gap: clamp(0.2rem, 2vw, 1rem); padding: 0.6rem 0; }
.gallery-controls button { cursor: pointer; color: var(--accent); }
.gallery-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: #132235;
  border: 1px solid #3b5a70;
  border-radius: 50%;
}
.gallery-arrow::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: scaleX(var(--gallery-inline-direction)) translateX(1px) rotate(-135deg);
}
.gallery-arrow-next::before { transform: scaleX(var(--gallery-inline-direction)) translateX(-1px) rotate(45deg); }
.gallery-arrow:hover { background: #1d3d50; border-color: var(--accent); }
.gallery-dot {
  display: grid;
  place-items: center;
  width: clamp(1.6rem, 9vw, 2.75rem);
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0.4rem;
}
.gallery-dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #8ca6be; }
.gallery-dot:hover::before { background: var(--accent-bright); }
.gallery-dot[aria-current]::before { width: 1.05rem; border-radius: 0.35rem; background: var(--accent); }
.gallery-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.gallery-fallback { max-width: 66rem; margin-inline: auto; }
.workflow-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.42fr); align-items: start; gap: clamp(1.4rem, 6vw, 6rem); }
.workflow-layout .section-copy > p:first-child { margin-top: 0; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3.6vw, 3.15rem); }
.feature-row article { padding: 1.2rem 0 0; border-top: 2px solid #395476; }
.feature-row article p { margin: 0.7rem 0 0.9rem; color: var(--muted); }
.globe-callout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); align-items: center; gap: clamp(2.2rem, 7vw, 6rem); }
.globe-art { border: 1px solid #243e58; background: #030b17; overflow: hidden; border-radius: 0.85rem; }
.globe-art img { width: 100%; }
.end-section { padding-block: clamp(2.8rem, 5.5vw, 4.6rem); }
.end-row { display: flex; justify-content: space-between; align-items: center; gap: 1.75rem; }
.end-row p { margin-top: 0.7rem; color: var(--muted); }

.page-intro { padding-block: clamp(3.25rem, 7vw, 6.5rem); background: radial-gradient(ellipse at var(--intro-glow-position, 82%) 25%, #183653 0%, #0e1929 44%, #0a111e 77%); border-bottom: 1px solid #2a3d55; }
.page-intro:dir(rtl) { --intro-glow-position: 18%; }
.page-intro h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); max-width: 51rem; }
.page-intro > .wrap > .eyebrow { margin-bottom: 0.85rem; }
.page-intro > .wrap > p:not(.eyebrow) { color: #c4d1e2; max-width: 40rem; margin-top: 1rem; }
.page-intro > .wrap > .actions { margin-top: 1.55rem; }
.jump-links { display: flex; flex-wrap: wrap; gap: 0.65rem 1.5rem; margin-top: 1.9rem; color: var(--accent); font-weight: 650; font-size: 0.9375rem; }
.jump-links a:hover { color: white; }
.feature-index { padding-block: clamp(1.65rem, 4vw, 3.5rem); }
.content-row { padding-block: clamp(1.8rem, 4.3vw, 3.7rem); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.55fr); gap: clamp(1.5rem, 4.8vw, 4.5rem); }
.content-row + .content-row { border-top: 1px solid var(--line); }
.content-row p { color: var(--muted); }
.content-row > div > .eyebrow { margin-bottom: 0.7rem; color: var(--accent); }
.content-row p + p { margin-top: 1rem; }
.content-row h2 { font-size: clamp(1.8rem, 3.4vw, 2.55rem); }
.content-row > div > p:last-of-type + a, .content-row .detail-list + a { display: inline-block; margin-top: 0.85rem; }
.content-row .actions { margin-top: 1.4rem; }
.detail-list { margin-block: 0.75rem 0; color: #cad7e8; padding-inline-start: 1.3rem; }
.detail-list li { padding-inline-start: 0.2rem; margin: 0.45rem 0; }
.detail-list li::marker { color: var(--accent); }
.policy-copy { max-inline-size: 74ch; }
.policy-copy section + section { margin-block-start: 2rem; padding-block-start: 1.75rem; border-block-start: 1px solid var(--line); }
.policy-copy h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.policy-copy section > :is(p, h3, dl):not(:first-child) { margin-block-start: 1rem; }
.policy-copy section p, .policy-copy dd { color: var(--muted); }
.policy-copy dt { font-weight: 700; }
.policy-copy dt:not(:first-child) { margin-block-start: 0.75rem; }
.policy-copy dd { margin: 0; }
.contact-notice { margin-block-end: 1rem; color: var(--muted); }
.contact-form fieldset { display: grid; gap: 0.55rem; min-inline-size: 0; margin: 0 0 1rem; padding: 0; border: 0; }
.contact-form label { font-weight: 650; }
.contact-form :is(input, textarea) { inline-size: 100%; padding: 0.68rem 0.8rem; border: 1px solid #51657e; border-radius: 0.45rem; background: var(--raised); color: var(--text); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form :is(input, textarea) + label, .contact-form .button { margin-block-start: 0.6rem; }
.contact-form .button { cursor: pointer; }
.contact-form fieldset:disabled { opacity: 0.65; }
.contact-form .button:disabled { cursor: default; }
.app-languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem 1.5rem;
  margin-block: 0;
}
.app-languages li { margin: 0; }
.app-language-native { display: block; color: var(--muted); font-size: 0.9rem; }
.connection-list, .workspace-list { margin: 1rem 0; border-top: 1px solid var(--line); }
.connection-list > div, .workspace-list > div { display: grid; grid-template-columns: minmax(7rem, 0.85fr) 2fr; gap: 0.35rem 1rem; border-bottom: 1px solid var(--line); padding-block: 0.7rem; }
.connection-list dt, .workspace-list dt { font-weight: 700; }
.connection-list dd, .workspace-list dd { margin: 0; color: var(--muted); }
.globe-intro .globe-art { box-shadow: 0 0 3.5rem #0a7fb530; }
.download-grid, .help-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7.5vw, 7.5rem); align-items: center; }
.download-box { padding: clamp(1.25rem, 3vw, 2.1rem); border: 1px solid #35506b; border-radius: 0.85rem; background: #111e2e; }
.download-box > * + * { margin-top: 1.15rem; }
.download-file { display: flex; gap: 1rem; align-items: center; font-family: var(--title-font); }
.download-file .windows-icon { width: 1.8rem; color: var(--accent); }
.download-file strong { font-size: 1.23rem; }
.download-file p { color: var(--muted); font: 0.9375rem var(--body-font); }
.download-box .text-link { display: block; width: fit-content; }
.help-grid { align-items: start; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr); }
.faq details { border-block-end: 1px solid var(--line); }
.faq details:first-child { border-block-start: 1px solid var(--line); }
.faq summary { padding: 0.95rem 0.25rem; cursor: pointer; font-family: var(--title-font); font-size: 1.08rem; font-weight: 650; }
.faq summary:hover, .faq details[open] summary { color: var(--accent); }
.faq details p { padding: 0 0.25rem 0.9rem; color: var(--muted); }
.site-footer { background: #070d16; border-top: 1px solid #223147; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem 2rem; padding-block: 1.75rem; }
.footer-row > p { color: var(--muted); font-size: 0.875rem; }

@media (max-width: 60rem) {
  .workflow-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr); gap: 2rem; }
}
@media (max-width: 49rem) {
  .nav { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand download" "main languages"; gap: 0.5rem 0.75rem; padding-block: 0.65rem; }
  .nav-main { justify-content: start; gap: 0.35rem 1rem; }
  .workflow-layout, .globe-callout, .download-grid, .help-grid { grid-template-columns: minmax(0, 1fr); gap: 2.1rem; }
  .globe-art, .download-box { max-width: 35rem; }
  .hero::after { background: linear-gradient(var(--hero-shade-angle, 90deg), #040b17f2 0%, #040b17ce 48%, #040b1724 100%), linear-gradient(0deg, #040b17a8, #040b1700 55%); }
  .hero-image { object-position: var(--hero-tablet-position, 57%) center; }
  .content-row { grid-template-columns: minmax(0, 1fr); gap: 0.95rem; }
  .globe-callout > .globe-art { order: 2; }
}
@media (max-width: 36rem) {
  .hero { min-height: 34rem; }
  .hero-inner { padding-block: 4rem 4.75rem; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.2rem); }
  .hero-image { object-position: var(--hero-phone-position, 61%) center; }
  .hero::after { background: linear-gradient(var(--hero-shade-angle, 90deg), #040b17e8 0%, #040b17b8 52%, #040b1755 100%), linear-gradient(0deg, #040b17a8, #040b1700 56%); }
  .feature-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .gallery-stage { block-size: auto; aspect-ratio: 1; }
  .end-row { flex-direction: column; align-items: flex-start; }
  .site-footer nav { flex-wrap: wrap; gap: 0.5rem 1.1rem; }
}
@media (max-width: 25rem) {
  .connection-list > div, .workspace-list > div { grid-template-columns: 1fr; }
}
