:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --bg-bottom: #eef3fb;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #141821;
  --muted: #5d6677;
  --border: #d8deea;
  --border-strong: rgba(42, 52, 68, 0.14);
  --accent: #6f42c1;
  --accent-hover: #5d35a8;
  --accent-soft: rgba(111, 66, 193, 0.1);
  --accent-soft-strong: rgba(111, 66, 193, 0.18);
  --info-soft: rgba(220, 238, 255, 0.65);
  --shadow: 0 28px 90px rgba(20, 24, 33, 0.12);
  --shadow-soft: 0 18px 48px rgba(20, 24, 33, 0.08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(111, 66, 193, 0.2), transparent 25%),
    radial-gradient(circle at 84% 18%, rgba(143, 193, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 48%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(111, 66, 193, 0.16);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.92em;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.1rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  gap: 1rem 1.3rem;
  margin-bottom: 2rem;
  padding: 0.88rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 30px rgba(139, 92, 246, 0.12),
    var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-size: 1.65rem;
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-tagline {
  color: var(--muted);
  display: flex;
  gap: 0.28rem;
  font-size: 0.92rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.menu-toggle-icon {
  display: grid;
  gap: 0.24rem;
}

.menu-toggle-icon span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--panel);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 3.6rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.download-card h2,
.operation-card h3,
.signal-value {
  margin: 0;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.35rem, 6vw, 6.1rem);
  line-height: 0.94;
}

.hero-text,
.hero-note,
.section-heading p,
.signal-text,
.operation-card p,
.gallery-card figcaption,
.download-card p,
.download-meta,
.site-footer p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-text {
  max-width: 58ch;
  margin: 1.3rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.88rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-family: "SF Pro Display", "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 720;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  color: #f8f8ff;
  box-shadow: 0 18px 34px rgba(111, 66, 193, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 22px 42px rgba(111, 66, 193, 0.28);
}

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

.button-large {
  min-width: 12.5rem;
}

.hero-note {
  max-width: 56ch;
  margin: 1rem 0 0;
}

.workflow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.workflow-pills li {
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.workflow-pills-muted li {
  background: var(--accent-soft);
  border-color: rgba(111, 66, 193, 0.12);
}

.hero-stage {
  position: relative;
  width: min(112%, 49rem);
  justify-self: end;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4% 12%;
  border-radius: 40px;
  background:
    radial-gradient(circle at center, rgba(111, 66, 193, 0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(143, 193, 255, 0.2), transparent 45%);
  filter: blur(28px);
}

.window-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 253, 0.86));
  box-shadow: var(--shadow);
}

.window-frame img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 2px);
  transition: transform 240ms ease;
}

.hero-stage .window-frame img {
  transform: translateY(8px) scale(1.015);
  transform-origin: center;
}

.signals,
.operations-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.signals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-card,
.operation-card,
.gallery-card,
.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.signal-card {
  padding: 1.35rem;
}

.signal-value {
  font-size: 1.35rem;
  line-height: 1.02;
}

.signal-text {
  margin: 0.7rem 0 0;
}

.operations-section,
.gallery-section {
  padding: 4.8rem 0 0;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.8rem;
}

.section-heading h2,
.download-card h2 {
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
  line-height: 0.95;
}

.operations-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-card {
  padding: 1.4rem;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(111, 66, 193, 0.14);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(111, 66, 193, 0.12), rgba(111, 66, 193, 0.04));
}

.icon-chip img {
  width: 1.65rem;
  height: 1.65rem;
}

.operation-card h3 {
  margin-top: 1rem;
  font-size: 1.62rem;
  line-height: 0.98;
}

.operation-card p {
  margin-bottom: 0;
}

.workflow-strip {
  margin-top: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(111, 66, 193, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(220, 238, 255, 0.38));
}

.workflow-strip-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 740;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workflow-strip .workflow-pills {
  margin-top: 0.9rem;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  margin: 0;
  padding: 1rem;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-lg) - 8px);
  background: var(--panel);
  transition: transform 240ms ease;
}

.window-frame:hover img,
.window-frame:focus-within img {
  transform: translateY(8px) scale(1.03);
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  transform: scale(1.02);
}

.gallery-card figcaption {
  margin-top: 0.95rem;
}

.download-section {
  padding: 4rem 0 1rem;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(143, 193, 255, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
}

.download-copy {
  max-width: 42rem;
}

.download-actions {
  display: grid;
  gap: 0.85rem;
}

.download-meta {
  max-width: 20rem;
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0;
}

.site-footer p {
  margin: 0;
}

.hero-copy,
.hero-stage,
.signal-card,
.operation-card,
.gallery-card,
.download-card {
  animation: rise-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-stage {
  animation-delay: 0.08s;
}

.signals .signal-card:nth-child(2),
.operations-grid .operation-card:nth-child(2),
.gallery-grid .gallery-card:nth-child(2) {
  animation-delay: 0.12s;
}

.signals .signal-card:nth-child(3),
.operations-grid .operation-card:nth-child(3),
.gallery-grid .gallery-card:nth-child(3) {
  animation-delay: 0.18s;
}

.operations-grid .operation-card:nth-child(4),
.download-card {
  animation-delay: 0.24s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141b;
    --bg-bottom: #0d1117;
    --panel: #171d27;
    --panel-soft: rgba(23, 29, 39, 0.82);
    --panel-strong: rgba(23, 29, 39, 0.94);
    --text: #eef3fb;
    --muted: #a8b3c7;
    --border: #2a3444;
    --border-strong: rgba(216, 222, 234, 0.12);
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-soft: rgba(139, 92, 246, 0.12);
    --accent-soft-strong: rgba(139, 92, 246, 0.22);
    --info-soft: rgba(16, 35, 59, 0.48);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 14% 8%, rgba(139, 92, 246, 0.22), transparent 25%),
      radial-gradient(circle at 84% 18%, rgba(143, 193, 255, 0.14), transparent 22%),
      linear-gradient(180deg, #0f141d 0%, var(--bg) 52%, var(--bg-bottom) 100%);
  }

  .site-header {
    background: rgba(23, 29, 39, 0.72);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .button-secondary,
  .workflow-pills li {
    background: rgba(23, 29, 39, 0.9);
  }

  .window-frame {
    background: linear-gradient(180deg, rgba(23, 29, 39, 0.96), rgba(18, 24, 33, 0.9));
  }

  .workflow-strip {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(16, 35, 59, 0.45));
  }

  .download-card {
    background:
      linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(16, 35, 59, 0.28)),
      linear-gradient(180deg, rgba(23, 29, 39, 0.96), rgba(23, 29, 39, 0.86));
  }
}

@media (max-width: 1020px) {
  .hero,
  .signals,
  .operations-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stage {
    width: 100%;
    justify-self: stretch;
  }

  .window-frame {
    transform: none;
  }

  .gallery-card-wide {
    grid-column: span 1;
  }

  .download-card,
  .site-footer {
    flex-direction: column;
  }

  .download-card,
  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.8rem;
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 999px;
  }

  .brand {
    max-width: none;
    align-items: center;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-tagline {
    font-size: 0.84rem;
    display: grid;
    gap: 0;
    line-height: 1.25;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: center;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
  }

  .site-header.is-menu-open {
    border-radius: 30px;
  }

  .site-nav a {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    background: var(--panel-soft);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.3rem);
  }

  .signal-card,
  .operation-card,
  .gallery-card,
  .download-card {
    padding: 1.1rem;
  }
}

@media (max-width: 520px) {
  .workflow-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-pills li {
    text-align: center;
  }
}
