:root {
  color-scheme: dark;
  --ink: #111418;
  --panel: #171c22;
  --text: #f6f7f8;
  --body: #e7eaed;
  --muted: #a3acb5;
  --muted-bright: #c2c8ce;
  --accent: #42cdbd;
  --accent-bright: #a9ece5;
  --blue: #7db9f8;
  --line: rgba(184, 231, 225, 0.14);
  --line-strong: rgba(184, 231, 225, 0.3);
  --font: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(1280px, calc(100vw - 48px));
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--body);
  font-family: var(--font);
  font-synthesis: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The field: a quiet vertical gradient with warm and green light in the four corners */

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 138, 75, 0.2), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(40, 179, 154, 0.22), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(40, 179, 154, 0.15), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(240, 138, 75, 0.15), transparent 42%),
    linear-gradient(180deg, #0a0e13 0%, var(--ink) 45%, #10161c 100%);
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Type */

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
}

h2 {
  max-width: 12ch;
  margin: 0 0 26px;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
}

h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.accent {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent) 48%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

strong {
  color: var(--accent);
  font-weight: 600;
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 42%, var(--blue));
  color: #07211d;
  box-shadow: 0 14px 40px rgba(66, 205, 189, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 18px 48px rgba(66, 205, 189, 0.32);
}

.button.secondary {
  background:
    linear-gradient(rgba(24, 29, 35, 0.78), rgba(17, 20, 24, 0.72)) padding-box,
    linear-gradient(135deg, rgba(125, 185, 248, 0.88), rgba(66, 205, 189, 0.8)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 32px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background:
    linear-gradient(rgba(66, 205, 189, 0.15), rgba(17, 20, 24, 0.72)) padding-box,
    linear-gradient(135deg, var(--blue), var(--accent)) border-box;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(48px, 7vh, 80px) 0 clamp(40px, 5vw, 64px);
  overflow: clip;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.hero-copy,
.hero-product,
.artifact-copy,
.inside-copy {
  min-width: 0;
}

.hero-lede {
  max-width: 34rem;
  margin: 24px 0 0;
  color: var(--muted-bright);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.4;
}

.trapdoor {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.trapdoor a,
.text-link,
.build-proof-note a {
  color: var(--accent-bright);
  text-underline-offset: 0.2em;
}

.hero-tagline {
  margin: 26px 0 0;
  color: var(--text);
  font-size: clamp(1.18rem, 1.55vw, 1.48rem);
  font-weight: 400;
}

.hero-tagline strong {
  color: var(--accent);
}

.build-proof {
  display: block;
  max-width: 40rem;
  margin-top: 26px;
  color: inherit;
  text-decoration: none;
}

.build-proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.build-proof-metrics > span {
  min-width: 0;
}

.build-proof-metrics strong,
.build-proof-metrics small {
  display: block;
}

.build-proof-metrics strong {
  color: var(--text);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.build-proof-metrics small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.build-proof-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.build-proof:hover .build-proof-note,
.build-proof:focus-visible .build-proof-note {
  color: var(--muted-bright);
}

/* The phone and the wish demo */

.hero-product {
  display: grid;
  place-items: center;
}

.phone-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(187, 202, 215, 0.28);
  border-radius: 42px;
  background: #0f1318;
  box-shadow: var(--shadow), inset 0 0 0 5px #171c22;
}

.phone-top {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 4;
  width: 74px;
  height: 21px;
  border-radius: 0 0 13px 13px;
  background: #0a0e13;
  transform: translateX(-50%);
}

.phone-hero {
  z-index: 2;
  width: min(360px, 78vw);
  min-height: 620px;
  padding: 16px;
}

.wish-demo {
  position: relative;
  min-height: 586px;
  overflow: hidden;
  border-radius: 27px;
  background: linear-gradient(160deg, #171c22, #0f1318 72%);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 29px 22px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.demo-head img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.demo-stage {
  position: absolute;
  inset: 85px 18px 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

.demo-stage.is-active {
  opacity: 1;
  transform: translateY(0);
}

.demo-label {
  margin: 0 0 16px;
  color: var(--accent-bright);
  font-size: 0.92rem;
  font-weight: 600;
}

.demo-stage blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.demo-cursor {
  width: 2px;
  height: 27px;
  margin-top: 16px;
  background: var(--accent);
  animation: blink 800ms steps(1) infinite;
}

.demo-stage > p:not(.demo-label) {
  margin: 0;
  color: var(--muted);
}

.work-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.work-lines i {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}

.work-lines i::after {
  content: "";
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  animation: build-scan 1.2s ease-in-out infinite alternate;
}

.work-lines i:nth-child(2) { width: 82%; }
.work-lines i:nth-child(3) { width: 92%; }
.work-lines i:nth-child(4) { width: 64%; }

.build-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 1.02rem;
}

.build-row b {
  color: var(--accent-bright);
  font-weight: 600;
}

.artifact-app {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: 28px;
  border-radius: 22px;
  background: #ece8db;
  color: #142024;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.artifact-app > span {
  color: #52666a;
  font-size: 0.8rem;
  font-weight: 600;
}

.artifact-app h3 {
  max-width: 230px;
  margin: 18px 0;
  overflow-wrap: anywhere;
  color: #142024;
  font: 700 2rem/1 Georgia, serif;
  letter-spacing: 0;
}

.artifact-app button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #061311;
  font-weight: 700;
}

.artifact-app p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 32, 36, 0.14);
  font-size: 0.86rem;
}

.artifact-app p strong {
  color: #142024;
  font-weight: 700;
}

.artifact-app p span {
  color: #52666a;
}

.fitness-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(20, 32, 36, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.48);
}

