:root {
  color-scheme: dark;
  --bg: #030303;
  --bg-soft: #070707;
  --ink: #f4f2ec;
  --soft: rgb(244 242 236 / 68%);
  --muted: rgb(244 242 236 / 43%);
  --dim: rgb(244 242 236 / 24%);
  --line: rgb(244 242 236 / 9%);
  --line-strong: rgb(244 242 236 / 15%);
  --panel: #0b0c0b;
  --panel-2: #111210;
  --cyan: #45f0d0;
  --cyan-soft: #9efff0;
  --red: #ff4b57;
  --amber: #ffbd2e;
  --green: #28c840;
  --radius: 12px;
  --max: 1232px;
  --display: Constantia, "Lucida Bright", "Palatino Linotype", Georgia, serif;
  --sans: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #030303 0%, #050505 52%, #030303 100%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(110deg, transparent 0 58%, rgb(255 255 255 / 3%) 72%, transparent 86%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 1.5%) 0 1px, transparent 1px 3px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #030303 0%, transparent 24%, transparent 72%, #030303 100%),
    linear-gradient(180deg, transparent 0%, rgb(255 255 255 / 2.5%) 64%, transparent 100%);
}

.light-field {
  position: fixed;
  inset: auto 0 -20vh;
  z-index: -1;
  height: 52vh;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 8%, rgb(244 242 236 / 7%) 42%, rgb(69 240 208 / 5%) 58%, transparent 90%);
  filter: blur(42px);
  transform: skewY(-8deg);
}

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

a {
  color: inherit;
}

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

h1,
h2 {
  margin-bottom: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(5rem, 7vw, 6.05rem);
  font-weight: 440;
  line-height: 0.94;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.5vw, 5.15rem);
  font-weight: 520;
  line-height: 0.98;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.16rem, 1.5vw, 1.45rem);
  font-weight: 640;
  line-height: 1.14;
}

h1 span,
h2 span {
  display: block;
}

p,
li,
a,
span,
code,
strong {
  overflow-wrap: break-word;
}

::selection {
  background: rgb(69 240 208 / 28%);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-220%);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(3 3 3 / 70%);
  backdrop-filter: blur(18px);
}

.nav,
.hero,
.proof-strip,
.workflow-section,
.surface-section,
.privacy-section,
.api-section,
.manifesto,
.banner-section,
.download-section,
.site-footer,
.page-main {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.nav {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

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

.brand {
  width: max-content;
  min-height: 44px;
  gap: 0.68rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 680;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
  opacity: 0.92;
}

.nav-links {
  justify-content: center;
  gap: 1.55rem;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 580;
}

.nav-links a,
.footer-links a,
.button,
.nav-cta,
.announce,
.text-link {
  text-decoration: none;
}

.nav-links a,
.footer-links a {
  min-height: 44px;
  padding: 0 0.55rem;
  display: inline-flex;
  align-items: center;
}

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

.nav-cta {
  justify-self: end;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(244 242 236 / 10%), rgb(244 242 236 / 5%));
  color: var(--ink);
  padding: 0 1.18rem;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.nav-cta:hover,
.button:hover {
  border-color: rgb(244 242 236 / 28%);
  transform: translateY(-1px);
}

.hero {
  min-height: min(940px, calc(100vh - 68px));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(330px, 0.38fr);
  gap: clamp(2.25rem, 5vw, 4.8rem);
  align-items: start;
  padding: clamp(9.8rem, 16vh, 13rem) 0 8.5rem;
}

.hero-copy-block {
  max-width: 660px;
}

.announce {
  min-height: 44px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgb(69 240 208 / 24%);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  margin-bottom: 2.45rem;
  background: rgb(244 242 236 / 2.8%);
  color: var(--soft);
  padding: 0 0.95rem;
  font-size: 0.88rem;
  font-weight: 670;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%);
}

.announce-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgb(69 240 208 / 70%);
  flex: 0 0 auto;
}

.hero-copy {
  max-width: 610px;
  margin: 1.65rem 0 0;
  color: var(--soft);
  font-size: clamp(1.1rem, 1.55vw, 1.24rem);
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.35rem;
}

