﻿:root {
  color-scheme: dark;
  --bg: #050403;
  --panel: #11100d;
  --panel-2: #1a1712;
  --line: #3a342a;
  --text: #f4f8ff;
  --muted: #c2b7a5;
  --soft: #8f806a;
  --cyan: #62f2e7;
  --blue: #62f2e7;
  --green: #79ff3d;
  --gold: #f5b84b;
  --red: #ff6b45;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 6%, rgba(245, 184, 75, .20), transparent 26rem),
    radial-gradient(circle at 88% 4%, rgba(98, 242, 231, .10), transparent 23rem),
    radial-gradient(circle at 70% 58%, rgba(255, 107, 69, .07), transparent 24rem),
    linear-gradient(180deg, #050403 0%, #080705 52%, #030302 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(245, 184, 75, .13);
  background: rgba(5, 4, 3, .9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}

.brand,
.nav-links,
.nav-actions,
.actions,
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: max-content;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links,
.nav-actions {
  flex-wrap: wrap;
}

.nav-links a,
.nav-actions a,
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a.active,
.nav-actions a:hover {
  border-color: rgba(245, 184, 75, .22);
  background: rgba(245, 184, 75, .08);
  color: var(--text);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-color: rgba(245, 184, 75, .22);
  background: rgba(245, 184, 75, .08);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.btn.primary {
  border-color: rgba(245, 184, 75, .58);
  background: linear-gradient(180deg, #ffd27a, #b96d1f);
  color: #1a0d03;
  box-shadow: 0 14px 35px rgba(185, 109, 31, .28);
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.hero {
  border-bottom: 1px solid rgba(245, 184, 75, .12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 46px;
  min-height: calc(100vh - 70px);
  padding: 70px 0 50px;
  align-items: center;
}

.page-hero,
.project-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 54px 0 34px;
  border-bottom: 1px solid rgba(245, 184, 75, .12);
}

.project-hero {
  border-bottom: 0;
}

.eyebrow,
.badge,
.filter-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(245, 184, 75, .22);
  border-radius: 999px;
  background: rgba(245, 184, 75, .08);
  color: #ffe1a6;
  font-size: 12px;
  font-weight: 900;
}

.eyebrow {
  padding: 7px 11px;
  font-size: 13px;
}

.badge,
.filter-chip {
  min-height: 28px;
  padding: 5px 9px;
}

.badge.ok {
  border-color: rgba(121, 255, 61, .26);
  background: rgba(121, 255, 61, .09);
  color: #d5ffc8;
}

.badge.warn {
  border-color: rgba(255, 81, 114, .28);
  background: rgba(255, 81, 114, .1);
  color: #ffc6d0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 78px);
}

.page-hero h1,
.project-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 730px;
  margin: 18px 0 26px;
  color: #dbe9f5;
  font-size: clamp(17px, 2vw, 21px);
}

.main {
  padding: 56px 0 76px;
}

.section {
  margin-bottom: 58px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-title p {
  max-width: 600px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.project-card,
.mini-card,
.roadmap-card,
.result-card {
  border: 1px solid rgba(245, 184, 75, .13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 29, 40, .94), rgba(6, 10, 14, .95));
  box-shadow: 0 15px 42px rgba(0, 0, 0, .24);
}

.panel,
.mini-card,
.roadmap-card,
.result-card {
  padding: 20px;
}

.panel h2,
.panel h3,
.mini-card h3,
.roadmap-card h2,
.result-card h3 {
  margin-bottom: 10px;
}

.roadmap-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  border: 1px solid rgba(245, 184, 75, .11);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 8, 12, .46);
}

.timeline-item h3 {
  margin: 10px 0 6px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 366px;
  padding: 18px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.project-card p {
  margin: 10px 0 16px;
}

.project-card .actions {
  margin-top: auto;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: rgba(245, 184, 75, .42);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .32), 0 0 0 1px rgba(98, 242, 231, .12);
  transform: translateY(-2px);
}

.clickable-card:focus-visible {
  outline: 2px solid rgba(98, 242, 231, .72);
  outline-offset: 3px;
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 184, 75, .16);
  border-radius: 8px;
  overflow: hidden;
  background: #050403;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.logo-tile.huge {
  width: 138px;
  height: 138px;
  margin-bottom: 0;
}

.logo-tile.blue {
  background: linear-gradient(145deg, #222019, #050403);
}

.logo-tile.green {
  background: linear-gradient(145deg, #102414, #030604);
}

.logo-tile.gold {
  background: linear-gradient(145deg, #2a220d, #050403);
}

.logo-tile.red {
  background: linear-gradient(145deg, #2b1117, #050303);
}

.hero-card {
  padding: 24px;
  border: 1px solid rgba(245, 184, 75, .18);
  border-radius: 8px;
  background: rgba(9, 17, 24, .9);
  box-shadow: var(--shadow);
}

.hero-card .logo-tile {
  width: 132px;
  height: 132px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stat {
  border: 1px solid rgba(245, 184, 75, .13);
  border-radius: 8px;
  padding: 13px;
  background: rgba(5, 8, 12, .62);
}

.stat strong {
  display: block;
  font-size: 23px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-chip {
  cursor: pointer;
  font-family: inherit;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(245, 184, 75, .55);
  background: rgba(245, 184, 75, .18);
  color: var(--text);
}

.mini-table,
.facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  margin: 14px 0 16px;
}

.mini-table span,
.facts span {
  color: var(--soft);
}

.mini-table strong,
.facts strong {
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(245, 184, 75, .13);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: rgba(9, 17, 24, .88);
}

th,
td {
  border-bottom: 1px solid rgba(245, 184, 75, .1);
  padding: 13px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff1d1;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td a {
  color: #fff5dc;
  font-weight: 850;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-slot {
  overflow: hidden;
  border: 1px solid rgba(245, 184, 75, .13);
  border-radius: 8px;
  background: rgba(5, 8, 12, .58);
}

.media-slot div {
  display: grid;
  place-items: center;
  min-height: 172px;
  border-bottom: 1px dashed rgba(245, 184, 75, .2);
  background:
    linear-gradient(135deg, rgba(245, 184, 75, .08), rgba(5, 8, 12, .76)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px);
  color: #ffe1a6;
  font-weight: 900;
  text-align: center;
}

.media-slot h3,
.media-slot p {
  padding: 0 16px;
}

.media-slot h3 {
  padding-top: 16px;
}

.media-slot p {
  padding-bottom: 16px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  border: 1px solid rgba(245, 184, 75, .11);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 8, 12, .46);
  color: var(--muted);
}

.search-box {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.search-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(245, 184, 75, .24);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(5, 8, 12, .78);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.text-link {
  color: var(--cyan);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.download-modal {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(245, 184, 75, .24);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(18, 29, 40, .98), rgba(6, 10, 14, .98));
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 184, 75, .18);
  border-radius: 8px;
  background: rgba(5, 8, 12, .74);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.platform-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}

.modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid rgba(245, 184, 75, .12);
  background: #030302;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #ffe1a6;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .grid.four,
  .grid.three,
  .timeline,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .nav-actions a:not(.primary) {
    display: none;
  }

  .page-hero,
  .project-hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .media-grid,
  .timeline,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-title,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-options {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .card-meta,
  .filters {
    align-items: start;
  }

  .logo-tile.huge {
    width: 104px;
    height: 104px;
  }
}

