:root {
  --bg: #07030d;
  --bg-soft: #12081c;
  --line: rgba(217, 176, 255, 0.14);
  --text: #fbf7ff;
  --muted: #bfb2d7;
  --accent: #b46cff;
  --accent-strong: #8c46e2;
  --accent-soft: #ead3ff;
  --project-green: #72f0a1;
  --project-green-strong: #2ea864;
  --project-green-soft: #d9ffe8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(168, 102, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #11081b 0%, var(--bg) 55%, #040207 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,0.07) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 24%, rgba(208,140,255,0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 65% 76%, rgba(255,255,255,0.05) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
  opacity: 0.85;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.background-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.32;
}
.background-glow-left  { top: -8rem;  left: -10rem;  background: rgba(174,93,255,0.42); }
.background-glow-right { top: 18rem;  right: -12rem; background: rgba(125,66,226,0.28); }

/* ─── Shared ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 18px 40px rgba(140,70,226,0.34);
}
.button-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.button-dark {
  background: rgba(11,7,17,0.86);
  color: var(--text);
  border-color: rgba(255,255,255,0.08);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(221,190,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-accent {
  background: linear-gradient(135deg, #f0d4ff 0%, #c881ff 38%, #8c46e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── JS reveal ─── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── HERO ─── */
.ap-hero {
  padding: 5.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(60vh - 88px);
}

.ap-hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(221,190,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.ap-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 1.4rem;
}

.ap-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 2rem;
  max-width: 560px;
}

.ap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* hero right — stat panel */
.ap-hero-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(30,18,46,0.88), rgba(12,8,18,0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
}

.ap-stat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.ap-stat-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(180,108,255,0.1);
  border: 1px solid rgba(180,108,255,0.16);
  font-size: 1.1rem;
}

.ap-stat-body strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f0d4ff 0%, #c881ff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.ap-stat-body span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ─── SECTION wrapper ─── */
.ap-section {
  padding: 5rem 0 0;
}

.ap-section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.ap-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 1rem 0 0;
}

.ap-section-heading p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

/* ─── VALEURS ─── */
.ap-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ap-value-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,18,46,0.88), rgba(12,8,18,0.96));
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ap-value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180,108,255,0.28);
  box-shadow: 0 20px 50px rgba(100,40,180,0.16);
}

.ap-value-number {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 1.1rem;
}

.ap-value-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
}

.ap-value-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* ─── STORY ─── */
.ap-story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ap-story-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 1rem 0 1.4rem;
}

.ap-story-copy p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.ap-timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 1.8rem;
}

.ap-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(180,108,255,0.4), rgba(180,108,255,0.05));
}

.ap-timeline-item {
  position: relative;
  padding: 0 0 2rem 1.2rem;
}

.ap-timeline-item:last-child {
  padding-bottom: 0;
}

.ap-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(180,108,255,0.5);
}

.ap-timeline-year {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.ap-timeline-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.ap-timeline-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── ENGAGEMENTS ─── */
.ap-commitments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ap-commitment-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,18,46,0.88), rgba(12,8,18,0.96));
  border: 1px solid var(--line);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.ap-commitment-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: rgba(180,108,255,0.08);
  border: 1px solid rgba(180,108,255,0.14);
  flex-shrink: 0;
}

.ap-commitment-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.ap-commitment-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
  margin: 0;
}

/* ─── DISCORD CTA ─── */
.ap-discord {
  padding: 5rem 0 6rem;
}

.ap-discord-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 3.5rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(114,89,255,0.18), transparent 50%),
    linear-gradient(180deg, rgba(22,14,42,0.96), rgba(9,6,16,0.98));
  border: 1px solid rgba(180,108,255,0.12);
  box-shadow: var(--shadow);
}

.ap-discord-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 1rem 0 1.2rem;
}

.ap-discord-copy p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 2rem;
  font-size: 1rem;
}

.ap-discord-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ap-discord-icon {
  width: 148px;
  height: 148px;
  border-radius: 38px;
  background: rgba(88,101,242,0.08);
  border: 1px solid rgba(88,101,242,0.16);
  display: grid;
  place-items: center;
  color: rgba(114,137,218,0.5);
}

.ap-discord-icon svg {
  width: 72px;
  height: 72px;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .ap-hero,
  .ap-story-layout {
    grid-template-columns: 1fr;
  }
  .ap-section-heading {
    grid-template-columns: 1fr;
  }
  .ap-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-discord-banner {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
  .ap-discord-visual { display: none; }
}

@media (max-width: 820px) {
  .ap-hero {
    padding-top: 3.5rem;
  }
  .ap-commitments-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ap-values-grid {
    grid-template-columns: 1fr;
  }
  .ap-discord-banner {
    padding: 1.75rem;
  }
}
