/* ==========================================================================
   Verdentic / Micro-Connectors — Global Design System
   --------------------------------------------------------------------------
   To change site colors, edit the CSS variables in the :root block below.
   Everything on every page reads from these tokens.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Properties — Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary:    #080810;
  --bg-card:       #15120D;
  --bg-card-hover: #1C1710;
  --bg-elevated:   #231C12;

  /* Accents — gold range matches the Verdentic lemniscate logo */
  --accent-green:       #D97706;
  --accent-green-deep:  #B45309;
  --accent-green-light: #FDE68A;
  --accent-green-dim:   #A16207;
  --accent-green-glow:  rgba(217, 119, 6, 0.15);
  --accent-blue:        #3B82F6;
  --accent-blue-dim:    #2563EB;

  /* Text */
  --text-primary:  #F5F0E8;
  --text-secondary:#A89F8D;
  --text-muted:    #7A715F;

  /* Borders */
  --border:        #2A2318;
  --border-active: #3F3623;

  /* Sizing */
  --radius-card:   10px;
  --radius-btn:    7px;
  --radius-sm:     4px;

  /* Shadows — deep and soft, never harsh */
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-deep:   0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-green:  0 0 24px rgba(217, 119, 6, 0.18);

  /* Motion — ease-out entering, ease-in exiting, never linear */
  --transition:    180ms ease-out;
  --transition-md: 280ms ease-out;

  /* Layout */
  --max-width:     1200px;
  --section-py:    6rem;
  --nav-height:    72px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-py) 0; }
.section--alt { background-color: rgba(21, 18, 13, 0.5); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 0.875rem;
}

.section-title { margin-bottom: 1rem; }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.7;
}

.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

/* --------------------------------------------------------------------------
   Intro Splash — lemniscate draws itself on first visit per session.
   Hidden by default; motion.js shows it only when it should run.
   -------------------------------------------------------------------------- */
.splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.splash--run { display: flex; }

.splash--done {
  opacity: 0;
  transition: opacity 0.4s ease-in;
  pointer-events: none;
}

.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.splash__mark { width: min(200px, 42vw); height: auto; }

.splash__word {
  font-size: clamp(1rem, 2.6vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* visually centre despite trailing tracking */
  color: var(--text-primary);
}

@media (prefers-reduced-motion: no-preference) {
  .splash--run .splash__arcs polyline {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: splash-draw var(--dur, 1.2s) cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
    animation-delay: var(--d);
  }
  .splash--run .splash__eye {
    opacity: 0;
    transform-origin: 120px 70px;
    animation: splash-dot 0.5s ease-out forwards;
    animation-delay: 1.55s;
  }
  .splash--run .splash__word {
    opacity: 0;
    animation: splash-word 0.45s ease-out forwards;
    animation-delay: 1.8s;
  }
}

@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-dot {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.8); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splash-word {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background-color: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  cursor: pointer;
}

.nav__logo-mark {
  width: 42px;
  height: 29px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo-mark svg { width: 100%; height: auto; }

.nav__wordmark span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  margin-left: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  cursor: pointer;
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--text-primary); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-md), opacity var(--transition-md);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition-md),
              transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:active { transform: translateY(1px); transition-timing-function: ease-in; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-green-deep), var(--accent-green));
  color: #15100A;
  border-color: rgba(253, 230, 138, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  box-shadow: var(--shadow-green);
}

.btn--secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-active);
}

.btn--secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--accent-green);
  color: var(--accent-green-light);
}

