:root {
  --ink: #111113;
  --paper: #f5f5f7;
  --soft: #ffffff;
  --muted: #6e6e73;
  --line: rgba(17, 17, 19, 0.12);
  --blue: #0071e3;
  --mint: #12a66a;
  --coral: #f05d3a;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

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

button {
  font: inherit;
}

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

.pd-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  color: rgba(17, 17, 19, 0.82);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(22px) saturate(160%);
  transition: background 220ms ease, border-color 220ms ease;
}

.pd-header.is-scrolled,
.pd-header.nav-open {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(17, 17, 19, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  color: rgba(17, 17, 19, 0.68);
  font-size: 14px;
}

.nav a:hover {
  color: #000;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 19, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
}

.menu-button span {
  position: absolute;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-child {
  transform: translateY(4px);
}

.pd-header.nav-open .menu-button span:first-child {
  transform: rotate(45deg);
}

.pd-header.nav-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.origin-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 112px clamp(22px, 6vw, 86px) 56px;
  background: #f5f5f7;
}

.origin-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 42%;
  background: #ffffff;
}

.origin-icon {
  position: absolute;
  top: 58%;
  left: 50%;
  z-index: -1;
  width: min(76vw, 720px);
  max-width: none;
  border-radius: 34px;
  opacity: 0.16;
  box-shadow: 0 46px 100px rgba(17, 17, 19, 0.16);
  transform: translate3d(calc(-50% + var(--lift-x, 0px)), calc(-50% + var(--lift-y, 0px)), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.origin-copy {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin-bottom: 26vh;
  text-align: center;
}

.hero-mark {
  width: clamp(72px, 9vw, 104px);
  height: clamp(72px, 9vw, 104px);
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(17, 17, 19, 0.14);
}

.origin-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 8.8vw, 126px);
  line-height: 0.92;
  letter-spacing: 0;
}

.origin-copy p:not(.eyebrow) {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(17, 17, 19, 0.74);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.store-link {
  width: 196px;
  border-radius: var(--radius);
  transition: transform 180ms ease, opacity 180ms ease;
}

.store-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.text-link {
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
}

.origin-flow {
  position: absolute;
  right: clamp(22px, 6vw, 86px);
  bottom: 38px;
  left: clamp(22px, 6vw, 86px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(17, 17, 19, 0.68);
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 800;
}

.origin-flow span:last-child {
  text-align: right;
}

.origin-flow strong {
  color: #111;
  font-size: clamp(32px, 6vw, 82px);
  line-height: 1;
}

.lab-section,
.loop-section,
.creator-section,
.trust-section {
  padding: clamp(74px, 10vw, 142px) clamp(22px, 6vw, 86px);
}

.section-heading {
  width: min(820px, 100%);
}

.section-heading h2,
.loop-heading h2,
.creator-copy h2,
.trust-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.trust-copy p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.lab-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.8fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  margin-top: 70px;
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(520px, 100%);
  margin-bottom: 42px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tab-buttons button {
  min-height: 48px;
  border: 0;
  color: rgba(17, 17, 19, 0.68);
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.tab-buttons button.is-active {
  color: #fff;
  background: #111;
}

.tab-panel {
  display: none;
  max-width: 650px;
}

.tab-panel.is-active {
  display: block;
  animation: panelIn 300ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab-panel h3 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1;
}

.tab-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.lab-phone {
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 1350 / 2760;
  filter: drop-shadow(0 38px 76px rgba(17, 17, 19, 0.22));
  transform: translate3d(var(--lift-x, 0), var(--lift-y, 0), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease-out;
  transform-style: preserve-3d;
}

.phone-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.phone-display {
  position: absolute;
  top: 5.15%;
  right: 7.45%;
  bottom: 3.25%;
  left: 7.45%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 56px 18px 24px;
  color: #111;
  background: #f8f8fb;
  border-radius: 34px;
}

.mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(17, 17, 19, 0.56);
  font-size: 12px;
}

.mini-header strong {
  color: #111;
  font-size: 17px;
}

.mini-hero {
  padding: 18px;
  color: #fff;
  background: #111;
  border-radius: var(--radius);
}

.mini-hero span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.mini-hero strong {
  display: block;
  margin-top: 28px;
  font-size: 24px;
  line-height: 1.08;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(17, 17, 19, 0.1);
}

.mini-list span {
  min-width: 0;
  font-size: 14px;
}

.mini-list strong {
  white-space: nowrap;
  color: var(--blue);
  font-size: 14px;
}

.mini-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(17, 17, 19, 0.08);
  border-radius: 999px;
}

.mini-nav span {
  height: 22px;
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.12);
}

.mini-nav span.is-active {
  background: #111;
}

.loop-section {
  color: #fff;
  background: #111;
}

.loop-heading {
  width: min(760px, 100%);
}

.loop-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.loop-track article {
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
  background: #111;
}

.loop-track span {
  color: #8ac7ff;
  font-size: 13px;
  font-weight: 900;
}

.loop-track h3 {
  margin: 120px 0 10px;
  font-size: 28px;
}

.loop-track p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.creator-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
  background: #fff;
}

.creator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.creator-list span {
  padding: 14px 18px;
  color: #111;
  background: #f5f5f7;
  border: 1px solid rgba(17, 17, 19, 0.1);
  border-radius: var(--radius);
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 800;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
}

.trust-actions {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-actions a {
  padding: 24px;
  background: #fff;
  color: #111;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(22px, 6vw, 86px) 52px;
  color: rgba(17, 17, 19, 0.62);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: #111;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  color: rgba(17, 17, 19, 0.82);
  font-weight: 800;
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    color: rgba(17, 17, 19, 0.82);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 19, 0.1);
    border-radius: var(--radius);
  }

  .nav a {
    padding: 12px;
  }

  .pd-header.nav-open .nav {
    display: flex;
  }

  .lab-workbench,
  .creator-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

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

  .creator-list {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .pd-header {
    padding: 13px 18px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .origin-hero {
    min-height: 92svh;
    padding: 86px 20px 38px;
  }

  .origin-copy {
    margin-bottom: 16vh;
  }

  .origin-copy h1 {
    font-size: clamp(56px, 18vw, 92px);
  }

  .origin-copy p:not(.eyebrow) {
    font-size: clamp(23px, 7.2vw, 34px);
  }

  .origin-icon {
    top: 61%;
    width: 104vw;
    opacity: 0.14;
  }

  .hero-actions {
    gap: 16px;
  }

  .store-link {
    width: 172px;
  }

  .origin-flow {
    right: 20px;
    left: 20px;
    bottom: 16px;
    gap: 10px;
  }

  .lab-section,
  .loop-section,
  .creator-section,
  .trust-section {
    padding: 70px 20px;
  }

  .lab-workbench {
    gap: 44px;
    margin-top: 42px;
  }

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

  .phone-shell {
    width: min(330px, 88vw);
  }

  .loop-track {
    grid-template-columns: 1fr;
  }

  .loop-track article {
    min-height: auto;
  }

  .loop-track h3 {
    margin-top: 72px;
  }

  .site-footer {
    flex-direction: column;
    padding: 36px 20px 44px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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