:root {
  --ink: #0d241e;
  --ink-2: #133229;
  --ink-3: #1b4236;
  --brand: #286344;
  --mint: #8ee3b0;
  --mint-2: #c9f5da;
  --amber: #f5c26b;
  --paper: #f6f8f4;
  --paper-2: #ebf0e8;
  --text: #13221d;
  --text-muted: #55675f;
  --line: rgba(13, 36, 30, 0.1);
  --line-dark: rgba(201, 245, 218, 0.12);
  --radius: 18px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "tnum";
}

.small {
  font-size: 0.82rem;
}

.muted {
  color: rgba(201, 245, 218, 0.55);
}

.muted-dark {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

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

.btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--mint);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--mint-2);
}

.btn-ghost {
  border-color: rgba(201, 245, 218, 0.3);
  color: var(--mint-2);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: #fff;
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 36, 30, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand strong {
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--mint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.93rem;
}

.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% 10%, rgba(40, 99, 68, 0.55), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(142, 227, 176, 0.12), transparent 60%), var(--ink);
  color: #fff;
  padding: 150px 0 110px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 22px;
}

.eyebrow.dark {
  color: var(--brand);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(142, 227, 176, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(142, 227, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 227, 176, 0);
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 600;
}

.hero h1 em {
  color: var(--mint);
}

.lead {
  margin-top: 24px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-actions.center {
  justify-content: center;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(142, 227, 176, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%238ee3b0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Editorial photography */
.hero-photo,
.workflow-photo {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: var(--ink-2);
}

.hero-photo {
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.45);
}

.hero-photo img,
.workflow-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-photo figcaption {
  display: grid;
  gap: 8px;
  padding: 26px 28px 28px;
}

.photo-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero-photo strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-photo figcaption > span:last-child {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.workflow-photo figcaption {
  padding: 16px 22px;
  font-size: 0.88rem;
  color: var(--mint-2);
}

/* Platform preview */
.audit-preview {
  position: relative;
  min-width: 0;
  color: #fff;
}

.panel {
  background: linear-gradient(180deg, rgba(27, 66, 54, 0.9), rgba(19, 50, 41, 0.92));
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s ease;
}

.audit-preview:hover .panel {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.76rem;
  color: rgba(201, 245, 218, 0.65);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 245, 218, 0.18);
}

.panel-body {
  padding: 22px;
  display: grid;
  gap: 22px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi {
  padding: 14px;
  border-radius: 12px;
  background: rgba(13, 36, 30, 0.55);
  border: 1px solid var(--line-dark);
  min-width: 0;
}

.kpi span {
  display: block;
  font-size: 0.74rem;
  color: rgba(201, 245, 218, 0.6);
  margin-bottom: 6px;
}

.kpi strong {
  display: block;
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-accent {
  background: rgba(142, 227, 176, 0.12);
  border-color: rgba(142, 227, 176, 0.35);
}

.kpi-accent strong {
  color: var(--mint);
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: rgba(201, 245, 218, 0.65);
}

.bar div {
  height: 8px;
  border-radius: 99px;
  background: rgba(13, 36, 30, 0.7);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}

.in-view .bar span {
  width: var(--w);
}

.trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.trail li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(13, 36, 30, 0.45);
  font-size: 0.78rem;
}

.trail li .muted {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag.ok {
  background: rgba(142, 227, 176, 0.16);
  color: var(--mint);
}

.tag.warn {
  background: rgba(245, 194, 107, 0.16);
  color: var(--amber);
}

.floating {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(246, 248, 244, 0.97);
  color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
  animation: float 6s ease-in-out infinite;
}

.floating .muted {
  color: var(--text-muted);
}

.floating .tag.ok {
  background: rgba(40, 99, 68, 0.12);
  color: var(--brand);
  justify-self: start;
}

.floating-a {
  top: -26px;
  right: -14px;
}

.floating-b {
  bottom: -6px;
  left: -34px;
  animation-delay: -3s;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.illustrative {
  margin-top: 14px;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Strip */
.strip {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: rgba(201, 245, 218, 0.6);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 22px 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: 120px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section h2,
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head > p:last-child {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.platform-intro,
.workflow-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  margin-bottom: 64px;
}

.platform-intro .section-head,
.workflow-intro .section-head {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 99, 68, 0.3);
  box-shadow: 0 24px 48px -28px rgba(13, 36, 30, 0.35);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--brand);
  margin-bottom: 22px;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Dark section */
.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-dark .section-head > p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.section-dark h2 em {
  color: var(--mint);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(27, 66, 54, 0.55), rgba(13, 36, 30, 0));
}

.step-n {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--mint);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(142, 227, 176, 0.3);
  margin-bottom: 26px;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.96rem;
}

.principles {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}

.code {
  border-radius: 14px;
  background: #081a15;
  border: 1px solid var(--line-dark);
  overflow: hidden;
}

.code-head {
  padding: 10px 16px;
  font-size: 0.74rem;
  color: rgba(201, 245, 218, 0.5);
  border-bottom: 1px solid var(--line-dark);
}

.code pre {
  margin: 0;
  padding: 20px;
  font-size: 0.86rem;
  line-height: 1.75;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.8);
}

.code b {
  font-weight: 400;
  color: var(--mint);
}

.code i {
  font-style: normal;
  color: var(--amber);
}

.principles-copy h3 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.principles-copy p {
  color: rgba(255, 255, 255, 0.68);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--mint), transparent);
}

.tl-item {
  position: relative;
  padding-top: 56px;
}

.tl-item::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--brand);
}

