/* ==========================================================================
   Beratna Labs — Design System
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons
   6.  Header / navigation
   7.  Hero
   8.  Cards & grids
   9.  Process / timeline
   10. Stats & feature lists
   11. Status pills & roadmap
   12. Accordion
   13. Forms
   14. CTA band
   15. Footer
   16. Motion & reveal
   17. Utilities
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
  /* Surfaces — near-black with a cool green cast, taken from the logo plate */
  --ink-900: #070a08;
  --ink-850: #0a0e0b;
  --ink-800: #0d120f;
  --ink-700: #121a15;
  --ink-600: #18221c;
  --ink-500: #1f2b24;

  /* Brand green — sampled from the logo's "B" */
  --green-900: #0b2718;
  --green-700: #145c33;
  --green-500: #1e7a45;
  --green-400: #269b56;
  --green-300: #3fcb78;

  /* Silver / platinum — sampled from the logo's "L" */
  --silver-100: #f4f7f5;
  --silver-200: #dfe6e1;
  --silver-300: #c3cec7;
  --silver-500: #8b998f;

  /* Text */
  --text: #e8eeea;
  --text-dim: #a3b1a8;
  /* Kept light enough to clear WCAG AA (4.5:1) on card surfaces, not just the page bg */
  --text-mute: #7b8a80;

  /* Lines & shadows */
  --line: rgba(195, 206, 199, 0.1);
  --line-strong: rgba(195, 206, 199, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(63, 203, 120, 0.25), 0 12px 40px -12px rgba(30, 122, 69, 0.55);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Space & shape */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --cut: 14px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.28s;

  --header-h: 72px;
}

/* 2. Reset & base ========================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  min-height: 100vh;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page wash — a soft green horizon behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 78% -8%, rgba(30, 122, 69, 0.2), transparent 65%),
    radial-gradient(46rem 30rem at 8% 4%, rgba(20, 92, 51, 0.14), transparent 62%);
}

/* The UA rule for [hidden] is display:none at the lowest specificity, so any
   component that sets its own display (.lab-card, .btn, .card…) silently beats
   it and stays visible. This makes the attribute actually mean hidden. */
[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--green-500);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  background: var(--green-500);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* Thin, on-brand scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 11px;
    height: 11px;
  }
  ::-webkit-scrollbar-track {
    background: var(--ink-850);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--ink-500);
    border: 3px solid var(--ink-850);
    border-radius: 99px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--green-700);
  }
}

/* 3. Layout primitives ===================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--alt {
  background: linear-gradient(180deg, transparent, var(--ink-850) 12%, var(--ink-850) 88%, transparent);
}

.section--panel {
  background: var(--ink-850);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split--wide-right {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split--sticky > :last-child {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Hairline rule with a green pip, echoes the logo's underline */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--green-500), var(--line) 30%, transparent);
}

/* 4. Typography ============================================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--silver-100);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: clamp(2.4rem, 6vw, 4.15rem);
}

h2,
.h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
}

h3,
.h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h4 {
  font-size: 1.0625rem;
  letter-spacing: 0;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-300);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--center {
  justify-content: center;
}

/* Section heading one notch down from h2, for secondary panels */
.h2-sm {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-dim);
}

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

.mute-sm {
  font-size: 0.875rem;
  color: var(--text-mute);
}

/* Platinum gradient, mirroring the logo's chrome "L" */
.chrome {
  background: linear-gradient(150deg, #ffffff 0%, var(--silver-300) 46%, var(--silver-500) 74%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent {
  color: var(--green-300);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-300);
  font-weight: 500;
  border-bottom: 1px solid rgba(63, 203, 120, 0.3);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}

.text-link:hover {
  color: var(--silver-100);
  border-color: var(--silver-300);
  gap: 0.7rem;
}

.text-link svg {
  width: 1em;
  height: 1em;
  flex: none;
}

/* 5. Buttons =============================================================== */

.btn {
  --cut: 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  /* Chamfered top-right + bottom-left, taken from the logo's cut corners */
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

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

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* Both gradient stops stay dark enough that white label text clears 4.5:1 —
   hover reads brighter via the glow, not by lightening the fill. */
.btn--primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(30, 122, 69, 0.8);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #21864b, var(--green-500));
  box-shadow: 0 16px 38px -12px rgba(63, 203, 120, 0.75), 0 0 0 1px rgba(63, 203, 120, 0.35);
}

