/* Dark ATS-inspired visual layer: intentionally loaded after the base stylesheet. */
:root {
  --paper: #061f1e;
  --wash: #103b38;
  --white: #f4fbf8;
  --line: rgba(193, 238, 230, 0.16);
  --muted: #aec8c3;
}

body {
  color: var(--white);
  background:
    radial-gradient(circle at 13% -8%, rgba(0, 167, 160, 0.24), transparent 34rem),
    radial-gradient(circle at 96% 34%, rgba(100, 222, 210, 0.12), transparent 28rem),
    linear-gradient(145deg, #061f1e 0%, #082c2a 52%, #041c1c 100%);
  background-attachment: fixed;
}

::selection { background: var(--teal); color: var(--white); }

.site-header {
  background: rgba(6, 31, 30, 0.78);
  backdrop-filter: blur(16px);
}

.hero-visual,
.ats-feature,
.detail-dark,
.system-hero {
  background: linear-gradient(145deg, #032322, #052d2c);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(120deg, rgba(0, 167, 160, 0.1), transparent 52%);
  content: "";
}

.statement,
.services,
.approach,
.closing,
.system-intro,
.system-stages,
.contact-note {
  position: relative;
}

.statement::before,
.approach::before,
.contact-note::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 222, 210, 0.45), transparent);
  content: "";
}

.service-grid,
.contact-grid {
  background: rgba(100, 222, 210, 0.18);
  border-color: rgba(100, 222, 210, 0.23);
}

.service-card,
.contact-card {
  background: linear-gradient(150deg, rgba(15, 55, 53, 0.95), rgba(7, 37, 36, 0.97));
}

.service-card:hover,
.contact-card:hover {
  background: linear-gradient(150deg, #14514d, #0a3432);
}

.service-card-featured,
.service-card-featured:hover {
  background: linear-gradient(150deg, #064746, #06302f);
}

.service-card p,
.statement-grid p,
.approach-list p,
.stage-grid p,
.contact-note > p,
.service-detail p:not(.section-kicker),
.hero-intro {
  color: var(--muted);
}

.ats-board {
  background: #d8eee9;
  box-shadow: 16px 16px 0 rgba(0, 167, 160, 0.38);
}

.board-columns > div { background: #f4fbf8; }

.system-map {
  background: linear-gradient(145deg, #d8eee9, #bfe3dc);
  box-shadow: 14px 14px 0 rgba(0, 167, 160, 0.25);
}

.stage-grid { border-left-color: rgba(193, 238, 230, 0.16); }
.stage-grid article { border-color: rgba(193, 238, 230, 0.16); }

.site-footer { border-top-color: rgba(193, 238, 230, 0.16); }

.menu-toggle > span:not(.sr-only) { background: var(--white); }

@media (max-width: 620px) {
  .ats-board { box-shadow: 9px 9px 0 rgba(0, 167, 160, 0.38); }
  .system-map { box-shadow: 8px 8px 0 rgba(0, 167, 160, 0.25); }
}

/* Apps directory */
.apps-hero { padding-block: 108px 68px; }
.apps-intro { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.75; }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 42px; border: 1px solid rgba(100, 222, 210, 0.22); background: rgba(100, 222, 210, 0.15); }
.app-card { min-height: 420px; padding: clamp(28px, 4vw, 56px); background: linear-gradient(150deg, rgba(15, 55, 53, 0.96), rgba(7, 37, 36, 0.98)); }
.app-card + .app-card { border-left: 1px solid rgba(193, 238, 230, 0.16); }
.app-card h2 { max-width: 440px; margin: 24px 0 14px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.06; letter-spacing: -0.05em; }
.app-card p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.7; }
.app-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(100, 222, 210, 0.45); color: #9cebe1; font-family: "DM Mono", monospace; font-size: 0.85rem; letter-spacing: 0.06em; }
.app-card .hero-actions { margin-top: 34px; }
.app-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: #9cebe1; font-family: "DM Mono", monospace; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; }
.app-status::before { width: 8px; height: 8px; border-radius: 50%; background: #45d7c7; content: ""; }
.app-status.is-pending::before { background: #d3b05e; }
.apps-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-top: 48px; padding: 28px; border-top: 1px solid rgba(100, 222, 210, 0.25); border-bottom: 1px solid rgba(100, 222, 210, 0.25); }
.apps-note strong { font-family: "DM Mono", monospace; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9cebe1; }
.apps-note p { margin: 0; color: var(--muted); line-height: 1.65; }

@media (max-width: 760px) {
  .apps-hero { padding-block: 72px 48px; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 0; }
  .app-card + .app-card { border-top: 1px solid rgba(193, 238, 230, 0.16); border-left: 0; }
  .apps-note { grid-template-columns: 1fr; gap: 10px; }
}
