:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", sans-serif;
  color: #1d1d1f;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --section: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
}

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

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav,
footer {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.brand img,
.menu-header img {
  border-radius: 8px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.nav-link {
  min-height: 44px;
  gap: 3px;
  color: var(--secondary);
  font-size: 12px;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

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

.nav-link svg,
.text-link svg,
.button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  padding: clamp(94px, 11vw, 144px) 24px 132px;
  overflow: hidden;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.018em;
}

h1 {
  margin: 0;
  font-size: clamp(76px, 10vw, 124px);
  font-weight: 700;
  letter-spacing: -0.068em;
  line-height: 0.91;
  text-wrap: balance;
}

.flip-word {
  letter-spacing: 0;
  perspective: 750px;
}

.flip-word-inner {
  display: inline-flex;
  gap: clamp(4px, 0.55vw, 7px);
  white-space: nowrap;
}

.flip-letter {
  position: relative;
  width: 0.68em;
  height: 0.92em;
  border-radius: 0.105em;
  background: #222224;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 2px 3px rgba(0, 0, 0, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.1);
  color: #f5f5f7;
  transform-style: preserve-3d;
}

.flip-letter::after {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.075);
  content: "";
  transform: translateY(-1px);
}

.flip-letter-half {
  position: absolute;
  right: 0;
  left: 0;
  height: 50%;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.flip-letter-top {
  top: 0;
  border-radius: 0.105em 0.105em 0.025em 0.025em;
  background:
    linear-gradient(rgba(255, 255, 255, 0.085), transparent 30%),
    linear-gradient(180deg, #303034, #27272a);
}

.flip-letter-bottom {
  bottom: 0;
  border-radius: 0.025em 0.025em 0.105em 0.105em;
  background: linear-gradient(180deg, #1b1b1d, #242427);
}

.flip-letter-static {
  z-index: 1;
}

.flip-letter-fold,
.flip-letter-unfold {
  z-index: 3;
}

.flip-letter-fold {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06) inset;
  transform-origin: center bottom;
}

.flip-letter-unfold {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform: rotateX(90deg);
  transform-origin: center top;
}

.flip-letter-glyph {
  position: absolute;
  left: 0;
  display: grid;
  width: 100%;
  height: 200%;
  place-items: center;
  font-size: 0.73em;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.flip-letter-top .flip-letter-glyph {
  top: 0;
  padding-top: 0.005em;
}

.flip-letter-bottom .flip-letter-glyph {
  bottom: 0;
  padding-top: 0.005em;
}

.flip-word.is-flipping .flip-letter-fold,
.flip-word.is-flipping .flip-letter-unfold {
  will-change: transform, filter;
}

.lede {
  max-width: 760px;
  margin: 34px auto 0;
  color: var(--secondary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 440;
  letter-spacing: -0.038em;
  line-height: 1.22;
  text-wrap: pretty;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.button,
.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 560;
}

.button {
  gap: 5px;
  padding: 0 19px 0 21px;
  border-radius: 999px;
  transition-property: scale, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.025),
    0 2px 8px rgba(0, 75, 160, 0.16);
}

.button-primary:hover {
  background: var(--blue-hover);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.035),
    0 5px 15px rgba(0, 75, 160, 0.2);
}

.button:active,
.text-link:active {
  scale: 0.96;
}

.text-link {
  gap: 3px;
  color: var(--blue);
  transition-property: scale, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.text-link:hover {
  color: var(--blue-hover);
}

.requirement {
  margin: 15px 0 0;
  color: var(--tertiary);
  font-size: 12px;
}

.product-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(1120px, 100%);
  height: 610px;
  margin: 84px auto 0;
  place-items: center;
  overflow: hidden;
  border-radius: 48px;
  background:
    radial-gradient(circle at 20% 75%, rgba(178, 238, 215, 0.68), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(205, 207, 255, 0.88), transparent 34%),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.96), transparent 45%),
    linear-gradient(145deg, #f5f9ff 0%, #f7f4ff 52%, #f1f7f5 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.035),
    0 1px 2px rgba(0, 0, 0, 0.025),
    0 18px 60px rgba(35, 46, 75, 0.06);
}

.stage-glow {
  position: absolute;
  z-index: -1;
  width: 580px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  filter: blur(50px);
}

.demo-wrap {
  width: min(430px, calc(100% - 32px));
}

.menu-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.88) inset,
    0 0 0 1px rgba(0, 0, 0, 0.055),
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 24px 55px rgba(29, 29, 31, 0.15),
    0 55px 110px rgba(29, 29, 31, 0.08);
  text-align: left;
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
}

