:root {
  --background: #faf9fa;
  --surface: #ffffff;
  --surface-low: #f5f3f4;
  --surface-mid: #efedee;
  --surface-high: #e3e2e3;
  --ink: #1b1c1d;
  --muted: #5a5f63;
  --soft: #434653;
  --outline: #c3c6d5;
  --outline-strong: #737784;
  --primary: #094cb2;
  --primary-container: #3366cc;
  --primary-soft: #d9e2ff;
  --primary-faint: #e7ebff;
  --aurora: #35f2a2;
  --aurora-hot: #00ff9d;
  --deep: #001946;
  --deep-2: #071632;
  --dark: #1b1c1d;
  --gold: #bfab49;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 8px 24px rgba(24, 37, 68, 0.08);
  --shadow-md: 0 18px 50px rgba(24, 37, 68, 0.16);
  --shadow-xl: 0 30px 90px rgba(7, 22, 50, 0.24);
  --container: 1440px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-headline: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-label: "Public Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.site-shell,
.content-layer,
main {
  max-width: 100vw;
  overflow-x: hidden;
}

section {
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  height: 4px;
  width: 0;
  background: var(--aurora-hot);
  box-shadow: 0 0 14px rgba(53, 242, 162, 0.75);
}

.site-shell {
  min-height: 100vh;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(195, 198, 213, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav.dark {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 25, 70, 0.08);
  color: #fff;
}

.nav-inner {
  width: min(var(--container), calc(100vw - 48px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 22px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.dark .nav-links {
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a:hover {
  color: var(--aurora);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
}

.dark .lang-switch {
  color: rgba(255, 255, 255, 0.72);
}

.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
}

.lang-switch a:hover,
.lang-switch .active {
  color: var(--primary-container);
}

.dark .lang-switch a:hover,
.dark .lang-switch .active {
  color: var(--aurora);
}

.lang-switch .divider {
  color: currentColor;
  opacity: 0.38;
}

.button {
  border: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  color: #fff;
  background: var(--primary-container);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover {
  transform: translateY(-2px);
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.button.aurora:hover {
  background: var(--aurora-hot);
  color: var(--deep);
  box-shadow: 0 18px 32px rgba(0, 255, 157, 0.24);
}

.button.ghost {
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
}

.button.dark-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button.large {
  min-height: 54px;
  padding: 0 32px;
  font-size: 16px;
}

.button.pill {
  border-radius: 999px;
}

.hero-platform {
  min-height: 100vh;
  padding: 112px 24px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(51, 102, 204, 0.28), transparent 34%),
    linear-gradient(180deg, var(--deep) 0%, #101c31 58%, var(--dark) 100%);
  overflow: hidden;
}

.hero-center {
  width: min(940px, 100%);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(44px, 6.8vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-title .accent {
  color: #b1c5ff;
}

.mobile-break {
  display: none;
}

.hero-subtitle {
  margin: 0;
  color: #b1c5ff;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding-top: 8px;
}

.media-frame {
  width: min(1160px, 100%);
  margin: 72px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
}

.media-screen {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #05070c;
}

.media-screen img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  opacity: 0.78;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.38);
}

.play-button {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.mono-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section {
  padding: 96px 0;
}

.section.white {
  background: #fff;
}

.section.soft {
  background: var(--surface-low);
}

.section.mid {
  background: var(--surface-mid);
}

.bordered {
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.section-head {
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head.left {
  margin-inline: 0;
  text-align: left;
}

.section-title {
  margin: 0 0 18px;
  font-family: var(--font-headline);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-copy {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.65;
}

.timeline {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.timeline-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(50% + 52px);
  width: calc(100% - 56px);
  height: 2px;
  background: rgba(195, 198, 213, 0.7);
}

.icon-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.icon-orb.active {
  background: var(--primary);
  color: #fff;
}

.icon {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.symbol-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.material-symbols-outlined {
  direction: ltr;
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Material Symbols Outlined";
  font-size: 30px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.timeline-item h3,
.capability h3,
.layer h3,
.loop-card h3 {
  margin: 0;
}

.timeline-item p,
.capability p,
.layer p,
.loop-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.capability {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.capability:hover,
.loop-card:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: var(--aurora);
  box-shadow: var(--shadow-md);
}

.product-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin: 22px 0 32px;
  color: rgba(67, 70, 83, 0.72);
  font-weight: 600;
}

.platform-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.platform-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mockup-card {
  position: relative;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.mockup-card img {
  border-radius: var(--radius);
  width: 100%;
}

.floating-note {
  position: absolute;
  left: -28px;
  bottom: -28px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 240px;
  padding: 20px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.stack {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.stack-layer {
  position: relative;
  min-height: 116px;
  padding: 32px 40px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--primary);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stack-layer:nth-child(1) {
  background: var(--primary-container);
}

.stack-layer:nth-child(3) {
  background: #00419d;
}

.stack-layer:nth-child(4) {
  background: var(--dark);
}

.stack-layer:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.stack-layer::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 180px;
  transform: skewX(-12deg);
  background: rgba(255, 255, 255, 0.08);
}

.dark-cta {
  padding: 128px 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 30%, rgba(53, 242, 162, 0.12), transparent 34%),
    linear-gradient(180deg, var(--deep) 0%, #111d31 100%);
}

.dark-cta .section-copy {
  color: rgba(255, 255, 255, 0.62);
}

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--outline);
  background: var(--background);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.grid-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(circle, #e3e2e3 1px, transparent 1px);
  background-size: 32px 32px;
}

.content-layer {
  position: relative;
  z-index: 1;
}

.product-hero {
  min-height: 100vh;
  padding: 132px 0 96px;
  display: flex;
  align-items: center;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-container);
  animation: pulse 1.8s infinite;
}

.product-title {
  margin: 24px 0;
  font-family: var(--font-headline);
  font-size: clamp(56px, 7vw, 94px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.demo-window {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.demo-window::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: rgba(51, 102, 204, 0.08);
  filter: blur(36px);
}

.window-bar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--surface-high);
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-high);
}

.test-canvas {
  height: calc(100% - 56px);
  padding: 28px;
  background: var(--surface-low);
  display: grid;
  place-items: center;
}

.phone-ui {
  position: relative;
  width: min(380px, 80%);
  height: 74%;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.phone-top {
  height: 50px;
  border-bottom: 1px solid var(--surface-high);
  background: var(--surface-low);
}

.phone-blocks {
  padding: 26px;
  display: grid;
  gap: 15px;
}

.block {
  height: 28px;
  border-radius: 3px;
  background: var(--surface-mid);
}

.block.hero {
  height: 98px;
  position: relative;
}

.focus-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 64px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(51, 102, 204, 0.72);
  background: rgba(51, 102, 204, 0.1);
}

.focus-box::before {
  content: "ELEMENT: CT_PROMO";
  position: absolute;
  left: -2px;
  top: -26px;
  padding: 3px 7px;
  color: #fff;
  background: var(--primary-container);
  font-family: var(--font-label);
  font-size: 9px;
  white-space: nowrap;
}

.monitor-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.86);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.argument-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
}

.quote-block {
  margin-top: 20px;
  padding: 28px;
  border-left: 4px solid var(--primary-container);
  background: var(--surface-low);
  font-family: var(--font-headline);
  font-size: 19px;
  font-style: italic;
}

.loop-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.loop-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--outline);
}

.loop-card {
  position: relative;
  min-height: 238px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card-num {
  align-self: flex-end;
  color: var(--outline-strong);
  font-family: var(--font-label);
  font-size: 10px;
}

.capability-grid.product {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card-meta {
  margin-left: auto;
  color: var(--outline-strong);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.architecture {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.layer {
  width: 100%;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.layer.active {
  border-color: var(--primary-container);
  background: rgba(51, 102, 204, 0.05);
}

.layer-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary-container);
  background: var(--surface-mid);
  font-family: var(--font-label);
  font-weight: 800;
}

.layer-icon .symbol-icon,
.layer-icon .material-symbols-outlined {
  font-size: 46px;
  width: auto;
  height: auto;
  stroke-width: 1.7;
}

.layer.active .layer-icon {
  color: #fff;
  background: var(--primary-container);
}

.layer-link {
  width: 2px;
  height: 50px;
  background: linear-gradient(var(--primary-container), var(--outline));
}

.stats {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.stat {
  min-width: 150px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 44px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(51, 102, 204, 0.34);
  }

  50% {
    opacity: 0.62;
    box-shadow: 0 0 0 8px rgba(51, 102, 204, 0);
  }
}

@media (max-width: 1100px) {
  .capability-grid,
  .capability-grid.product {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-split,
  .product-hero-grid,
  .argument-grid {
    grid-template-columns: 1fr;
  }

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

  .loop-grid::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-inner {
    width: min(100% - 32px, 390px, var(--container));
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-links a[href*="github.com"] {
    display: none;
  }

  .lang-switch {
    margin-left: 0;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .nav-inner {
    gap: 12px;
    justify-content: flex-start;
  }

  .brand {
    font-size: 20px;
    gap: 9px;
    min-width: 0;
  }

  .brand-logo,
  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .nav .button {
    display: none;
  }

  .hero-platform {
    padding-top: 94px;
    padding-inline: 16px;
  }

  .hero-center {
    width: min(100%, 342px);
    gap: 20px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    max-width: 286px;
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 286px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    max-width: 286px;
    margin-inline: auto;
    align-items: stretch;
  }

  .product-hero .hero-actions {
    justify-content: flex-start !important;
    margin-inline: 0;
  }

  .mobile-break {
    display: inline;
  }

  .hero-actions .button {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding-inline: 18px;
  }

  .media-frame {
    width: min(100%, 342px);
    margin-top: 48px;
  }

  .media-screen,
  .media-screen img {
    min-height: 220px;
  }

  .timeline,
  .capability-grid,
  .capability-grid.product,
  .loop-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item:not(:last-child)::after {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .product-title {
    font-size: 38px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .product-hero {
    padding: 112px 0 72px;
  }

  .product-hero-grid {
    gap: 44px;
    width: min(100% - 32px, 390px);
    min-width: 0;
  }

  .demo-window {
    width: min(100%, 358px);
    min-width: 0;
  }

  .window-bar {
    padding: 0 14px;
  }

  .window-bar .mono-label {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .test-canvas {
    padding: 18px;
  }

  .phone-ui {
    width: 88%;
  }

  .monitor-label {
    left: 14px;
    right: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .layer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .floating-note {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
