:root {
  color-scheme: dark;
  --night: #05070d;
  --panel: #0d1220;
  --ink: #f4f7ff;
  --muted: #a7b1cd;
  --teal: #35e0c8;
  --teal-dark: #073d35;
  --paper-muted: #47526c;
  --paper-copy: #4b5670;
  --paper-rule: #c9ced9;
  --teal-copy: #123b35;
  --line: rgba(244, 247, 255, 0.14);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 12px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--night);
  font-weight: 700;
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand,
.portfolio-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand {
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.portfolio-link {
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-link:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 2;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(53, 224, 200, 0.12);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 0.84;
}

h1 span {
  display: block;
}

.teal {
  color: var(--teal);
}

.hero-lede {
  max-width: 31rem;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.62;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: min(100%, 292px);
  min-height: 52px;
  margin-top: 36px;
  padding: 16px 18px 16px 22px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--night);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    filter 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-action:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 32px rgba(53, 224, 200, 0.18);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 28px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.secondary-action:hover {
  color: var(--ink);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.portfolio-link:focus-visible,
.brand:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.hero-stage {
  margin: 0;
  animation: stage-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-field {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--panel);
}

.logo-field::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(53, 224, 200, 0.22);
  content: "";
  pointer-events: none;
}

.logo-field img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stage figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stage figcaption strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.hero-word {
  position: absolute;
  right: -0.08em;
  bottom: -0.22em;
  z-index: 0;
  margin: 0;
  color: rgba(244, 247, 255, 0.035);
  font-size: clamp(9rem, 23vw, 21rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
}

.mechanism {
  padding: 112px max(20px, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--night);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.5fr);
  column-gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: 64px;
}

.section-intro .section-label {
  grid-column: 1 / -1;
}

.section-label,
.step-label {
  margin: 0 0 18px;
  color: #167a6c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-intro h2,
.privacy h2,
.proof h2,
.fit h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.section-intro > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper-rule);
}

.system-tile {
  display: grid;
  grid-template-rows: minmax(210px, 1fr) auto;
  min-height: 430px;
  padding: 28px;
  background: var(--ink);
}

.system-tile h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.05;
}

.system-tile p {
  margin: 12px 0 0;
  color: var(--paper-copy);
  line-height: 1.5;
}

.phone-illustration {
  position: relative;
  width: 122px;
  height: 218px;
  margin: 0 auto;
  border: 7px solid var(--night);
  border-radius: 28px;
}

.camera-dot {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 34px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--night);
}

.person-head,
.person-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
}

.person-head {
  top: 58px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
}

.person-body {
  top: 91px;
  width: 10px;
  height: 75px;
  border-radius: 999px;
  box-shadow:
    -24px 23px 0 -2px var(--teal),
    24px 23px 0 -2px var(--teal);
}

.signal-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.signal-illustration span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
}

.signal-illustration span:nth-child(1) {
  opacity: 0.25;
}

.signal-illustration span:nth-child(2) {
  opacity: 0.5;
}

.signal-illustration span:nth-child(3) {
  opacity: 0.75;
}

.screen-illustration {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 16 / 10;
  margin: 16px auto 0;
  border: 8px solid var(--night);
  background: var(--panel);
}

.screen-illustration::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 90px;
  height: 26px;
  transform: translateX(-50%);
  border-bottom: 8px solid var(--night);
  content: "";
}

.screen-figure {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--teal);
  box-shadow:
    0 40px 0 -9px var(--teal),
    -31px 33px 0 -10px var(--teal),
    31px 33px 0 -10px var(--teal),
    -18px 73px 0 -10px var(--teal),
    18px 73px 0 -10px var(--teal);
}

.privacy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: clamp(48px, 10vw, 150px);
  align-items: end;
  min-height: 720px;
  padding: 120px max(20px, calc((100% - var(--max)) / 2));
  overflow: hidden;
  background: var(--teal);
  color: var(--night);
}

.privacy-word {
  position: absolute;
  top: -0.18em;
  right: -0.05em;
  margin: 0;
  color: rgba(5, 7, 13, 0.07);
  font-size: clamp(11rem, 30vw, 28rem);
  font-weight: 840;
  letter-spacing: -0.04em;
  line-height: 1;
}

.privacy-copy,
.privacy-proof {
  position: relative;
  z-index: 1;
}

.privacy .section-label {
  color: var(--teal-dark);
}

.privacy-copy > p:last-child {
  max-width: 38rem;
  margin: 30px 0 0;
  color: var(--teal-copy);
  font-size: 1.1rem;
  line-height: 1.7;
}

.privacy-proof {
  border-top: 1px solid rgba(5, 7, 13, 0.34);
}

.privacy-proof p {
  display: flex;
  gap: 13px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(5, 7, 13, 0.34);
  font-weight: 700;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 10vw, 150px);
  padding: 128px max(20px, calc((100% - var(--max)) / 2));
}

.proof .section-label {
  color: var(--teal);
}

.proof-ledger {
  border-top: 1px solid var(--line);
}

.proof-ledger > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.proof-ledger span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-ledger p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.fit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: end;
  padding: 112px max(20px, calc((100% - var(--max)) / 2));
  background: var(--panel);
}

.fit h2 {
  max-width: 14ch;
}

.fit p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: min(calc(100% - 40px), var(--max));
  min-height: 330px;
  margin: 0 auto;
  padding: 80px 0 48px;
}

footer > div {
  display: flex;
  align-items: center;
  gap: 22px;
}

footer img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

footer > div p {
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

footer a {
  color: var(--ink);
  text-underline-offset: 4px;
}

footer > p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@keyframes stage-in {
  from {
    transform: translateX(26px);
    clip-path: inset(0 0 0 18%);
    opacity: 0.45;
  }
  to {
    transform: translateX(0);
    clip-path: inset(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 0.78fr;
    gap: 28px;
  }

  .section-intro,
  .proof,
  .fit {
    grid-template-columns: 1fr;
  }

  .section-intro > p:last-child {
    margin-top: 24px;
  }

  .system-strip {
    grid-template-columns: 1fr;
  }

  .system-tile {
    grid-template-columns: minmax(160px, 0.7fr) 1fr;
    grid-template-rows: auto;
    align-items: center;
    min-height: 280px;
  }

  .privacy {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .proof-ledger {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max));
    min-height: 76px;
  }

  .portfolio-link {
    max-width: none;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(calc(100% - 28px), var(--max));
    min-height: auto;
    padding: 48px 0 72px;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 5.25rem);
  }

  .hero-stage {
    margin-top: 20px;
  }

  .hero-stage figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .hero-word {
    display: none;
  }

  .mechanism,
  .privacy,
  .proof,
  .fit {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-intro {
    margin-bottom: 44px;
  }

  .section-intro h2,
  .privacy h2,
  .proof h2,
  .fit h2 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .system-tile {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  .privacy {
    min-height: 700px;
  }

  .privacy-word {
    top: 0.08em;
    font-size: 12rem;
  }

  .proof-ledger > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(calc(100% - 28px), var(--max));
    min-height: 390px;
  }

  footer > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero-stage {
    animation: none;
  }

  .primary-action {
    transition: none;
  }
}
