:root {
  --graphite: #111418;
  --graphite-2: #171b21;
  --graphite-3: #22272f;
  --near-white: #f7f4eb;
  --near-white-2: #ece7dc;
  --muted-dark: #a8b0ba;
  --muted-light: #59616c;
  --line-dark: rgba(247, 244, 235, 0.14);
  --line-light: rgba(17, 20, 24, 0.13);
  --signal-red: #e5484d;
  --proof-green: #38b878;
  --risk-red: #c9353b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--near-white);
  background: var(--graphite);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(247, 244, 235, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(247, 244, 235, 0.045) 1px, transparent 1px),
    var(--graphite);
  background-size: 48px 48px;
  color: var(--near-white);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

code {
  font-family: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
}

.skip-link {
  background: var(--near-white);
  color: var(--graphite);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: absolute;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 20;
}

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

.site-header {
  background: rgba(17, 20, 24, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-dark);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  height: 76px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 760;
  gap: 0.72rem;
}

.brand-mark {
  display: block;
  height: 34px;
  width: 34px;
}

.nav-links {
  align-items: center;
  color: var(--muted-dark);
  display: flex;
  font-size: 0.93rem;
  gap: 1.35rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--near-white);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 42px;
}

.nav-toggle span {
  background: var(--near-white);
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 18px;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  min-height: 94vh;
  overflow: hidden;
  padding: 132px 24px 34px;
  position: relative;
}