.btn--lg {
  padding: 0.9375rem 1.875rem;
  font-size: 1rem;
  border-radius: var(--radius-card);
}

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

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Grid Layouts
   -------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(217, 119, 6, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 65%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--accent-green-glow);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green-light);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__badge-dot { animation: pulse 2.4s ease-in-out infinite; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero__headline {
  font-size: clamp(2.125rem, 4.6vw, 3.625rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__headline em {
  font-style: normal;
  background: linear-gradient(110deg, var(--accent-green-deep), var(--accent-green) 45%, var(--accent-green-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero__trust-divider { width: 1px; height: 14px; background: var(--border); }

/* --------------------------------------------------------------------------
   Animated Hero Pipeline ("pipe")
   --------------------------------------------------------------------------
   Base styles = the FINISHED state (file delivered, stages lit, ERP rows in,
   badge stamped). With JS + motion allowed, .is-run replays the sequence:

     0.0s  file chip slides in
     1.0s  Extract lights up   (tick at 1.30s)
     2.2s  Classify lights up  (tick at 2.50s)
     3.4s  Validate lights up  (tick at 3.70s)
     4.5s  ERP card materialises
     4.85s item rows appear line by line (0.22s apart)
     6.0s  "Approved · Audit logged" badge stamps in
     ~10.5s loop restarts (4s pause after the badge)
   -------------------------------------------------------------------------- */
.pipe {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.375rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.pipe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(217, 119, 6, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.pipe__lane { position: relative; padding-bottom: 0.875rem; }

.pipe__rail {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 66px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

/* The travelling file chip */
.pipe__file {
  position: absolute;
  top: 0;
  left: 83.3%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(253, 230, 138, 0.4);
  border-radius: 7px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green-light);
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.2);
  z-index: 3;
  opacity: 0; /* final state: file already delivered */
}

.pipe__file svg { width: 13px; height: 13px; flex-shrink: 0; }

/* The three stage nodes */
.pipe__stages {
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 2;
  padding-top: 40px;
}

.pipe__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.pipe__node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0.7rem;
}

.pipe__node > svg {
  width: 22px;
  height: 22px;
  color: var(--accent-green);
}

.pipe__tick {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipe__tick svg { width: 10px; height: 10px; color: #15100A; }

.pipe__stage-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* The ERP destination card */
.pipe__erp {
  margin-top: 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9375rem 1.125rem 1.0625rem;
  position: relative;
}

.pipe__erp-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.pipe__erp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.pipe__erp-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.875rem;
  align-items: baseline;
  padding: 0.4375rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pipe__erp-row .pn {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.72rem;
}

.pipe__erp-type {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-green);
  white-space: nowrap;
}

.pipe__badge {
  position: absolute;
  top: 0.6875rem;
  right: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.6875rem;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.55);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-green-light);
  transform: rotate(-2deg);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.18);
}

.pipe__badge svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Replay sequence — JS toggles .is-run; gated for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .pipe.is-run .pipe__file {
    animation: pipe-file 6.4s linear both;
  }
  .pipe.is-run .pipe__node {
    animation: pipe-node 0.4s ease-out backwards;
    animation-delay: calc(1s + var(--i) * 1.2s);
  }
  .pipe.is-run .pipe__tick {
    animation: pipe-tick 0.32s ease-out backwards;
    animation-delay: calc(1.3s + var(--i) * 1.2s);
  }
  .pipe.is-run .pipe__erp {
    animation: pipe-erp 0.45s ease-out backwards;
    animation-delay: 4.5s;
  }
  .pipe.is-run .pipe__erp-row {
    animation: pipe-row 0.3s ease-out backwards;
    animation-delay: calc(4.85s + var(--r) * 0.22s);
  }
  .pipe.is-run .pipe__badge {
    animation: pipe-badge 0.4s ease-out backwards;
    animation-delay: 6s;
  }
}

/* Chip path: each keyframe's easing shapes the next leg of travel */
@keyframes pipe-file {
  0%     { left: -14%;  opacity: 0; animation-timing-function: ease-out; }
  3%     { opacity: 1; }
  15.6%  { left: 16.7%; animation-timing-function: ease-out; }  /* arrive Extract */
  20%    { left: 16.7%; animation-timing-function: ease-in-out; }
  34.4%  { left: 50%;   animation-timing-function: ease-in-out; } /* arrive Classify */
  39%    { left: 50%; }
  53.1%  { left: 83.3%; animation-timing-function: ease-in-out; } /* arrive Validate */
  58%    { left: 83.3%; animation-timing-function: ease-in; }
  68%    { left: 108%;  opacity: 1; }                             /* dive to ERP */
  71%    { opacity: 0; }
  100%   { left: 108%;  opacity: 0; }
}

@keyframes pipe-node {
  from {
    border-color: var(--border);
    box-shadow: none;
  }
}

@keyframes pipe-tick {
  from { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.25); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pipe-erp {
  from { opacity: 0; transform: translateY(12px); }
}

@keyframes pipe-row {
  from { opacity: 0; transform: translateX(-10px); }
}

@keyframes pipe-badge {
  from { opacity: 0; transform: rotate(-2deg) scale(1.6); }
  70%  { opacity: 1; transform: rotate(-2deg) scale(0.96); }
  to   { opacity: 1; transform: rotate(-2deg) scale(1); }
}

/* --------------------------------------------------------------------------
   Problem Cards
   -------------------------------------------------------------------------- */
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-md), background-color var(--transition-md),
              transform var(--transition-md), box-shadow var(--transition-md);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #EF4444, #F97316);
  opacity: 0;
  transition: opacity var(--transition-md);
}

.problem-card:hover::before { opacity: 1; }

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.problem-card__stat {
  font-size: 2.25rem;
  font-weight: 800;
  color: #F87171;
  letter-spacing: -0.03em;
  margin-bottom: 0.625rem;
  line-height: 1;
}

.problem-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.problem-card__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}

/* --------------------------------------------------------------------------
   "Follow One File" Journey Strip
   -------------------------------------------------------------------------- */
.journey-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-green-light);
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.15);
}

