:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --paper-strong: #fffcf4;
  --ink: #1f2528;
  --muted: #657075;
  --line: #d9d4c8;
  --coral: #fb746c;
  --sky: #40bfe8;
  --amber: #f3be42;
  --violet: #b789e8;
  --shadow: 0 24px 70px rgba(39, 43, 44, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  background:
    linear-gradient(145deg, rgba(64, 191, 232, 0.16), transparent 34rem),
    linear-gradient(330deg, rgba(251, 116, 108, 0.15), transparent 30rem),
    var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.source-band {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 52px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  min-height: 680px;
  margin: 0 auto;
  padding: 54px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #287f98;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 5.7rem;
  line-height: 0.92;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.45rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 28px;
  color: #394347;
  font-size: 1.28rem;
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sky) 45%, transparent);
  outline-offset: 3px;
}

.button.primary {
  color: #161a1b;
  background: var(--amber);
  box-shadow: 0 12px 28px rgba(191, 128, 23, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 252, 244, 0.76);
}

.compatibility {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.desktop-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fbfb, #d9e2e5);
  box-shadow: var(--shadow);
}

.traffic {
  display: flex;
  gap: 8px;
  padding: 18px;
}

.traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

.traffic span:nth-child(2) {
  background: var(--amber);
}

.traffic span:nth-child(3) {
  background: #4fc26b;
}

.workspace {
  position: relative;
  min-height: 344px;
  margin: 0 18px 18px;
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(251, 116, 108, 0.18), transparent 45%),
    linear-gradient(300deg, rgba(64, 191, 232, 0.22), transparent 42%),
    #eef3f1;
}

.window-note,
.grid-overlay {
  position: absolute;
}

.window-note {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.74);
  box-shadow: 0 18px 40px rgba(39, 43, 44, 0.14);
  backdrop-filter: blur(10px);
}

.window-title {
  display: block;
  padding: 14px 16px;
  color: #536168;
  font-size: 0.86rem;
  font-weight: 750;
}

.main-window {
  top: 38px;
  left: 34px;
  width: 54%;
  height: 152px;
}

.side-window {
  right: 28px;
  bottom: 34px;
  width: 38%;
  height: 118px;
}

.grid-overlay {
  inset: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.zone {
  border: 1px solid rgba(40, 127, 152, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.24);
}

.zone.active {
  border-color: rgba(64, 191, 232, 0.95);
  background: rgba(64, 191, 232, 0.34);
}

.modifier-strip {
  position: absolute;
  right: 28px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 252, 244, 0.82);
  box-shadow: 0 18px 42px rgba(39, 43, 44, 0.14);
  font-weight: 850;
  backdrop-filter: blur(16px);
}

.modifier-strip img {
  border-radius: 12px;
}

.feature-band,
.install-band,
.source-band,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.feature-band,
.install-band {
  padding: 88px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.feature-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 176px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.68);
}

.feature-card-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 26px;
  align-items: center;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(64, 191, 232, 0.12), transparent 54%),
    rgba(255, 252, 244, 0.78);
}

