:root {
  --ink: #0b0b0f;
  --paper: #f5f5f7;
  --muted: #6e6e73;
  --line: rgba(17, 24, 39, 0.12);
  --blue: #0071e3;
  --green: #30d158;
  --coral: #ff6b4a;
  --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(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(22px) saturate(160%);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.pd-header.is-scrolled,
.pd-header.nav-open {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(4, 4, 5, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

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

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

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

.nav a {
  transition: color 180ms ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.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: 800;
  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);
}

.gate-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 112px clamp(22px, 6vw, 86px) 68px;
  color: #f5f5f7;
  background-color: #050506;
}

.gate-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #050506;
}

.gate-symbol {
  position: absolute;
  top: 53%;
  left: 50%;
  z-index: -1;
  width: min(72vw, 760px);
  max-width: none;
  border-radius: 34px;
  opacity: 0.38;
  filter: brightness(0.82) drop-shadow(0 48px 90px rgba(0, 0, 0, 0.62));
  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;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 3px 34px rgba(0, 0, 0, 0.64);
}

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

.hero-lead {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(245, 245, 247, 0.84);
  font-size: clamp(23px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.16;
}

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

.store-link {
  width: 196px;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.text-link {
  color: #8ac7ff;
  font-size: 17px;
  font-weight: 700;
}

.text-link:hover {
  color: #fff;
}

.zero-one {
  position: absolute;
  right: clamp(22px, 6vw, 86px);
  bottom: 52px;
  display: grid;
  grid-template-columns: auto 76px auto;
  align-items: center;
  gap: 16px;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(24px, 3.2vw, 52px);
  font-weight: 800;
}

.zero-one i {
  height: 1px;
  background: rgba(245, 245, 247, 0.5);
}

.product-section,
.feature-section,
.boundary-section {
  padding: clamp(74px, 10vw, 142px) clamp(22px, 6vw, 86px);
}

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

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

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

.market-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  margin-top: 68px;
}

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

.phone-shell {
  position: relative;
  width: min(372px, 82vw);
  aspect-ratio: 1350 / 2760;
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 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: #f7f8fb;
  border-radius: 34px;
}

.app-topbar,
.phone-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}

.app-topbar {
  margin-bottom: 18px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.56);
}

.app-topbar strong {
  color: #111;
  font-size: 15px;
}

.phone-slides {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.phone-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

.phone-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.work-card,
.signal-card,
.link-card {
  min-height: 136px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.work-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.work-card span,
.signal-card span,
.link-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-card strong,
.signal-card strong,
.link-card strong {
  display: block;
  margin: 6px 0;
  font-size: 20px;
  line-height: 1.1;
}

.work-card p,
.signal-card p,
.link-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.accent-blue {
  background: #0071e3;
}

.accent-coral {
  background: #f05d3a;
}

.accent-green {
  background: #1d8f58;
}

.signal-card {
  min-height: 210px;
  background: #fff;
}

.signal-card strong {
  font-size: 58px;
}

.signal-card.dark {
  color: #fff;
  background: #111;
}

.link-card {
  min-height: 220px;
  color: #fff;
  background: #111;
}

.link-card.light {
  color: #111;
  background: #fff;
}

.phone-controls {
  gap: 12px;
  margin-top: 18px;
}

.phone-controls button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #111;
  cursor: pointer;
}

.phone-controls button:first-child::before,
.phone-controls button:last-child::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 10px auto;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.phone-controls button:first-child::before {
  transform: rotate(45deg);
}

.phone-controls button:last-child::before {
  transform: rotate(225deg);
}

.phone-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.phone-tabbar span {
  height: 4px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.14);
}

.phone-tabbar span.is-active {
  background: #111;
}

.story-column {
  display: grid;
  gap: 14px;
}

.story-step {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.story-step:last-child {
  border-bottom: 1px solid var(--line);
}

.story-step span {
  color: var(--blue);
  font-weight: 900;
}

.story-step h3 {
  grid-column: 2;
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.story-step p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.signal-section {
  color: #f5f5f7;
  background: #050506;
}

.signal-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
  padding: clamp(86px, 11vw, 156px) clamp(22px, 6vw, 86px);
}

.inverted h2 {
  color: #f5f5f7;
}

.signal-metrics {
  display: grid;
  gap: 18px;
}

.signal-metrics article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-metrics article:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-metrics strong {
  font-size: clamp(58px, 9vw, 120px);
  line-height: 0.9;
}

.signal-metrics span {
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(18px, 2vw, 25px);
}

.feature-section {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  min-height: 300px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}

.feature span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.feature h3 {
  margin: 52px 0 12px;
  font-size: 24px;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.boundary-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.boundary-list span {
  padding: 26px;
  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(255, 255, 255, 0.62);
  background: #050506;
}

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

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

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

@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(255, 255, 255, 0.88);
    background: rgba(5, 5, 6, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
  }

  .nav a {
    padding: 12px;
  }

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

  .market-grid,
  .signal-inner,
  .boundary-section {
    grid-template-columns: 1fr;
  }

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

  .phone-column {
    order: 2;
  }
}

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

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

  .gate-hero {
    min-height: 92svh;
    padding: 96px 20px 54px;
  }

  .gate-symbol {
    top: 56%;
    width: 112vw;
    opacity: 0.3;
  }

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

  .hero-lead {
    font-size: clamp(24px, 8vw, 38px);
  }

  .hero-actions {
    gap: 16px;
  }

  .store-link {
    width: 172px;
  }

  .zero-one {
    right: 20px;
    bottom: 24px;
    grid-template-columns: auto 44px auto;
    gap: 10px;
  }

  .product-section,
  .feature-section,
  .boundary-section {
    padding: 70px 20px;
  }

  .market-grid {
    gap: 44px;
    margin-top: 42px;
  }

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

  .story-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-step h3,
  .story-step p {
    grid-column: 1;
  }

  .signal-inner {
    padding: 76px 20px;
  }

  .signal-metrics article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .feature {
    min-height: auto;
  }

  .feature h3 {
    margin-top: 30px;
  }

  .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;
  }
}
