:root {
  --ink: #111816;
  --ink-2: #23302c;
  --muted: #62716c;
  --line: #dce5e0;
  --paper: #f5f7f3;
  --white: #ffffff;
  --forest: #12342f;
  --deep: #0b1413;
  --teal: #0f7a68;
  --aqua: #8ce8d1;
  --copper: #bd7443;
  --steel: #2f586b;
  --shadow: 0 24px 80px rgba(17, 24, 22, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.dashboard-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(245, 247, 243, 0.94);
  box-shadow: 0 12px 38px rgba(17, 24, 22, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 900;
}

.brand-wordmark {
  width: clamp(230px, 20vw, 310px);
  height: auto;
  flex: 0 1 clamp(230px, 20vw, 310px);
  overflow: visible;
}

.logo-grid path,
.logo-letter path,
.logo-trace path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-grid path {
  stroke: rgba(140, 232, 209, 0.34);
  stroke-width: 2;
}

.logo-letter path {
  stroke: var(--white);
  stroke-width: 9;
}

.logo-trace path {
  stroke: var(--teal);
  stroke-width: 4;
}

.logo-node circle {
  fill: var(--copper);
  stroke: var(--white);
  stroke-width: 2;
}

.logo-inc,
.logo-subline {
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: 0.12em;
  fill: var(--white);
}

.logo-inc {
  font-size: 15px;
}

.logo-subline {
  font-size: 9px;
  fill: rgba(140, 232, 209, 0.9);
}

.site-header.is-scrolled .logo-letter path,
.site-header.is-open .logo-letter path,
.dashboard-sidebar .logo-letter path {
  stroke: var(--deep);
}

.site-header.is-scrolled .logo-inc,
.site-header.is-open .logo-inc,
.dashboard-sidebar .logo-inc {
  fill: var(--deep);
}

.site-header.is-scrolled .logo-node circle,
.site-header.is-open .logo-node circle,
.dashboard-sidebar .logo-node circle {
  stroke: var(--deep);
}

.site-header.is-scrolled .logo-grid path,
.site-header.is-open .logo-grid path,
.dashboard-sidebar .logo-grid path {
  stroke: rgba(22, 155, 138, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 750;
}

.site-nav a {
  opacity: 0.84;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 122, 104, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 122, 104, 0.24);
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.button-danger {
  border-color: rgba(155, 47, 34, 0.24);
  color: #9b2f22;
  background: #fff5f2;
  box-shadow: none;
}

.full-width {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(112deg, rgba(7, 15, 14, 0.92) 0%, rgba(12, 30, 28, 0.76) 45%, rgba(47, 88, 107, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 15, 14, 0.62) 0%, rgba(7, 15, 14, 0.04) 58%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 92vh;
  align-items: center;
  padding: 116px clamp(20px, 6vw, 86px) 82px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--aqua);
}

.hero-eyebrow {
  margin-bottom: 18px;
  font-size: clamp(0.86rem, 1vw, 1rem);
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.hero-lede {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.hero-actions,
.portal-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 750;
}

.services-showcase {
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(15, 122, 104, 0.12), transparent 60%),
    linear-gradient(180deg, var(--deep), rgba(18, 52, 47, 0.97));
}

.services-heading {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.services-heading h2 {
  color: var(--white);
}

.services-lede {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  max-width: 620px;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(140, 232, 209, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(18, 52, 47, 0.45);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), border-color 340ms ease, box-shadow 340ms ease;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 232, 209, 0.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 232, 209, 0.08),
    inset 0 1px 0 rgba(140, 232, 209, 0.1);
}

.showcase-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 200;
  overflow: hidden;
  border-bottom: 1px solid rgba(140, 232, 209, 0.08);
}

.svc-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.showcase-content {
  padding: clamp(22px, 3vw, 32px);
  flex: 1;
}

.showcase-num {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--aqua);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.showcase-card h3 {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 10px;
}

.showcase-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

.showcase-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.showcase-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  line-height: 1.55;
}

.showcase-list li + li {
  margin-top: 8px;
}

.showcase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--copper));
  opacity: 0.7;
}

/* ---- SVG Animations ---- */

@keyframes traceDash {
  to { stroke-dashoffset: -28; }
}

.trace-anim {
  animation: traceDash 4s linear infinite;
}

.trace-delay-1 { animation-delay: -1.3s; }
.trace-delay-2 { animation-delay: -2.6s; }

@keyframes nodePulse {
  0%, 100% { opacity: 1; r: 5; }
  50% { opacity: 0.5; r: 7; }
}