.button {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.35rem;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 720;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button.primary {
  background:
    linear-gradient(180deg, rgb(244 242 236 / 13%), rgb(244 242 236 / 6%)),
    #090909;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 9%),
    0 22px 65px rgb(0 0 0 / 42%);
}

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

.button.secondary:hover {
  background: rgb(244 242 236 / 4%);
  color: var(--ink);
}

.hero-proof-line {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-proof-line span {
  color: var(--dim);
  padding: 0 0.45rem;
}

.hero-artifact {
  align-self: start;
  margin-top: 3.8rem;
  border: 1px solid rgb(244 242 236 / 10%);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(244 242 236 / 5%), rgb(244 242 236 / 1.5%)),
    rgb(9 10 9 / 86%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 8%),
    0 42px 120px rgb(0 0 0 / 56%);
  padding: 1.25rem;
  opacity: 0.82;
}

.artifact-topline,
.artifact-insert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.artifact-topline strong,
.artifact-insert strong {
  color: var(--soft);
  font-weight: 620;
}

.artifact-topline em {
  color: var(--cyan-soft);
  font-style: normal;
}

.artifact-wave {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 1.45rem 0 1.25rem;
}

.artifact-wave span {
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: rgb(69 240 208 / 72%);
  box-shadow: 0 0 18px rgb(69 240 208 / 34%);
  animation: pulse-wave 3.4s ease-in-out infinite;
}

.artifact-wave span:nth-child(2n) {
  height: 34px;
  animation-delay: -0.55s;
}

.artifact-wave span:nth-child(3n) {
  height: 54px;
  animation-delay: -1.2s;
}

.artifact-wave span:nth-child(5n) {
  height: 70px;
  animation-delay: -1.8s;
}

.artifact-label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.artifact-text {
  margin: 0 0 1.35rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.artifact-insert {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.artifact-insert span {
  text-transform: uppercase;
}

.proof-strip {
  min-height: 220px;
  border-top: 1px solid rgb(244 242 236 / 5%);
  border-bottom: 1px solid rgb(244 242 236 / 5%);
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: 2rem;
  align-items: center;
  padding: 3.7rem 0;
}

.proof-strip p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
}

.proof-marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: flex-end;
  gap: 0;
  border-top: 1px solid rgb(244 242 236 / 7%);
  border-left: 1px solid rgb(244 242 236 / 7%);
  color: rgb(244 242 236 / 36%);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  font-weight: 700;
}

.proof-marks span {
  min-height: 54px;
  border-right: 1px solid rgb(244 242 236 / 7%);
  border-bottom: 1px solid rgb(244 242 236 / 7%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  text-align: center;
}

.workflow-section,
.surface-section,
.privacy-section,
.api-section,
.manifesto,
.banner-section,
.download-section {
  border-top: 1px solid rgb(244 242 236 / 7%);
}

.workflow-section {
  padding: 6.8rem 0;
}

.section-heading {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-list {
  margin-top: 3rem;
}

.workflow-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
  border-top: 1px solid rgb(244 242 236 / 7%);
  padding: 2.15rem 0;
}

.workflow-list article:last-child {
  border-bottom: 1px solid rgb(244 242 236 / 7%);
}

.workflow-list span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.83rem;
}

.workflow-list p,
.privacy-copy p,
.download-section p,
.content-page p,
.content-page li {
  color: var(--soft);
}

.workflow-list h3,
.workflow-list p {
  margin-bottom: 0;
}

.surface-section {
  padding: 6rem 0 6.8rem;
  text-align: left;
}

.surface-section h2 {
  max-width: 920px;
}

.surface-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.8rem;
  color: rgb(244 242 236 / 34%);
}

.surface-row span {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgb(244 242 236 / 7%);
  border-bottom: 1px solid rgb(244 242 236 / 7%);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 760;
  text-align: center;
}

.privacy-section,
.api-section,
.manifesto,
.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: 5.8rem 0;
}

.privacy-copy p {
  max-width: 540px;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
}

.privacy-ledger {
  border-top: 1px solid rgb(244 242 236 / 8%);
}

.privacy-ledger div {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 0.66fr);
  gap: 1.25rem;
  border-bottom: 1px solid rgb(244 242 236 / 8%);
  padding: 1.35rem 0;
}

.privacy-ledger span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.privacy-ledger strong {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 620;
}

.api-section {
  align-items: start;
}

pre {
  margin: 0;
}

code,
pre {
  font-family: var(--mono);
}

.code-panel {
  width: 100%;
  border: 1px solid rgb(244 242 236 / 10%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(244 242 236 / 4%), rgb(244 242 236 / 1.5%)),
    #070807;
  color: #e9fff9;
  overflow-x: auto;
  padding: 1.25rem;
  font-size: clamp(0.82rem, 1.3vw, 0.96rem);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%);
}

.code-panel code {
  display: block;
}

.manifesto {
  align-items: start;
}

.manifesto h2,
.download-section h2 {
  font-size: clamp(2.3rem, 4.4vw, 4.8rem);
}

