:root {
  --ink: #16202a;
  --muted: #5c6b7a;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --line: #dce4ee;
  --blue: #1f6feb;
  --green: #12a06c;
  --coral: #f26b5b;
  --navy: #0f263d;
  --shadow: 0 18px 45px rgba(20, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

img,
input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 22, 37, 0.9), rgba(8, 22, 37, 0.42)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1800&q=80")
    center / cover;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 80px 0 120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.28);
}

.secondary {
  color: var(--ink);
  background: white;
}

.secondary.dark {
  color: white;
  background: var(--navy);
}

.stats {
  width: min(1180px, calc(100% - 32px));
  margin: -62px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.stats strong {
  display: block;
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 800;
}

.board-section,
.community,
.contact {
  padding: 90px 0;
}

.alt {
  background: white;
}

.section-heading,
.workspace,
.community-layout,
.contact-form {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.section-heading p:last-child {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 0;
}

.workspace {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 24px;
  align-items: start;
}

.upload-form,
.community-form,
.contact-form,
.resource-panel,
.discussion-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.upload-form h3,
.community-form h3,
.panel-title h3 {
  margin: 0 0 18px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 111, 235, 0.16);
  border-color: var(--blue);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.clear-btn {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.resource-grid,
.post-list {
  display: grid;
  gap: 14px;
}

.resource-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.resource-card h4,
.post-card h4 {
  margin: 0 0 8px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(18, 160, 108, 0.12);
  color: #08784f;
  font-size: 0.78rem;
  font-weight: 900;
}

.file-name {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.empty {
  color: var(--muted);
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.community-layout {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 24px;
  align-items: start;
}

.compact {
  position: sticky;
  top: 92px;
}

.status-text {
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 900;
}

.contact {
  background: var(--navy);
  color: white;
}

.contact .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  max-width: 760px;
}

.contact-form label {
  color: white;
}

.footer {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .workspace,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .compact {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 13px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--soft);
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding: 72px 0 100px;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: -44px;
  }

  .board-section,
  .community,
  .contact {
    padding: 64px 0;
  }

  .upload-form,
  .community-form,
  .contact-form,
  .resource-panel,
  .discussion-panel {
    padding: 18px;
  }
}