/* ==================================================================
   Lumix Solutions Careers, design system
   Palette:  bg #0B0B0B · surface #131313 · border #242424
             text #EDEDED · muted #8B8B8B · accent #FF4C4C
   Type:     Space Grotesk (display) · Inter (body) · JetBrains Mono (utility)
   ================================================================== */

:root {
  --bg: #0B0B0B;
  --surface: #131313;
  --surface-2: #181818;
  --border: #242424;
  --border-strong: #333333;
  --text: #EDEDED;
  --muted: #8B8B8B;
  --accent: #FF4C4C;
  --accent-dim: rgba(255, 76, 76, 0.12);
  --ok: #3DD68C;
  --warn: #F5B93D;
  --info: #5BA8FF;
  --offer: #B78BFF;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.font-mono-ui { font-family: 'JetBrains Mono', ui-monospace, monospace; }

::selection { background: var(--accent); color: #0B0B0B; }

/* ---- Focus visibility (accessibility) ---------------------------- */

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Eyebrow: small section label ---------------------------------- */

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease, transform 160ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #0B0B0B; }
.btn-primary:hover { background: #ff6666; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-danger {
  background: transparent;
  color: var(--accent);
  border-color: rgba(255, 76, 76, 0.35);
}
.btn-danger:hover { background: var(--accent-dim); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; border-radius: 6px; }

/* ---- Cards ----------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* ---- Status badges: deployment-state readouts ------------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.badge-ok      { border-color: rgba(61, 214, 140, 0.3); }
.badge-warn    { border-color: rgba(245, 185, 61, 0.3); }
.badge-info    { border-color: rgba(91, 168, 255, 0.3); }
.badge-bad     { border-color: rgba(255, 76, 76, 0.3); }
.badge-offer   { border-color: rgba(183, 139, 255, 0.3); }
.badge-neutral { border-color: var(--border-strong); }

/* Live dot pulse on "open" states */
.status-badge.badge-ok .status-dot,
.dot-live {
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---- Terminal panel (signature element) -------------------------------- */

.terminal {
  background: #0E0E0E;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.terminal-bar .tdot { width: 10px; height: 10px; border-radius: 999px; background: var(--border-strong); }
.terminal-bar .tdot:first-child { background: var(--accent); }
.terminal-title { margin-left: 0.5rem; color: var(--muted); font-size: 0.72rem; }
.terminal-body { padding: 1.1rem 1.25rem; color: #C9C9C9; }
.terminal-body .t-cmd { color: var(--text); }
.terminal-body .t-cmd::before { content: '$ '; color: var(--accent); }
.terminal-body .t-ok::before { content: '✓ '; color: var(--ok); }
.terminal-body .t-dim { color: var(--muted); }
.terminal-body .t-accent { color: var(--accent); }

.cursor-blink {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Hero background: faint grid ---------------------------------------- */

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
}

/* ---- Forms ----------------------------------------------------------------- */

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.field-label .req { color: var(--accent); }

.field-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 140ms ease;
}
.field-input::placeholder { color: #5c5c5c; }
.field-input:focus { border-color: var(--accent); outline: none; }
.field-input.has-error { border-color: var(--accent); }
select.field-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B8B8B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.4rem; }

.field-error {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.35rem;
}
.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---- Process timeline -------------------------------------------------------- */

.process-step { position: relative; padding-left: 3.25rem; }
.process-step::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 2.6rem;
  bottom: -1.4rem;
  width: 1px;
  background: var(--border);
}
.process-step:last-child::before { display: none; }
.process-marker {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
}

/* ---- Tables (admin) ------------------------------------------------------------ */

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr { transition: background-color 120ms ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ---- Admin sidebar --------------------------------------------------------------- */

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 140ms ease, background-color 140ms ease;
  text-decoration: none;
}
.admin-nav-link:hover { color: var(--text); background: var(--surface-2); }
.admin-nav-link.active { color: var(--text); background: var(--accent-dim); }
.admin-nav-link.active svg { color: var(--accent); }

/* ---- Reveal-on-scroll ----------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Flash messages --------------------------------------------------------------- */

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
}
.flash-success { border-color: rgba(61, 214, 140, 0.35); }
.flash-error   { border-color: rgba(255, 76, 76, 0.45); }
.flash-info    { border-color: rgba(91, 168, 255, 0.35); }

/* ---- Prose (job descriptions) ------------------------------------------------------ */

.prose-dark p { margin-bottom: 1rem; color: #C9C9C9; line-height: 1.75; }
.prose-dark li { color: #C9C9C9; }

/* ---- FAQ accordion -------------------------------------------------------- */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease;
}

/* ---- Reduced motion ----------------------------------------------------------------- */

[x-cloak] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
