:root {
  --bg: #07090d;
  --bg-soft: #0e131a;
  --panel: #121820;
  --panel-strong: #161d27;
  --text: #f5f7fb;
  --muted: #a7b0be;
  --subtle: #737e8d;
  --line: rgba(255, 255, 255, 0.11);
  --red: #e63228;
  --red-strong: #ff4b40;
  --cyan: #60e6d9;
  --amber: #f7b955;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

/* WebKit scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red), rgba(96, 230, 217, 0.5));
  border-radius: 3px;
  transition: background 0.3s ease;
  animation: scrollbar-glow 4s ease-in-out infinite;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red-strong), var(--cyan));
}

@keyframes scrollbar-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* ── end reveal ── */

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #07090d;
  background-size: 72px 72px;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-family: "Playfair Display", Georgia, serif;
}

.brand-demon {
  color: var(--red);
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #050608;
  box-shadow: 0 12px 34px rgba(230, 50, 40, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.78);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-action {
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-action svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  padding: 176px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.94) 0%, rgba(7, 9, 13, 0.72) 45%, rgba(7, 9, 13, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.16), var(--bg) 96%);
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.hero-logo {
  width: clamp(150px, 22vw, 245px);
  aspect-ratio: 1;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52), 0 0 48px rgba(230, 50, 40, 0.2);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 11vw, 8.75rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-family: "Playfair Display", Georgia, serif;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: #d7dde7;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
}

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

.button {
  min-width: 158px;
  padding: 0 20px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #a4110c);
  box-shadow: 0 18px 38px rgba(230, 50, 40, 0.24);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.nav-action:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.section,
.community-section,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  max-width: 780px;
  gap: 12px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 640px;
}

.section-heading h2,
.community-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.community-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.projects-empty,
.step-card,
.team-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 26px;
}

.step-card {
  min-height: 260px;
  padding: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(230, 50, 40, 0.35);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(230, 50, 40, 0.78), rgba(164, 17, 12, 0.64));
  font-weight: 800;
}

.card-kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card h3,
.projects-empty h3,
.step-card h3,
.team-card h3,
.project-card h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.feature-card p,
.projects-empty p,
.step-card p,
.team-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.step-links a,
.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(96, 230, 217, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(96, 230, 217, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.step-links a:hover,
.step-links a:focus-visible,
.project-links a:hover,
.project-links a:focus-visible {
  border-color: rgba(96, 230, 217, 0.42);
  background: rgba(96, 230, 217, 0.16);
  transform: translateY(-1px);
}

.contribute-section {
  padding-bottom: 72px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.values-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-list {
  display: grid;
  gap: 12px;
}

.values-list div {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.values-list div:last-child {
  border-bottom: 0;
}

.values-list strong {
  color: var(--text);
  line-height: 1.35;
}

.values-list span {
  color: var(--muted);
}

.projects-section {
  padding-top: 104px;
}

.projects-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 46px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 8px;
  color: var(--amber);
  background: rgba(247, 185, 85, 0.12);
}

.empty-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.project-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-card-header h3 {
  margin-top: 8px;
}

.project-stats {
  display: flex;
  gap: 16px;
}

.project-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1;
}

.project-stat svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  line-height: 1.4;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.team-section {
  padding-top: 24px;
}

.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  max-width: 760px;
  gap: 24px;
  padding: 28px;
}

.team-photo {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(230, 50, 40, 0.38);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 18px 40px rgba(230, 50, 40, 0.2);
}

.team-card h3 {
  font-size: 1.55rem;
}

.community-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 84px;
  padding: 44px;
  border: 1px solid rgba(230, 50, 40, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230, 50, 40, 0.16), rgba(96, 230, 217, 0.08)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.community-section > div:first-child {
  max-width: 680px;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
}

.site-footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .nav {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 700px;
    padding-top: 140px;
  }

  .about-grid,
  .steps-grid,
  .values-section {
    grid-template-columns: 1fr;
  }

  .values-section {
    gap: 24px;
  }

  .community-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-actions {
    justify-content: flex-start;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav,
  .section,
  .community-section,
  .site-footer,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-action {
    padding: 0 12px;
  }

  .hero {
    min-height: 680px;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .button {
    width: 100%;
  }

  .feature-card,
  .projects-empty,
  .step-card,
  .team-card,
  .project-card,
  .community-section {
    padding: 24px;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .values-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