.node-pulse {
  animation: nodePulse 2.4s ease-in-out infinite;
}

.pulse-delay-1 { animation-delay: -0.8s; }
.pulse-delay-2 { animation-delay: -1.6s; }

@keyframes codeLineShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.code-line-anim {
  animation: codeLineShimmer 3s ease-in-out infinite;
}

.line-delay-1 { animation-delay: -0.6s; }
.line-delay-2 { animation-delay: -1.2s; }
.line-delay-3 { animation-delay: -1.8s; }

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor-blink {
  animation: cursorBlink 1s step-end infinite;
}

@keyframes particleFlow {
  0% { opacity: 0; transform: translateX(-10px); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(30px); }
}

.particle-flow {
  animation: particleFlow 2.5s ease-in-out infinite;
}

.particle-delay-1 { animation-delay: -1.2s; }

@keyframes flowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.flow-anim {
  animation: flowPulse 2.8s ease-in-out infinite;
}

.flow-delay-1 { animation-delay: -1.4s; }

@keyframes gearSpin {
  to { transform: rotate(360deg); }
}

.gear-spin {
  transform-origin: 164px 68px;
  animation: gearSpin 6s linear infinite;
}

@keyframes clockTick {
  to { transform: rotate(360deg); }
}

.clock-hand {
  transform-origin: 48px 155px;
  animation: clockTick 8s linear infinite;
}


.access-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.6fr) auto;
  gap: clamp(22px, 5vw, 60px);
  align-items: end;
  background: var(--paper);
}

.access-section h2 {
  margin-bottom: 0;
}

.access-section p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 6vw, 86px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.statement-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.58fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  background: var(--white);
}

.statement h2 {
  max-width: 1040px;
}

.statement-aside {
  padding: 26px;
  border-left: 3px solid var(--teal);
  background: var(--paper);
}

.statement-aside p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.capabilities-section {
  background: var(--paper);
}

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

.capability-card,
.engagement-grid article,
.portal-tile,
.admin-panel,
.employee-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(17, 24, 22, 0.05);
}

.capability-card {
  min-height: 360px;
  padding: 26px;
}

.capability-card.emphasized {
  color: var(--white);
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(15, 122, 104, 0.95), rgba(18, 52, 47, 0.98)),
    var(--forest);
  box-shadow: var(--shadow);
}

.capability-card.emphasized p,
.capability-card.emphasized li {
  color: rgba(255, 255, 255, 0.76);
}

.capability-number {
  display: block;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 950;
}

.emphasized .capability-number {
  color: var(--aqua);
}

.capability-card p,
.capability-card li,
.engagement-grid p,
.platform-copy p,
.solution-detail p,
.portal-copy p,
.contact-panel p,
.portal-tile p,
.timeline p {
  color: var(--muted);
}

.capability-card ul {
  margin: 24px 0 0;
  padding-left: 18px;
}

.capability-card li + li {
  margin-top: 9px;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 20, 19, 0.98), rgba(18, 52, 47, 0.96)),
    var(--deep);
}

.platform-copy {
  position: sticky;
  top: 108px;
}

.platform-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.platform-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(280px, 1fr);
  gap: 14px;
}

.platform-tabs {
  display: grid;
  gap: 10px;
}

.solution-row {
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: left;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.solution-row.is-active {
  border-color: rgba(140, 232, 209, 0.48);
  background: rgba(140, 232, 209, 0.12);
}

.solution-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--aqua);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.solution-row strong {
  display: block;
  line-height: 1.22;
}

.solution-detail {
  min-height: 420px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 18%, rgba(189, 116, 67, 0.32), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.solution-detail p {
  color: rgba(255, 255, 255, 0.72);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.metric-row div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
}

.engagements-section {
  background: var(--white);
}

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

.engagement-grid article {
  padding: 28px;
}

.engagement-grid span {
  display: inline-flex;
  margin-top: 22px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(15, 122, 104, 0.1);
  font-size: 0.8rem;
  font-weight: 950;
}

.portal-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 52, 47, 0.94), rgba(11, 20, 19, 0.98)),
    var(--deep);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.portal-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.portal-mockup {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.mockup-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: #dce5e0;
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper);
}

.mockup-body {
  display: grid;
  min-height: 430px;
  grid-template-columns: 168px 1fr;
}

.mockup-body aside {
  padding: 22px;
  color: var(--white);
  background: var(--deep);
}

.mockup-body aside strong,
.mockup-body aside span {
  display: block;
}

