:root {
  --bg: #06070b;
  --bg-2: #101420;
  --panel: rgba(14, 18, 28, 0.9);
  --panel-strong: rgba(19, 23, 34, 0.96);
  --panel-soft: rgba(24, 29, 41, 0.9);
  --text: #f5f7ff;
  --muted: #a4afc7;
  --border: rgba(255, 255, 255, 0.08);
  --orange: #ff6b1a;
  --orange-2: #ff8d35;
  --orange-3: #ffb15a;
  --green: #76f0bf;
  --shadow: rgba(255, 107, 26, 0.26);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

.space {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 25% 50%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 35%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 80% 70%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 90% 20%, rgba(255,255,255,0.7), transparent);
  opacity: 0.8;
}

.black-hole {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.95;
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.9),
    0 0 120px rgba(255, 107, 26, 0.2);
}

.black-hole-one {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), rgba(0,0,0,0.94) 28%, rgba(0,0,0,1) 62%);
  top: 8%;
  left: 18%;
}

.black-hole-two {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), rgba(0,0,0,0.96) 30%, rgba(0,0,0,1) 70%);
  right: 15%;
  bottom: 8%;
}

.event-horizon {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 140, 70, 0.35);
  box-shadow: inset 0 0 22px rgba(255, 140, 70, 0.12), 0 0 18px rgba(255, 140, 70, 0.1);
}

.ring-one {
  width: 420px;
  height: 420px;
  top: 2%;
  left: 24%;
  transform: rotate(-10deg);
}

.ring-two {
  width: 460px;
  height: 460px;
  bottom: 0%;
  right: 10%;
  transform: rotate(12deg);
}

.topbar,
.page-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-wrap h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-3);
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
}

nav {
  display: flex;
  gap: 0.8rem;
}

button {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #180e09;
  border: none;
  border-radius: 12px;
  padding: 0.82rem 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(255, 107, 26, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 107, 26, 0.5);
  filter: brightness(1.04);
}

button.secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1.2rem;
  margin-bottom: 1.7rem;
}

.hero-copy,
.hero-card {
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.9), rgba(12, 16, 22, 0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.hero-copy {
  padding: 1.5rem 1.4rem;
}

.hero-copy h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  padding: 1rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0.85rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.mini-stat strong {
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.panel {
  background: linear-gradient(180deg, rgba(18, 22, 33, 0.96), rgba(11, 14, 22, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem 1.1rem;
  box-shadow: 0 16px 32px rgba(0,0,0,0.22);
}

.panel-header {
  margin-bottom: 0.9rem;
}

.panel-header h2 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.hidden {
  display: none;
}

.stacked-form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

input, textarea {
  width: 100%;
  margin-top: 0.42rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus, textarea:focus {
  border-color: rgba(255, 107, 26, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.12);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.project-card, .match-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(18, 24, 35, 0.9), rgba(11, 15, 22, 0.9));
  margin-top: 0.9rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover, .match-card:hover {
  transform: translateY(-1px);
}

.project-card.selected {
  border-color: rgba(255, 107, 26, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.6), 0 0 22px rgba(255, 107, 26, 0.12);
}

.project-card h3, .match-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.project-card p, .match-card p {
  color: var(--muted);
  line-height: 1.55;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.project-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.project-card.expanded .project-details {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.8rem;
}

.progress-wrap {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 56%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 18px rgba(255, 107, 26, 0.45);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.45rem;
}

.tag {
  display: inline-block;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.22);
  color: #ffbf8a;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin: 0.15rem 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.match-score {
  display: inline-block;
  margin-bottom: 0.65rem;
  background: rgba(118, 240, 191, 0.12);
  color: var(--green);
  border: 1px solid rgba(118, 240, 191, 0.3);
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-weight: 800;
}

.small-note {
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    width: 100%;
  }

  nav button {
    flex: 1;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }
}