:root {
  --bg: #020617;
  --bg-deep: #071122;
  --bg-grid: rgba(71, 235, 255, 0.09);
  --panel: rgba(7, 16, 31, 0.72);
  --panel-strong: rgba(10, 20, 38, 0.92);
  --panel-soft: rgba(15, 27, 50, 0.82);
  --ink: #eff7ff;
  --muted: #95a8c7;
  --line: rgba(120, 152, 203, 0.18);
  --accent: #48d9ff;
  --accent-strong: #1aa9ff;
  --accent-soft: rgba(72, 217, 255, 0.16);
  --lime: #6df7c1;
  --lime-soft: rgba(109, 247, 193, 0.16);
  --warning: #ffd36a;
  --warning-soft: rgba(255, 211, 106, 0.16);
  --danger: #ff6f91;
  --danger-soft: rgba(255, 111, 145, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(72, 217, 255, 0.18), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(109, 247, 193, 0.12), transparent 20%),
    radial-gradient(circle at 65% 78%, rgba(26, 169, 255, 0.14), transparent 28%),
    radial-gradient(circle at 38% 42%, rgba(72, 217, 255, 0.08), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 92%);
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(72, 217, 255, 0.04) 28%, transparent 62%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 48%, transparent 100%);
  mix-blend-mode: screen;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1880px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 36px;
}

.hero-actions,
.toolbar-right,
.toolbar-kpis,
.card-actions,
.card-footer,
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel,
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.layout {
  display: grid;
  gap: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 24px;
  min-height: 320px;
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 217, 255, 0.22), transparent 68%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(72, 217, 255, 0.05) 49%, transparent 50%),
    linear-gradient(transparent 0%, rgba(109, 247, 193, 0.05) 49%, transparent 50%);
  background-size: 100% 140px, 140px 100%;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.85), transparent 78%);
}

.hero-copy,
.hero-brand {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 780px;
  min-height: 100%;
}

.hero-title-wrap {
  display: grid;
  gap: 12px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-logo {
  width: min(510px, 98%);
  max-height: 178px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 20px rgba(72, 217, 255, 0.1))
    drop-shadow(0 0 40px rgba(72, 217, 255, 0.05));
}

.hero-copy h1,
.section-heading h2,
.project-card h3,
.empty-state h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f4fbff 0%, #7be8ff 46%, #d5f9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(72, 217, 255, 0.08);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 14px;
  align-items: center;
}

.metric-card {
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 24, 44, 0.96), rgba(8, 16, 30, 0.92));
  border: 1px solid rgba(72, 217, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--lime));
}

.metric-card.primary {
  background: linear-gradient(140deg, rgba(9, 30, 60, 0.96), rgba(7, 16, 31, 0.92));
}

.metric-label,
.search-field span,
.meta-label {
  color: var(--muted);
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.metric-value {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
}

.metric-footnote {
  color: var(--muted);
  font-size: 0.84rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.search-field {
  display: grid;
  gap: 10px;
  flex: 0 1 420px;
}

.search-field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(72, 217, 255, 0.14);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(5, 11, 22, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.toolbar-right {
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1 1 auto;
}

.toolbar-kpis {
  align-items: stretch;
  gap: 16px;
}

.metric-button {
  cursor: pointer;
  text-align: left;
}

.metric-button.active {
  border-color: rgba(72, 217, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(72, 217, 255, 0.1),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

.metric-button:hover,
.metric-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(72, 217, 255, 0.28);
  outline: none;
}

.metric-card.compact {
  min-width: 238px;
  min-height: 88px;
  padding: 12px 18px;
  border-radius: 20px;
}

.metric-card.compact .metric-label {
  font-size: 0.84rem;
}

.metric-card.compact .metric-value {
  font-size: clamp(1.24rem, 1.9vw, 1.72rem);
}

.metric-card.compact .metric-footnote {
  font-size: 0.76rem;
}

.search-field input:focus {
  outline: none;
  border-color: rgba(72, 217, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(72, 217, 255, 0.12);
}

.ghost-button,
.action-button {
  border: 1px solid rgba(72, 217, 255, 0.12);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(10, 20, 38, 0.94);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ghost-button:hover,
.action-button:hover,
.ghost-button:focus-visible,
.action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(72, 217, 255, 0.34);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.action-button.primary,
.live-pill.ready {
  background: linear-gradient(135deg, rgba(72, 217, 255, 0.2), rgba(26, 169, 255, 0.26));
  border-color: rgba(72, 217, 255, 0.34);
}

.live-pill,
.status-chip,
.type-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.live-pill {
  background: rgba(10, 20, 38, 0.92);
  border: 1px solid rgba(72, 217, 255, 0.12);
  color: var(--muted);
  box-shadow: inset 0 0 24px rgba(72, 217, 255, 0.04);
}

.status-banner {
  padding: 18px 22px;
}

.status-banner.danger {
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.12), rgba(9, 18, 34, 0.94));
}

.status-banner p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.board {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  font-size: clamp(1.95rem, 3vw, 3rem);
  text-transform: uppercase;
}

.section-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8, 16, 31, 0.96), rgba(5, 11, 22, 0.92));
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--lime));
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 217, 255, 0.28);
}

.project-head,
.project-meta {
  display: grid;
  gap: 12px;
}

.card-status-actions {
  align-items: center;
}

.project-card h3 {
  font-size: 1.5rem;
}

.project-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.type-chip {
  width: fit-content;
  background: rgba(72, 217, 255, 0.12);
  color: var(--accent);
}

.status-chip.success {
  background: var(--lime-soft);
  color: var(--lime);
}

.status-chip.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-chip.neutral,
.tag-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.heart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(109, 247, 193, 0.4);
  border-bottom-width: 3px;
  background: rgba(109, 247, 193, 0.05);
  color: var(--lime);
  box-shadow: inset 0 -1px 0 rgba(109, 247, 193, 0.7);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.heart-button:hover,
.heart-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(109, 247, 193, 0.7);
  box-shadow:
    inset 0 -1px 0 rgba(109, 247, 193, 0.95),
    0 14px 24px rgba(0, 0, 0, 0.2);
  outline: none;
}

.heart-button svg {
  width: 18px;
  height: 18px;
}

.heart-button path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heart-button.active {
  background: linear-gradient(135deg, rgba(109, 247, 193, 0.28), rgba(109, 247, 193, 0.16));
  border-color: rgba(109, 247, 193, 0.78);
  box-shadow:
    inset 0 -1px 0 rgba(109, 247, 193, 1),
    0 0 0 1px rgba(109, 247, 193, 0.08);
}

.heart-button.active path {
  fill: currentColor;
}

.meta-row {
  display: grid;
  gap: 5px;
}

.meta-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-value,
.meta-value a {
  color: var(--ink);
  font-size: 0.96rem;
  text-decoration: none;
  word-break: break-word;
}

.meta-value a:hover {
  text-decoration: underline;
}

.card-footer {
  align-items: center;
  justify-content: space-between;
}

.card-timestamp {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  padding: 56px 32px;
  text-align: center;
}

.empty-state p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100vw - 24px, 1880px);
    padding-top: 18px;
  }

  .toolbar,
  .toolbar-right,
  .toolbar-kpis,
  .section-heading,
  .hero-kicker {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .toolbar {
    padding: 22px;
  }

  .search-field {
    flex-basis: auto;
  }
}

@media (max-width: 720px) {
  .hero-brand-logo {
    width: min(340px, 88vw);
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
    white-space: normal;
  }

  .hero-metrics,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .card-footer,
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