.mockup-body aside span {
  height: 12px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.mockup-body aside .active {
  background: var(--aqua);
}

.mockup-body main {
  padding: 24px;
}

.mockup-header {
  height: 56px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(15, 122, 104, 0.18), rgba(47, 88, 107, 0.08));
}

.mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mockup-cards div,
.mockup-chart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.mockup-cards div {
  padding: 16px;
  color: var(--ink);
}

.mockup-cards small,
.mockup-cards strong {
  display: block;
}

.mockup-cards small {
  color: var(--muted);
}

.mockup-chart {
  min-height: 178px;
  margin-top: 14px;
  background:
    linear-gradient(90deg, rgba(15, 122, 104, 0.14), transparent 46%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(17, 24, 22, 0.05) 43px 44px),
    var(--white);
}

.contact-section {
  background: var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-direct {
  width: fit-content;
  margin-top: 24px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 122, 104, 0.18);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(15, 122, 104, 0.08);
  font-weight: 850;
}

.contact-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(15, 122, 104, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(15, 122, 104, 0.08), rgba(47, 88, 107, 0.04)),
    var(--paper);
}

.contact-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-card strong {
  max-width: 360px;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.contact-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-dialog::backdrop {
  background: rgba(11, 20, 19, 0.66);
  backdrop-filter: blur(8px);
}

.contact-card-form,
.contact-form {
  display: grid;
  gap: 16px;
}

.contact-card-form {
  position: relative;
  padding: clamp(28px, 5vw, 46px);
  background:
    linear-gradient(180deg, rgba(245, 247, 243, 0.72), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.contact-card-form h2 {
  margin-bottom: 4px;
  padding-right: 54px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card-form label,
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.contact-card-form input,
.contact-card-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}

.contact-card-form input:focus,
.contact-card-form textarea:focus {
  outline: 3px solid rgba(15, 122, 104, 0.16);
  border-color: rgba(15, 122, 104, 0.54);
}

.contact-message-field {
  grid-column: 1 / -1;
}

.contact-status {
  min-height: 22px;
  margin: 0;
  font-weight: 850;
}

.contact-status.is-success {
  color: var(--teal);
}

.contact-status.is-error {
  color: #9b2f22;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--deep);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-contact {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.login-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-dialog::backdrop {
  background: rgba(11, 20, 19, 0.62);
  backdrop-filter: blur(6px);
}

.login-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--white);
}

.login-card h2 {
  margin-bottom: 2px;
  font-size: 2rem;
}

.login-card label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 850;
}

.login-card input,
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}

.admin-panel textarea {
  resize: vertical;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #9b2f22;
  font-weight: 850;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-message {
  min-height: 20px;
}

.admin-message.is-success {
  color: var(--teal);
  font-weight: 850;
}

.admin-message.is-error {
  color: #9b2f22;
  font-weight: 850;
}

.employee-message {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.mfa-setup {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(15, 122, 104, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 122, 104, 0.06);
}

.mfa-setup p {
  margin: 0;
  color: var(--muted);
}

.mfa-qr {
  width: min(320px, 100%);
  height: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  image-rendering: pixelated;
}

.mfa-setup code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
}

.mfa-setup summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 850;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-size: 1.45rem;
}

.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
}

.dashboard {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 284px 1fr;
  background:
    linear-gradient(145deg, #eef4ef 0%, #f8faf6 48%, #edf3f4 100%);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, #0b1413, #12342f);
  box-shadow: 16px 0 42px rgba(17, 24, 22, 0.12);
}

.dashboard-sidebar .logo-letter path {
  stroke: var(--white);
}

.dashboard-sidebar .logo-inc {
  fill: var(--white);
}

.dashboard-sidebar .logo-node circle {
  stroke: var(--white);
}

.dashboard-sidebar .logo-subline {
  fill: var(--aqua);
}

.dashboard-sidebar nav {
  display: grid;
  gap: 8px;
}

.dash-nav {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-weight: 850;
}

.dash-nav.is-active {
  border-color: rgba(140, 232, 209, 0.36);
  color: var(--white);
  background: rgba(140, 232, 209, 0.14);
}

.dashboard-sidebar .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-main {
  min-width: 0;
  overflow: auto;
  padding: 32px clamp(20px, 4vw, 56px);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.dashboard-header h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

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

.portal-tile {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
}

.portal-tile::before,
.admin-panel::before,
.employee-table::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--steel));
}