.menu-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), transparent 42%);
  content: "";
}

.menu-header {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 4px 18px;
}

.menu-header > div {
  min-width: 0;
}

.menu-header strong,
.menu-header span {
  display: block;
}

.menu-header strong {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.menu-header span {
  overflow: hidden;
  color: var(--secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-group {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.055),
    0 1px 2px rgba(0, 0, 0, 0.035);
}

.device-label + .settings-group {
  z-index: 2;
  overflow: visible;
}

.setting-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  font-size: 13px;
}

.setting-row + .setting-row {
  position: relative;
}

.setting-row + .setting-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 14px;
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  content: "";
}

.switch {
  position: relative;
  width: 40px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d2d2d7;
  cursor: pointer;
  transition-property: background-color, scale;
  transition-duration: 180ms, 120ms;
  transition-timing-function: var(--ease-out), ease-out;
}

.switch::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  content: "";
  transform: translate(-50%, -50%);
}

.switch:active {
  scale: 0.96;
}

.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.08);
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-out);
}

.switch.is-on {
  background: #34c759;
}

.switch.is-on span {
  transform: translateX(16px);
}

.device-label {
  margin: 19px 2px 8px;
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.device-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.device-name svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--secondary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.device-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-menu {
  position: relative;
  flex: 0 0 auto;
}

.rule-trigger {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 3px;
  padding: 0 7px 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #515154;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  transition-property: background-color, transform;
  transition-duration: 150ms, 100ms;
  transition-timing-function: ease-out;
}

.rule-trigger:hover {
  background: rgba(0, 0, 0, 0.045);
}

.rule-trigger:active {
  transform: scale(0.96);
}

.rule-chevron {
  width: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.rule-menu.is-open .rule-chevron {
  transform: rotate(180deg);
}

.rule-popover {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: calc(100% + 3px);
  width: 138px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    0 8px 22px rgba(0, 0, 0, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  filter: blur(4px);
  pointer-events: none;
  transform: translateY(5px) scale(0.98);
  transform-origin: bottom right;
  transition-property: opacity, transform, filter, visibility;
  transition-duration: 140ms, 160ms, 140ms, 0s;
  transition-delay: 0s, 0s, 0s, 160ms;
  transition-timing-function: ease-out, cubic-bezier(0.22, 1, 0.36, 1), ease-out, linear;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

.rule-menu.is-open .rule-popover {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.rule-option {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #3a3a3c;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-align: left;
  transition-property: color, background-color, transform;
  transition-duration: 130ms, 130ms, 100ms;
  transition-timing-function: ease-out;
}

.rule-option:hover {
  background: rgba(0, 0, 0, 0.045);
}

.rule-option:active {
  transform: scale(0.96);
}

.rule-option.is-selected {
  background: rgba(0, 113, 227, 0.09);
  color: var(--blue);
  font-weight: 600;
}

.option-check {
  width: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
  transition-property: opacity, transform, filter;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.rule-option.is-selected .option-check {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.menu-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 3px 0;
  color: var(--tertiary);
  font-size: 11px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.12);
}

.demo-hint {
  margin: 20px 0 0;
  color: rgba(29, 29, 31, 0.54);
  font-size: 12px;
  letter-spacing: 0.01em;
  text-align: center;
}

.input-badge {
  position: absolute;
  display: flex;
  min-width: 164px;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(29, 29, 31, 0.08);
  color: var(--ink);
  text-align: left;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.input-badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--secondary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.input-badge span,
.input-badge small {
  display: block;
}

.input-badge span {
  font-size: 13px;
  font-weight: 620;
}

.input-badge small {
  margin-bottom: 2px;
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 500;
}

.badge-trackpad {
  bottom: 110px;
  left: 7%;
  transform: rotate(-2deg);
}

.badge-mouse {
  top: 108px;
  right: 7%;
  transform: rotate(2deg);
}

.feature-section {
  padding: 146px 24px 140px;
  background: var(--section);
}

.section-intro {
  width: min(920px, 100%);
  margin: 0 auto 66px;
  text-align: center;
}

.section-intro .eyebrow {
  margin-bottom: 16px;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(54px, 7vw, 82px);
  font-weight: 680;
  letter-spacing: -0.058em;
  line-height: 0.98;
  text-wrap: balance;
}

.benefits {
  display: grid;
  width: min(1120px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefits article {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.035),
    0 1px 2px rgba(0, 0, 0, 0.025);
  transition-property: transform, box-shadow;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-out);
}

.benefits article:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.045),
    0 12px 32px rgba(29, 29, 31, 0.07);
}

.feature-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #f1f7ff, #f5f1ff);
  box-shadow:
    0 0 0 1px rgba(0, 113, 227, 0.06),
    0 4px 12px rgba(0, 113, 227, 0.05);
}

.feature-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.benefits h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.benefits p {
  margin: 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.48;
  text-wrap: pretty;
}

footer {
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: space-between;
  color: var(--tertiary);
  font-size: 12px;
}

.switch:focus-visible,
.rule-trigger:focus-visible,
.rule-option:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 3px;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .actions,
.hero-copy .requirement,
.product-stage {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(12px);
  animation: hero-enter 700ms var(--ease-out) forwards;
}

.hero-copy h1 {
  animation-delay: 80ms;
}

.hero-copy .lede {
  animation-delay: 160ms;
}

.hero-copy .actions {
  animation-delay: 240ms;
}

.hero-copy .requirement {
  animation-delay: 320ms;
}

.product-stage {
  animation-delay: 420ms;
}

@keyframes hero-enter {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero {
    padding-inline: 18px;
  }

  .product-stage {
    height: 570px;
    border-radius: 38px;
  }

  .input-badge {
    display: none;
  }

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

  .benefits article {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .nav,
  footer {
    width: min(100% - 32px, 1040px);
  }

  .hero {
    padding: 78px 12px 92px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 15px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 76px);
    letter-spacing: -0.064em;
  }

  .lede {
    margin-top: 26px;
    font-size: 21px;
    line-height: 1.28;
  }

  .actions {
    flex-direction: column;
    gap: 7px;
    margin-top: 28px;
  }

  .text-link {
    min-height: 44px;
    font-size: 16px;
  }

  .requirement {
    margin-top: 8px;
  }

  .product-stage {
    width: calc(100% + 8px);
    height: 500px;
    margin-top: 58px;
    margin-left: -4px;
    border-radius: 30px;
  }

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

  .menu-card {
    padding: 14px;
    border-radius: 20px;
  }

  .menu-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 0 3px 14px;
  }

  .menu-header img {
    width: 40px;
    height: 40px;
  }

  .menu-header span {
    font-size: 10px;
  }

  .setting-row {
    padding-inline: 13px;
  }

  .feature-section {
    padding: 96px 16px 88px;
  }

  .section-intro {
    margin-bottom: 44px;
  }

  .section-intro h2 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .benefits article {
    min-height: 250px;
    padding: 28px;
    border-radius: 26px;
  }

  footer {
    min-height: 88px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .actions,
  .hero-copy .requirement,
  .product-stage {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
