:root {
  color-scheme: light;
  --ink: #0b0d12;
  --muted: #626b7d;
  --line: #e1e6ef;
  --lavender: #a892ff;
  --success: #239867;
  --processing: #4c72e6;
  --shadow-window: 0 32px 80px rgba(74, 81, 104, 0.15);
  --shadow-card: 0 7px 22px rgba(74, 81, 104, 0.06);
  font-family: Inter, "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 24%, rgba(216, 204, 240, 0.72), transparent 35rem),
    radial-gradient(circle at 86% 18%, rgba(191, 228, 243, 0.74), transparent 38rem),
    linear-gradient(135deg, #fff 0%, #faf8ff 46%, #f1f8ff 78%, #fff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 45% 55%, rgba(255,255,255,.45), transparent 55%);
  z-index: -1;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

.page-shell {
  width: min(100%, 1536px);
  margin: 0 auto;
  padding: 0 5.4rem 2.5rem;
}

.site-header {
  min-height: 136px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 220px;
}

.brand-mark {
  width: 54px;
  height: 50px;
  object-fit: contain;
}

.brand-wordmark {
  display: grid;
  line-height: 1.02;
  font-size: 1.34rem;
  letter-spacing: -.035em;
}

.brand-wordmark strong { font-weight: 780; }
.brand-wordmark span { font-weight: 430; }

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 2.35vw, 2.7rem);
  color: #2f3540;
  font-size: .88rem;
  font-weight: 560;
}

.desktop-nav a,
.github-link {
  transition: color 120ms ease-out;
}

