:root {
  --background: #0b0c0e;
  --surface: #111316;
  --surface-raised: #16191d;
  --surface-soft: #0f1114;
  --border: #25292f;
  --border-strong: #333942;
  --text: #f3f5f7;
  --text-soft: #b6bdc7;
  --muted: #7e8794;
  --accent: #5c8dff;
  --accent-hover: #74a0ff;
  --accent-soft: rgba(92, 141, 255, 0.12);
  --green: #72d6a5;
  --yellow: #d9b85f;
  --purple: #987df2;
  --container: 1220px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(37, 41, 47, 0.7);
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 29px;
  height: 29px;
  overflow: visible;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark > circle:first-child {
  fill: #111722;
  stroke: #375893;
  stroke-width: 1;
}

.brand-node {
  fill: #7ca4ff;
}

.brand-path {
  fill: none;
  stroke: #7ca4ff;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-status,
.release-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: #d9dee5;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(114, 214, 165, 0.08);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: #dfe3e8;
  transition: transform 160ms ease;
}

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

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

.mobile-nav {
  display: none;
}

.hero {
  padding: 108px 0 80px;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 80px;
  align-items: end;
  margin-bottom: 68px;
}

.hero-copy {
  max-width: 850px;
}

.overline {
  margin: 0 0 18px;
  color: #8da8e5;
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 590;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.3vw, 6.7rem);
  line-height: 0.98;
}

.hero-summary {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  user-select: none;
}

.primary-action svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  padding: 4px 0;
  border-bottom: 1px solid #555d68;
  color: #d8dde4;
  font-size: 0.86rem;
  font-weight: 550;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.text-link:hover {
  border-color: #a9b1bb;
  color: #fff;
}

.hero-meta {
  border-top: 1px solid var(--border);
}

.hero-meta > div {
  display: grid;
  gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-meta strong {
  color: #d9dee5;
  font-size: 0.84rem;
  font-weight: 550;
}

.product-frame {
  overflow: hidden;
  border: 0px solid var(--border-strong);
  border-radius: var(--radius);
  background: #0d0f12;
}

.product-shot {
  margin: 0;
  background: #090b0e;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-titlebar {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #252a31;
  background: #181b20;
  color: #969faa;
  font-size: 0.7rem;
}

.app-branding {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d5dae1;
}

.app-icon {
  width: 17px;
  height: 17px;
  border: 1px solid #4a70b5;
  border-radius: 50%;
  background: #15213a;
}

.project-name {
  color: #aeb5bf;
}

.window-buttons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #77808c;
}

.app-toolbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 19px;
  border-bottom: 1px solid #20242a;
  background: #121519;
  color: #777f8a;
  font-size: 0.65rem;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.toolbar-item {
  height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.toolbar-item.active {
  border-color: var(--accent);
  color: #dbe2ed;
}

.toolbar-actions {
  gap: 13px;
}

.export-button {
  padding: 6px 9px;
  border: 1px solid #343b45;
  border-radius: 5px;
  color: #bcc3cc;
}

.app-workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 560px;
}

.library-panel {
  padding: 17px 13px;
  border-right: 1px solid #23272d;
  background: #14171b;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  color: #cdd2d9;
  font-size: 0.68rem;
}

.panel-heading strong {
  font-weight: 600;
}

.panel-heading span {
  color: #69727e;
  font-size: 0.57rem;
}

.library-search {
  margin: 13px 0 10px;
  padding: 8px 9px;
  border: 1px solid #272c33;
  border-radius: 5px;
  background: #101216;
  color: #5e6671;
  font-size: 0.61rem;
}

.library-section {
  display: grid;
  gap: 3px;
}

.library-section button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8e97a3;
  font-size: 0.61rem;
  text-align: left;
}

.library-section button:first-child {
  background: #1a2230;
  color: #c8d8f8;
}

.library-section button span:last-child {
  color: #5e6671;
  font-variant-numeric: tabular-nums;
}

.graph-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: #0e1013;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 24px 24px;
}

.canvas-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  overflow: hidden;
  border: 1px solid #2b3037;
  border-radius: 5px;
  background: #15181c;
  color: #919aa6;
  font-size: 0.67rem;
}

.canvas-toolbar span {
  width: 29px;
  height: 27px;
  display: grid;
  place-items: center;
  border-right: 1px solid #2b3037;
}

