:root {
  --ink: #0c0c0c;
  --paper: #f6f5f1;
  --line: #181818;
  --muted: #4b4a47;
  --mist: #dfddd6;
  --olive: #8f9360;
  --yellow: #d79a26;
  --peach: #d69a73;
  --green: #7f8356;
  --content-max: calc(100vw - 112px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

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

.page-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 12px 0;
  overflow: hidden;
}

.site-page {
  display: none;
}

.site-page.is-active {
  display: block;
}

.main-nav a.is-current {
  color: #5d5d57;
}

.main-nav a.is-current::after {
  transform: scaleX(1);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  width: min(100%, var(--content-max));
  margin-right: auto;
  margin-left: auto;
  min-height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 44px);
  font-size: 16px;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.brand-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.brand-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.hero-head {
  position: relative;
  width: min(100%, var(--content-max));
  min-height: 126px;
  margin: 64px auto 0;
  display: block;
  padding-top: 8px;
}

.hero-head h1 {
  max-width: calc(100% - 310px);
  margin: 0;
  font-size: 6.8rem;
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hero-head h1::after {
  content: "®";
  display: inline-block;
  margin-left: 0.08em;
  font-size: 0.14em;
  vertical-align: top;
  transform: translateY(-0.22em);
}

.hero-head p {
  position: absolute;
  right: 0;
  bottom: 16px;
  width: 260px;
  margin: 0;
  font-size: 12px;
  font-weight: 950;
  line-height: 0.98;
  text-align: right;
}

.feature-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, var(--content-max));
  margin-right: auto;
  margin-left: auto;
  margin-top: 8px;
}

.panel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #deddd8;
  border: 2px solid rgba(0, 0, 0, 0.06);
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  cursor: pointer;
}

.panel h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 3.8rem;
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
}

.panel-arrow {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.92);
  font-size: 64px;
  font-weight: 300;
  line-height: 0.8;
  transition: transform 200ms ease;
}

.panel-arrow:hover {
  transform: translateX(8px);
}

.stone-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 28%, rgba(255, 255, 255, 0.72), transparent 0.65rem),
    linear-gradient(135deg, #ecebe8, #d8d6d0);
}

.stone {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: drop-shadow(0 28px 32px rgba(35, 35, 30, 0.2));
}