.journey-file svg { width: 15px; height: 15px; flex-shrink: 0; }

.journey {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  margin-top: 3rem;
}

.journey::before {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(90deg,
    rgba(180, 83, 9, 0.55),
    rgba(217, 119, 6, 0.55),
    rgba(253, 230, 138, 0.55));
  z-index: 0;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.875rem;
  position: relative;
  z-index: 1;
}

.journey-step__dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 1rem;
  transition: border-color var(--transition-md), box-shadow var(--transition-md),
              background-color var(--transition-md);
}

.journey-step:hover .journey-step__dot {
  border-color: var(--accent-green);
  background: var(--accent-green-glow);
  box-shadow: var(--shadow-green);
}

.journey-step__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.375rem;
}

.journey-step__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: none;
}

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.875rem;
  transition: border-color var(--transition-md), background-color var(--transition-md),
              transform var(--transition-md), box-shadow var(--transition-md);
}

.feature-card:hover {
  border-color: rgba(217, 119, 6, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-green);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-green-glow);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card__icon svg {
  width: 21px;
  height: 21px;
  color: var(--accent-green);
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.feature-card__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}

/* --------------------------------------------------------------------------
   Proof Strip — integration logos + counters
   -------------------------------------------------------------------------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.integration-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  text-align: center;
  transition: border-color var(--transition-md), background-color var(--transition-md),
              transform var(--transition-md);
}

.integration-item:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.integration-item__logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-item__logo svg { width: 36px; height: 36px; }

.integration-item__name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 3rem;
}

.metrics-bar__item {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.metrics-bar__item:last-child { border-right: none; }

.metrics-bar__value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.metrics-bar__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  position: relative;
  transition: border-color var(--transition-md), transform var(--transition-md),
              box-shadow var(--transition-md);
}

.pricing-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.pricing-card--featured {
  border-color: rgba(217, 119, 6, 0.6);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06) 0%, var(--bg-card) 40%);
  box-shadow: var(--shadow-green);
}

.pricing-card--featured:hover {
  border-color: var(--accent-green);
  box-shadow: 0 12px 48px rgba(217, 119, 6, 0.22);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-green-deep), var(--accent-green));
  color: #15100A;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.pricing-price { margin-bottom: 0.25rem; }

.pricing-price__amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-price__currency {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: 0.375rem;
  display: inline-block;
  color: var(--text-secondary);
}

.pricing-price__period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: none;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 16px;
  padding: 4rem 3rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-deep), var(--shadow-green);
}

.cta-box__title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.cta-box__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-box__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.125rem;
  max-width: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #070B17;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.875rem;
  max-width: 30ch;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.footer__link:hover { color: var(--accent-green-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal { font-size: 0.8125rem; color: var(--text-muted); }

.footer__legal-links { display: flex; gap: 1.5rem; }

.footer__legal-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
  cursor: pointer;
}

.footer__legal-link:hover { color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Inner Pages — page hero
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(217, 119, 6, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Inner Pages — feature detail (features.html)
   -------------------------------------------------------------------------- */
