/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* App screenshot palette */
  --bg:          #16171a;   /* main background */
  --surface:     #1e2023;   /* panel / card */
  --surface-hi:  #252729;   /* slightly lighter panel */
  --border:      #2b2d31;   /* subtle border */
  --border-hi:   #353739;

  /* Logo / accent greens */
  --green:       #39e030;   /* bright green from logo */
  --green-mid:   #2ab524;
  --green-dim:   #1b6e17;
  --green-glow:  rgba(57, 224, 48, 0.12);

  /* Orange from app progress bars */
  --orange:      #d4880e;
  --orange-dim:  rgba(212, 136, 14, 0.25);

  --text:        #e8e9eb;
  --text-dim:    #5e6168;
  --text-mid:    #9ea1a8;

  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

/* ── Main ── */
main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 32px;
}

/* ── Hero ── */
.hero {
  margin-bottom: 72px;
}

.tagline {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

/* ── Projects ── */
.projects h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
}

/* Green left accent border for featured card, matching selected row in app */
.project-card.featured {
  border-left: 3px solid var(--green-mid);
  background: linear-gradient(135deg, #1e2a1e 0%, var(--surface) 40%);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #e8e9ec;
  letter-spacing: 0.01em;
}

/* Badge matches the orange progress bar hue from the app */
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(212, 136, 14, 0.3);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
}

.project-desc {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green-dim);
}

/* ── Releases ── */
.releases {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.releases h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.release-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.release-list li {
  display: grid;
  grid-template-columns: 56px 90px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.badge-latest {
  color: var(--green);
  background: rgba(57, 224, 48, 0.08);
  border: 1px solid rgba(57, 224, 48, 0.25);
}

.release-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.release-tag {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.release-tag:hover { color: #5af050; text-decoration: underline; }

.release-date {
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
}

.release-note {
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.5;
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Green button matching app's play/action buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green-dim);
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--green-glow);
  border-color: var(--green-mid);
}

.btn svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.tech-stack {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ── Footer ── */
footer {
  padding: 18px 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
}

.sep { opacity: 0.35; }

/* ── Responsive ── */
@media (max-width: 600px) {
  header { padding: 12px 20px; }
  main { padding: 40px 20px; }
  .project-card { padding: 20px; }
  .project-header { flex-direction: column; }
  .tagline { font-size: 18px; }
  footer { flex-wrap: wrap; }
}
