/* technologic. — Plus Jakarta Sans, monochrome, subtle motion */

:root {
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --bg-elevated: #f4f4f5;
  --text: #000000;
  --text-muted: #4a4a4a;
  --border: #d8d8d8;
  --border-strong: #b8b8b8;
  --accent: #000000;
  --accent-soft: rgba(0, 0, 0, 0.06);
  /* Restrained signal accent — used sparingly for links, focus, and small marks. */
  --brand: #2050f0;
  --brand-hover: #1740c8;
  --brand-soft: rgba(32, 80, 240, 0.09);
  --radius: 0;
  --shadow: none;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
}

strong {
  font-weight: 600;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.nav a,
.logo,
.btn {
  text-decoration: none;
}

p a:hover,
.lead a:hover {
  opacity: 0.75;
}

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

/* Layout */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Wordmark logo (crisp vector text — matches brand) */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo:hover {
  opacity: 0.75;
  text-decoration: none;
}

.logo-wordmark {
  display: block;
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

@media (min-width: 640px) {
  .logo-wordmark {
    font-size: 1.5rem;
  }
}

.logo-line {
  display: block;
}

.logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 0;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
  opacity: 1;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

/* Main */
main {
  flex: 1;
}

section {
  padding: 4.35rem 0;
}

section.tight {
  padding-top: 2.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* Abstract “flow” — suggests rails / throughput (decorative) */
.hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -20% -10% auto -10%;
  height: 55%;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(0, 0, 0, 0.03) 0%,
    transparent 65%
  );
  animation: hero-breathe 18s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--text) 0,
    var(--text) 1px,
    transparent 1px,
    transparent 72px
  );
  opacity: 0.07;
  background-size: 144px 100%;
  animation: hero-rail 32s linear infinite;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

/* Home hero: text on the left, value-chain visual on the right (desktop only) */
.hero--split .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-visual {
  display: none;
}

@media (min-width: 960px) {
  .hero--split .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
  }

  .hero-visual svg {
    width: 100%;
    height: auto;
    max-width: 480px;
    color: var(--text);
  }
}

/* Small stats band under the hero — quick proof, no colour, no shadow */
.hero-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
  background: var(--bg);
}

.hero-stats .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  align-items: baseline;
}

@media (min-width: 720px) {
  .hero-stats .wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.hero-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text-muted);
}

.hero h1,
.page-hero h1,
.section-head h2 {
  text-transform: lowercase;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 1.05;
  margin: 0 0 1.35rem;
  max-width: 22ch;
}

.lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 2rem;
  line-height: 1.72;
  letter-spacing: -0.012em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

/* Focus ring — visible signal accent, no default browser blur */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

/* Buttons — sharp, monochrome */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--text);
  cursor: pointer;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  transition: background 0.12s, color 0.12s, opacity 0.12s;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-primary:hover {
  background: #222;
  border-color: #222;
  text-decoration: none;
  opacity: 1;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  border-color: var(--text);
  text-decoration: none;
  opacity: 1;
}

/* Grids & cards */
.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 65ch;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.grid-4 .card {
  border: none;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-4 .card-glyph {
  justify-content: center;
  margin-bottom: 1.15rem;
  min-height: 4rem;
}

.grid-4 .card h3 {
  margin-bottom: 0.55rem;
}

.grid-4 .card p {
  max-width: 22ch;
}

.card-glyph {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.card-glyph--boxed {
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.card-glyph--boxed svg {
  width: 1.35rem;
  height: 1.35rem;
}

.card-glyph svg {
  display: block;
  flex-shrink: 0;
}

.card-glyph--hub svg {
  width: 8.5rem;
  height: auto;
  max-width: 100%;
}

.card-glyph--devices svg {
  width: 7rem;
  height: auto;
  max-width: 100%;
}

.card-glyph--stack svg,
.card-glyph--reconcile svg,
.card-glyph--chain svg {
  width: 7.75rem;
  height: auto;
  max-width: 100%;
}

.card-glyph--modules svg,
.card-glyph--wallet svg,
.card-glyph--card svg,
.card-glyph--link svg,
.card-glyph--brief svg {
  width: 6.75rem;
  height: auto;
  max-width: 100%;
}

.card-glyph--fx .fx-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--text);
}

.card-glyph--fx .fx-join {
  font-weight: 600;
  font-size: 0.75rem;
  opacity: 0.72;
  letter-spacing: 0;
}

.rail-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  max-width: 100%;
}

.rail-logo {
  display: block;
  width: auto;
  height: 1.05rem;
  opacity: 0.94;
  filter: grayscale(1);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.68;
}

.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.card li {
  margin-bottom: 0.35rem;
}

.pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* Case study */
.case {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.case:last-child {
  margin-bottom: 0;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.case-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.case-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.case-tag + .case-meta {
  margin-top: -0.15rem;
}

.case h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.case p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* Contact */
.contact-block {
  max-width: 560px;
}

.contact-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-wordmark {
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: -0.035em;
  color: var(--text);
  text-transform: lowercase;
}

.footer-inner strong {
  color: var(--text);
  font-weight: 700;
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 20% 0%,
    rgba(0, 0, 0, 0.04) 0%,
    transparent 55%
  );
  animation: hero-breathe 18s ease-in-out infinite reverse;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  margin: 0 0 0.75rem;
}

.page-hero .lead {
  margin: 0;
}

/* Two-column pillars */
.pillars-row {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .pillars-row {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: none;
  background: var(--bg);
}

.pillar-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: lowercase;
}

.pillar-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* Inline links in content (not nav) — brand accent, monochrome by default,
   accent tint on hover so the link discovery cue is present but not loud. */
main p a,
main li a,
.lead a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color 0.12s;
}

main p a:hover,
main li a:hover,
.lead a:hover {
  color: var(--brand-hover);
  opacity: 1;
}

/* Section band */
.section-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

/* Abstract mesh — connectivity / ledger (very subtle) */
.section-band::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  animation: mesh-drift 70s linear infinite;
}

.section-band > .wrap {
  position: relative;
  z-index: 1;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .section-band::before,
  .page-hero::before {
    animation: none;
  }

  .hero::after {
    background-position: 0 0;
  }

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

@keyframes hero-breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.03) translateY(2px);
  }
}

@keyframes hero-rail {
  to {
    background-position: 144px 0;
  }
}

@keyframes mesh-drift {
  to {
    background-position: 28px 28px;
  }
}

.mt-flow {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.75rem;
  }

  .site-header {
    position: relative;
  }
}

