:root {
  --bg: #030712;
  --surface: rgba(9, 16, 32, 0.85);
  --card: rgba(10, 16, 33, 0.95);
  --accent: #4db5ff;
  --accent-secondary: #f3b15a;
  --text: #f5f7ff;
  --muted: #9fb4d9;
  --border: rgba(255, 255, 255, 0.08);
  --danger: #ff6b6b;
  --success: #2dd4bf;
  --warning: #fbbf24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #050c1c, #03050f 40%, #05060f 100%);
  color: var(--text);
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  opacity: 0.08;
  z-index: 0;
}

main,
header {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 6vw, 3rem);
  background: rgba(5, 9, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.2em;
}

.brand-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: var(--accent);
  color: #04101a;
  box-shadow: 0 10px 30px rgba(77, 181, 255, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.board-hero {
  padding: clamp(2rem, 8vw, 4rem) clamp(1.25rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.board-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.board-hero p {
  color: var(--muted);
  max-width: 60ch;
}

.legend {
  background: var(--surface);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.legend-title {
  margin: 0 0 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge.immediate {
  background: rgba(45, 212, 191, 0.18);
  color: var(--success);
}

.badge.scheduled {
  background: rgba(251, 191, 36, 0.2);
  color: var(--warning);
}

.badge.urgent {
  background: rgba(255, 65, 65, 0.25);
  color: var(--danger);
}

.board-grid {
  padding: 0 clamp(1.25rem, 6vw, 4rem) 4rem;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1600px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.contract-card {
  background: var(--card);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25);
  min-height: 360px;
}

.image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-wrap .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.card-type {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.card-title {
  margin: 0;
  font-size: 1.35rem;
}

.card-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.card-meta span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.card-meta strong {
  display: block;
  font-size: 1rem;
}

.card-summary {
  color: var(--muted);
  flex: 1;
}

.status {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}


body.modal-open {
  overflow: hidden;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(7, 12, 25, 0.95);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  width: min(90vw, 420px);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.brief-modal {
  width: min(94vw, 520px);
}

.brief-summary {
  color: var(--muted);
  margin-bottom: 1rem;
}

.brief-meta {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.6rem;
}

.brief-meta li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.4rem;
}

.brief-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--muted);
}

input {
  background: rgba(2, 6, 16, 0.8);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
