:root {
  color-scheme: light;
  --paper: #f5f6fa;
  --white: #fff;
  --ink: #111627;
  --muted: #4d576d;
  --blue: #2247db;
  --line: #d9ddea;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: #dce4ff; color: #1235b7; }

.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-decoration: none;
}

.brand i {
  position: relative;
  flex: 0 0 29px;
  width: 29px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--blue);
}

.brand i::before, .brand i::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid white;
  border-radius: 50%;
}

.brand i::after {
  inset: 7px 11px;
  transform: rotate(38deg);
}

header nav, footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 26px;
}

header nav a, footer a {
  font-weight: 650;
  font-size: .83rem;
  text-decoration: none;
}

header nav a:hover, footer a:hover { color: var(--blue); }

header nav a[hreflang] {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(28px, 5vw, 82px);
  padding-block: clamp(48px, 6.9vw, 103px);
  border-bottom: 1px solid var(--line);
}

.hero h1, .reading h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.15rem, 5.7vw, 5.55rem);
  font-weight: 780;
  line-height: .99;
  letter-spacing: -.078em;
  overflow-wrap: break-word;
}

.hero h1 em { color: var(--blue); font-style: normal; }

.hero p {
  max-width: 37ch;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.21rem);
  line-height: 1.6;
}

.optic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.42;
  display: grid;
  place-items: center;
  border: 1px solid #cbd4f6;
  border-radius: 8px;
  background:
    linear-gradient(0deg, transparent calc(50% - .5px), #9baef066 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), #9baef066 50%, transparent calc(50% + .5px)),
    radial-gradient(ellipse at 51% 55%, #f0f5ff 6%, #e0e8ff 60%, #cad7fb);
}

.optic::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px;
  border: 1px solid #879ce275;
  background: radial-gradient(circle, #274ac474 1px, transparent 1.2px) 0 0 / 12px 12px;
  mask-image: radial-gradient(ellipse, transparent 28%, #000 79%);
}

.optic::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid #8296e388;
  border-radius: 50%;
  box-shadow: 0 0 0 16px #9aace536, 0 0 0 35px #a4b5ed30;
  transform: scaleY(.8) rotate(-13deg);
}

.optic i {
  position: absolute;
  width: 49%;
  aspect-ratio: 1;
  border: 1px solid #7793ee;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 29%, #fff 0%, #daeaff 4%, #72a4ff 12%, transparent 35%),
    radial-gradient(circle at 57% 64%, #14265c 12%, #1f47b9 43%, transparent 68%),
    conic-gradient(from 23deg, #142763, #759efd, #eff7ff, #4469d5, #102861, #9fc5ff, #456ad4, #142763);
  box-shadow:
    0 19px 39px #1a3d9f4d,
    inset 0 0 0 4px #e4eaffb0,
    inset 0 0 0 7px #2641a875,
    inset 0 0 0 11px #b2c7ff55;
  transform: translate(-4%, -2%);
}

.optic i::before {
  content: "";
  position: absolute;
  inset: 19%;
  border: 1px solid #c1d7ff80;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 24% 18%, #fff9 4%, #97bbfd66 22%, transparent 44%),
    conic-gradient(from -18deg, #10285930, #83a9ff66, #203d8e55, #040f3a88, #10285930);
  box-shadow: inset 0 0 21px #10265bc4, 0 0 0 8px #0b266d63, 0 0 0 9px #b3c2fd60;
}

.optic i::after {
  content: "";
  position: absolute;
  inset: 35% 30%;
  border-radius: 50%;
  transform: rotate(-36deg);
  background:
    radial-gradient(ellipse at 34% 37%, #ccdcff 2%, #9cbcff 9%, #606cd247 32%, transparent 35%),
    radial-gradient(ellipse at 60% 61%, #a098f8aa 5%, #7a7efa44 25%, transparent 55%);
}

.optic b {
  width: 68%;
  aspect-ratio: 2.1;
  border: 1px solid #eef2ffbd;
  border-right-color: #4469dc8a;
  border-bottom-color: #6984e78c;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #5979e742;
  transform: rotate(-34deg);
}

.optic b::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 49%;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px 2px #698cff;
}

#apps {
  padding-block: clamp(43px, 5.3vw, 76px) clamp(60px, 7vw, 105px);
  scroll-margin-block: 22px;
}

#apps h2 {
  margin: 0 0 24px;
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.055em;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.3vw, 30px);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}

.card:hover {
  border-color: #a0afee;
  box-shadow: 0 9px 26px #1c2c6b12;
}

.art {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 2.36;
}

.art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .6;
  background:
    linear-gradient(90deg, #d2dcff29 1px, transparent 1px) 50% / 24px 24px,
    linear-gradient(0deg, #d2dcff29 1px, transparent 1px) 50% / 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 88%);
}

.frame .art {
  background: radial-gradient(ellipse at 57% 63%, #4167f7, #274cdb 57%, #1739b9);
}

.frame .art i, .frame .art b {
  position: absolute;
  width: 31%;
  aspect-ratio: 1.43;
  border: 1px solid #d5e2ff;
  border-radius: 6px;
}

.frame .art i {
  background: linear-gradient(125deg, #cedcff1a, #a4c0ff69);
  box-shadow: 0 12px 30px #152b8e60;
  transform: translate(-12%, -8%) rotate(-12deg);
}

.frame .art b {
  display: grid;
  place-items: center;
  background: linear-gradient(125deg, #afc5fb2b, #dee6ff65);
  box-shadow: inset 0 0 18px #e4ecff42, 0 13px 30px #132c9b80;
  transform: translate(12%, 8%) rotate(10deg);
}

.frame .art b::before {
  content: "";
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eff4ff;
  box-shadow: 0 5px 15px #152c7759;
}

.frame .art b::after {
  content: "";
  position: absolute;
  left: 47%;
  width: 12%;
  aspect-ratio: 1;
  background: #3456d7;
  clip-path: polygon(5% 2%, 99% 50%, 5% 98%);
}

.compress .art {
  background: radial-gradient(ellipse at 54% 76%, #a8bdff, #c8d7ff 50%, #e2eaff);
}

.compress .art::before {
  background:
    linear-gradient(90deg, #4d69bc46 1px, transparent 1px) 50% / 24px 24px,
    linear-gradient(0deg, #4d69bc46 1px, transparent 1px) 50% / 24px 24px;
}

.compress .art i {
  position: absolute;
  width: 31%;
  aspect-ratio: 2.45;
  top: 46%;
  border: 1px solid #8da7ff;
  border-radius: 9px;
  background: linear-gradient(150deg, #f3f8ff, #b1c6ff 38%, #6086f6 70%, #3055d0);
  box-shadow: -1px 4px 0 #2b4bc0, -2px 14px 0 #7193ed, -3px 18px 0 #2b4bc0, -4px 28px 0 #7291ec, -5px 32px 0 #2b4bc0, 0 30px 22px #233f9c56;
  transform: rotate(-14deg) skewX(23deg) translateY(-28%);
}

.compress .art i::before {
  content: "";
  position: absolute;
  inset: 20% 12%;
  border: 1px solid #f3f7ff9e;
  border-radius: 4px;
}

.compress .art b {
  position: absolute;
  bottom: 65%;
  width: 0;
  height: 17%;
  border-left: 2px solid #2449d2;
  transform: translateX(11px);
}

.compress .art b::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -5px;
  width: 8px;
  aspect-ratio: 1;
  border-right: 2px solid #2449d2;
  border-bottom: 2px solid #2449d2;
  transform: rotate(45deg);
}

.copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(21px, 3vw, 34px);
}

.copy small {
  color: var(--blue);
  font: 650 .7rem/1.35 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.copy h3 {
  margin: 8px 0 4px;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  letter-spacing: -.05em;
  line-height: 1.17;
}

.copy p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: .97rem;
}

.copy span {
  margin-top: auto;
  color: var(--blue);
  font-size: .86rem;
  font-weight: 720;
}

.card:hover .copy span { text-decoration: underline; text-underline-offset: 3px; }

.reading {
  width: min(100%, 760px);
  min-height: 54vh;
  margin-inline: auto;
  padding-block: clamp(43px, 7vw, 95px);
}

.reading h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6vw, 4.75rem);
}

.reading h2 {
  margin: 34px 0 9px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.reading p, .reading li { color: var(--muted); }
.reading p { margin: 0 0 14px; }
.reading a { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }

.reading details {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.reading details + details { margin-top: 8px; }
.reading details p { margin: 8px 0 0; }
.reading summary { font-weight: 680; cursor: pointer; }

footer.wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
}

footer p { margin: 0; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 64px); }
  .hero h1 { font-size: clamp(2.9rem, 6.5vw, 4.2rem); }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 40px); }
  header.wrap { min-height: 66px; gap: 12px; }
  header nav, footer nav { gap: 6px 13px; }
  header nav a { font-size: .78rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 45px 37px; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero p { margin-top: 15px; }
  .optic { aspect-ratio: 1.55; }
  #apps { padding-block: 33px 53px; }
  #apps h2 { margin-bottom: 17px; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 30px); }
  .brand { gap: 7px; font-size: .9rem; }
  .brand i { width: 25px; flex-basis: 25px; }
  .brand i::before { inset: 6px; }
  .brand i::after { inset: 6px 9px; }
  header nav { gap: 5px 8px; }
  header nav a[hreflang] { padding-inline: 7px; }
}

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