@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090908;
  --bg-alt: #11110f;
  --panel: #181815;
  --panel-strong: #22211d;
  --paper: #f3efe4;
  --paper-muted: rgba(243, 239, 228, 0.68);
  --paper-faint: rgba(243, 239, 228, 0.42);
  --rule: rgba(243, 239, 228, 0.14);
  --rule-strong: rgba(243, 239, 228, 0.24);
  --orange: #e87b3c;
  --sage: #95a995;
  --green: #16a34a;
  --teal: #9bbd9b;
  --clay: #c07752;
  --amber: #d8ad52;
  --display: "Helvetica Neue", "SF Pro Display", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --page: clamp(18px, 4vw, 64px);
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 420px),
    var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
article,
section,
.app-copy,
.app-panel,
.lab-card,
.product-stage {
  min-width: 0;
  max-width: 100%;
}

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

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

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - (var(--page) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  background: rgba(9, 9, 8, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.support-actions,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.nav-links,
.site-footer nav {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.site-footer a,
.text-link,
.section-number,
.meta-row,
.signal-list,
.support-list span {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a,
.site-footer a,
.text-link {
  color: var(--paper-muted);
}

.nav-links a {
  padding: 9px 0;
}

.nav-links a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--paper);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  min-height: min(820px, calc(100vh - 140px));
  padding: 42px 0 76px;
}

.hero-copy h1,
.section-intro h2,
.lab-heading h2,
.principles-section h2,
.support-band h2,
.legal-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(76px, 11vw, 174px);
  line-height: 0.84;
}

.hero-text {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--paper-muted);
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.36;
}

.hero-actions,
.support-actions {
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--paper);
  border-radius: 8px;
  background: var(--paper);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 17px;
}

.button-link.secondary {
  background: transparent;
  color: var(--paper);
}

.button-link:hover {
  transform: translateY(-1px);
}

.hero-gallery {
  position: relative;
  min-height: 640px;
}

.hero-image {
  position: absolute;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-image-primary {
  inset: 0 auto auto 0;
  width: min(54vw, 420px);
  height: 610px;
}

.hero-image-secondary {
  right: 0;
  bottom: 0;
  width: min(44vw, 330px);
  height: 500px;
}

.hero-image figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(243, 239, 228, 0.18);
  border-radius: 8px;
  background: rgba(9, 9, 8, 0.7);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 11px 12px;
  backdrop-filter: blur(14px);
}

.hero-image figcaption span:last-child {
  color: var(--paper-muted);
  text-align: right;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  border-top: 1px solid var(--rule);
  padding: 62px 0 36px;
}

.section-intro.compact {
  padding-bottom: 28px;
}

.section-number {
  display: block;
  margin-bottom: 14px;
  color: var(--paper-faint);
}

.section-intro h2,
.lab-heading h2,
.principles-section h2,
.support-band h2 {
  max-width: 870px;
  font-size: clamp(58px, 7vw, 116px);
  line-height: 0.9;
}

.section-intro p,
.app-copy p,
.lab-card p,
.principle-list p,
.legal-hero p,
.support-list p,
.policy-grid p,
.legal-note p {
  color: var(--paper-muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.featured-apps {
  display: grid;
  gap: 22px;
}

.app-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1fr);
  min-height: 720px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.onset-panel {
  background:
    linear-gradient(135deg, rgba(232, 123, 60, 0.12), transparent 58%),
    var(--panel);
}

.impulse-panel {
  background:
    linear-gradient(135deg, rgba(149, 169, 149, 0.14), transparent 60%),
    #12120f;
}

.app-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 52px);
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--paper-faint);
}

.meta-row span {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 10px;
}

.app-copy h3,
.lab-card h3,
.support-list h2,
.policy-grid h2,
.legal-note h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
}

.app-copy h3 {
  margin-top: auto;
  font-size: clamp(62px, 8vw, 112px);
}

.app-line {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
}

.signal-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--paper-faint);
  list-style: none;
}

.signal-list li {
  border-top: 1px solid var(--rule);
  padding-top: 9px;
}

.product-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-left: 1px solid var(--rule);
}

.phone-shot {
  position: absolute;
  width: min(44vw, 410px);
  border: 1px solid rgba(243, 239, 228, 0.16);
  border-radius: 8px;
  background: #0b0b0b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.phone-shot-main {
  left: clamp(22px, 6vw, 86px);
  top: 48px;
}

.phone-shot-offset {
  right: clamp(-110px, -5vw, -40px);
  top: 132px;
  opacity: 0.78;
}

.lab-section {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding: 62px 0;
}

.lab-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lab-card {
  min-height: 520px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(22px, 3.4vw, 44px);
}

.lab-card h3 {
  margin-top: 42px;
  font-size: clamp(50px, 6vw, 88px);
}

.leaves-card {
  background:
    linear-gradient(140deg, rgba(149, 169, 149, 0.13), transparent 60%),
    var(--panel);
}

