:root {
  --bg: #091017;
  --bg-soft: #101c28;
  --surface: rgba(18, 30, 43, 0.75);
  --text: #e9f1fa;
  --muted: #98a9bc;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #2ec4b6;
  --accent-2: #ffbf69;
  --maxw: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background-color: #050a10;
}

body {
  position: relative;
  isolation: isolate;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background-color: #050a10;
  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(46, 196, 182, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(255, 191, 105, 0.17),
      transparent 36%
    ),
    linear-gradient(135deg, #050a10 0%, #101c28 45%, #152435 100%);
  line-height: 1.45;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

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

.hero {
  padding: 1rem 0 4rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--muted);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.hero-content {
  padding-top: 3.2rem;
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: 1.5rem;
}

.hero-text {
  max-width: 760px;
}

.hero-portrait {
  margin: 0;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(
      160deg,
      rgba(46, 196, 182, 0.18) 0%,
      rgba(16, 29, 43, 0.75) 62%
    ),
    url("./img/photo-profil.png") center top / cover no-repeat;
  overflow: hidden;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 760px;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: 1rem 1.6rem;
  min-height: 56px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  border-radius: 0.7rem;
  transition:
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
  transform: none;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-primary {
  background: linear-gradient(110deg, var(--accent), #5af0d0);
  color: #041019;
  box-shadow: 0 10px 28px rgba(46, 196, 182, 0.25);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(14, 22, 33, 0.88);
}

.btn:focus-visible {
  outline: 2px solid rgba(46, 196, 182, 0.9);
  outline-offset: 2px;
}

.section {
  padding: 2.4rem 0;
}

.section-lead {
  margin: -0.15rem 0 1.25rem;
  color: var(--muted);
  max-width: 860px;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 12;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  backdrop-filter: blur(5px);
}

.card-highlight {
  border-color: rgba(46, 196, 182, 0.45);
  box-shadow: inset 0 0 0 1px rgba(46, 196, 182, 0.15);
}

.card h3 {
  margin: 0.4rem 0 0.55rem;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.card a {
  color: var(--accent-2);
  display: block;
  margin-top: 0.35rem;
  text-decoration: none;
  word-break: break-word;
}

.card-tag {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 0.8rem;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.funnel-step {
  grid-column: span 12;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(16, 29, 43, 0.68);
}

.step-index {
  display: inline-flex;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 0.82rem;
}

.funnel-step h3 {
  margin: 0.45rem 0 0.45rem;
}

.funnel-step p {
  margin: 0;
  color: var(--muted);
}

.levels {
  display: grid;
  gap: 0.85rem;
}

.level-item {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.9rem;
}

.level-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.level-head h3 {
  margin: 0;
  font-size: 1rem;
}

.level-head span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent-2);
  font-size: 0.9rem;
}

.meter {
  width: 100%;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: rgba(13, 22, 33, 0.8);
  font-size: 0.95rem;
}

.profile {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.3rem;
}

.profile p {
  margin: 0.2rem 0 0.65rem;
}

.profile a {
  color: var(--accent-2);
  text-decoration: none;
  word-break: break-word;
}

.footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

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

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

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

@media (min-width: 800px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .card:nth-child(1),
  .card:nth-child(2) {
    grid-column: span 6;
  }

  .card:nth-child(3) {
    grid-column: span 12;
  }

  .card:nth-child(4),
  .card:nth-child(5) {
    grid-column: span 6;
  }

  .card:nth-child(6) {
    grid-column: span 12;
  }

  .funnel-step {
    grid-column: span 6;
  }

  .funnel-step:last-child {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .hero-cta .btn {
    width: 100%;
  }
}
