@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --unit: 0.0520833333vw;
  --paper: #fff;
  --ink: #000;
  --dock: #f7f7f7;
  --motion: 420ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Montserrat, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 260ms;
}

::view-transition-group(addot-surface) {
  animation-duration: 520ms;
  animation-timing-function: var(--ease);
}

* {
  box-sizing: border-box;
}

body, h1, h2, h3, p, figure {
  margin: 0;
}

a {
  color: inherit;
}

img, video {
  display: block;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid #bf3618;
  outline-offset: 5px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(25px, calc(50 * var(--unit)), 70px) calc(108 * var(--unit)) 0 calc(69 * var(--unit));
}

.brand, .site-nav {
  text-decoration: none;
}

.brand {
  font-size: clamp(19px, calc(27.5 * var(--unit)), 40px);
  font-weight: 655;
  letter-spacing: -0.014em;
  line-height: 1.15;
}

.site-nav {
  margin-top: calc(19 * var(--unit));
  font-size: clamp(14px, calc(17.5 * var(--unit)), 24px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.site-nav:hover, .site-nav[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.23em;
}

.home {
  position: relative;
  min-height: 100svh;
  overflow-x: clip;
}

.home .site-header {
  position: relative;
  z-index: 1;
}

.home-title {
  position: absolute;
  inset: calc(50% - 271 * var(--unit)) calc(6 * var(--unit)) auto 0;
  text-align: center;
  font-size: calc(205 * var(--unit));
  font-weight: 690;
  letter-spacing: -0.041em;
  line-height: calc(207 * var(--unit));
}

.underlined {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.underlined::after {
  position: absolute;
  right: calc(-2 * var(--unit));
  bottom: calc(-15 * var(--unit));
  left: calc(18 * var(--unit));
  height: calc(24 * var(--unit));
  background: var(--dock);
  content: "";
}

.home-title, .home .brand, .home .site-nav {
  transition: opacity var(--motion) var(--ease), filter var(--motion) var(--ease);
}

.preview-open .home-title, .preview-open .site-nav {
  opacity: 0;
  filter: blur(calc(30 * var(--unit)));
}

.preview-open .brand {
  opacity: 0.48;
  filter: blur(calc(24 * var(--unit)));
}

.preview-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse calc(167 * var(--unit)) calc(135 * var(--unit)) at 12.2% calc(100% - 455 * var(--unit)), #0009, #0006 29%, #0002 58%, transparent 90%),
    radial-gradient(ellipse calc(167 * var(--unit)) calc(131 * var(--unit)) at 88.1% calc(100% - 442 * var(--unit)), #0008, #0005 29%, #0002 58%, transparent 90%),
    radial-gradient(ellipse calc(630 * var(--unit)) calc(100 * var(--unit)) at 50% calc(100% - 603 * var(--unit)), #0006, transparent),
    radial-gradient(ellipse calc(680 * var(--unit)) calc(116 * var(--unit)) at 50% calc(100% - 455 * var(--unit)), #0009, transparent);
  transition: opacity var(--motion) var(--ease);
}

.preview-open .preview-shadow {
  opacity: 1;
}

.launcher {
  position: absolute;
  z-index: 2;
  bottom: calc(77 * var(--unit));
  left: calc(50% - 15 * var(--unit));
  width: calc(576 * var(--unit));
  height: calc(166 * var(--unit));
  transform: translateX(-50%);
}

.dock {
  position: absolute;
  right: calc(22 * var(--unit));
  bottom: 0;
  left: calc(22 * var(--unit));
  display: grid;
  height: calc(118 * var(--unit));
  place-items: center;
  border-radius: calc(24 * var(--unit));
  background: var(--dock);
}

.app-icon {
  display: grid;
  width: calc(98 * var(--unit));
  height: calc(98 * var(--unit));
  place-items: center;
  border-radius: calc(24 * var(--unit));
  background: var(--paper);
}

.app-icon img {
  width: calc(46 * var(--unit));
  height: auto;
  transform: translate(calc(2 * var(--unit)), calc(-1 * var(--unit)));
}

.product-surface {
  position: relative;
  background: var(--paper);
  border-radius: calc(52 * var(--unit));
}

.product-preview {
  position: absolute;
  bottom: calc(154 * var(--unit));
  left: 50%;
  display: block;
  width: calc(1474 * var(--unit));
  height: calc(804 * var(--unit));
  padding: calc(93 * var(--unit)) calc(78 * var(--unit)) calc(87 * var(--unit)) calc(102 * var(--unit));
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 calc(6 * var(--unit)) calc(38 * var(--unit)) #0000000d;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, calc(28 * var(--unit))) scale(0.975);
  transform-origin: 50% 100%;
  transition: transform var(--motion) var(--ease), opacity 220ms ease, visibility 0s var(--motion);
}

.preview-open .product-preview {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%);
  transition-delay: 0s;
  view-transition-name: addot-surface;
}

.product-preview::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: calc(49 * var(--unit));
  height: calc(22 * var(--unit));
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 57% 94%, 50% 100%, 43% 94%);
  transform: translateX(-50%);
  content: "";
}

.surface-icon {
  position: absolute;
  top: calc(53 * var(--unit));
  right: calc(59 * var(--unit));
  box-shadow: 0 calc(4 * var(--unit)) calc(9 * var(--unit)) #00000015;
}

.product-title {
  font-size: calc(155 * var(--unit));
  font-weight: 685;
  letter-spacing: -0.042em;
  line-height: 1.15;
}

.product-description {
  margin-top: calc(9 * var(--unit));
  font-size: calc(94 * var(--unit));
  font-weight: 470;
  letter-spacing: -0.044em;
  line-height: calc(110 * var(--unit));
}

.platforms {
  position: absolute;
  bottom: calc(73 * var(--unit));
  left: calc(102 * var(--unit));
  display: flex;
  align-items: center;
  gap: calc(30 * var(--unit));
  font-size: calc(17.5 * var(--unit));
  font-weight: 500;
  letter-spacing: -0.035em;
}

.platforms span {
  margin-right: calc(8 * var(--unit));
}

.platform-macos {
  width: calc(28 * var(--unit));
  height: calc(37 * var(--unit));
}

.platform-windows {
  width: calc(31 * var(--unit));
  height: calc(31 * var(--unit));
}

.detail {
  width: min(calc(1474 * var(--unit)), 1720px);
  margin: clamp(42px, 5vw, 100px) auto 0;
}

.detail-hero {
  padding: calc(76 * var(--unit)) calc(101 * var(--unit));
  box-shadow: 0 6px 38px #0000000d;
  view-transition-name: addot-surface;
}

.detail-intro, .manifesto-copy {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1.65;
  letter-spacing: -0.025em;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.05rem;
  border-radius: 0.85rem;
  background: var(--dock);
  font-weight: 600;
  text-decoration: none;
}

.download-links a:hover {
  background: #ededed;
}

.download-links img {
  width: 1rem;
  height: 1.1rem;
}

.detail-section, .detail-footer {
  margin: clamp(52px, 6vw, 120px) calc(101 * var(--unit));
}

.detail-section h2 {
  margin-bottom: 0.65em;
  font-size: clamp(2rem, 3.8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.workflow, .demos {
  display: grid;
  gap: 1rem;
}

.workflow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.workflow li, .demo {
  padding: clamp(1rem, 1.7vw, 2rem);
  border-radius: 1.25rem;
  background: var(--dock);
}

.workflow h3, .demo figcaption {
  margin-bottom: 0.55rem;
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.workflow p, .demo details {
  line-height: 1.55;
}

.workflow kbd {
  font-size: inherit;
  white-space: nowrap;
}

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

.demo video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  background: var(--paper);
}

.demo details, .demo details p {
  margin-top: 0.65rem;
}

.demo summary {
  width: fit-content;
  cursor: pointer;
}

.detail-footer a, .manifesto-copy a {
  text-underline-offset: 0.22em;
}

.manifesto-copy > * + * {
  display: block;
  margin-top: 1em;
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    padding: 28px 6vw 0;
  }

  .site-nav {
    margin-top: 0;
  }

  .home-title {
    inset: 50% 6vw auto;
    font-size: clamp(41px, 13vw, 94px);
    line-height: 1.02;
    transform: translateY(-57%);
  }

  .desktop-break {
    display: none;
  }

  .underlined::after {
    right: 0.04em;
    bottom: 0;
    left: 0.07em;
    height: 0.105em;
  }

  .launcher {
    bottom: calc(10px + max(22px, env(safe-area-inset-bottom)));
    left: 50%;
    width: min(70vw, 330px);
    height: 96px;
  }

  .dock {
    inset: auto 0 0;
    height: 74px;
    border-radius: 18px;
  }

  .app-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .app-icon img {
    width: 30px;
    transform: translateX(1px);
  }

  .product-preview {
    bottom: 93px;
    width: 88vw;
    height: auto;
    padding: 56px 7vw 27px;
  }

  .product-surface {
    border-radius: 24px;
  }

  .product-preview::after {
    width: 26px;
    height: 11px;
  }

  .surface-icon {
    top: 17px;
    right: 17px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 3px 9px #00000015;
  }

  .surface-icon img {
    width: 25px;
  }

  .product-title {
    font-size: clamp(49px, 12vw, 92px);
  }

  .product-description {
    margin-top: 8px;
    font-size: clamp(24px, 6.1vw, 42px);
    line-height: 1.15;
  }

  .platforms {
    position: static;
    gap: 16px;
    margin-top: 26px;
    font-size: 14px;
  }

  .platforms span {
    margin-right: 2px;
  }

  .platform-macos {
    width: 18px;
    height: 24px;
  }

  .platform-windows {
    width: 18px;
    height: 18px;
  }

  .detail {
    width: 88vw;
  }

  .detail-hero {
    padding: 58px 6vw 26px;
  }

  .detail-section, .detail-footer {
    margin-right: 0;
    margin-left: 0;
  }

  .workflow, .demos {
    grid-template-columns: 1fr;
  }

  .manifesto {
    padding-bottom: 36px;
  }
}

@media (min-width: 761px) and (min-aspect-ratio: 2/1) {
  .home {
    --unit: 0.0925925926svh;
  }
}

@media (max-width: 760px) and (max-height: 420px) {
  .home {
    min-height: 420px;
  }
}

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

  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: 0s;
  }
}
