:root {
  color-scheme: dark;
  --bg: #16191d;
  --panel: #20262b;
  --panel-strong: #283039;
  --text: #f1f5ed;
  --muted: #b8c0b5;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #43b7ce;
  --green: #8fcf75;
  --amber: #e8b85c;
  --rose: #d97979;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(67, 183, 206, 0.16), transparent 35%),
    linear-gradient(315deg, rgba(143, 207, 117, 0.14), transparent 30%),
    var(--bg);
}

body:not(.gather-page) {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(22, 25, 29, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.top-nav {
  gap: 0.4rem;
}

.top-nav a {
  min-height: 40px;
  padding: 0.68rem 0.95rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

main {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-hero {
  height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: clamp(0.8rem, 2vh, 1.25rem);
  padding: clamp(0.8rem, 3vh, 1.8rem) 0;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h1,
.gather-copy h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.35rem, 5.1vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text,
.gather-copy p,
.download-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.35vw, 1.1rem);
  line-height: 1.6;
}

.project-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
}

.project-card {
  min-height: clamp(150px, 23vh, 205px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 19vw, 170px);
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 1.5rem);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--panel-strong);
}

.project-card img {
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: center;
  width: min(100%, 170px);
  max-height: 150px;
  object-fit: contain;
  opacity: 0.9;
}

.project-kicker,
.project-action {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-title {
  max-width: 100%;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.project-copy {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.45;
}

.bot-card {
  background: linear-gradient(140deg, rgba(67, 183, 206, 0.18), rgba(32, 38, 43, 0.95));
}

.gather-card {
  background: linear-gradient(140deg, rgba(143, 207, 117, 0.18), rgba(32, 38, 43, 0.96));
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  color: #101418;
  background: var(--green);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.disabled-action {
  cursor: default;
  opacity: 0.72;
}

@media (max-width: 860px) {
  body:not(.gather-page) {
    overflow: auto;
  }

  .home-hero {
    height: auto;
    min-height: calc(100vh - 122px);
    padding-top: 1.2rem;
  }

  .project-switcher {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .top-nav a {
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
  }

  .hero-copy h1,
  .gather-copy h1 {
    font-size: clamp(2.35rem, 11.5vw, 3rem);
    overflow-wrap: anywhere;
  }

  .project-card img {
    width: 100%;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .project-copy {
    font-size: 0.95rem;
  }
}