.desktop-nav a:hover,
.github-link:hover { color: #7464d8; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.github-link {
  font-size: .88rem;
  font-weight: 560;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  border-radius: 14px;
  font-weight: 650;
  transition: transform 90ms ease-in, box-shadow 120ms ease-out, background 120ms ease-out, border-color 120ms ease-out;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button-dark {
  color: #fff;
  background: #111722;
  box-shadow: 0 8px 24px rgba(17, 23, 34, .1);
}

.button-dark:hover {
  background: #202734;
  box-shadow: 0 12px 28px rgba(17, 23, 34, .16);
}

.button-light {
  color: #1b1f27;
  background: rgba(255,255,255,.68);
  border: 1px solid #d8dee9;
  box-shadow: 0 6px 18px rgba(74,81,104,.05);
}

.button-light:hover {
  background: #fff;
  border-color: #c8d0dd;
}

.button-compact {
  min-height: 52px;
  padding: 0 1.55rem;
  font-size: .92rem;
}

.button-primary {
  min-height: 80px;
  padding: 0 2.25rem;
  font-size: 1.05rem;
}

.button svg {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #dce2ec;
  border-radius: 12px;
  background: rgba(255,255,255,.76);
  color: var(--ink);
}

.menu-button span:not(.sr-only) {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  position: absolute;
  top: 92px;
  left: 0;
  right: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.mobile-menu a {
  display: block;
  padding: .85rem .9rem;
  border-radius: 10px;
  font-weight: 600;
}

.mobile-menu a:hover { background: #f5f3ff; }

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(610px,1.18fr);
  align-items: start;
  gap: clamp(2rem,4vw,4.2rem);
  padding: 2.45rem 0 1.1rem;
}

.hero-copy {
  width: 100%;
  max-width: 100%;
  padding-top: .15rem;
  min-width: 0;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  padding: 0 1.45rem;
  border-radius: 15px;
  border: 1px solid #d8ceff;
  background: rgba(238,233,255,.82);
  color: #7564d8;
  font-size: .79rem;
  font-weight: 780;
  letter-spacing: .14em;
}

.hero h1 {
  max-width: 650px;
  margin: 2.2rem 0 0;
  font-size: clamp(4rem,5.65vw,5.4rem);
  line-height: 1.02;
  letter-spacing: -.064em;
  font-weight: 800;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(92deg,#9f84ef 0%,#9992ee 50%,#72b9ed 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 650px;
  margin: 2.5rem 0 0;
  color: #596276;
  font-size: clamp(1.02rem,1.28vw,1.23rem);
  line-height: 1.6;
  letter-spacing: -.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.25rem;
}

.hero-actions .button-dark {
  min-width: 212px;
  border-radius: 15px 0 0 15px;
}

.hero-actions .button-light {
  min-width: 232px;
  border-radius: 0 15px 15px 0;
}

.download-note {
  margin: 1rem 0 0;
  color: #7a8395;
  font-size: .78rem;
}

.product-stage { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }

.product-window {
  display: grid;
  grid-template-columns: 174px 1fr;
  height: 631px;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 24px;
  background: rgba(255,255,255,.91);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(18px);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  border-right: 1px solid #e7ebf2;
  background: rgba(250,251,254,.92);
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.preview-brand img {
  width: 34px;
  height: 31px;
}

.preview-brand > span {
  display: grid;
  font-size: .72rem;
  line-height: 1.05;
}

.preview-brand strong { font-weight: 750; }

.preview-search {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 20px;
  padding: 0 .7rem;
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  background: #fff;
  color: #969eae;
  font-size: .62rem;
}

.search-icon {
  width: 10px;
  height: 10px;
  position: relative;
  border: 1.4px solid #8992a3;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  width: 4px;
  height: 1.4px;
  position: absolute;
  right: -3px;
  bottom: -2px;
  border-radius: 2px;
  background: #8992a3;
  transform: rotate(45deg);
}

.preview-nav {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  color: #52596b;
  font-size: .72rem;
}

.preview-nav span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0 .7rem;
  border-radius: 9px;
}

.preview-nav .active {
  background: #eeeafe;
  color: #24222f;
  font-weight: 600;
}

.nav-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1.4px solid #566384;
  border-radius: 3px;
  opacity: .92;
}

.nav-icon.home { transform: rotate(45deg) scale(.72); }
.nav-icon.user { border-radius: 50%; }

.nav-icon.bars {
  border: 0;
  background: linear-gradient(90deg,#566384 0 2px,transparent 2px 5px,#566384 5px 7px,transparent 7px 10px,#566384 10px 12px);
}

.preview-sidebar-footer {
  display: grid;
  gap: 1.1rem;
  margin-top: auto;
  padding: 0 .72rem;
  color: #52596b;
  font-size: .72rem;
}

.preview-content {
  min-width: 0;
  padding: 27px 23px 22px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-toolbar h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -.03em;
}

.preview-toolbar small {
  display: block;
  margin-top: .2rem;
  color: #9199a8;
  font-size: .52rem;
}

.preview-period {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 0 .78rem;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  background: #fff;
  color: #505868;
  font-size: .62rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}

.metric-card {
  min-width: 0;
  min-height: 90px;
  padding: 14px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.metric-card > span {
  display: block;
  color: #808899;
  font-size: .61rem;
}

.metric-card strong {
  display: block;
  margin-top: .55rem;
  font-size: 1.05rem;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.metric-card small {
  display: block;
  margin-top: .55rem;
  color: var(--success);
  font-size: .61rem;
  font-weight: 700;
}

.chart-card,
.activity-card {
  margin-top: 13px;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: #fff;
}

.chart-card {
  height: 176px;
  padding: 14px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .73rem;
}

.card-heading > span {
  padding: .35rem .55rem;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  color: #505767;
  font-size: .55rem;
}

.chart {
  height: 126px;
  position: relative;
  margin-top: 7px;
  padding: 4px 8px 18px;
}

.grid-line {
  position: absolute;
  left: 8px;
  right: 8px;
  border-top: 1px solid #f0f2f6;
}

.grid-one { top: 33%; }
.grid-two { top: 66%; }

.bars {
  height: 100%;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 0 4px;
}

.bars i {
  display: block;
  flex: 1 1 0;
  max-width: 10px;
  min-height: 7px;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(#a59bfb,#c4bcff);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #939bac;
  font-size: .52rem;
}

.activity-card { overflow: hidden; }

.activity-card h3 {
  margin: 0;
  padding: 13px 14px 10px;
  font-size: .75rem;
}

.activity-table { font-size: .57rem; }

.activity-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr .85fr .7fr;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid #eef1f5;
  color: #505767;
}

.activity-head {
  color: #8d95a6;
  font-size: .52rem;
}

.status.success { color: #2d8f66; }
.status.processing { color: var(--processing); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 2rem 0 .6rem;
  border-top: 1px solid #dce2ec;
}

.feature-strip article {
  display: flex;
  gap: 1rem;
  min-width: 0;
  padding: .4rem 2.1rem;
}

.feature-strip article:first-child { padding-left: .5rem; }
.feature-strip article + article { border-left: 1px solid #e2e6ee; }

.feature-strip strong {
  display: block;
  font-size: .98rem;
  letter-spacing: -.015em;
}

.feature-strip p {
  margin: .45rem 0 0;
  color: #71798d;
  font-size: .82rem;
  line-height: 1.55;
}

.feature-icon {
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  position: relative;
  border-radius: 12px;
  background: #f3f0ff;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.7px solid #9587d7;
  border-radius: 4px;
}

.feature-icon.layers::after { inset: 14px 9px 8px 13px; }
.feature-icon.lock::before { inset: 13px 10px 8px; }
.feature-icon.lock::after {
  inset: 7px 14px 20px;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.feature-icon.code::before {
  content: "</>";
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #9587d7;
  font: 700 .95rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.feature-icon.code::after { display: none; }

.feature-icon.people::before,
.feature-icon.people::after {
  width: 7px;
  height: 7px;
  inset: 8px auto auto 9px;
  border-radius: 50%;
}

.feature-icon.people::after { left: 22px; }

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .page-shell { padding-inline: 2rem; }
  .desktop-nav { gap: 1.25rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 780px; }
  .product-window {
    max-width: 900px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .site-header { min-height: 92px; }
  .desktop-nav,
  .github-link,
  .header-actions > .button-compact { display: none; }
  .menu-button { display: flex; }
  .brand { min-width: 0; }
  .hero { padding-top: 1.7rem; }
  .hero h1 { font-size: clamp(3.4rem,12vw,5rem); }
  .product-window {
    grid-template-columns: 1fr;
    height: auto;
  }
  .preview-sidebar { display: none; }
  .feature-strip { grid-template-columns: repeat(2,1fr); }
  .feature-strip article:nth-child(3) { border-left: 0; }
  .feature-strip article { padding-block: 1rem; }
}

@media (max-width: 620px) {
  .page-shell { padding: 0 1.25rem 1.5rem; }
  .brand-mark { width: 38px; height: 35px; }
  .brand-wordmark { font-size: .92rem; }
  .hero {
    min-height: 0;
    gap: 2rem;
  }
  .eyebrow {
    min-height: 36px;
    padding-inline: 1rem;
    border-radius: 10px;
    font-size: .65rem;
  }
  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin-top: 1.6rem;
    font-size: clamp(2.75rem,12.2vw,3.7rem);
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
  }

  .hero h1 span {
    display: block;
    font-size: .9em;
    letter-spacing: -.055em;
  }
  .hero-lede {
    margin-top: 1.75rem;
    font-size: .95rem;
  }
  .hero-lede br { display: none; }
  .hero-actions {
    display: grid;
    gap: .75rem;
  }
  .hero-actions .button-dark,
  .hero-actions .button-light {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    border-radius: 14px;
  }
  .product-window { border-radius: 20px; }
  .preview-content { padding: 20px 16px 18px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-card:nth-child(n+3) { display: none; }
  .activity-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .activity-row span:nth-child(4),
  .activity-row span:nth-child(5) { display: none; }
  .feature-strip {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }
  .feature-strip article,
  .feature-strip article:first-child { padding: 1rem .35rem; }
  .feature-strip article + article {
    border-left: 0;
    border-top: 1px solid #e2e6ee;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