.hero-grid {
  background:
    linear-gradient(90deg, rgba(247, 244, 235, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(247, 244, 235, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 82%);
  position: absolute;
  z-index: -1;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 63vh;
  min-width: 0;
  position: relative;
  width: 100%;
}

.hero-copy-block {
  max-width: 780px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  color: var(--signal-red);
  font-family: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--near-white);
  font-size: clamp(4.7rem, 12.2vw, 10.7rem);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 0.88;
  margin-top: 1rem;
}

.hero-copy {
  color: rgba(247, 244, 235, 0.78);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.52;
  margin-top: 1.55rem;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--signal-red);
  color: var(--near-white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #d63f44;
}

.button.secondary {
  background: rgba(247, 244, 235, 0.06);
  border-color: var(--line-dark);
  color: var(--near-white);
}

.hero-visual {
  min-width: 0;
  position: relative;
}

.proof-window {
  background: rgba(23, 27, 33, 0.92);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  position: relative;
  width: 100%;
}

.proof-window::before {
  border: 1px solid rgba(229, 72, 77, 0.42);
  content: "";
  height: 54%;
  left: -16px;
  position: absolute;
  top: -16px;
  width: 54%;
  z-index: -1;
}

.window-topline {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  display: flex;
  font-family: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  gap: 0.65rem;
  letter-spacing: 0;
  padding-bottom: 0.9rem;
}

.window-topline img {
  height: 30px;
  width: 30px;
}

.terminal-line {
  border-bottom: 1px solid rgba(247, 244, 235, 0.1);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 74px minmax(0, 1fr);
  padding: 1rem 0;
}

.terminal-line span {
  color: var(--signal-red);
  font-family: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.terminal-line code {
  color: var(--near-white);
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.terminal-line.confirmed span {
  color: var(--proof-green);
}

.proof-path {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.proof-path div {
  background: rgba(247, 244, 235, 0.055);
  border: 1px solid rgba(247, 244, 235, 0.1);
  min-height: 112px;
  padding: 0.85rem;
}

.proof-path span {
  color: var(--signal-red);
  display: block;
  font-family: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  margin-bottom: 1rem;
}

.proof-path strong {
  color: var(--near-white);
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
}

.hero-proof {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 auto;
  max-width: 1180px;
  padding-top: 28px;
}

.hero-proof span {
  background: rgba(247, 244, 235, 0.06);
  border: 1px solid var(--line-dark);
  color: rgba(247, 244, 235, 0.75);
  font-size: 0.9rem;
  padding: 0.55rem 0.78rem;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 96px 24px;
}

.section-grid,
.trust-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  margin-top: 1rem;
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
}

.section-copy {
  color: var(--muted-dark);
  display: grid;
  font-size: 1.05rem;
  gap: 1.1rem;
  line-height: 1.7;
}

.product,
.trust {
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 20, 24, 0.05) 1px, transparent 1px),
    var(--near-white);
  background-size: 52px 52px;
  color: var(--graphite);
  max-width: none;
}

.product {
  border-bottom: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
}

.product .section-kicker,
.trust .section-kicker {
  color: var(--signal-red);
}

.product-layout {
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.85fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.product-layout > div:first-child p,
.use-case-header p,
.contact-inner p {
  color: var(--muted-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1.35rem;
}

.workflow {
  display: grid;
  gap: 1rem;
}

.workflow-step {
  background: rgba(17, 20, 24, 0.045);
  border: 1px solid var(--line-light);
  padding: 1.2rem;
}

.workflow-step span,
.use-case-list span {
  color: var(--signal-red);
  display: block;
  font-family: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 760;
  margin-bottom: 0.7rem;
}

.workflow-step strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.workflow-step p,
.capability p,
.use-case-list p,
.trust-points p {
  color: inherit;
  line-height: 1.6;
  opacity: 0.72;
}

.capabilities h2 {
  margin-top: 1rem;
  max-width: 780px;
}

.capability-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.capability {
  background: rgba(247, 244, 235, 0.055);
  border: 1px solid var(--line-dark);
  min-height: 278px;
  padding: 1.25rem;
}

.icon {
  align-items: center;
  background: var(--near-white);
  color: var(--graphite);
  display: flex;
  font-family: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 760;
  height: 36px;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 36px;
}

.capability h3,
.use-case-list h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.use-cases {
  padding-top: 64px;
}

.use-case-header {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  margin-top: 1rem;
}

.use-case-header p {
  color: var(--muted-dark);
  margin-top: 0;
}

.use-case-list {
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.use-case-list article {
  border-right: 1px solid var(--line-dark);
  padding: 1.6rem 1.4rem 1.6rem 0;
}

.use-case-list article + article {
  padding-left: 1.4rem;
}

.use-case-list article:last-child {
  border-right: 0;
}

.trust {
  border-bottom: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
}

.trust-layout {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  padding: 0 24px;
}

.trust .section-kicker {
  display: block;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.trust-points {
  display: grid;
  gap: 1.15rem;
}

.trust-points div {
  border-top: 1px solid var(--line-light);
  padding-top: 1rem;
}

.trust-points strong {
  display: block;
  margin-bottom: 0.35rem;
}

.contact {
  padding: 112px 24px;
}

.contact-inner {
  background: var(--near-white);
  color: var(--graphite);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem);
  position: relative;
}

.contact-inner::after {
  background: var(--signal-red);
  content: "";
  height: 12px;
  left: clamp(2rem, 6vw, 4rem);
  position: absolute;
  right: clamp(2rem, 6vw, 4rem);
  top: 0;
}

.contact-inner h2 {
  margin-top: 1rem;
  max-width: 850px;
}

.contact-inner p {
  max-width: 690px;
}

.contact-inner .button {
  margin-top: 1.8rem;
  position: relative;
  z-index: 1;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 24px 42px;
}

.footer .brand {
  color: var(--near-white);
}

.footer a {
  color: var(--near-white);
  font-weight: 720;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    background: var(--graphite-2);
    border-bottom: 1px solid var(--line-dark);
    border-top: 1px solid var(--line-dark);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 0.5rem 24px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 76px;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-bottom: 1px solid rgba(247, 244, 235, 0.1);
    padding: 1rem 0;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    max-width: 680px;
  }

  .section-grid,
  .product-layout,
  .use-case-header,
  .trust-layout {
    grid-template-columns: 1fr;
  }

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

  .use-case-list {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: auto;
  }

  .use-case-list article,
  .use-case-list article + article {
    border-bottom: 1px solid var(--line-dark);
    border-right: 0;
    padding: 1.4rem 0;
  }

  .use-case-list article:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 620px) {
  .nav {
    height: 68px;
    max-width: none;
    padding: 0 18px;
    width: 100%;
  }

  .nav-toggle {
    display: flex !important;
    flex: 0 0 42px;
    left: min(calc(100vw - 60px), 330px);
    margin-left: auto;
    position: fixed;
    top: 13px;
  }

  .nav-links {
    top: 68px;
  }

  .hero {
    padding: 104px 18px 28px;
  }

  .hero-content,
  .hero-copy-block,
  .hero-copy,
  .hero-visual,
  .proof-window {
    max-width: min(360px, calc(100vw - 36px)) !important;
    width: min(360px, calc(100vw - 36px)) !important;
  }

  .hero-content {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy-block,
  .hero-copy,
  .hero-visual,
  .hero-actions,
  .proof-window {
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: clamp(2.92rem, 13.5vw, 3.36rem);
  }

  .hero-copy {
    font-size: 1rem;
    width: 100%;
  }

  .hero-actions,
  .hero-actions .button {
    max-width: min(360px, calc(100vw - 36px)) !important;
    width: min(360px, calc(100vw - 36px)) !important;
  }

  .proof-path {
    grid-template-columns: 1fr;
  }

  .terminal-line {
    grid-template-columns: 1fr;
  }

  .terminal-line code {
    font-size: 0.82rem;
    word-break: break-all;
  }

  .section,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-layout,
  .trust-layout,
  .trust .section-kicker {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .hero-content,
  .hero-copy-block,
  .hero-copy,
  .hero-actions,
  .hero-actions .button,
  .hero-visual,
  .proof-window {
    max-width: min(320px, calc(100vw - 36px)) !important;
    width: min(320px, calc(100vw - 36px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