.tl-year {
  display: block;
  font-size: 0.85rem;
  color: var(--brand);
  margin-bottom: 8px;
}

.tl-item h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.tl-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Security */
.section-soft {
  background: var(--paper-2);
}

.security {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.security h2 {
  margin-bottom: 20px;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  display: grid;
  gap: 4px;
  padding: 20px 22px 20px 58px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.checks span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  padding: 120px 0;
  background: radial-gradient(800px 400px at 50% 0%, rgba(40, 99, 68, 0.6), transparent 70%), var(--ink);
  color: #fff;
  text-align: center;
}

.cta h2 em {
  color: var(--mint);
}

.cta p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: #081a15;
  color: rgba(255, 255, 255, 0.55);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer .brand {
  font-size: 1.05rem;
}

.footer .brand-mark {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a:hover {
  color: #fff;
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 16px;
  background: var(--ink);
  color: #fff;
}

.notfound h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 18px 0 14px;
}

.notfound p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 30px;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-inner,
  .platform-intro,
  .workflow-intro,
  .security,
  .principles {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .workflow-photo,
  .audit-preview {
    width: 100%;
    max-width: 620px;
  }

  .audit-preview {
    margin-inline: auto;
  }

  .features,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }

  .timeline::before {
    display: none;
  }
}

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

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    background: rgba(13, 36, 30, 0.97);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-cta {
    margin-top: 16px;
  }

  .nav.menu-open {
    background: rgba(13, 36, 30, 0.97);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .section,
  .cta {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .platform-intro,
  .workflow-intro {
    gap: 36px;
    margin-bottom: 40px;
  }

  .hero-photo figcaption {
    padding: 22px;
  }

  .features,
  .steps,
  .timeline {
    grid-template-columns: 1fr;
  }

  .panel {
    transform: none;
  }

  .panel-body {
    padding: 16px;
  }

  .kpis {
    gap: 6px;
  }

  .kpi {
    padding: 10px;
  }

  .trail li {
    grid-template-columns: auto 1fr;
  }

  .trail li .muted {
    display: none;
  }

  .floating-a,
  .floating-b {
    display: none;
  }

  .principles {
    padding: 22px;
    gap: 28px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .bar span {
    width: var(--w);
  }
}