.btn--ghost {
  background: rgba(232, 238, 234, 0.04);
  color: var(--silver-100);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(232, 238, 234, 0.08);
  box-shadow: inset 0 0 0 1px rgba(63, 203, 120, 0.45);
  color: #fff;
}

.btn--light {
  background: var(--silver-100);
  color: var(--ink-900);
}

.btn--light:hover {
  background: #fff;
}

.btn--lg {
  --cut: 15px;
  padding: 1.05rem 2rem;
  font-size: 1rem;
}

.btn--sm {
  --cut: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Pressed filter button reads as the active choice */
.btn--ghost[aria-pressed="true"] {
  color: #fff;
  background: rgba(30, 122, 69, 0.28);
  box-shadow: inset 0 0 0 1px rgba(63, 203, 120, 0.5);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

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

/* 6. Header / navigation =================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}

.site-header.is-stuck {
  background: rgba(7, 10, 8, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  flex: none;
}

.brand img {
  width: 34px;
  height: auto;
  transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease);
}

.brand:hover img {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 4px 10px rgba(63, 203, 120, 0.35));
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word b {
  font-family: var(--font-display);
  font-size: 1.0125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--silver-100);
}

.brand-word span {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-top: 3px;
}

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

.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(232, 238, 234, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--silver-100);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: linear-gradient(90deg, var(--green-300), var(--green-500));
  border-radius: 2px;
}

.header-cta {
  flex: none;
}

/* The nav carries its own CTA for the mobile drawer only — at desktop the
   standalone .header-cta button is the one on show. */
.nav > .btn {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(232, 238, 234, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--silver-100);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease);
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 60rem) {
  .nav-toggle {
    display: grid;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(7, 10, 8, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease-out), visibility 0.24s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 0.95rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav a[aria-current="page"]::after {
    left: 0.25rem;
    right: auto;
    width: 1.75rem;
    bottom: 0.5rem;
  }

  .nav > .btn {
    display: inline-flex;
    margin-top: 1.25rem;
    border-bottom: 0;
  }
}

body.nav-open {
  overflow: hidden;
}

/* 7. Hero ================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero::after {
  /* Fine technical grid, fading out downward */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(195, 206, 199, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195, 206, 199, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(72% 70% at 50% 18%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 70% at 50% 18%, #000 20%, transparent 78%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.75rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin-bottom: 1.35rem;
}

.hero .lead {
  max-width: 34rem;
  margin-bottom: 2.1rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--green-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-400);
}

/* Page hero for interior pages */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -40%;
  width: 34rem;
  height: 34rem;
  z-index: -1;
  background: radial-gradient(circle, rgba(30, 122, 69, 0.22), transparent 62%);
  pointer-events: none;
}

.page-hero .lead {
  max-width: 44rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.breadcrumb a:hover {
  color: var(--green-300);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* Code panel — the hero's visual anchor */
.code-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--ink-700), var(--ink-850));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.code-panel::before {
  /* Logo mark ghosted into the panel */
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 15rem;
  height: 15rem;
  background: url("../img/beratna-mark-160.png") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}

.code-panel__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
}

.code-panel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-500);
}

.code-panel__dot:first-child {
  background: var(--green-500);
}

.code-panel__file {
  margin-left: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
}

.code-panel__body {
  padding: 1.5rem 1.35rem 1.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  line-height: 1.85;
  overflow-x: auto;
}

.code-panel__body .ln {
  display: block;
  white-space: pre;
  color: var(--text-dim);
}

.tok-key {
  color: var(--green-300);
}
.tok-fn {
  color: var(--silver-100);
}
.tok-str {
  color: #9fd8b4;
}
.tok-com {
  color: var(--text-mute);
  font-style: italic;
}
.tok-num {
  color: var(--silver-300);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--green-300);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* 8. Cards & grids ========================================================= */

