﻿:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #f0ede8;
  --surface-strong: #e5e1da;
  --ink: #111113;
  --ink-soft: #4e525b;
  --muted: #6b707a;
  --accent: #3f5da8;
  --accent-soft: #7a90d3;
  --border: #d8d4cc;
  --shadow: 0 18px 45px rgba(24, 28, 48, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(63, 93, 168, 0.1), transparent 45%),
    linear-gradient(180deg, #fbfaf7 0%, #f6f4ef 100%);
}

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

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

button,
a,
input,
textarea {
  font: inherit;
}

button {
  border: none;
}

::selection {
  background: rgba(63, 93, 168, 0.18);
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid var(--border);
  box-shadow: 10px 0 40px rgba(24, 28, 48, 0.08);
  overflow-y: auto;
  padding: 28px 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#sidebar .sidebar-top {
  margin-bottom: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}

#sidebar .nav-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 220px;
}

#sidebar .sidebar-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 12px;
}

#sidebar .sidebar-logo img {
  width: 80px;
  height: auto;
  display: block;
}

#sidebar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-size: 1.05rem;
}

#sidebar .nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#sidebar .nav-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#sidebar .nav-links a:hover,
#sidebar .nav-links a.active {
  background: rgba(63, 93, 168, 0.13);
  color: var(--accent);
}

#sidebar .nav-links a.active {
  font-weight: 700;
}

#sidebar .nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 14px;
  pointer-events: none;
}

#sidebar ~ .hero-bg,
#sidebar ~ .container,
#sidebar ~ footer {
  margin-left: 240px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px 80px;
}

.hero-bg {
  min-height: 350px;
  display: flex;
  align-items: center;
  padding-top: 0;
  background: linear-gradient(130deg, rgba(63, 93, 168, 0.18), transparent 52%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 25%);
}

.hero {
  padding: 0 0 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.03;
  max-width: 720px;
}

.hero .sub {
  display: none;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 35px rgba(63, 93, 168, 0.14);
}

.btn-ghost {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 35px rgba(63, 93, 168, 0.14);
}

.btn-blurple {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 35px rgba(63, 93, 168, 0.14);
}

.section-tight {
  padding-top: 80px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head .kicker {
  display: none;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.05;
}

.section-head p {
  margin-top: 18px;
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.member-card,
.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.member-card .avatar-lg {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.member-card h3,
.project-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.member-card .role,
.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-lang {
  background: #eef2ff;
  color: #3f5da8;
}

.tag-diff-stars {
  background: #fff5d7;
  color: #b68d1d;
}

.project-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-card .author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-cta {
  margin-top: 18px;
}

.project-cta .btn-full {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
}

.project-card .author .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f5da8, #7a90d3);
}

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

.channel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.step-card {
  display: grid;
  gap: 18px;
}

.feature-capture {
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 520px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.feature-capture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel .h {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.channel .name {
  font-weight: 700;
  margin-bottom: 4px;
}

.channel .desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.value {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.value .num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 42px;
}

.value h3 {
  margin: 0 0 6px;
}

.value p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-block {
  background: linear-gradient(135deg, rgba(63, 93, 168, 0.95), rgba(83, 111, 182, 0.95));
  border-radius: 28px;
  color: #fff;
  padding: 42px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-content h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
}

.cta-content p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin: 22px 0 0;
}

.cta-character {
  width: 100%;
  height: auto;
  max-width: 100%;
  align-self: center;
  justify-self: end;
  object-fit: contain;
}

.footer {
  padding: 80px 0 60px;
  background: #f5f2eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-min ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-min li { margin-bottom: 8px; }
.footer-min a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer-min a:hover { color: var(--ink); }

/* Floating Discord action button */
.discord-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.12s ease, color 0.12s ease;
}
.discord-fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(24, 28, 48, 0.18);
}
.discord-fab img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Discreet site credit inside the footer */
.site-credit {
  margin-top: 18px;
  text-align: right;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
  opacity: 0.9;
}
.site-credit a { color: var(--accent); text-decoration: none; margin-left: 6px; font-weight: 700; }
.site-credit a:hover { text-decoration: underline; }

.footer-brand {
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-col a {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1030px) {
  #sidebar {
    width: 220px;
  }

  #sidebar ~ .hero-bg,
  #sidebar ~ .container,
  #sidebar ~ footer {
    margin-left: 240px;
  }
}

@media (max-width: 900px) {
  #sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    padding: 20px 18px;
  }

  #sidebar ~ .hero-bg,
  #sidebar ~ .container,
  #sidebar ~ footer {
    margin-left: 0;
  }

  #sidebar .nav-inner {
    flex-direction: column;
    gap: 18px;
  }

  .hero-bg {
    padding-top: 24px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .steps,
  .channels,
  .value-list,
  .footer-grid,
  .cta-block {
    grid-template-columns: 1fr;
  }

  .cta-block {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px 60px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

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

  .btn {
    width: 100%;
  }
}