.canvas-toolbar span:last-child {
  border-right: 0;
}

.flow-node {
  position: absolute;
  z-index: 3;
  width: 190px;
  overflow: visible;
  border: 1px solid #343a43;
  border-radius: 7px;
  background: #181c21;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  color: #aab2bd;
  font-size: 0.63rem;
}

.flow-node header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 10px;
  border-bottom: 1px solid #2d3239;
  border-radius: 6px 6px 0 0;
  color: #e2e6ec;
  font-weight: 600;
}

.node-type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.node-body {
  display: grid;
  gap: 9px;
  padding: 11px 10px 12px;
}

.node-body > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 15px;
}

.field-row {
  gap: 8px;
}

.field-row b {
  min-width: 96px;
  padding: 5px 7px;
  border: 1px solid #2b3139;
  border-radius: 4px;
  background: #121519;
  color: #c1c7d0;
  font-weight: 450;
}

.message-field b {
  min-width: 108px;
}

.event-node {
  top: 83px;
  left: 72px;
}

.event-node header {
  background: #17233a;
}

.condition-node {
  top: 230px;
  left: 365px;
  width: 205px;
}

.condition-node header {
  background: #29261b;
}

.condition-node .node-type-dot {
  background: var(--yellow);
}

.action-node {
  top: 365px;
  left: 690px;
  width: 218px;
}

.action-node header {
  background: #211d35;
}

.action-node .node-type-dot {
  background: var(--purple);
}

.port {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #181c21;
  border-radius: 50%;
}

.node-body > div:not(.input-row) .port {
  right: -15px;
}

.input-row .port {
  left: -15px;
}

.value-port {
  background: var(--accent);
}

.flow-port,
.input-port {
  background: #dce1e7;
}

.condition-port {
  background: var(--yellow);
}

.connection-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-layer path {
  fill: none;
  stroke: #648ee7;
  stroke-width: 2;
  stroke-linecap: round;
}

.canvas-status {
  position: absolute;
  left: 13px;
  bottom: 11px;
  color: #545c67;
  font-size: 0.57rem;
}

.preview-label {
  margin: 13px 0 0;
  color: #626b76;
  font-size: 0.68rem;
  text-align: right;
}

.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 92px;
  align-items: start;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  line-height: 1.04;
}

.section-heading > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.sticky-copy {
  position: sticky;
  top: 108px;
}

.code-panel {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #101216;
}

.code-header,
.code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #717a86;
  font-size: 0.68rem;
}

.code-header {
  height: 45px;
  border-bottom: 1px solid var(--border);
}

.code-footer {
  min-height: 43px;
  border-top: 1px solid var(--border);
}

.code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 30px 26px 34px;
  color: #cbd1d9;
  font:
    0.82rem/1.8 "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  tab-size: 2;
}

.code-keyword {
  color: #91aff2;
}

.code-string {
  color: #b8d68f;
}

.compact-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 720px);
  gap: 24px;
  align-items: start;
  margin-bottom: 58px;
}

.compact-heading .overline {
  margin-top: 10px;
}

.capability-list {
  border-top: 1px solid var(--border);
}

