:root {
  --bg: #07111f;
  --bg-soft: #0d1a2b;
  --panel: rgba(12, 24, 40, 0.72);
  --panel-strong: #0f1d31;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #9fb0c9;
  --primary: #63b3ff;
  --primary-2: #7c92ff;
  --success: #6ee7b7;
  --warning: #fbbf24;
  --danger: #f87171;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(99, 179, 255, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(124, 146, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #091423 38%, #0a1628 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* NAVBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 31, 0.68);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #07111f;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(99, 179, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: var(--text);
}

/* BUTTONS */

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #08111f;
  box-shadow: 0 16px 34px rgba(99, 179, 255, 0.26);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.04);
}

/* HERO */

.hero {
  padding: 82px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(110, 231, 183, 0.18);
  background: rgba(110, 231, 183, 0.08);
  color: #c8fae6;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.1);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero h1 span {
  background: linear-gradient(135deg, #f8fbff 15%, #9ad0ff 55%, #8a96ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.metric span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-card {
  position: relative;
  align-self: start;
  margin-top: 6px;
  border-radius: 30px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 29, 49, 0.92), rgba(11, 20, 35, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(99, 179, 255, 0.25), transparent 68%);
  pointer-events: none;
}

.terminal {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #07111f;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #0b1627;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.terminal-body {
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.93rem;
  color: #c8d7eb;
}

.terminal-body .ok {
  color: var(--success);
}

.terminal-body .info {
  color: var(--primary);
}

.terminal-body .warn {
  color: var(--warning);
}

/* SECTIONS */

section {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  color: var(--muted);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe8fb;
  font-size: 0.9rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.project-badge {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(99, 179, 255, 0.1);
  color: #b9deff;
  border: 1px solid rgba(99, 179, 255, 0.16);
  white-space: nowrap;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8e7fb;
  font-weight: 600;
  font-size: 0.94rem;
}

.project-links a:hover {
  color: #fff;
}

.status-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.12);
  flex: 0 0 auto;
}

.status-meta small,
.mini-label,
.timeline small {
  color: var(--muted);
}

.embed {
  overflow: hidden;
  border-radius: 18px;
  min-height: 340px;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.8), rgba(6, 12, 24, 0.9));
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding: 0 0 0 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  bottom: -18px;
  width: 2px;
  background: rgba(148, 163, 184, 0.16);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px rgba(99, 179, 255, 0.1);
}

.footer {
  padding: 28px 0 52px;
  color: var(--muted);
}

.footer-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.muted {
  color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .hero-grid,
  .status-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-title,
  .footer-box,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 52px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-secondary {
    width: 100%;
  }

  .container {
    width: min(var(--max), calc(100% - 20px));
  }
}

.status-embed {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.status-widget {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.status-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
}

.status-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.status-url {
  font-size: 0.95rem;
  color: var(--muted);
  word-break: break-word;
}

.status-url a {
  color: inherit;
  text-decoration: none;
}

.status-url a:hover {
  text-decoration: underline;
}

.status-state {
  margin-top: 6px;
  font-weight: 700;
}

.status-updated {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.ok {
  color: #22c55e;
}

.warn {
  color: #f59e0b;
}

.down {
  color: #ef4444;
}

.hero-terminal {
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  min-height: 340px;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.terminal-body {
  padding: 20px;
  min-height: 280px;
}

.terminal-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.terminal-code {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e5e7eb;
  min-height: 220px;
}

.terminal-fade {
  animation: terminalFade 0.35s ease;
}

@keyframes terminalFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-terminal {
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  min-height: 340px;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-control {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #0b1220;
}

.terminal-control:hover {
  transform: scale(1.06);
  opacity: 0.95;
}

.terminal-left {
  background: #ff5f57;
}

.terminal-toggle {
  background: #febc2e;
}

.terminal-right {
  background: #28c840;
}

.terminal-title {
  margin-left: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.terminal-body {
  padding: 20px;
  min-height: 280px;
}

.terminal-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.terminal-code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e5e7eb;
  min-height: 220px;
}

.terminal-fade {
  animation: terminalFade 0.35s ease;
}

@keyframes terminalFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Couleurs de syntaxe */
.code-comment {
  color: #94a3b8;
}

.code-keyword {
  color: #c084fc;
}

.code-string {
  color: #86efac;
}

.code-number {
  color: #fca5a5;
}

.code-func {
  color: #7dd3fc;
}

.code-type {
  color: #fcd34d;
}

.code-operator {
  color: #e5e7eb;
}

.code-shell {
  color: #93c5fd;
}

.hero-card {
  display: grid;
  gap: 18px;
}

.hero-terminal,
.hero-status-card {
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-control {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #0b1220;
}

.terminal-control:hover {
  transform: scale(1.06);
  opacity: 0.95;
}

.terminal-left { background: #ff5f57; }
.terminal-toggle { background: #febc2e; }
.terminal-right { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.terminal-body {
  padding: 20px;
  min-height: 250px;
}

.terminal-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.terminal-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
}

.terminal-meta {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
}

.terminal-code,
.live-logs {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e5e7eb;
}

.hero-status-card {
  padding: 18px;
}

.status-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status-updated-mini {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

.status-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.status-live-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
}

.status-live-label {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.logs-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
}

.logs-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 10px;
}

.code-comment { color: #94a3b8; }
.code-keyword { color: #c084fc; }
.code-string { color: #86efac; }
.code-number { color: #fca5a5; }
.code-func { color: #7dd3fc; }
.code-type { color: #fcd34d; }
.code-shell { color: #93c5fd; }
.code-ok { color: #86efac; }
.code-warn { color: #fcd34d; }

.terminal-fade {
  animation: terminalFade 0.28s ease;
}

@keyframes terminalFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.project-featured {
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}

.project-featured .project-badge {
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
}
/* New version != 2422b8a9 5th */
