:root {
  --background: #161826;
  --surface: #232532;
  --surface-raised: #2b2d3d;
  --foreground: #e9e9ed;
  --muted: #a7aabb;
  --dim: #75798c;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #9184d9;
  --accent-light: #c8c1f4;
  --amber: #d9a15c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 4%, rgba(145, 132, 217, 0.15), transparent 28rem),
    radial-gradient(circle at 4% 32%, rgba(217, 161, 92, 0.06), transparent 26rem),
    var(--background);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--foreground);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(4, 5, 12, 0.32);
}

nav,
.site-footer > div:last-child {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--foreground);
}

nav .contact-link {
  min-height: 36px;
  padding: 9px 14px;
  color: var(--accent-light);
  border: 1px solid rgba(145, 132, 217, 0.55);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 72px;
  min-height: 720px;
  padding-block: 84px 96px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.99;
}

.lede {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #171521;
  background: var(--accent-light);
  border: 1px solid var(--accent-light);
}

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

.hero-device {
  position: relative;
  width: min(100%, 370px);
  justify-self: end;
  padding: 18px 18px 52px;
  border-radius: 42px;
  background: linear-gradient(155deg, rgba(200, 193, 244, 0.18), rgba(255, 255, 255, 0.025));
  box-shadow: 0 42px 100px rgba(4, 5, 12, 0.42);
}

.phone-frame {
  height: 510px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 27px;
  background: #0d1019;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.location-chip {
  position: absolute;
  right: 24px;
  bottom: 17px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.location-chip span {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);
}

.devices,
.principles,
.support {
  padding-block: 112px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.05;
}

.devices-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: end;
  gap: 80px;
  max-width: none;
}

.devices-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.device-gallery {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
}

.device-shot {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent), var(--surface);
}

.device-shot-frame {
  height: 560px;
  overflow: hidden;
  border-radius: 14px;
  background: #10121d;
}

.device-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-shot-phone img {
  object-position: center 18%;
}

.device-shot-tablet img {
  object-position: center 42%;
}

.device-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6px 5px;
}

.device-shot figcaption strong {
  color: var(--accent-light);
  font-size: 14px;
}

.device-shot figcaption span,
.gallery-note {
  color: var(--dim);
  font-size: 12px;
}

.gallery-note {
  margin: 15px 0 0;
  text-align: right;
}

.workflow {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.workflow-steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 22px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.workflow-steps p,
.data-boundary dd,
.contact-card p,
.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.workflow-steps p {
  max-width: 620px;
  margin: 9px 0 0;
}

.workflow-image {
  display: block;
  width: 150px;
  height: 108px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.workflow-steps li:nth-child(2) .workflow-image {
  object-position: center 58%;
}

.workflow-steps li:nth-child(3) .workflow-image {
  object-position: center;
}

.data-boundary {
  padding: 28px;
  border: 1px solid rgba(145, 132, 217, 0.36);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(145, 132, 217, 0.18), transparent 18rem),
    var(--surface);
}

.data-boundary h3 {
  max-width: 390px;
  font-size: 25px;
  line-height: 1.25;
}

.data-boundary dl {
  margin: 28px 0 0;
}

.data-boundary dl > div {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.data-boundary dt {
  margin-bottom: 5px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 650;
}

.data-boundary dd {
  margin: 0;
}

.safety {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  margin-block: 20px 112px;
  padding: 30px;
  border: 1px solid rgba(217, 161, 92, 0.38);
  border-radius: 20px;
  background: rgba(217, 161, 92, 0.055);
}

.safety-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--amber);
  border: 1px solid rgba(217, 161, 92, 0.5);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}

.safety h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.safety > div:last-child > p:last-child {
  max-width: 850px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 22px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 22px 4px;
  color: var(--foreground);
  cursor: pointer;
  font-size: 15px;
  font-weight: 580;
  list-style-position: outside;
}

details p {
  max-width: 760px;
  margin: -6px 0 22px;
  padding-right: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-card {
  align-self: start;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.contact-card h3 {
  font-size: 24px;
}

.contact-card .button {
  width: 100%;
  margin-top: 10px;
}

.attribution {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 64px;
  padding-block: 96px;
  border-top: 1px solid var(--line);
}

.attribution h2 {
  font-size: clamp(32px, 3.5vw, 46px);
}

.attribution-copy > p {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.attribution a,
.policy-card a {
  color: var(--accent-light);
}

.osm-image {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(4, 5, 12, 0.28);
}

.osm-image img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.84) brightness(0.84);
  transition: filter 180ms ease, transform 180ms ease;
}

.osm-image span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--foreground);
  background: rgba(22, 24, 38, 0.88);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.osm-image:hover img {
  filter: saturate(1) brightness(0.95);
  transform: scale(1.01);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 110px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--dim);
  font-size: 11px;
}

.site-footer > div:last-child {
  justify-content: flex-end;
}

.footer-brand {
  font-size: 14px;
}

.policy-page {
  padding-bottom: 100px;
}

.policy-header {
  padding-block: 86px 46px;
  border-bottom: 1px solid var(--line);
}

.policy-header h1 {
  max-width: 800px;
  font-size: clamp(48px, 7vw, 76px);
}

.policy-header .lede {
  max-width: 760px;
  font-size: 16px;
}

.policy-meta {
  margin-top: 28px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.policy-card {
  max-width: 820px;
  margin: 42px auto 0;
}

.policy-card section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.policy-card h2 {
  margin-bottom: 14px;
  font-size: 25px;
  letter-spacing: 0;
}

.policy-card h3 {
  margin-top: 24px;
  color: var(--accent-light);
  font-size: 15px;
}

.policy-card ul {
  padding-left: 22px;
}

.policy-card li + li {
  margin-top: 9px;
}

.policy-callout {
  padding: 18px;
  border: 1px solid rgba(145, 132, 217, 0.36);
  border-radius: 14px;
  background: rgba(145, 132, 217, 0.07);
}

@media (max-width: 840px) {
  .hero,
  .devices-heading,
  .workflow,
  .support-layout,
  .attribution {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 48px;
    padding-block: 72px;
  }

  .hero-device {
    justify-self: center;
  }

  .devices-heading,
  .attribution {
    gap: 32px;
  }

  .device-gallery {
    grid-template-columns: 0.78fr 1.22fr;
  }

  .device-shot-frame {
    height: 460px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-block: 28px;
  }

  .site-footer > div:last-child {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 72px;
  }

  nav a:not(.contact-link) {
    display: none;
  }

  h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .lede {
    font-size: 16px;
  }

  .principles,
  .devices,
  .support {
    padding-block: 80px;
  }

  .device-gallery {
    grid-template-columns: 1fr;
  }

  .device-shot-frame {
    height: 500px;
  }

  .device-shot figcaption {
    flex-direction: column;
    gap: 6px;
  }

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

  .workflow-image {
    width: 100%;
    height: 170px;
  }

  .safety {
    grid-template-columns: 1fr;
    margin-bottom: 80px;
    padding: 23px;
  }

  .attribution {
    gap: 24px;
  }
}

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

  .button,
  .osm-image img {
    transition: none;
  }
}