.loopbreaker-card {
  background:
    linear-gradient(140deg, rgba(22, 163, 74, 0.13), transparent 58%),
    var(--panel);
}

.leaves-mark {
  position: relative;
  width: min(60vw, 320px);
  height: 210px;
  margin-top: 48px;
}

.leaves-mark span {
  position: absolute;
  display: block;
  width: 120px;
  height: 190px;
  border: 1px solid rgba(243, 239, 228, 0.18);
  border-radius: 999px 999px 8px 999px;
  background: rgba(149, 169, 149, 0.16);
  transform-origin: bottom center;
}

.leaves-mark span:nth-child(1) {
  left: 28px;
  top: 10px;
  transform: rotate(-22deg);
}

.leaves-mark span:nth-child(2) {
  left: 100px;
  top: 0;
  background: rgba(216, 173, 82, 0.14);
}

.leaves-mark span:nth-child(3) {
  left: 172px;
  top: 12px;
  transform: rotate(22deg);
  background: rgba(109, 125, 143, 0.16);
}

.loopbreaker-icon {
  width: min(48vw, 220px);
  margin-top: 56px;
  border: 1px solid var(--rule);
  border-radius: 42px;
  box-shadow: 0 24px 80px rgba(22, 163, 74, 0.18);
}

.principles-section {
  border-top: 1px solid var(--rule);
  padding: 18px 0 72px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.principle-list article {
  min-height: 300px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px;
}

.principle-list span {
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.principle-list h3 {
  margin: 46px 0 14px;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  line-height: 0.95;
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  border-top: 1px solid var(--rule);
  padding: 62px 0 80px;
}

.support-actions {
  justify-content: flex-end;
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding: 24px 0 32px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-main {
  max-width: 1180px;
}

.legal-hero {
  max-width: 860px;
  padding: 70px 0 54px;
}

.legal-hero h1 {
  margin-top: 16px;
  font-size: clamp(68px, 9vw, 132px);
  line-height: 0.86;
}

.legal-hero p {
  max-width: 760px;
  margin: 28px 0 30px;
}

.support-list,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 78px;
}

.support-list article,
.policy-grid article,
.legal-note {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(22px, 3vw, 34px);
}

.support-list span {
  color: var(--paper-faint);
}

.support-list h2,
.policy-grid h2,
.legal-note h2 {
  margin-top: 34px;
  font-size: clamp(46px, 5vw, 78px);
}

.legal-note {
  margin-bottom: 78px;
}

.legal-note a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-section,
  .section-intro,
  .app-panel,
  .support-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 34px;
  }

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

  .hero-image-primary {
    width: min(62vw, 420px);
    height: 540px;
  }

  .hero-image-secondary {
    width: min(44vw, 310px);
    height: 430px;
  }

  .app-panel {
    min-height: unset;
  }

  .product-stage {
    min-height: 620px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .phone-shot {
    width: min(54vw, 370px);
  }

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

  .support-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  :root {
    --page: 18px;
  }

  .site-header {
    position: static;
  }

  .brand {
    font-size: 25px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    padding: 2px 0;
  }

  .hero-copy h1 {
    font-size: clamp(72px, 22vw, 114px);
  }

  .hero-copy,
  .hero-text {
    max-width: min(100%, 350px);
  }

  .hero-section {
    padding-bottom: 32px;
  }

  .hero-gallery {
    width: min(100%, 354px);
    min-height: 326px;
    overflow: hidden;
  }

  .hero-image-primary {
    width: 72%;
    height: 318px;
  }

  .hero-image-secondary {
    width: 52%;
    height: 238px;
  }

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

  .section-intro,
  .lab-section,
  .support-band {
    padding-top: 44px;
  }

  .section-intro h2,
  .lab-heading h2,
  .principles-section h2,
  .support-band h2 {
    font-size: clamp(44px, 13vw, 60px);
    line-height: 0.94;
  }

  .section-intro h2 {
    max-width: 10ch;
  }

  .section-intro p,
  .app-copy p,
  .lab-card p {
    max-width: 32ch;
  }

  .app-copy {
    padding: 24px;
  }

  .app-copy h3 {
    font-size: clamp(46px, 13vw, 60px);
  }

  .lab-card h3 {
    font-size: clamp(44px, 12vw, 58px);
  }

  .product-stage {
    min-height: 520px;
  }

  .phone-shot {
    width: 66%;
  }

  .phone-shot-main {
    left: 22px;
    top: 32px;
  }

  .phone-shot-offset {
    right: -58px;
    top: 110px;
  }

  .lab-grid,
  .support-list,
  .policy-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .lab-card {
    min-height: 460px;
  }

  .support-band {
    padding-bottom: 56px;
  }

  .site-footer {
    padding-bottom: 26px;
  }
}

@media (max-width: 430px) {
  .hero-gallery {
    min-height: 318px;
  }

  .hero-image-primary {
    height: 312px;
  }

  .hero-image-secondary {
    height: 232px;
  }

  .product-stage {
    min-height: 470px;
  }
}
