:root {
  --ink: #14252c;
  --forest: #0b171c;
  --forest-2: #10272f;
  --moss: #82d8ff;
  --moss-soft: #c5efff;
  --paper: #f5f3eb;
  --paper-deep: #ebe9df;
  --white: #fffef8;
  --muted: #61706a;
  --line: rgba(16, 33, 29, 0.16);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--moss);
  color: var(--forest);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(7, 28, 25, .9);
  border-color: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
}
.nav-wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.025em; }
.brand-mark { width: 43px; height: 35px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: .875rem; }
.site-nav > a:not(.button) { color: rgba(255,255,255,.72); transition: color .2s ease; }
.site-nav > a:not(.button):hover { color: var(--white); }
.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 54px;
  padding: 0 23px;
  border: 1px solid var(--moss);
  background: var(--moss);
  color: var(--forest);
  font-size: .875rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { background: var(--moss-soft); transform: translateY(-2px); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button-small { min-height: 42px; padding-inline: 18px; }
.text-link { display: inline-flex; gap: 11px; align-items: center; font-size: .875rem; font-weight: 700; }
.text-link span { color: #5e8b9e; transition: transform .2s ease; }
.text-link:hover span { transform: translateY(3px); }

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
  padding: 180px 0 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  top: -230px;
  right: -180px;
  border-radius: 50%;
  background: rgba(100, 170, 95, .15);
  filter: blur(4px);
}
.hero-layout { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 55px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  color: var(--moss);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.eyebrow-dark { color: #4d7c90; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.055em; line-height: 1.05; }
h1 { margin-bottom: 30px; font-size: clamp(3.5rem, 6vw, 6.1rem); }
h1 em, .contact h2 em { color: var(--moss); font-family: Georgia, serif; font-weight: 400; }
.hero-intro { max-width: 600px; margin-bottom: 38px; color: rgba(255,255,255,.66); font-size: 1.1rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.hero-actions .text-link { color: rgba(255,255,255,.8); }
.hero-visual { position: relative; }
.system-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(185,248,120,.23);
  background: rgba(8, 36, 31, .64);
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.system-card::before, .system-card::after { content: ""; position: absolute; width: 24px; height: 24px; border-color: var(--moss); }
.system-card::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.system-card::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.system-topline { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: rgba(255,255,255,.46); }
.status { color: var(--moss); }
.status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 8px var(--moss); }
.system-map { display: block; width: 100%; }
.map-lines { stroke-width: 1; }
.map-nodes circle { fill: var(--forest); stroke: #6ba5bf; stroke-width: 1.5; }
.map-nodes .node-active { fill: var(--moss); stroke: var(--moss); }
.map-labels { fill: rgba(255,255,255,.42); font: 9px var(--mono); letter-spacing: .08em; }
.system-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.system-metrics div { padding: 14px 10px 2px; border-right: 1px solid rgba(255,255,255,.1); }
.system-metrics div:last-child { border: 0; }
.system-metrics span, .system-metrics strong { display: block; font-family: var(--mono); }
.system-metrics span { color: rgba(255,255,255,.4); font-size: .58rem; text-transform: uppercase; }
.system-metrics strong { margin-top: 2px; color: var(--moss-soft); font-size: .78rem; font-weight: 400; }
.trust-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 25px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.48);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trust-line span::before { content: "+"; margin-right: 10px; color: var(--moss); }

.section { padding: 130px 0; }
.section-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: end; margin-bottom: 70px; }
.section-heading h2, .about h2, .approach h2 { margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.8rem); }
.section-heading > p { margin: 0 0 8px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 485px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.service-card:hover { z-index: 2; background: var(--white); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(20,40,34,.08); }
.service-number { margin-bottom: 55px; color: #7b8782; font: .7rem var(--mono); }
.service-icon { width: 48px; height: 48px; margin-bottom: 28px; fill: none; stroke: #4d7c90; stroke-width: 1.25; }
.service-card h3 { margin-bottom: 14px; font-size: 1.35rem; letter-spacing: -.03em; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-card ul { position: absolute; right: 34px; bottom: 28px; left: 34px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: #52635d; font: .7rem/2 var(--mono); }
.service-card li::before { content: "↳"; margin-right: 9px; color: #5d91a6; }
.credkit-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-top: 70px; padding: 55px; color: #e2e8f0; background: #0b1120; }
.credkit-feature .eyebrow { color: #38bdf8; }
.credkit-feature-copy h3 { margin-bottom: 20px; color: #f8fafc; font-size: clamp(2rem, 3.3vw, 3.4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.credkit-feature-copy > p:not(.eyebrow) { max-width: 510px; color: #94a3b8; font-size: .94rem; }
.credkit-feature-links { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 26px; }
.credkit-feature-links a { color: #cbd5e1; font-size: .75rem; font-weight: 700; }
.credkit-feature-links a span { margin-left: 5px; color: #38bdf8; }
.credkit-feature-art { border: 1px solid rgba(56,189,248,.2); background: #101a2d; }
.credkit-bar { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(148,163,184,.12); color: #64748b; font: .55rem var(--mono); letter-spacing: .08em; }
.credkit-bar > span:first-child { color: #e2e8f0; font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: -.03em; }
.credkit-bar > span:first-child span { color: #38bdf8; }
.credkit-code { display: grid; gap: 13px; padding: 35px 22px; color: #94a3b8; font: .67rem var(--mono); }
.credkit-code span { white-space: nowrap; }
.credkit-code i { margin-right: 16px; color: #41516c; font-style: normal; }
.credkit-code .code-result { color: #7dd3fc; }
.credkit-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 16px; border-top: 1px solid rgba(148,163,184,.12); }
.credkit-tags span { padding: 3px 7px; border: 1px solid rgba(56,189,248,.17); color: #6092a6; font: .5rem var(--mono); }

.approach { color: var(--white); background: var(--forest-2); }
.approach-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; }
.approach-copy { position: sticky; top: 140px; align-self: start; }
.approach-copy > p:not(.eyebrow) { max-width: 430px; margin: 28px 0; color: rgba(255,255,255,.58); }
.text-link-light { color: var(--moss); }
.text-link-light span { color: inherit; }
.text-link-light:hover span { transform: translateX(4px); }
.steps { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); list-style: none; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 42px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li > span { color: var(--moss); font: .7rem var(--mono); }
.steps h3 { margin-bottom: 10px; font-size: 1.4rem; font-weight: 500; }
.steps p { max-width: 530px; margin: 0; color: rgba(255,255,255,.55); }

.about { background: var(--paper-deep); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--forest); }
.about-art::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(185,248,120,.2);
  border-radius: 48% 52% 42% 58% / 55% 38% 62% 45%;
  animation: drift 16s linear infinite;
}
.contour { position: absolute; border: 1px solid rgba(185,248,120,.34); border-radius: 50%; }
.contour-one { inset: 26%; border-radius: 46% 54% 62% 38% / 61% 44% 56% 39%; transform: rotate(25deg); }
.contour-two { inset: 36%; border-color: rgba(185,248,120,.6); border-radius: 58% 42% 41% 59% / 46% 58% 42% 54%; transform: rotate(-10deg); }
.contour-three { inset: 44%; background: var(--moss); border: 0; border-radius: 55% 45% 53% 47%; box-shadow: 0 0 70px rgba(185,248,120,.25); }
.about-art > span { position: absolute; right: 28px; bottom: 24px; color: rgba(255,255,255,.4); font: .58rem var(--mono); letter-spacing: .12em; }
@keyframes drift { to { transform: rotate(360deg); } }
.about-copy .large-copy { margin: 30px 0 24px; color: var(--ink); font-size: 1.28rem; line-height: 1.55; }
.about-copy > p:not(.eyebrow):not(.large-copy) { color: var(--muted); }
.about-copy p a { border-bottom: 1px solid #5d91a6; color: #315f72; font-weight: 600; }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.about-links a { display: inline-flex; align-items: center; gap: 7px; color: #315f72; font: .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.about-links a span { color: #5d91a6; transition: transform .2s ease; }
.about-links a:hover span { transform: translate(2px, -2px); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 85px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.proof-grid div { padding: 30px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { margin-bottom: 4px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; }
.proof-grid span { color: var(--muted); font: .68rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.contact { position: relative; overflow: hidden; padding: 140px 0; color: var(--white); background: #12303a; text-align: center; }
.contact-pattern { position: absolute; inset: 0; opacity: .09; background: repeating-radial-gradient(circle at 50% 120%, transparent 0 55px, var(--moss) 56px 57px); }
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow { margin-bottom: 30px; }
.contact h2 { margin: 0 0 42px; font-size: clamp(3.2rem, 6vw, 6.8rem); }
.button-light { min-width: 245px; }

.site-footer { padding: 65px 0 28px; color: var(--white); background: var(--forest); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 55px; }
.footer-top p { margin: 0; color: rgba(255,255,255,.58); font-size: 1.1rem; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.35); font: .62rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 680px); }
  .nav-wrap { height: 72px; }
  .nav-toggle { z-index: 2; display: grid; gap: 6px; width: 42px; height: 42px; place-content: center; border: 1px solid rgba(255,255,255,.2); background: transparent; }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; background: var(--forest); font-size: 1.4rem; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav .button { margin-top: 8px; font-size: .875rem; }
  .hero { min-height: auto; padding: 145px 0 0; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 650px; }
  .hero-visual { margin-bottom: 125px; }
  .trust-line { grid-template-columns: 1fr; gap: 5px; }
  .section { padding: 95px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 430px; }
  .credkit-feature { grid-template-columns: 1fr; gap: 45px; padding: 45px; }
  .approach-layout { grid-template-columns: 1fr; gap: 65px; }
  .approach-copy { position: static; }
  .about-layout { grid-template-columns: 1fr; gap: 60px; }
  .about-art { max-width: 580px; }
  .proof-grid { margin-top: 60px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .brand-long { display: none; }
  .hero { padding-top: 125px; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.3rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .system-card { padding: 14px; }
  .system-map { margin: -10px 0; }
  .system-metrics div { padding-inline: 6px; }
  .trust-line { position: relative; width: var(--shell); margin-top: -83px; }
  .section-heading { margin-bottom: 45px; }
  .section-heading h2, .about h2, .approach h2 { font-size: 2.8rem; }
  .service-card { min-height: 450px; padding: 28px; }
  .service-card ul { right: 28px; left: 28px; }
  .credkit-feature { margin-top: 45px; padding: 34px 22px; }
  .credkit-bar > span:last-child { display: none; }
  .credkit-code { overflow: hidden; padding: 28px 14px; font-size: .55rem; }
  .credkit-code i { margin-right: 7px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 15px; }
  .proof-grid { grid-template-columns: 1fr; }
  .contact { padding: 100px 0; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 24px; }
  .footer-top p { text-align: left; }
  .footer-bottom { line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