.stone-olive {
  left: 28%;
  top: -10%;
  width: 96%;
  height: 34%;
  background:
    radial-gradient(ellipse at 22% 42%, rgba(255, 255, 255, 0.45), transparent 13%),
    linear-gradient(165deg, #9aa063, #777d4a 68%, #696f41);
  transform: rotate(5deg);
}

.stone-speckle {
  left: 18%;
  bottom: -29%;
  width: 92%;
  height: 82%;
  border-radius: 58% 48% 46% 54%;
  background:
    radial-gradient(circle at 18% 18%, #1d1d1b 0 0.12rem, transparent 0.14rem),
    radial-gradient(circle at 28% 31%, #1d1d1b 0 0.15rem, transparent 0.17rem),
    radial-gradient(circle at 36% 55%, #1d1d1b 0 0.16rem, transparent 0.18rem),
    radial-gradient(circle at 46% 27%, #1d1d1b 0 0.11rem, transparent 0.13rem),
    radial-gradient(circle at 55% 68%, #1d1d1b 0 0.13rem, transparent 0.15rem),
    radial-gradient(circle at 67% 36%, #1d1d1b 0 0.16rem, transparent 0.18rem),
    radial-gradient(circle at 78% 58%, #1d1d1b 0 0.12rem, transparent 0.14rem),
    radial-gradient(circle at 86% 29%, #1d1d1b 0 0.13rem, transparent 0.15rem),
    radial-gradient(ellipse at 36% 24%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(160deg, #e5e0d3, #c9c2ae 72%, #aca38f);
  background-size:
    72px 72px,
    92px 92px,
    84px 84px,
    64px 64px,
    76px 76px,
    68px 68px,
    86px 86px,
    74px 74px,
    auto,
    auto;
  transform: rotate(2deg);
}

.scene-stack {
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.75), transparent 0.55rem),
    linear-gradient(135deg, #ededeb, #d9d7d1);
}

.tool-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.85), transparent 6rem),
    linear-gradient(135deg, #ecebe8, #d8d6d0);
}

.tool-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 24px 28px rgba(45, 45, 38, 0.22));
}

.orb-a {
  left: 10%;
  top: 14%;
  width: 38%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.62), transparent 20%),
    linear-gradient(150deg, #8f9360, #686e43);
}

.orb-b {
  right: 10%;
  top: 20%;
  width: 30%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.58), transparent 20%),
    linear-gradient(150deg, #dfa12d, #bf7a20);
}

.orb-c {
  left: 38%;
  bottom: 8%;
  width: 36%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.6), transparent 20%),
    linear-gradient(150deg, #e2a078, #a9684b);
}

.tool-line {
  position: absolute;
  left: 13%;
  right: 13%;
  height: 2px;
  background: rgba(12, 12, 12, 0.16);
  transform: rotate(-11deg);
}

.line-a {
  top: 34%;
}

.line-b {
  bottom: 34%;
  transform: rotate(9deg);
}

.stack {
  left: 50%;
  width: min(46vw, 360px);
  height: clamp(64px, 8vw, 108px);
  transform: translateX(-50%) rotate(-6deg);
}

.stack-top {
  top: 8%;
  width: min(38vw, 300px);
  background:
    radial-gradient(circle at 24% 32%, #57534a 0 0.08rem, transparent 0.1rem),
    radial-gradient(circle at 38% 62%, #57534a 0 0.09rem, transparent 0.11rem),
    radial-gradient(circle at 66% 35%, #57534a 0 0.08rem, transparent 0.1rem),
    radial-gradient(ellipse at 34% 36%, rgba(255, 255, 255, 0.5), transparent 20%),
    linear-gradient(165deg, #b7ae9b, #8f846f);
  background-size: 22px 22px, 28px 28px, 24px 24px, auto, auto;
}

.stack-yellow {
  top: 25%;
  background:
    radial-gradient(ellipse at 28% 32%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(160deg, #dfa12d, #cd8521 72%, #b2711c);
}

.stack-peach {
  top: 42%;
  width: min(42vw, 330px);
  background:
    radial-gradient(circle at 40% 38%, rgba(255, 255, 255, 0.65) 0 0.18rem, transparent 0.2rem),
    radial-gradient(circle at 54% 57%, rgba(255, 255, 255, 0.5) 0 0.12rem, transparent 0.14rem),
    radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.45), transparent 18%),
    linear-gradient(160deg, #e2a078, #c77f58 74%, #a9684b);
}

.stack-green {
  top: 62%;
  background:
    radial-gradient(ellipse at 24% 35%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(160deg, #8c915d, #687044 74%, #545b38);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, var(--content-max));
  margin-right: auto;
  margin-left: auto;
  padding: 12px 0 72px;
}

.summary-card h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 950;
}

.summary-card p {
  max-width: 650px;
  margin: 0;
  color: #2b2b29;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.ticker-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, var(--content-max));
  min-height: clamp(96px, 9vw, 156px);
  margin-right: auto;
  margin-left: auto;
  margin-top: clamp(72px, 10vh, 180px);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.ticker-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.functions-page {
  padding-bottom: 48px;
}

.functions-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--content-max));
  min-height: 128px;
  margin: 64px auto 0;
  padding-top: 24px;
}

.functions-hero h1 {
  margin: 0;
  font-size: 6.8rem;
  font-weight: 950;
  line-height: 0.86;
}

.functions-hero p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, var(--content-max));
  margin-right: auto;
  margin-left: auto;
  margin-top: 26px;
}

.function-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #deddd8;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  cursor: pointer;
}

.function-minimal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 32px);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.82), transparent 8rem),
    linear-gradient(135deg, #ededeb, #d9d7d1);
}

.function-minimal h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 6rem);
  font-weight: 950;
  line-height: 0.92;
}

.function-minimal p {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.function-minimal span {
  position: absolute;
  right: 28px;
  bottom: 24px;
  font-size: 64px;
  line-height: 0.8;
}

.new-feature,
.update-note {
  display: flex;
  align-items: center;
}

.new-feature {
  padding-right: 24px;
  font-size: 5rem;
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
}

.update-note {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.lift-card {
  opacity: 0;
  transform: translateY(28px);
  animation: liftIn 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

.is-tilting {
  z-index: 5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  filter: saturate(1.03);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-head {
    display: block;
  }

  .hero-head h1 {
    max-width: 100%;
    transform: none;
    font-size: 4.2rem;
    white-space: normal;
  }

  .hero-head p {
    position: static;
    width: auto;
    margin-top: 18px;
    text-align: left;
  }

  .feature-panels,
  .summary-row,
  .ticker-row,
  .function-grid {
    grid-template-columns: 1fr;
  }

  .new-feature {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
  }

  .main-nav {
    gap: 10px 20px;
    margin-left: 0;
    max-width: calc(100% - 76px);
    font-size: 13px;
  }

  .hero-head h1 {
    font-size: 3.2rem;
    line-height: 0.86;
  }

  .panel h2 {
    font-size: 3.2rem;
  }

  .functions-hero {
    display: block;
    min-height: 0;
  }

  .functions-hero h1 {
    font-size: 3.5rem;
  }

  .functions-hero p {
    margin-top: 12px;
    text-align: left;
  }

  .stone-olive {
    left: 12%;
    width: 118%;
  }

  .stone-speckle {
    left: 7%;
    width: 110%;
  }

  .stack {
    width: 74%;
  }

  .stack-top {
    width: 62%;
  }

  .new-feature {
    min-height: 100px;
    font-size: 3rem;
  }
}

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