.portal-tile.is-locked {
  border-color: rgba(189, 116, 67, 0.34);
  background:
    linear-gradient(135deg, rgba(189, 116, 67, 0.1), rgba(255, 255, 255, 0)),
    var(--white);
}

.portal-tile p {
  color: var(--muted);
}

.portal-tile .button {
  margin-top: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 1.2fr);
  gap: 18px;
}

.admin-panel {
  padding: 24px;
}

.admin-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 850;
}

.admin-panel .checkbox-label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.admin-panel .checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.employee-table {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.employee-table-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.employee-table-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.employee-table-header span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.employee-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(108px, 0.45fr) minmax(108px, 0.45fr) minmax(150px, 0.65fr) auto minmax(220px, auto);
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.employee-row-fields {
  display: contents;
}

.employee-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inline-action-form,
.inline-delete-form {
  display: contents;
}

.employee-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.employee-row input,
.employee-row select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.employee-row:last-child {
  border-bottom: 0;
}

.employee-row strong,
.employee-row span {
  display: block;
}

.employee-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.employee-row .mfa-pill {
  margin-top: 6px;
  color: var(--teal);
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(15, 122, 104, 0.1);
  font-size: 0.78rem;
  font-weight: 950;
}

@media (max-width: 1100px) {
  .hero-inner,
  .statement-section,
  .platform-section,
  .platform-panel,
  .portal-layout,
  .contact-panel,
  .access-section,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .platform-copy {
    position: static;
  }

  .capability-grid,
  .engagement-grid,
  .portal-grid,
  .showcase-grid,
  .employee-row {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: auto;
  }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .dashboard-sidebar nav {
    display: flex;
    min-width: max-content;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-wordmark {
    width: 188px;
    flex-basis: 188px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 112px 20px 76px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
  }

  .metric-row,
  .mockup-body,
  .mockup-cards,
  .contact-form-grid,
  .employee-row {
    grid-template-columns: 1fr;
  }

  .mockup-body aside {
    display: none;
  }

  .site-footer {
    display: grid;
  }

  .dashboard-sidebar {
    padding: 14px;
  }
}

/* Temporary upload space */
.temp-space {
  display: grid;
  gap: 20px;
}

.temp-intro h3 {
  margin: 0 0 6px;
}

.temp-upload {
  display: grid;
  gap: 14px;
}

.temp-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 34px 20px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.temp-dropzone:hover,
.temp-dropzone.is-dragover {
  border-color: var(--teal);
  background: rgba(15, 122, 104, 0.06);
}

.temp-dropzone-title {
  font-weight: 800;
  color: var(--ink);
}

.temp-dropzone-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.temp-progress {
  display: grid;
  gap: 6px;
}

.temp-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.temp-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--teal);
  transition: width 0.15s ease;
}

.temp-progress-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.temp-message {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.temp-message.is-error {
  color: var(--copper);
}

.temp-message.is-success {
  color: var(--teal);
}

.temp-list {
  display: grid;
  gap: 10px;
}

.temp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.temp-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.temp-row-name {
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}

.temp-row-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.temp-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.temp-row-actions .button {
  text-decoration: none;
}

/* Temporary space usage donut */
.temp-usage-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.temp-usage-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.temp-usage {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.temp-donut {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
}

.temp-donut-pct {
  font-size: 1.55rem;
  font-weight: 950;
  fill: var(--ink);
}

.temp-donut-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted);
}

.temp-usage-legend {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.temp-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.temp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.temp-dot-used {
  background: var(--teal);
}

.temp-dot-free {
  background: var(--line);
}

.temp-usage-total {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Staged files (before upload) */
.temp-upload-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.temp-staged {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.temp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.85rem;
  color: var(--ink);
}

.temp-chip small {
  color: var(--muted);
}

.temp-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.temp-chip-remove:hover {
  background: var(--copper);
  color: var(--white);
}

/* Uploaded files table */
.temp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.temp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.temp-table th,
.temp-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.temp-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

.temp-table tbody tr:last-child td {
  border-bottom: none;
}

.temp-td-name {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--ink);
}

.temp-td-by {
  color: var(--muted);
}

.temp-status-onserver {
  color: var(--muted);
  font-size: 0.82rem;
}

.temp-td-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.temp-td-actions .button {
  text-decoration: none;
}

@media (max-width: 760px) {
  .temp-table th:nth-child(3),
  .temp-table td:nth-child(3),
  .temp-table th:nth-child(4),
  .temp-table td:nth-child(4) {
    display: none;
  }
}