.feature-card-presets {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-card-presets .feature-demo {
  flex: 1;
  min-height: 310px;
}

.feature-kicker {
  margin-bottom: 18px;
  color: #287f98;
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-demo {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(64, 191, 232, 0.13), transparent 48%),
    linear-gradient(315deg, rgba(251, 116, 108, 0.09), transparent 42%),
    rgba(255, 252, 244, 0.72);
}

.feature-card-large .feature-demo {
  min-height: 178px;
}

.demo-grid-cell,
.demo-window,
.demo-browser-slot,
.demo-browser-pane,
.demo-browser-window,
.demo-drag-window,
.demo-memory-block,
.preset-tile,
.custom-cell,
.scene-mini-window {
  position: absolute;
  border: 1px solid rgba(40, 127, 152, 0.38);
  border-radius: 7px;
  background: rgba(255, 252, 244, 0.68);
}

.demo-grid-cell {
  width: 32%;
  height: 30%;
}

.demo-grid-cell:nth-child(1) {
  left: 16%;
  top: 18%;
}

.demo-grid-cell:nth-child(2) {
  right: 16%;
  top: 18%;
}

.demo-grid-cell:nth-child(3) {
  left: 16%;
  bottom: 18%;
}

.demo-grid-cell:nth-child(4) {
  right: 16%;
  bottom: 18%;
}

.demo-grid-cell.active {
  background: rgba(64, 191, 232, 0.26);
  border-color: rgba(64, 191, 232, 0.88);
}

.demo-arrange .demo-window {
  width: 25%;
  height: 24%;
  background: rgba(255, 252, 244, 0.82);
  box-shadow: 0 10px 24px rgba(39, 43, 44, 0.12);
}

.demo-window-a {
  animation: arrangeA 4.8s ease-in-out infinite;
}

.demo-window-b {
  animation: arrangeB 4.8s ease-in-out infinite;
}

.demo-window-c {
  animation: arrangeC 4.8s ease-in-out infinite;
}

.demo-browser-window {
  left: 10%;
  top: 20%;
  width: 48%;
  height: 48%;
  background: rgba(255, 252, 244, 0.84);
  box-shadow: 0 12px 26px rgba(39, 43, 44, 0.14);
  animation: browserOpen 4.8s ease-in-out infinite;
}

.demo-browser-window i {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 10px 0 0 8px;
  border-radius: 50%;
  background: var(--coral);
}

.demo-browser-window i:nth-child(2) {
  background: var(--amber);
}

.demo-browser-window i:nth-child(3) {
  background: #4fc26b;
}

.demo-browser-slot {
  right: 12%;
  top: 18%;
  width: 34%;
  height: 30%;
  background: rgba(64, 191, 232, 0.2);
}

.demo-browser-pane {
  right: 12%;
  bottom: 18%;
  width: 34%;
  height: 30%;
}

.demo-shortcut {
  position: absolute;
  left: 12%;
  bottom: 14%;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 7px;
  color: #1f2528;
  background: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(191, 128, 23, 0.2);
}

.demo-drag-window {
  width: 35%;
  height: 34%;
  box-shadow: 0 10px 22px rgba(39, 43, 44, 0.13);
  animation: dragSnap 4.6s ease-in-out infinite;
}

.demo-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-right: 3px solid #1f2528;
  border-bottom: 3px solid #1f2528;
  transform: rotate(-35deg);
  animation: cursorMove 4.6s ease-in-out infinite;
}

.demo-space-pill,
.scene-row {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.demo-space-pill {
  left: 12%;
  top: 14%;
  color: #1f2528;
  background: var(--amber);
  animation: memoryPillOne 4.8s ease-in-out infinite;
}

.demo-space-pill.alt {
  left: auto;
  right: 12%;
  background: rgba(64, 191, 232, 0.34);
  animation: memoryPillTwo 4.8s ease-in-out infinite;
}

.demo-memory-block {
  bottom: 16%;
  height: 38%;
  background: rgba(255, 252, 244, 0.78);
  animation: memoryBlocks 4.8s ease-in-out infinite;
}

.demo-memory-block.one {
  left: 12%;
  width: 22%;
}

.demo-memory-block.two {
  left: 39%;
  width: 18%;
}

.demo-memory-block.three {
  right: 12%;
  width: 28%;
}

.demo-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.preset-tile {
  position: relative;
  width: 100%;
  min-height: 116px;
  background:
    linear-gradient(90deg, rgba(40, 127, 152, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(40, 127, 152, 0.28) 1px, transparent 1px),
    rgba(255, 252, 244, 0.76);
  background-size: 50% 50%;
}

.preset-two {
  min-height: 140px;
  animation: presetPulse 4s ease-in-out infinite;
}

.preset-three {
  background-size: 33% 50%;
}

.preset-four {
  min-height: 104px;
  background-size: 50% 33%;
  background-color: rgba(64, 191, 232, 0.12);
}

.demo-custom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 18px;
}

.custom-cell {
  position: relative;
  inset: auto;
}

.custom-cell.wide {
  grid-column: span 2;
  background: rgba(64, 191, 232, 0.22);
  animation: customMerge 4.4s ease-in-out infinite;
}

.custom-cell.tall {
  background: rgba(251, 116, 108, 0.16);
}

.scene-row {
  left: 12%;
  background: rgba(255, 252, 244, 0.82);
  color: #536168;
}

.scene-row.active {
  top: 15%;
  color: #1f2528;
  background: var(--amber);
}

.scene-row:not(.active) {
  top: 43%;
}

.scene-mini-window {
  right: 12%;
  width: 32%;
  background: rgba(255, 252, 244, 0.78);
  box-shadow: 0 8px 18px rgba(39, 43, 44, 0.11);
  animation: sceneRestore 4.8s ease-in-out infinite;
}

.scene-mini-window.one {
  top: 18%;
  height: 28%;
}

.scene-mini-window.two {
  bottom: 16%;
  height: 28%;
  animation-delay: 160ms;
}

.feature-card p:not(.feature-kicker),
.install-copy p,
.steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.install-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.66);
}

