* {
  box-sizing: border-box;
}

:root {
  --bg: #09070f;
  --bg-soft: #0f0b18;
  --panel: rgba(19, 14, 30, 0.72);
  --panel-strong: #151020;
  --border: rgba(196, 181, 253, 0.12);
  --text: #f7f4ff;
  --muted: #a9a2b8;
  --purple: #8b5cf6;
  --purple-2: #6d28d9;
  --purple-soft: #c4b5fd;
  --green: #70f0a4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(109, 40, 217, 0.17), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.11), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--purple); color: white; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  opacity: .2;
}

.orb-1 { width: 340px; height: 340px; background: #6d28d9; left: -120px; top: 130px; }
.orb-2 { width: 280px; height: 280px; background: #9333ea; right: -100px; top: 470px; }
.orb-3 { width: 200px; height: 200px; background: #4c1d95; left: 45%; bottom: 30px; }

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

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(9, 7, 15, .68);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.04em;
  font-size: 1.03rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  box-shadow: 0 0 30px rgba(139, 92, 246, .35);
}

.brand-dot { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #cbc4d7;
  font-size: .93rem;
}

.nav-links a {
  position: relative;
  transition: color .25s ease;
}

.nav-links a:hover { color: white; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--purple);
  transition: width .25s ease;
}

.nav-links a:hover::after { width: 100%; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  margin: 5px auto;
  border-radius: 2px;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 105px 0 80px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 74px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(167, 139, 250, .2);
  background: rgba(139, 92, 246, .08);
  border-radius: 999px;
  color: var(--purple-soft);
  font-size: .76rem;
  letter-spacing: .14em;
  font-weight: 800;
}

.eyebrow.plain {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(112, 240, 164, .45);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(112, 240, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(112, 240, 164, 0); }
}

.hero h1 {
  margin: 24px 0 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.hero h1 span {
  background: linear-gradient(100deg, #d8ccff, #8b5cf6 55%, #c084fc);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 700;
  font-size: .94rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 14px 36px rgba(109, 40, 217, .32);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  color: #d8d2e1;
}

.btn-ghost:hover { border-color: rgba(167, 139, 250, .36); }

.identity-strip {
  margin-top: 48px;
  display: flex;
  gap: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.identity-strip > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-label {
  color: #756e82;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

.identity-strip strong { font-size: .92rem; }
.status { color: var(--green); }

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  min-height: 520px;
  border-radius: 28px;
  border: 1px solid rgba(196, 181, 253, .13);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(15, 11, 24, .82);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.panel-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(109, 40, 217, .25);
  border-radius: 50%;
  filter: blur(80px);
  right: -90px;
  top: -90px;
}

.panel-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.panel-top h2 {
  margin: 7px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.week-pill {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--purple-soft);
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(167,139,250,.15);
  font-size: .75rem;
  font-weight: 700;
}

.score-ring {
  width: 210px;
  height: 210px;
  margin: 44px auto 32px;
  position: relative;
}

.score-ring svg { width: 100%; transform: rotate(-90deg); }

.score-ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-bg { stroke: rgba(255,255,255,.06); }
.ring-progress {
  stroke: url(#gradient);
  stroke: #8b5cf6;
  stroke-linecap: round;
  stroke-dasharray: 358;
  stroke-dashoffset: 358;
  filter: drop-shadow(0 0 12px rgba(139,92,246,.55));
  transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1);
}

.ring-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-content strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.2rem;
  letter-spacing: -.05em;
}

.ring-content span { color: #746d81; font-size: .8rem; }

.panel-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  padding: 15px 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.025);
  border-radius: 14px;
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.stat-label {
  display: block;
  margin-top: 5px;
  color: #827b8d;
  font-size: .67rem;
}

.panel-note {
  position: relative;
  margin-top: 15px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(139, 92, 246, .07);
  color: #bfb6cc;
  font-size: .78rem;
  line-height: 1.5;
}

.spark { color: #c4b5fd; margin-right: 6px; }

.section {
  padding: 110px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 46px;
}

.section-head h2 {
  max-width: 650px;
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-head > p {
  width: min(430px, 100%);
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: .93rem;
}

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

.role-card {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.role-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,.28);
  background: rgba(139,92,246,.05);
}

.icon-box {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(139,92,246,.09);
  border: 1px solid rgba(167,139,250,.14);
  color: var(--purple-soft);
  font-size: .78rem;
  font-weight: 800;
}

.role-card h3 {
  margin: 50px 0 11px;
  font-size: 1.05rem;
}

.role-card p {
  margin: 0;
  color: #91899d;
  line-height: 1.68;
  font-size: .86rem;
}

.card-tag {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: #5f5868;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}

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

.filter-btn {
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: #968fa2;
  cursor: pointer;
  transition: all .2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: rgba(167,139,250,.28);
  background: rgba(139,92,246,.1);
}

.timeline {
  position: relative;
  max-width: 980px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 91px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(139,92,246,.42), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 44px 1fr;
  align-items: start;
  min-height: 160px;
  transition: opacity .25s ease, transform .25s ease;
}

.timeline-item.hidden {
  display: none;
}

.timeline-day {
  padding-top: 26px;
  color: #625b6c;
  font-size: .72rem;
  letter-spacing: .14em;
  font-weight: 800;
}

.timeline-dot {
  width: 11px;
  height: 11px;
  margin: 29px auto 0;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(139,92,246,.1), 0 0 24px rgba(139,92,246,.45);
  z-index: 1;
}

.timeline-card {
  margin-bottom: 18px;
  padding: 25px 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.018);
  transition: border-color .25s ease, transform .25s ease;
}

.timeline-card:hover {
  border-color: rgba(167,139,250,.26);
  transform: translateX(4px);
}

.timeline-card.featured {
  background:
    linear-gradient(135deg, rgba(139,92,246,.1), transparent 65%),
    rgba(255,255,255,.018);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #706979;
  font-size: .71rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}

.timeline-meta span { color: var(--purple-soft); }

.timeline-card h3 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.timeline-card p {
  margin: 0;
  color: #938b9d;
  line-height: 1.65;
  font-size: .87rem;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-badges span {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: #9d95aa;
  font-size: .68rem;
}

.bilan-summary {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr auto;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(167,139,250,.16);
  background: linear-gradient(115deg, rgba(109,40,217,.12), rgba(255,255,255,.018));
}

.bilan-summary h3 {
  margin: 8px 0 0;
  max-width: 390px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.bilan-summary p {
  margin: 0;
  color: #948c9f;
  line-height: 1.7;
  font-size: .87rem;
}

.grade {
  min-width: 88px;
  text-align: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.12);
}

.grade span {
  display: block;
  margin-bottom: 7px;
  color: #6f6879;
  font-size: .6rem;
  letter-spacing: .14em;
}

.grade strong { font-size: 1.5rem; }

.method-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 90% 10%, rgba(139,92,246,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.method-copy h2 {
  margin: 13px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.method-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.method-steps {
  display: grid;
  gap: 10px;
}

.method-step {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.018);
}

.method-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(139,92,246,.08);
  color: var(--purple-soft);
  font-size: .72rem;
  font-weight: 800;
}

.method-step strong,
.method-step small { display: block; }

.method-step strong { font-size: .9rem; }
.method-step small { margin-top: 3px; color: #777080; font-size: .72rem; }

footer {
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #696271;
  font-size: .75rem;
}

.footer-inner .brand { color: #aaa2b5; }
.footer-inner .brand-mark { width: 30px; height: 30px; border-radius: 9px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}

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

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 80px;
  }

  .hero-panel { min-height: auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: flex-start; flex-direction: column; gap: 24px; }
  .bilan-summary { grid-template-columns: 1fr; }
  .grade { width: 92px; }
  .method-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 26px, 1180px); }

  .menu-btn { display: block; }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 13px;
    right: 13px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(15,11,24,.97);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 13px 12px;
    border-radius: 10px;
  }

  .nav-links a:hover { background: rgba(255,255,255,.04); }
  .nav-links a::after { display: none; }

  .hero {
    min-height: auto;
    padding: 68px 0 60px;
  }

  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.5rem); }
  .identity-strip { gap: 20px; justify-content: space-between; }
  .hero-panel { padding: 22px; border-radius: 22px; }

  .panel-stats { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 270px; }

  .section { padding: 78px 0; }
  .section-head h2 { font-size: 2.2rem; }

  .timeline::before { left: 17px; }

  .timeline-item {
    grid-template-columns: 35px 1fr;
    min-height: auto;
  }

  .timeline-day { display: none; }
  .timeline-dot {
    grid-column: 1;
    width: 9px;
    height: 9px;
    margin-top: 30px;
  }

  .timeline-card {
    grid-column: 2;
    padding: 20px;
  }

  .method-panel { padding: 28px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
