:root {
  color-scheme: dark;
  --bg: #08111d;
  --bg-soft: #102238;
  --panel: rgba(10, 25, 43, 0.88);
  --panel-strong: rgba(12, 31, 52, 0.98);
  --text: #f4f8fb;
  --muted: #a8bfd3;
  --line: rgba(151, 187, 218, 0.18);
  --accent: #f34c9f;
  --accent-2: #7365ff;
  --shadow: 0 30px 80px rgba(3, 9, 20, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(115, 101, 255, 0.18), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(243, 76, 159, 0.18), transparent 28%),
    linear-gradient(180deg, #0a1524 0%, #08111d 50%, #050b12 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.foss-page {
  min-height: 100vh;
}

.foss-hero {
  padding: 28px 0 56px;
}

.foss-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-mark__text {
  font-size: 1rem;
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8eb4cf;
}

.foss-hero__copy {
  max-width: 760px;
}

.foss-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.foss-hero__subtitle {
  margin: 24px 0 0;
  max-width: 660px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.foss-main {
  padding-bottom: 56px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 24, 41, 0.9), rgba(8, 17, 29, 0.96));
  box-shadow: var(--shadow);
}

.project-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(243, 76, 159, 0.15);
  color: #ffc9e5;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-name {
  color: #d6e6f3;
  font-size: 0.95rem;
  font-weight: 600;
}

.project-card h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.project-card__description {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.project-highlights {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.project-highlights li {
  position: relative;
  padding-left: 18px;
  color: #d5e5f0;
  line-height: 1.6;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn--ghost {
  border: 1px solid rgba(185, 211, 231, 0.24);
  color: #e4eff7;
  background: rgba(255, 255, 255, 0.03);
}

.project-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(160, 193, 220, 0.15);
  background: var(--panel-strong);
}

.project-panel__label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8eb4cf;
}

.project-panel h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.foss-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 0 0 44px;
  color: #a2bed3;
}

.foss-footer a {
  text-decoration: none;
}

.foss-footer a:hover {
  color: white;
}

@media (max-width: 860px) {
  .project-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .foss-hero {
    padding-bottom: 40px;
  }
}