.grid {
  display: grid;
  gap: 1.15rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: linear-gradient(170deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card__top-rule {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-400), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card--hover:hover .card__top-rule {
  opacity: 1;
}

.card h3 {
  color: var(--silver-100);
}

.card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--green-300);
  opacity: 0.85;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.4rem;
  color: var(--green-300);
  background: linear-gradient(150deg, rgba(63, 203, 120, 0.16), rgba(30, 122, 69, 0.06));
  border: 1px solid rgba(63, 203, 120, 0.22);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.card--hover:hover .icon-box {
  color: #fff;
  background: linear-gradient(150deg, var(--green-400), var(--green-700));
  border-color: transparent;
}

/* Card list with checks */
.check-list {
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--text-dim);
}

.check-list svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  color: var(--green-300);
  flex: none;
}

.check-list strong {
  display: block;
  color: var(--silver-100);
  font-weight: 600;
}

/* Visual frame for imagery / logo lockups */
.frame {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(circle at 50% 35%, rgba(30, 122, 69, 0.16), transparent 62%),
    linear-gradient(160deg, var(--ink-700), var(--ink-850));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.frame::before,
.frame::after {
  /* Corner ticks */
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(63, 203, 120, 0.5);
}

.frame::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}

.frame img {
  width: min(100%, 22rem);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
}

/* Tech chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: rgba(232, 238, 234, 0.035);
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.chip:hover {
  color: var(--green-300);
  border-color: rgba(63, 203, 120, 0.4);
}

/* 9. Process / timeline ==================================================== */

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

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

.step {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  background: var(--ink-800);
  transition: background var(--dur) var(--ease);
}

.step:hover {
  background: var(--ink-700);
}

.step__index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--green-300);
}

.step__index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(63, 203, 120, 0.45), transparent);
}

.step h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* 10. Stats & feature lists ================================================ */

.stat-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--ink-900);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--silver-100);
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* 11. Status pills & roadmap =============================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 99px;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill--building {
  color: var(--green-300);
  border-color: rgba(63, 203, 120, 0.35);
  background: rgba(63, 203, 120, 0.08);
}

.pill--building::before {
  animation: pulse 2s var(--ease) infinite;
}

.pill--design {
  color: #8ec6f5;
  border-color: rgba(142, 198, 245, 0.32);
  background: rgba(142, 198, 245, 0.07);
}

.pill--research {
  color: var(--silver-300);
  border-color: var(--line-strong);
  background: rgba(232, 238, 234, 0.04);
}

.pill--live {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(63, 203, 120, 0.6);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(63, 203, 120, 0);
  }
}

/* Notice / callout block */
.notice {
  --cut: 16px;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(150deg, rgba(30, 122, 69, 0.14), rgba(13, 18, 15, 0.9));
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(63, 203, 120, 0.2);
}

@media (min-width: 48rem) {
  .notice {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.5rem;
  }
}

.notice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--green-300);
  background: rgba(63, 203, 120, 0.12);
  border-radius: var(--r-sm);
  flex: none;
}

.notice__icon svg {
  width: 22px;
  height: 22px;
}

.notice h3 {
  margin-bottom: 0.5rem;
}

.notice p {
  color: var(--text-dim);
}

.notice p + p {
  margin-top: 0.75rem;
}

/* Roadmap card */
.lab-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: linear-gradient(170deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.lab-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

/* Title-plus-status row, shared by roadmap and service cards */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lab-card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.lab-card__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Progress meter */
.meter {
  height: 4px;
  background: rgba(232, 238, 234, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.meter__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  border-radius: 99px;
  transition: width 1.1s var(--ease-out);
}

/* 12. Accordion ============================================================ */

.accordion {
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--silver-100);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.acc-trigger:hover {
  color: var(--green-300);
}

.acc-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  inset: 50% 5px auto;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease);
}

.acc-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.acc-trigger[aria-expanded="true"] .acc-icon {
  border-color: var(--green-300);
  transform: rotate(180deg);
}

.acc-trigger[aria-expanded="true"] .acc-icon::after {
  opacity: 0;
}

.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.32s var(--ease-out);
}

.acc-panel > div {
  padding-bottom: 1.5rem;
  max-width: 60ch;
  color: var(--text-dim);
}

.acc-panel p + p {
  margin-top: 0.75rem;
}

/* 13. Forms ================================================================ */

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: linear-gradient(170deg, var(--ink-700), var(--ink-850));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 40rem) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field > label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.field .req {
  color: var(--green-300);
  margin-left: 2px;
}

