/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #161b22 0%, #1a1f2e 50%, #1b1533 100%);
  border-bottom: 1px solid #30363d;
  padding: 3rem 1.5rem;
  text-align: center;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #58a6ff, #bc8cff, #f778ba);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

header .subtitle {
  color: #8b949e;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #c9d1d9;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
}

nav a:hover {
  background: #1f2937;
  color: #58a6ff;
  text-decoration: none;
}

nav a.active {
  background: #1f6feb33;
  color: #58a6ff;
}

/* ===== Main Container ===== */
main {
  max-width: 1060px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #30363d;
}

/* ===== Cards (generic) ===== */
.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.2s, transform 0.15s;
}

.card:hover {
  border-color: #58a6ff;
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #e6edf3;
}

.card p, .card li {
  color: #c9d1d9;
  line-height: 1.7;
}

.card ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.card ul li { margin-bottom: 0.3rem; }

/* ===== Overview / Hero Card ===== */
.overview {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.overview p {
  color: #c9d1d9;
  margin-bottom: 0.8rem;
}

.overview p:last-child { margin-bottom: 0; }

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

/* ===== Team Member Cards ===== */
.member-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.15s;
}

.member-card:hover {
  border-color: #58a6ff;
  transform: translateY(-2px);
}

.member-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #58a6ff;
  margin-bottom: 1rem;
  overflow: hidden;
}

.member-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card .uid {
  font-size: 0.82rem;
  color: #8b949e;
  margin-bottom: 0.2rem;
}

.member-card .name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.member-card .info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8b949e;
  margin-bottom: 0.35rem;
}

.member-card .info-row .label {
  color: #6e7681;
  min-width: 75px;
  flex-shrink: 0;
}

.wg-key {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.72rem;
  color: #7ee787;
  background: #0d1117;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  word-break: break-all;
  margin-top: 0.3rem;
}

/* ===== Pipeline / Timeline ===== */
.pipeline {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.pipeline-step {
  flex: 1;
  min-width: 200px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.2rem;
  position: relative;
  text-align: center;
}

.pipeline-step .step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: #1f6feb;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.pipeline-step h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.pipeline-step p {
  font-size: 0.85rem;
  color: #8b949e;
}

/* ===== Tags / Badges ===== */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.badge-blue { background: #1f6feb33; color: #58a6ff; }
.badge-green { background: #23863633; color: #7ee787; }
.badge-purple { background: #8957e533; color: #bc8cff; }
.badge-orange { background: #d2992233; color: #e3b341; }

/* ===== Resource Links ===== */
.resource-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s;
}

.resource-link:hover {
  border-color: #58a6ff;
  text-decoration: none;
}

.resource-link .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.resource-link .text strong {
  display: block;
  font-size: 0.95rem;
  color: #e6edf3;
}

.resource-link .text span {
  font-size: 0.82rem;
  color: #8b949e;
}

/* ===== Tables ===== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.styled-table th,
.styled-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #30363d;
  font-size: 0.9rem;
}

.styled-table th {
  background: #161b22;
  color: #8b949e;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.styled-table td { color: #c9d1d9; }
.styled-table tr:hover td { background: #161b2288; }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #484f58;
  font-size: 0.85rem;
  border-top: 1px solid #30363d;
  margin-top: 3rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header h1 { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  nav { gap: 0.3rem; }
  nav a { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
}