.feature-detail {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-detail:last-of-type { border-bottom: none; }

.feature-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.feature-detail__content h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.feature-detail__content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: none;
}

.feature-detail__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.feature-detail__table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.feature-detail__table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  line-height: 1.6;
  vertical-align: top;
}

.feature-detail__table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.feature-detail__table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.01);
}

/* --------------------------------------------------------------------------
   Inner Pages — pipeline walkthrough (how-it-works.html)
   -------------------------------------------------------------------------- */
.phase-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.phase-block:last-child { border-bottom: none; }

.phase-block__num {
  text-align: center;
  padding-top: 0.25rem;
  display: flex;
  flex-direction: column;
}

.phase-num-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(217, 119, 6, 0.6);
  box-shadow: var(--shadow-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-green);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.phase-num-line {
  width: 2px;
  background: var(--border);
  margin: 0.5rem auto 0;
  flex: 1;
  min-height: 40px;
}

.phase-block__content h3 {
  font-size: 1.375rem;
  margin-bottom: 0.375rem;
}

.phase-connector-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-green);
  font-family: 'Courier New', monospace;
  background: var(--accent-green-glow);
  border: 1px solid rgba(217, 119, 6, 0.2);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.phase-block__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.phase-data-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.phase-data-box__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.phase-data-box__content {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: none;
}

.phase-data-box--in .phase-data-box__label { color: var(--accent-blue); }
.phase-data-box--process .phase-data-box__label { color: var(--accent-green); }
.phase-data-box--out .phase-data-box__label { color: #A78BFA; }

.phase-why {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(217, 119, 6, 0.04);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}

/* --------------------------------------------------------------------------
   Inner Pages — contact / form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__title {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.contact-info p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-green-glow);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

.contact-detail__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-detail__value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-detail__value a {
  color: var(--accent-green);
  transition: color var(--transition);
}

.contact-detail__value a:hover { color: var(--accent-green-light); }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: none;
}

.form-group { margin-bottom: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

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

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

textarea { resize: vertical; min-height: 120px; }

/* --------------------------------------------------------------------------
   Inline code & badges
   -------------------------------------------------------------------------- */
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.125rem 0.375rem;
  color: var(--accent-green);
}

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

.tag--green {
  background: var(--accent-green-glow);
  color: var(--accent-green);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

/* --------------------------------------------------------------------------
   Scroll-reveal — fade + rise on first entry (motion.js + IntersectionObserver)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-py: 4.5rem; }

  .hero { min-height: 0; padding-top: calc(var(--nav-height) + 3.5rem); }
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__sub { max-width: 100%; }

  .journey { grid-template-columns: repeat(3, 1fr); gap: 2rem 0; }
  .journey::before { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-detail__grid { grid-template-columns: 1fr; gap: 2rem; }
  .phase-block__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-py: 3.5rem;
    --nav-height: 64px;
  }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__wordmark span { display: none; }

  .nav__links.nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 16, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .pipe { padding: 1.125rem 1rem 1rem; }
  .pipe__file { font-size: 0.62rem; padding: 0.3rem 0.5rem; }
  .pipe__node { width: 44px; height: 44px; }
  .pipe__node > svg { width: 18px; height: 18px; }
  .pipe__stage-label { font-size: 0.6rem; letter-spacing: 0.07em; }
  .pipe__rail { top: 60px; }
  .pipe__erp-row { grid-template-columns: 72px 1fr; }
  .pipe__erp-type { display: none; }
  .pipe__badge { position: static; margin-top: 0.75rem; transform: none; }

  .journey { grid-template-columns: repeat(2, 1fr); gap: 2rem 0.5rem; }

  .features-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-bar { grid-template-columns: 1fr; }
  .metrics-bar__item { border-right: none; border-bottom: 1px solid var(--border); }
  .metrics-bar__item:last-child { border-bottom: none; }
  .footer__top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .form-card { padding: 1.75rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .phase-block { grid-template-columns: 1fr; }
  .phase-block__num { flex-direction: row; align-items: center; gap: 1rem; }
  .phase-num-circle { margin: 0; }
  .phase-num-line { display: none; }
}

/* --------------------------------------------------------------------------
   Accessibility — focus visible
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .nav, .footer, .splash { display: none; }
  body { background: white; color: black; }
}
