:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b12;
  color: #eef4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(56, 189, 248, 0.28), transparent 34rem),
    radial-gradient(circle at 90% 0%, rgba(99, 102, 241, 0.22), transparent 26rem),
    linear-gradient(180deg, #0b1020, #080b12 46%);
}

#app {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 18px 14px 42px;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -18px -14px 16px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  color: #8bd3ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

#subtitle,
.muted,
.section-title span {
  color: #93a4bd;
}

#subtitle {
  margin: 8px 0 0;
  font-size: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.tabs button {
  justify-content: center;
  background: transparent;
  color: #9fb0c8;
}

.tabs button.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.95));
  color: white;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.insight,
.panel,
.section-header {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.68));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.insight,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
}

.insight p,
.section-header p,
.hero-panel p {
  margin: 8px 0 0;
  color: #9fb0c8;
  line-height: 1.55;
}

.panel {
  padding: 16px;
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  min-width: 0;
  padding: 15px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: #93a4bd;
  font-size: 12px;
}

.grid.compact .metric strong {
  font-size: 18px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.section-title h2 {
  font-size: 18px;
}

.item {
  display: grid;
  gap: 7px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pill,
.status-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.pill.high {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

.pill.medium {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.pill.low {
  background: rgba(74, 222, 128, 0.14);
  color: #bbf7d0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

button,
.button-link,
.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  padding: 9px 13px;
  background: rgba(148, 163, 184, 0.15);
  color: #e8f0ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

button.primary {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: white;
}

button.large {
  min-height: 46px;
  padding-inline: 18px;
}

button.ghost {
  width: fit-content;
  background: rgba(255, 255, 255, 0.08);
}

.project-item {
  padding: 8px 0;
}

.project-button {
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 15px;
  text-align: left;
  background: rgba(8, 13, 25, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #dce8fa;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(2, 6, 23, 0.58);
  color: #f8fbff;
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.empty {
  color: #93a4bd;
  text-align: center;
  padding: 18px;
}

.error {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

@media (max-width: 560px) {
  .insight,
  .section-header {
    display: grid;
    align-items: stretch;
  }

  .grid {
    gap: 8px;
  }

  .metric strong {
    font-size: 18px;
  }
}