.manifesto-line {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.05rem, 3.5vw, 4rem);
  line-height: 1.03;
}

.banner-section {
  padding: 5.8rem 0;
}

.banner-frame {
  margin: 0;
  border: 1px solid rgb(244 242 236 / 10%);
  border-radius: var(--radius);
  overflow: hidden;
  background: #020202;
  box-shadow: 0 34px 120px rgb(0 0 0 / 52%);
}

.banner-frame img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.download-section {
  margin-bottom: 3rem;
}

.download-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid rgb(244 242 236 / 7%);
  padding: 2.2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-main {
  padding: 3rem 0 5rem;
}

.content-page {
  border: 1px solid rgb(244 242 236 / 10%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(244 242 236 / 5%), rgb(244 242 236 / 2%)),
    var(--panel);
  padding: clamp(1.2rem, 4vw, 2.3rem);
  box-shadow: 0 30px 90px rgb(0 0 0 / 40%);
}

.content-page h1 {
  max-width: 920px;
  margin: 0 0 1rem;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  text-align: left;
}

.lede {
  max-width: 760px;
  color: var(--soft);
  font-size: 1.16rem;
}

.content-page section {
  border-top: 1px solid rgb(244 242 236 / 8%);
  margin-top: 2rem;
  padding-top: 2rem;
}

.content-page code {
  border: 1px solid rgb(69 240 208 / 20%);
  border-radius: 5px;
  background: rgb(69 240 208 / 8%);
  color: var(--cyan-soft);
  padding: 0.1rem 0.32rem;
}

.content-page pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.text-link {
  color: var(--cyan);
  font-weight: 760;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@keyframes pulse-wave {
  0%,
  100% {
    opacity: 0.44;
    transform: scaleY(0.72);
  }

  45% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 1050px) {
  h1 {
    font-size: clamp(4.35rem, 8.4vw, 5.55rem);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-artifact {
    max-width: 560px;
    margin-top: 2.5rem;
  }

  .proof-strip,
  .privacy-section,
  .api-section,
  .manifesto,
  .download-section {
    grid-template-columns: 1fr;
  }

  .proof-marks {
    justify-content: flex-start;
  }

  .surface-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .nav,
  .hero,
  .proof-strip,
  .workflow-section,
  .surface-section,
  .privacy-section,
  .api-section,
  .manifesto,
  .banner-section,
  .download-section,
  .site-footer,
  .page-main {
    width: calc(100% - 32px);
  }

  .nav {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 0.85rem 1rem;
    flex-wrap: wrap;
    color: rgb(244 242 236 / 34%);
    font-size: 0.82rem;
  }

  .nav-links a {
    min-height: 44px;
  }

  .nav-cta {
    padding: 0 0.95rem;
  }

  .hero {
    padding: 4.4rem 0 5.5rem;
    text-align: center;
  }

  .hero-copy-block,
  .hero-copy,
  .hero-artifact {
    max-width: none;
  }

  .announce,
  .hero-actions,
  .hero-proof-line {
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.72rem, 11vw, 3.25rem);
    line-height: 0.95;
  }

  h2,
  .manifesto h2,
  .download-section h2 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-copy {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.04rem;
  }

  .hero-actions,
  .download-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof-line span {
    padding: 0 0.25rem;
  }

  .hero-proof-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.2rem;
  }

  .hero-artifact {
    margin-top: 2.6rem;
    text-align: left;
  }

  .proof-strip {
    min-height: auto;
    padding: 3.2rem 0 4.4rem;
  }

  .proof-marks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 0.86rem;
  }

  .workflow-section,
  .surface-section,
  .privacy-section,
  .api-section,
  .manifesto,
  .banner-section,
  .download-section {
    padding: 4.5rem 0;
  }

  .workflow-list article {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.55rem 0;
  }

  .surface-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.6rem;
  }

  .surface-row span {
    min-height: 68px;
    font-size: 0.95rem;
  }

  .privacy-ledger div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .code-panel {
    font-size: 0.78rem;
  }

  .manifesto-line {
    font-size: clamp(2rem, 9.4vw, 3.05rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 420px) {
  .brand {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.65rem 0.9rem;
  }

  .nav-cta {
    padding: 0 0.82rem;
  }

  .hero-copy-block {
    max-width: 21.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: clamp(2.45rem, 10.4vw, 2.78rem);
  }

  .hero-copy {
    max-width: 20.75rem;
    font-size: 0.99rem;
  }

  .hero-proof-line {
    max-width: 20rem;
  }

  .announce {
    justify-content: center;
    white-space: normal;
  }

  .artifact-wave {
    gap: 0.32rem;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