.capability-list article {
  display: grid;
  grid-template-columns: 60px minmax(210px, 0.7fr) minmax(300px, 1fr) 100px;
  gap: 28px;
  align-items: center;
  min-height: 128px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.capability-index {
  color: #59616c;
  font:
    0.72rem/1 "SFMono-Regular",
    Consolas,
    monospace;
}

.capability-list h3 {
  margin-bottom: 0;
  color: #e1e5ea;
  font-size: 1.04rem;
  font-weight: 580;
  letter-spacing: -0.015em;
}

.capability-list p {
  max-width: 570px;
  margin-bottom: 0;
  color: #929aa5;
  font-size: 0.88rem;
  line-height: 1.7;
}

.capability-tag {
  justify-self: end;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #79828e;
  font-size: 0.65rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 110px;
  align-items: end;
}

.about-copy {
  padding-left: 28px;
  border-left: 1px solid var(--border-strong);
}

.about-copy p {
  margin-bottom: 18px;
  color: #a2aab5;
  font-size: 0.94rem;
  line-height: 1.8;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.release {
  padding-top: 0;
  border-top: 0;
}

.release-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 46px 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.release-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.release-panel > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.release-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 17px;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-inner > p {
  margin-bottom: 0;
  color: #626b76;
  font-size: 0.72rem;
}

.footer-inner > p:last-child {
  justify-self: end;
}

.footer-brand {
  color: #d9dee5;
}

@media (max-width: 1050px) {
  .hero-intro {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-meta > div {
    padding: 14px 18px;
    border-right: 1px solid var(--border);
  }

  .hero-meta > div:last-child {
    border-right: 0;
  }

  .app-workspace {
    grid-template-columns: 160px minmax(0, 1fr);
    min-height: 500px;
  }

  .event-node {
    left: 45px;
  }

  .condition-node {
    left: 290px;
  }

  .action-node {
    left: 545px;
  }

  .split-layout,
  .about-layout {
    gap: 60px;
  }

  .capability-list article {
    grid-template-columns: 45px minmax(180px, 0.7fr) minmax(260px, 1fr) 80px;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .desktop-nav,
  .header-status {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 49;
    display: grid;
    padding: 14px 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #0d0f12;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    color: #b7bec8;
    font-size: 0.88rem;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding: 78px 0 65px;
  }

  h1 {
    font-size: clamp(3rem, 12.2vw, 5.4rem);
  }

  .product-frame {
    overflow: hidden;
  }

  .preview-label {
    text-align: left;
  }

  .section {
    padding: 90px 0;
  }

  .split-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .sticky-copy {
    position: static;
  }

  .compact-heading {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 40px;
  }

  .compact-heading .overline {
    margin-top: 0;
  }

  .capability-list article {
    grid-template-columns: 40px 1fr auto;
    gap: 12px 18px;
    min-height: 0;
    padding: 28px 0;
  }

  .capability-list h3 {
    grid-column: 2;
  }

  .capability-list p {
    grid-column: 2 / 4;
  }

  .capability-tag {
    grid-column: 3;
    grid-row: 1;
  }

  .about-copy {
    padding-left: 0;
    padding-top: 26px;
    border-top: 1px solid var(--border-strong);
    border-left: 0;
  }

  .release-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner > p:first-of-type {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    height: 62px;
  }

  .mobile-nav {
    top: 62px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-intro {
    margin-bottom: 48px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .hero-summary {
    font-size: 0.96rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .primary-action {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta > div {
    padding-inline: 0;
    border-right: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2 {
    font-size: clamp(2.1rem, 11vw, 3.25rem);
  }

  .code-panel pre {
    padding: 24px 18px 28px;
    font-size: 0.73rem;
  }

  .code-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-block: 12px;
  }

  .capability-list article {
    grid-template-columns: 34px 1fr;
  }

  .capability-list h3,
  .capability-list p {
    grid-column: 2;
  }

  .capability-tag {
    display: none;
  }

  .release-panel {
    padding: 28px 23px;
  }

  .release-button {
    width: 100%;
  }

  .footer-inner {
    min-height: 94px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(2.15rem, 10vw, 2.55rem);
    line-height: 1.03;
  }

  .hero-summary {
    font-size: 0.92rem;
    line-height: 1.65;
  }
}

/* Scroll reveal ---------------------------------------------------------- */
.js .reveal {
  --reveal-x: 0px;
  --reveal-y: 30px;
  --reveal-scale: 1;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0)
    scale(var(--reveal-scale));
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.reveal-left {
  --reveal-x: -26px;
  --reveal-y: 0px;
}

.js .reveal.reveal-right {
  --reveal-x: 26px;
  --reveal-y: 0px;
}

.js .reveal.reveal-scale {
  --reveal-y: 20px;
  --reveal-scale: 0.985;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* A calm opening sequence for the first screen. */
.js .hero-copy > .reveal,
.js .hero-meta.reveal {
  transition-duration: 820ms;
}

.js .product-shot.reveal img {
  transform: scale(1.018);
  transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .product-shot.reveal.is-visible img {
  transform: scale(1);
}

.js .capability-list article.reveal {
  transition-property: opacity, transform, border-color;
}

.js .capability-list article.reveal.is-visible {
  border-color: var(--border);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .product-shot.reveal img,
  .js .product-shot.reveal.is-visible img {
    transform: none !important;
  }
}

/* Final responsive layout and background ------------------------------- */

body::before {
  content: none !important;
}

body {
  position: relative;
  background-color: #0b0c0e;

  background-image:
    radial-gradient(
      circle at 50% 6%,
      rgba(73, 116, 220, 0.13) 0%,
      rgba(73, 116, 220, 0.055) 24%,
      transparent 48%
    ),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);

  background-size:
    100% 900px,
    40px 40px,
    40px 40px;

  background-position:
    center top,
    center top,
    center top;

  background-repeat: no-repeat, repeat, repeat;

  background-attachment: scroll, fixed, fixed;
}

/* Gradually reduce the grid visibility near the bottom */
/* Fade the grid across the entire page, including the footer */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 35%,
    rgba(11, 12, 14, 0.25) 60%,
    rgba(11, 12, 14, 0.7) 82%,
    #0b0c0e 100%
  );
}

/* Standard desktop */
@media (min-width: 1280px) {
  :root {
    --container: 1280px;
  }
}

/* Full HD and ultrawide screens */
@media (min-width: 1600px) {
  :root {
    --container: 1400px;
  }

  .header-inner {
    height: 76px;
  }

  .brand {
    font-size: 1rem;
  }

  .desktop-nav a,
  .header-status {
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-intro {
    grid-template-columns:
      minmax(0, 1fr)
      260px;

    gap: 110px;
  }

  .hero-copy {
    max-width: 1000px;
  }

  h1 {
    max-width: 1050px;
    font-size: clamp(5rem, 5.2vw, 7rem);
  }

  .hero-summary {
    max-width: 760px;
    font-size: 1.08rem;
  }

  .hero-meta strong {
    font-size: 0.9rem;
  }

  .product-shot {
    width: 100%;
  }

  .about.section {
    padding-top: 100px;
    padding-bottom: 90px;
  }

  .release.section {
    padding-bottom: 100px;
  }
}

/* Large 2K and 4K screens */
@media (min-width: 2200px) {
  :root {
    --container: 1680px;
  }

  .header-inner {
    height: 78px;
  }

  .hero {
    padding-top: 150px;
  }

  .hero-intro {
    grid-template-columns:
      minmax(0, 1fr)
      300px;

    gap: 140px;
    margin-bottom: 88px;
  }

  .hero-copy {
    max-width: 1120px;
  }

  h1 {
    max-width: 1180px;
    font-size: clamp(6rem, 4.8vw, 8rem);
  }

  .hero-summary {
    max-width: 840px;
    font-size: 1.25rem;
  }

  .section {
    padding-block: 150px;
  }

  .about.section {
    padding-top: 120px;
    padding-bottom: 110px;
  }

  .release.section {
    padding-bottom: 120px;
  }
}

/* Tablet */
@media (max-width: 1050px) {
  .hero-intro {
    grid-template-columns: 1fr;
  }

  .product-shot img {
    width: 100%;
    height: auto;
  }
}

/* Mobile */
@media (max-width: 820px) {
  body {
    background-size:
      100% 700px,
      34px 34px,
      34px 34px;

    background-attachment: scroll, scroll, scroll;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-intro {
    gap: 42px;
    margin-bottom: 48px;
  }

  .product-shot {
    width: 100%;
    border-radius: 9px;
  }

  .product-shot img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* Small phones */
@media (max-width: 560px) {
  body {
    background-image:
      radial-gradient(
        circle at 50% 4%,
        rgba(73, 116, 220, 0.11),
        transparent 430px
      ),
      linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);

    background-size:
      100% 560px,
      30px 30px,
      30px 30px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 58px;
  }

  .product-shot {
    border-radius: 7px;
  }
}

/* Editor styles fix */
.product-frame,
.product-shot,
.product-tilt {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.product-shot img {
  box-shadow: none !important;
  filter: none !important;
}

/* Keep the header and mobile navigation above page content */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Mobile navigation overlay */
@media (max-width: 820px) {
  .mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;

    width: 100%;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 14px 16px 32px;
    background: #0b0c0e;

    align-content: start;
    z-index: 999;

    scrollbar-width: thin;
    scrollbar-color: #333942 transparent;
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav:not(.open) {
    pointer-events: none;
  }

  .mobile-nav a {
    position: relative;
    z-index: 1;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Small phone header height */
@media (max-width: 560px) {
  .mobile-nav {
    top: 62px;
    height: calc(100dvh - 62px);
    max-height: calc(100dvh - 62px);
  }
}