:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f3f7fd;
  background: #0d111b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(ellipse at 87% 5%, #6647b52e, transparent 38%),
    radial-gradient(ellipse at 0% 38%, #1fbad524, transparent 32%),
    #0d111b;
}

a {
  color: #84e8f4;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #c2f6fb;
}

a:focus-visible {
  outline: 3px solid #84e8f4;
  outline-offset: 5px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 18px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 8px;
  color: #0d111b;
  background: #84e8f4;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.site-shell {
  width: min(100% - 48px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f3f7fd;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand:hover {
  color: #f3f7fd;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border: 3px solid #49dcef;
  border-right-color: #ab8dff;
  border-radius: 9px;
  transform: rotate(-15deg);
}

.brand-mark::after {
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: #f3f7fd;
  content: "";
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.site-nav a,
.site-footer nav a {
  color: #c5d2e2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer nav a:hover {
  color: #84e8f4;
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: #84e8f4;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

main {
  flex: 1;
}

.eyebrow {
  margin: 0 0 20px;
  color: #84e8f4;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 730;
  letter-spacing: -0.066em;
  line-height: 1.05;
}

h1 span {
  color: #84e8f4;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

p {
  line-height: 1.65;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 8vw, 116px) 0 75px;
}

.hero-copy {
  min-width: 0;
}

.lead {
  max-width: 570px;
  margin: 0 0 30px;
  color: #c4cfdf;
  font-size: clamp(18px, 2vw, 21px);
}

.availability {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #60708a;
  border-radius: 999px;
  color: #f3f7fd;
  font-size: 14px;
  font-weight: 700;
}

.hero-note {
  max-width: 420px;
  margin: 15px 0 0;
  color: #abbad0;
  font-size: 14px;
}

.product-visual {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #34445c;
  border-radius: 24px;
  background: linear-gradient(145deg, #202d42, #121b29);
  box-shadow: 0 30px 90px #0008;
}

.product-visual a {
  display: block;
}

.product-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
}

.product-visual figcaption {
  padding: 15px 8px 3px;
  color: #afc0d5;
  font-size: 12px;
  line-height: 1.5;
}

.section-space {
  margin: 0 0 clamp(80px, 11vw, 140px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading > p:last-child {
  margin: 0;
  color: #b9c8da;
  font-size: 17px;
}

.home-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-link-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #34445c;
  border-radius: 20px;
  color: #c4cfdf;
  background: linear-gradient(160deg, #1d293a, #151e2b);
  text-decoration: none;
}

.home-link-card:hover {
  border-color: #84e8f4;
  color: #e4f0fa;
}

.home-link-kicker {
  color: #84e8f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-link-card strong {
  color: #f3f7fd;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.04em;
}

.home-link-card strong span {
  color: #84e8f4;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 25px 22px 28px;
  border: 1px solid #34445c;
  border-radius: 20px;
  background: linear-gradient(160deg, #1d293a, #151e2b);
}

.feature-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  margin-bottom: 29px;
  border-radius: 12px;
  background: #101b2d;
  font-size: 23px;
  font-weight: 700;
}

.cyan {
  color: #84e8f4;
}

.violet {
  color: #c0aaff;
}

.feature-card p {
  margin: 0;
  color: #b9c8da;
  font-size: 15px;
}

.appearance-links,
.gallery-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.appearance-links {
  margin-top: 24px;
}

.appearance-links a,
.gallery-jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #34445c;
  border-radius: 999px;
  color: #e4f0fa;
  background: #172234;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.appearance-links a:hover,
.gallery-jump-links a:hover {
  border-color: #84e8f4;
  color: #84e8f4;
}

.appearance-links span,
.gallery-jump-links span {
  color: #84e8f4;
}

.gallery-jump-links {
  margin-bottom: 64px;
}

.gallery-jump-links span {
  font-size: 12px;
  font-weight: 400;
}

.gallery-note {
  max-width: 620px;
  margin: 20px 0 0;
  color: #abbad0;
  font-size: 14px;
}

.gallery-section {
  scroll-margin-top: 28px;
}

.gallery-section:last-child {
  margin-bottom: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.layout-screenshots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shot-card {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #34445c;
  border-radius: 20px;
  background: linear-gradient(160deg, #1d293a, #151e2b);
}

.shot-card a {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #0b121e;
}

.shot-card a:hover {
  border-color: #60708a;
}

.shot-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.theme-screenshots .shot-card a {
  aspect-ratio: 16 / 10;
}

.shot-card figcaption {
  display: grid;
  gap: 5px;
  padding: 16px 3px 2px;
  color: #b9c8da;
  font-size: 14px;
  line-height: 1.5;
}

.shot-card figcaption strong {
  color: #f3f7fd;
  font-size: 16px;
}

.closing-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #4b5076;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 98% 0%, #8061bd3d, transparent 47%),
    #1b2234;
}

.closing-panel > div {
  max-width: 690px;
}

.closing-panel p:last-child {
  margin: 0;
  color: #c4cfdf;
}

.text-link {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}

.text-link span {
  margin-left: 5px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 27px 0 38px;
  border-top: 1px solid #314055;
  color: #aebdd0;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.feature-page,
.gallery-page {
  padding-bottom: 100px;
}

.page-intro {
  max-width: 760px;
  padding: clamp(54px, 8vw, 96px) 0 40px;
}

.page-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 64px);
}

.page-intro .lead {
  margin-bottom: 0;
}

.page-next {
  margin: 0;
  font-weight: 700;
}

.article-page {
  width: min(100%, 760px);
  padding: clamp(54px, 8vw, 96px) 0 100px;
}

.article-page h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 64px);
}

.article-page .lead {
  margin-bottom: 52px;
}

.article-section {
  padding: 28px 0;
  border-top: 1px solid #314055;
}

.article-section h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 30px);
}

.article-section p,
.article-section li {
  color: #c4cfdf;
  font-size: 16px;
}

.article-section p:last-child,
.article-section ul:last-child {
  margin-bottom: 0;
}

.article-section ul {
  padding-left: 23px;
}

.article-section li + li {
  margin-top: 8px;
}

.contact-card {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid #4b5076;
  border-radius: 18px;
  background: #1b2234;
}

.contact-card p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 65px;
  }

  .product-visual {
    width: min(100%, 720px);
  }

  .feature-grid,
  .layout-screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 36px, 560px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-nav {
    gap: 12px 22px;
  }

  .hero {
    padding-top: 58px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .home-link-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .gallery-jump-links {
    margin-bottom: 48px;
  }

  .gallery-jump-links a {
    justify-content: space-between;
    width: 100%;
  }

  .feature-symbol {
    margin-bottom: 18px;
  }

  .closing-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-page {
    padding-top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.developer-home {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #c5d2e2;
  font-size: 12px;
  text-decoration: none;
}

.developer-home img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.developer-home:hover {
  text-decoration: underline;
}
