:root {
  --bg: #f4f8ff;
  --bg-strong: #e9f1ff;
  --text: #0f172a;
  --muted: #46516b;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(50, 73, 114, 0.16);
  --shadow: 0 26px 55px -30px rgba(28, 56, 110, 0.45);
  --accent: #1162ff;
  --accent-soft: rgba(17, 98, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 90% -5%, #d6e6ff 0%, transparent 48%),
    radial-gradient(circle at -5% 25%, #dfeeff 0%, transparent 38%), var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}

.background-glow {
  position: fixed;
  inset: auto auto 5% -8%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(20, 102, 255, 0.24), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.site-header {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 1.1rem auto 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0.8rem;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  box-shadow: 0 8px 18px -12px rgba(29, 64, 139, 0.55);
}

.brand-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  font-size: 0.84rem;
  transition: transform 200ms ease, border-color 200ms ease;
}

.header-link:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 98, 255, 0.32);
}

.download-menu {
  position: relative;
}

.download-menu summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
}

.download-menu summary::marker {
  content: "";
}

.download-menu summary::-webkit-details-marker {
  display: none;
}

.download-menu-items {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 10rem;
  padding: 0.35rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -30px rgba(28, 56, 110, 0.55);
  display: grid;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.download-menu-items a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.84rem;
  border-radius: 0.6rem;
  padding: 0.38rem 0.6rem;
  text-align: center;
}

.os-icon {
  width: 0.92rem;
  height: 0.92rem;
  fill: currentColor;
  opacity: 0.85;
  flex: 0 0 auto;
}

.download-menu-items a:hover {
  background: var(--accent-soft);
}

.download-menu:hover .download-menu-items,
.download-menu[open] .download-menu-items {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

main {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.section {
  margin-top: 4rem;
}

.hero {
  margin-top: 3.4rem;
  text-align: center;
}

.hero-logo {
  width: 4.9rem;
  height: 4.9rem;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  box-shadow: 0 16px 28px -20px rgba(28, 56, 110, 0.6);
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #315089;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.16;
  margin: 0;
}

h1 {
  margin-top: 0.8rem;
  max-width: 13.5ch;
  margin-inline: auto;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
}

.hero-copy {
  margin: 1rem auto 0;
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.1rem auto 0;
  max-width: 60rem;
}

.hero-points span {
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature .card img {
  cursor: zoom-in;
}

.hero-image {
  margin: 1.35rem auto 0;
  max-width: 980px;
}

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

.feature-block {
  display: grid;
  gap: 1.35rem;
}

.feature {
  display: grid;
  gap: 2.1rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1.35rem;
}

.feature:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

.feature:nth-child(even) figure {
  order: 2;
}

.feature:nth-child(even) .feature-copy {
  order: 1;
}

.feature-copy h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
}

.feature-copy p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

code {
  font-family: "IBM Plex Sans", monospace;
  background: var(--accent-soft);
  color: #0b3fa8;
  padding: 0.08rem 0.34rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
}

.compact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4rem;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.64);
  padding: 1.1rem;
}

.mini-card h3 {
  font-size: 1.06rem;
}

.mini-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(50, 73, 114, 0.28);
}

.site-footer a:hover {
  border-bottom-color: rgba(17, 98, 255, 0.55);
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, 0.82);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  width: min(1200px, 95vw);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.8rem;
  border: 1px solid rgba(212, 225, 255, 0.2);
  box-shadow: 0 26px 70px -30px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 225, 255, 0.28);
  background: rgba(13, 22, 51, 0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms ease, transform 550ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature:nth-child(even) figure,
  .feature:nth-child(even) .feature-copy {
    order: initial;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 0.5rem 0.65rem;
  }

  .brand-text {
    font-size: 0.9rem;
  }
}