.field .hint {
  font-size: 0.75rem;
  color: var(--text-mute);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: rgba(7, 10, 8, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-mute);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: rgba(195, 206, 199, 0.3);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--green-400);
  background: rgba(7, 10, 8, 0.85);
  box-shadow: 0 0 0 3px rgba(38, 155, 86, 0.16);
}

.textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b998f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  cursor: pointer;
}

.select option {
  background: var(--ink-800);
  color: var(--text);
}

/* Checkbox */
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.check input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  background: rgba(7, 10, 8, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.check input::before {
  content: "";
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s var(--ease-out);
}

.check input:checked {
  background: var(--green-500);
  border-color: var(--green-400);
}

.check input:checked::before {
  transform: rotate(-45deg) scale(1);
}

/* Radio-style option cards */
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option span {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  background: rgba(232, 238, 234, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.option span:hover {
  color: var(--text);
  border-color: rgba(195, 206, 199, 0.3);
}

.option input:checked + span {
  color: #fff;
  background: rgba(30, 122, 69, 0.25);
  border-color: var(--green-400);
}

.option input:focus-visible + span {
  outline: 2px solid var(--green-300);
  outline-offset: 2px;
}

/* Validation */
.field-error {
  display: none;
  font-size: 0.8125rem;
  color: #ff8a8a;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #d95757;
  box-shadow: 0 0 0 3px rgba(217, 87, 87, 0.14);
}

.field.has-error .field-error {
  display: block;
}

/* Submit feedback */
.form-status {
  display: none;
  gap: 0.85rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
}

.form-status.is-visible {
  display: flex;
}

.form-status svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-top: 0.1rem;
}

.form-status--ok {
  color: #b9ecce;
  background: rgba(30, 122, 69, 0.16);
  box-shadow: inset 0 0 0 1px rgba(63, 203, 120, 0.3);
}

.form-status--err {
  color: #ffc4c4;
  background: rgba(217, 87, 87, 0.12);
  box-shadow: inset 0 0 0 1px rgba(217, 87, 87, 0.35);
}

.form-status strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
}

/* Inline single-field form (newsletter / notify) */
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 30rem;
  text-align: left;
}

.inline-form .field {
  flex: 1 1 14rem;
}

/* Status message drops to its own row below the input and button */
.inline-form .form-status {
  flex: 1 0 100%;
  margin-top: 0.4rem;
}

/* Contact detail list */
.contact-list {
  display: grid;
  gap: 1.35rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-list .icon-box {
  width: 40px;
  height: 40px;
  margin: 0;
}

.contact-list .icon-box svg {
  width: 19px;
  height: 19px;
}

.contact-list dt {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.2rem;
}

.contact-list dd {
  margin: 0;
  color: var(--silver-100);
  font-weight: 500;
}

.contact-list dd a:hover {
  color: var(--green-300);
}

/* 14. CTA band ============================================================= */

.cta-band {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(140deg, var(--green-900) 0%, var(--ink-850) 55%, var(--ink-900) 100%);
  border-block: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -55%;
  width: 46rem;
  height: 46rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(38, 155, 86, 0.24), transparent 60%);
  pointer-events: none;
}

.cta-band > .wrap {
  position: relative;
}

.cta-band h2 {
  max-width: 30rem;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

.cta-band .lead {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* 15. Footer =============================================================== */

.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  background: var(--ink-850);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand img {
  width: 148px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 26rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.footer-col h4 {
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-300);
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--text-dim);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--silver-100);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-mute);
}

.footer-bottom ul {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom a:hover {
  color: var(--text-dim);
}

/* 16. Motion & reveal ====================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

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

/* Elements are visible by default if JS never runs */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

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

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

  .btn:hover,
  .card--hover:hover,
  .lab-card:hover {
    transform: none;
  }
}

/* 17. Utilities ============================================================ */

.stack > * + * {
  margin-top: var(--stack, 1rem);
}

.stack-sm {
  --stack: 0.6rem;
}
.stack-lg {
  --stack: 1.75rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-sm {
  margin-top: 0.75rem;
}
.mt-md {
  margin-top: 1.5rem;
}
.mt-lg {
  margin-top: 2.5rem;
}
.mb-md {
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .cta-band {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
