/* ===== HOW IT WORKS ===== */
.how-section {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

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

.how-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  padding: 36px 30px;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.how-card .step-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--sage-light);
  line-height: 1;
  margin-bottom: 16px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 0.94rem;
  color: var(--bark-light);
  line-height: 1.6;
  font-weight: 300;
}

.how-card .card-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--forest);
  color: var(--cream);
}

.how-card .card-icon svg { width: 18px; height: 18px; }

/* ===== FLOW DIAGRAM ===== */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  padding: 32px 0;
  overflow: hidden;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.flow-node-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid var(--cream-dark);
  background: var(--white);
  transition: transform 0.3s var(--ease-out);
}

.flow-node:hover .flow-node-circle {
  transform: scale(1.08);
}

.flow-node-circle.forest {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
  font-size: 1rem;
}

.flow-node-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bark-light);
  letter-spacing: 0.03em;
}

.flow-arrow {
  display: flex;
  align-items: center;
  width: 80px;
  height: 2px;
  background: var(--cream-dark);
  position: relative;
  flex-shrink: 0;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sage);
  border-top: 2px solid var(--sage);
  transform: rotate(45deg);
}

.flow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: flow-move 2s ease-in-out infinite;
}

.flow-arrow:nth-child(2) .flow-dot { animation-delay: 0s; }
.flow-arrow:nth-child(4) .flow-dot { animation-delay: 0.4s; }
.flow-arrow:nth-child(6) .flow-dot { animation-delay: 0.8s; }

/* ===== PATHS (User vs Contributor) ===== */
.paths-section { }

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.path-card {
  border-radius: 16px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}

.path-card.user-path {
  background: var(--forest);
  color: var(--cream);
}

.path-card.contributor-path {
  background: var(--bark);
  color: var(--cream);
}

.path-card .path-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 14px;
}

.path-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}

.path-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.85;
  margin-bottom: 24px;
  font-weight: 300;
}

.path-card .path-cmd {
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.path-card .path-cmd code {
  font-family: inherit;
}

.path-card .path-bg {
  position: absolute;
  bottom: -30px;
  right: -30px;
  font-size: 8rem;
  opacity: 0.06;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

/* ===== INSTALL ===== */
.install-section {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.install-tabs {
  display: flex;
  gap: 4px;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 32px;
}

.install-tab {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 24px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--bark-light);
  cursor: pointer;
  transition: all 0.2s;
}

.install-tab.active {
  background: var(--forest);
  color: var(--cream);
}

.install-panel {
  display: none;
  max-width: 700px;
  margin: 0 auto;
}

.install-panel.active { display: block; }

.install-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--bark-light);
  font-weight: 300;
}

.install-note a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== CLAUDE CODE CONFIG ===== */
.config-section { }

.config-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.config-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.config-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.config-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.config-step p {
  font-size: 0.9rem;
  color: var(--bark-light);
  font-weight: 300;
  line-height: 1.55;
}

.config-code-area .code-block {
  position: sticky;
  top: 88px;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 148, 62, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(138, 171, 138, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-section .section-label { color: var(--sage); }
.stats-section .section-title { color: var(--cream); }

.stats-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  transition: background 0.3s;
}

.stat-card:hover {
  background: rgba(255,255,255,0.07);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
}

.stat-sublabel {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  font-weight: 300;
}

/* ===== LEADERBOARD ===== */
.leaderboard {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.leaderboard h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.leaderboard-table thead th:last-child { text-align: right; }

.leaderboard-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.leaderboard-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.leaderboard-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
}

.leaderboard-table .rank {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sage);
  width: 40px;
}

.leaderboard-table .rank-medal {
  color: var(--amber-light);
  font-weight: 500;
}

.leaderboard-table .team-name {
  font-weight: 500;
}

.leaderboard-table .contrib-value {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-light);
}

.leaderboard .preview-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-light);
  background: rgba(224, 184, 106, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--cream-dark);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--bark);
  text-align: left;
  line-height: 1.4;
}

.faq-question .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s var(--ease-out);
  color: var(--moss);
}

.faq-item.open .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 0.92rem;
  color: var(--bark-light);
  line-height: 1.65;
  font-weight: 300;
}

.faq-answer-inner code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: var(--cream);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bark);
  color: var(--cream);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--fawn);
  font-weight: 300;
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fawn);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--fawn-light);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
  font-weight: 300;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--fawn);
  font-weight: 300;
}