.steps span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #161a1b;
  background: var(--sky);
  font-weight: 900;
}

.source-band {
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 74px;
  border-top: 1px solid var(--line);
}

.source-band h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero,
  .install-band {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 4.1rem;
  }

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

  .feature-card {
    grid-column: span 1;
  }

  .feature-card-large {
    grid-template-columns: 1fr;
    grid-column: span 2;
  }

  .feature-card-presets {
    grid-column: span 2;
    grid-row: auto;
  }

  .feature-card-presets .feature-demo {
    flex: none;
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  .nav-links a:first-child {
    display: none;
  }

  .hero {
    padding-bottom: 56px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 344px;
  }

  .workspace {
    min-height: 270px;
  }

  .modifier-strip {
    right: 12px;
    bottom: 0;
  }

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

  .feature-card,
  .feature-card-large,
  .feature-card-presets {
    grid-column: span 1;
  }

  .feature-card-large {
    grid-template-columns: 1fr;
  }

  .feature-card-presets {
    grid-row: auto;
  }

  .feature-card-large .feature-demo,
  .feature-demo {
    min-height: 132px;
  }

  .feature-card-presets .feature-demo {
    min-height: 150px;
  }

  .demo-presets {
    gap: 9px;
    padding: 12px;
  }

  .preset-tile {
    width: 21%;
    width: 100%;
    min-height: 78px;
  }

  .preset-two {
    min-height: 98px;
  }

  .preset-four {
    min-height: 64px;
  }

  .feature-band,
  .install-band {
    padding: 58px 0;
  }

  .source-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

@keyframes arrangeA {
  0%, 18% { left: 37%; top: 38%; }
  42%, 78% { left: 19.5%; top: 21%; width: 25%; height: 24%; }
  100% { left: 37%; top: 38%; }
}

@keyframes arrangeB {
  0%, 18% { left: 37%; top: 38%; }
  42%, 78% { left: 55.5%; top: 21%; width: 25%; height: 24%; }
  100% { left: 37%; top: 38%; }
}

@keyframes arrangeC {
  0%, 18% { left: 37%; top: 38%; }
  42%, 78% { left: 19.5%; top: 55%; width: 25%; height: 24%; }
  100% { left: 37%; top: 38%; }
}

@keyframes browserOpen {
  0%, 20% { opacity: 0; transform: translateX(-18px) scale(0.92); }
  42%, 78% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(-18px) scale(0.92); }
}

@keyframes dragSnap {
  0%, 18% { left: 48%; top: 50%; }
  46%, 78% { left: 15%; top: 15%; }
  100% { left: 48%; top: 50%; }
}

@keyframes cursorMove {
  0%, 18% { left: 74%; top: 76%; }
  46%, 78% { left: 42%; top: 42%; }
  100% { left: 74%; top: 76%; }
}

@keyframes memoryPillOne {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0.42; }
}

@keyframes memoryPillTwo {
  0%, 45% { opacity: 0.42; }
  55%, 100% { opacity: 1; }
}

@keyframes memoryBlocks {
  0%, 45% { transform: translateX(0); }
  55%, 100% { transform: translateX(12px) scaleX(0.92); }
}

@keyframes presetPulse {
  0%, 100% { transform: translateY(0); border-color: rgba(40, 127, 152, 0.38); }
  50% { transform: translateY(-5px); border-color: rgba(64, 191, 232, 0.9); }
}

@keyframes customMerge {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(64, 191, 232, 0); }
  50% { box-shadow: inset 0 0 0 3px rgba(64, 191, 232, 0.28); }
}

@keyframes sceneRestore {
  0%, 20% { opacity: 0.42; transform: translateY(8px); }
  42%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.42; transform: translateY(8px); }
}
