/* ---------- Hero ---------- */

.work-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}

.brawl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/brawl/BackgroundGreen_notcompressed.png") center top / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-content { max-width: 800px; }

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(40, 215, 255, 0.08);
  border: 1px solid rgba(40, 215, 255, 0.15);
  border-radius: 8px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.work-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--soft);
  line-height: 1.8;
  max-width: 640px;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- Mode Icons ---------- */

.mode-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.mode-icons img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  object-fit: cover;
}
.mode-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ---------- Hero Accent ---------- */

.hero-accent {
  position: absolute;
  right: -20px;
  top: 20px;
  width: clamp(120px, 15vw, 200px);
  opacity: 0.06;
  pointer-events: none;
  filter: brightness(1.5);
}
.hero-accent img {
  width: 100%;
  height: auto;
}

/* ---------- McBrawl Hero Grid ---------- */

.mcb-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.mcb-hero-logos,
.mcb-hero-icons {
  position: relative;
  height: 300px;
  width: 100%;
}

.mcb-hero-logo {
  position: absolute;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center 42%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at center 42%, black 40%, transparent 100%);
}

.mcb-hero-logo--main {
  width: 180px;
  top: 0;
  left: 8%;
  z-index: 1;
  animation: logoBob1 3.2s ease-in-out infinite;
}

.mcb-hero-logo--fist {
  width: 130px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-40%);
  z-index: 2;
  animation: logoBob2 2.8s ease-in-out infinite -0.9s;
}

.mcb-hero-logo--rank {
  width: 120px;
  top: 10px;
  right: 6%;
  z-index: 1;
  animation: logoBob3 3.5s ease-in-out infinite -1.7s;
}

@keyframes logoBob1 {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(-3deg); }
}
@keyframes logoBob2 {
  0%, 100% { transform: translateX(-40%) translateY(0); }
  50% { transform: translateX(-40%) translateY(-12px); }
}
@keyframes logoBob3 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

/* Hero icon positions (5 slots, fist always center) */

.mcb-hero-logo {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

.mcb-hero-logo--1 {
  width: 110px;
  top: 10%;
  left: 5%;
  animation: logoBob1 3.2s ease-in-out infinite;
}

.mcb-hero-logo--2 {
  width: 100px;
  top: 5%;
  right: 10%;
  animation: logoBob3 3.5s ease-in-out infinite -0.6s;
}

.mcb-hero-logo--3 {
  width: 180px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  -webkit-mask-image: none;
  mask-image: none;
}

.mcb-hero-logo--4 {
  width: 105px;
  bottom: 10%;
  left: 12%;
  animation: logoBob2 3s ease-in-out infinite -1.2s;
}

.mcb-hero-logo--5 {
  width: 95px;
  bottom: 8%;
  right: 8%;
  animation: logoBob1 3.4s ease-in-out infinite -1.8s;
}

@keyframes fistBob {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) translateY(-10px) scale(1.03); }
}

@media (max-width: 760px) {
  .mcb-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mcb-hero-logos {
    display: none;
  }
  .mcb-hero-icons {
    height: 200px;
  }
}

/* ---------- Story ---------- */

.story {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.story-narrative h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.story-narrative p {
  color: var(--soft);
  margin: 0 0 18px;
  line-height: 1.85;
}

.story-narrative strong { color: var(--text); font-weight: 600; }

.story-proof {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.proof-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.3s;
}

.proof-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.proof-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(40, 215, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.proof-text {
  font-size: 0.9rem;
  color: var(--soft);
  font-weight: 500;
  line-height: 1.5;
  padding-top: 6px;
}

/* ---------- Sections (shared) ---------- */

.growth-section,
.modes-section,
.forum-section,
.mod-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.section-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.chart-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  overflow-x: auto;
}

.chart-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Chart styles ---------- */

.chart-gridline {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.chart-label {
  fill: var(--muted);
  font-size: 11px;
  font-family: Inter, sans-serif;
  font-weight: 500;
}

.chart-value-label {
  fill: var(--soft);
  font-size: 10px;
  font-family: Inter, sans-serif;
  font-weight: 600;
}

.growth-area {
  fill: url(#growthGrad);
  opacity: 0.4;
}

.growth-line {
  fill: none;
  stroke: url(#growthLineGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-dot {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.mode-bar {
  rx: 6;
  transition: opacity 0.2s;
}

.mode-bar:hover { opacity: 0.8; }

.forum-bar {
  fill: var(--accent);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.forum-bar:hover { opacity: 1; }

/* ---------- Annotation ---------- */

.chart-annotation {
  font-size: 10px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  fill: var(--accent-2);
}

.annotation-line {
  stroke: var(--accent-2);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  opacity: 0.5;
}

/* ---------- Video Showcase ---------- */

.mcb-videos-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mcb-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mcb-video-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.mcb-video-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mcb-video-wrap {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.mcb-video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.mcb-video-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 16px 20px 6px;
  letter-spacing: -0.02em;
}

.mcb-video-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 20px 18px;
  line-height: 1.5;
}

/* ---------- Moderation Grid ---------- */

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mod-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.mod-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mod-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.mod-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 500;
}

/* ---------- CTA ---------- */

.cta-section {
  padding: 40px 0 80px;
}

.cta-block {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.cta-block h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.cta-block p {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .mod-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .work-hero { padding: 40px 0 60px; }

  .work-hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-stats .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mod-grid { grid-template-columns: repeat(2, 1fr); }

  .mcb-videos-grid { grid-template-columns: 1fr; }

  .chart-panel { padding: 20px 16px 16px; }

  .cta-block { padding: 40px 24px; }

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
}
