:root {
  --blue-50: #eaf3fb;
  --blue-100: #cce2f3;
  --blue-200: #99c4e6;
  --blue-400: #3288cc;
  --blue-500: #2a72ae;
  --blue-700: #17496f;
  --blue-900: #0c2840;
  --red-400: #cc3f51;
  --text: #11171f;
  --text-secondary: #3c4858;
  --text-tertiary: #6b7685;
  --separator: #d9dee6;
  --surface: #ffffff;
  --background: #f2f5f8;
  --well: #0b0d12;
  --radius: 22px;
  --max: 1120px;
  --grid-line: rgba(255, 255, 255, 0.28);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--blue-500);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

code {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--blue-700);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.grid-field {
  background-color: var(--blue-400);
  background-image:
    linear-gradient(var(--grid-line) 2px, transparent 2px),
    linear-gradient(90deg, var(--grid-line) 2px, transparent 2px);
  background-size: 100% 56px, 168px 100%;
  background-position: 0 -2px, -2px 0;
}

.site-header {
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(12, 40, 64, 0.45);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.top {
  position: relative;
  color: #fff;
}

.top-short {
  overflow: hidden;
}

.top::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  margin-left: -3px;
  background: var(--red-400);
  z-index: 0;
}

.top .trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 140px;
  width: 100%;
  height: 260px;
  z-index: 0;
  opacity: 0.9;
}

.top-short .trace {
  bottom: -30px;
  height: 120px;
  opacity: 0.5;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 56px 16px 0;
  text-align: center;
}

.tag {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 auto 20px;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(12, 40, 64, 0.25);
}

.hero p {
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 38em;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.95);
}

.button {
  display: inline-block;
  background: #fff;
  color: var(--blue-700);
  font-weight: 700;
  border-radius: 999px;
  padding: 15px 30px;
  box-shadow: 0 8px 24px rgba(12, 40, 64, 0.25);
}

.button:hover {
  text-decoration: none;
  background: var(--blue-50);
}

.hero .note {
  font-size: 14px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.85);
}

.device {
  --bezel: clamp(10px, 2.9vw, 31px);
  display: block;
  position: relative;
  margin: 48px auto -120px;
  max-width: 1040px;
  padding: var(--bezel);
  background: #0b0d12;
  border-radius: calc(var(--bezel) + clamp(5px, 1.2vw, 13px));
  box-shadow: 0 0 0 3px #3b4150, 0 -1px 0 3px #6b7384, 0 30px 80px rgba(12, 40, 64, 0.4);
}

.device::before {
  content: "";
  position: absolute;
  top: calc(var(--bezel) / 2 - 3px);
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #1b2633;
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(5px, 1.2vw, 13px);
}

.after-device {
  padding-top: 160px;
}

section {
  padding: 56px 0;
}

section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--blue-900);
}

.lead {
  color: var(--text-secondary);
  margin: 0 0 30px;
  max-width: 44em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--blue-900);
}

.card .mono {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
  border-left: 3px solid var(--red-400);
  padding-left: 8px;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.card p {
  color: var(--text-secondary);
  margin: 10px 0 0;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.shots figure {
  margin: 0;
}

.shots a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--separator);
  box-shadow: 0 10px 30px rgba(12, 40, 64, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shots a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12, 40, 64, 0.16);
}

.shots img {
  width: 100%;
  height: auto;
  display: block;
}

.shots figcaption {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 10px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.88);
  padding: 24px 16px;
  align-items: center;
  justify-content: center;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
  position: absolute;
  inset: 0;
}

.lightbox .close-label {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  pointer-events: none;
}

.receive-only {
  margin-top: 30px;
  font-weight: 600;
  color: var(--blue-700);
}

.doc {
  max-width: 760px;
  padding: 48px 16px 72px;
}

.doc-title {
  position: relative;
  z-index: 1;
  padding: 36px 16px 64px;
  max-width: 760px;
  margin: 0 auto;
}

.doc-title h1 {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.doc-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.doc h2 {
  font-size: 24px;
  margin: 40px 0 8px;
  color: var(--blue-900);
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  font-size: 18px;
  margin: 28px 0 4px;
  color: var(--blue-900);
}

.doc p,
.doc li {
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--separator);
  padding: 28px 0 40px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer .brand {
  color: var(--text);
  font-size: 16px;
}

.site-footer .brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: none;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a:not(.brand) {
  color: var(--text-tertiary);
}

@media (max-width: 600px) {
  .grid-field {
    background-size: 100% 40px, 120px 100%;
  }

  .site-nav {
    gap: 14px;
  }

  .top .trace {
    bottom: 80px;
    height: 160px;
  }

  .device {
    padding: 6px;
    border-radius: 18px;
    margin-bottom: -60px;
  }

  .device img {
    border-radius: 13px;
  }

  .after-device {
    padding-top: 90px;
  }
}