.fitness-summary strong {
  color: #173e38;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.fitness-summary small {
  color: #52666a;
  font-size: 0.7rem;
  line-height: 1.3;
}

.fitness-summary i {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(66, 205, 189, 0.2);
  color: #17675d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.demo-progress {
  position: absolute;
  right: 20px;
  bottom: 27px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.demo-progress i {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 300ms ease;
}

.demo-progress i.is-active {
  background: var(--accent);
}

.demo-replay {
  position: absolute;
  top: 91px;
  right: 18px;
  z-index: 5;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.demo-replay:hover,
.demo-replay:focus-visible {
  color: var(--text);
}

/* Sections */

.section {
  position: relative;
  padding: clamp(48px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-heading p,
.artifact-copy > p,
.inside-lede,
.pocket-copy > p {
  max-width: 38rem;
  margin: 0;
  color: var(--body);
  font-size: clamp(1.08rem, 1.3vw, 1.3rem);
  line-height: 1.55;
}

.beat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.beat {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.beat::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.beat p {
  margin: 0;
  color: var(--muted-bright);
  font-size: 1.05rem;
}

.artifact-layout,
.inside-layout {
  display: grid;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.artifact-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.inside-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.artifact-contrast {
  display: grid;
  gap: 10px;
  max-width: 38rem;
  margin-top: 28px;
}

.artifact-contrast > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.artifact-contrast span {
  font-size: 0.9rem;
  font-weight: 600;
}

.artifact-contrast p {
  margin: 0;
}

.artifact-contrast .active {
  border-color: rgba(66, 205, 189, 0.4);
  background: rgba(66, 205, 189, 0.08);
  color: var(--text);
}

.artifact-contrast .active span {
  color: var(--accent-bright);
}

.real-screen {
  margin: 0;
}

.phone-shot {
  width: min(350px, 80vw);
  margin: 0 auto;
  padding: 8px;
}

.phone-shot img,
.phone-shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  object-fit: contain;
}

.phone-shot img {
  aspect-ratio: 9 / 20;
}

.phone-shot video {
  aspect-ratio: 173 / 349;
  background: #0a0e13;
}

.phone-shot-claw {
  width: min(380px, 80vw);
}

.video-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 8px 12px;
  border: 1px solid rgba(169, 236, 229, 0.4);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.84);
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-toggle:hover,
.video-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

.inside-list {
  display: grid;
  margin-top: 28px;
}

.inside-list article {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.inside-list p {
  margin: 0;
  color: var(--muted-bright);
}

.inside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
  font-weight: 600;
}

/* Closing card */

.pocket-section {
  border-top: 0;
  padding-top: 40px;
}

.pocket-card {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#141920, #10141a) padding-box,
    linear-gradient(135deg, rgba(125, 185, 248, 0.55), rgba(66, 205, 189, 0.55)) border-box;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.pocket-card::before {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(66, 205, 189, 0.16), transparent 62%);
  filter: blur(20px);
  content: "";
  pointer-events: none;
}

.pocket-copy {
  position: relative;
  min-width: 0;
}

.pocket-copy h2 {
  margin-bottom: 20px;
}

.pocket-mark {
  position: relative;
  width: clamp(150px, 18vw, 240px);
  border-radius: 28%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: float 7s ease-in-out infinite;
}

/* Business row */

.business-strip {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.business-strip-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.business-strip p {
  margin: 0;
  color: var(--body);
  font-size: 1.08rem;
}

.business-strip a {
  color: var(--accent-bright);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* Footer */

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-layout p a {
  color: var(--muted-bright);
  text-underline-offset: 0.18em;
}

.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
}

.footer-layout nav a {
  color: var(--muted-bright);
  text-decoration: none;
}

.footer-layout nav a:hover,
.footer-layout nav a:focus-visible {
  color: var(--text);
}

/* Reveal on scroll (only when script is running) */

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

html[data-js] [data-reveal][data-inview] {
  opacity: 1;
  transform: none;
}

/* Keyframes */

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes build-scan {
  from { width: 22%; }
  to { width: 96%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* Responsive */

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    padding: 72px 0 64px;
  }

  .hero-layout,
  .artifact-layout,
  .inside-layout,
  .beat-grid,
  .pocket-card {
    grid-template-columns: 1fr;
  }

  .hero-product {
    min-height: 650px;
  }

  .claw-screen {
    order: 2;
  }

  .pocket-mark {
    order: -1;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.6rem);
  }

  h2 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  .button {
    width: 100%;
  }

  .build-proof-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-product {
    min-height: 560px;
  }

  .phone-hero {
    width: min(320px, 88vw);
    min-height: 550px;
  }

  .wish-demo {
    min-height: 518px;
  }

  .demo-stage {
    inset: 76px 13px 58px;
    padding: 20px;
  }

  .demo-stage blockquote {
    font-size: 1.55rem;
  }

  .artifact-app {
    min-height: 0;
    padding: 18px;
  }

  .artifact-app h3 {
    max-width: none;
    margin: 11px 0;
    font-size: 1.58rem;
  }

  .fitness-summary {
    gap: 7px;
    margin-bottom: 11px;
    padding: 8px;
  }

  .fitness-summary strong {
    font-size: 1.75rem;
  }

  .artifact-contrast > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .phone-shot,
  .phone-shot-claw {
    width: min(320px, 90vw);
  }

  .pocket-card {
    border-radius: 22px;
  }

  .pocket-mark {
    width: 132px;
  }
}

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

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

  html[data-js] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .demo-cursor {
    display: none;
  }
}
