:root {
  /* Palette principale */
  --green-950: #010e03;
  --green-900: #011a06;
  --green-800: #022d0b;
  --green-700: #014010;
  --green-600: #015918;
  --green-500: #007a1e;
  --green-400: #008020;   /* Accent principal */
  --green-300: #00a028;
  --green-200: #00c235;
  --green-100: #5fdf80;
  --green-50:  #b6f5c5;

  /* Surfaces */
  --bg-base:    #050c05;
  --bg-surface: #0a120a;
  --bg-card:    #0e180e;
  --bg-card-hover: #111e11;
  --border:     rgba(0, 128, 32, 0.12);
  --border-active: rgba(0, 128, 32, 0.35);
  --glow:       rgba(0, 128, 32, 0.18);
  --glow-strong: rgba(0, 128, 32, 0.35);

  /* Texte */
  --text-primary:   #e6f2e6;
  --text-secondary: #7a9e7a;
  --text-muted:     #3d5c3d;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Rayons */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 99px; }

/* ─── Noise texture overlay ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ─── Grid background ────────────────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,128,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,128,32,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── Container ──────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section spacing ────────────────────────────────── */
section { position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-300);
  border: 1px solid var(--border-active);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  background: rgba(0,128,32,0.06);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--green-400);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0,128,32,0.5), 0 4px 24px rgba(0,128,32,0.25);
}
.btn-primary:hover {
  background: var(--green-300);
  box-shadow: 0 0 0 1px rgba(0,160,40,0.6), 0 8px 32px rgba(0,128,32,0.4);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(0,128,32,0.06);
  border-color: var(--border-active);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn svg { flex-shrink: 0; }

/* ─── NAVBAR ──────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.3s var(--ease);
}

#navbar.scrolled {
  background: rgba(5, 12, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-active);
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-300);
  background: rgba(0,128,32,0.12);
  border: 1px solid var(--border-active);
  padding: 2px 8px;
  border-radius: 99px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 99px;
  transition: all 0.3s;
}

/* ─── HERO ────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,128,32,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-300);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,194,53,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,194,53,0); }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--green-300);
  position: relative;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bot-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  box-shadow: 0 0 0 1px var(--border), 0 32px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,128,32,0.08);
}

.bot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,128,32,0.5), transparent);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.bot-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.bot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-active);
  box-shadow: 0 0 20px rgba(0,128,32,0.3);
}

.bot-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
}

.bot-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.bot-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23d18b;
  box-shadow: 0 0 6px rgba(35, 209, 139, 0.6);
}

.bot-command-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-command {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.bot-command:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.bot-command-prefix {
  font-weight: 700;
  color: var(--green-300);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 12px;
}

/* ─── STATS STRIP ─────────────────────────────────────── */
#stats {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 36px 28px;
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── FEATURES ────────────────────────────────────────── */
#features {
  padding: 120px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 36px;
  transition: background 0.2s;
  position: relative;
}

.feature-card:hover { background: var(--bg-card-hover); }

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,128,32,0.0), transparent);
  transition: background 0.3s;
}

.feature-card:hover::after {
  background: linear-gradient(90deg, transparent, rgba(0,128,32,0.4), transparent);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,128,32,0.08);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  color: var(--green-300);
  margin-bottom: 24px;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── COMMANDS SHOWCASE ───────────────────────────────── */
#commands {
  padding: 120px 24px;
  background: var(--bg-surface);
}

.commands-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  min-height: 480px;
}

.cmd-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}

.cmd-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 20px 12px;
}

.cmd-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.cmd-cat-btn:hover {
  background: rgba(0,128,32,0.06);
  color: var(--text-primary);
}

.cmd-cat-btn.active {
  background: rgba(0,128,32,0.1);
  color: var(--green-200);
  border-left: 2px solid var(--green-400);
}

.cmd-panel {
  padding: 32px;
  display: none;
}
.cmd-panel.active { display: block; }

.cmd-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.cmd-panel-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmd-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.cmd-item:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.cmd-item-name {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-200);
  white-space: nowrap;
  min-width: 140px;
}

.cmd-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── CTA ─────────────────────────────────────────────── */
#cta {
  padding: 120px 24px;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0,128,32,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,128,32,0.6), transparent);
}

.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ─── FOOTER ──────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 64px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Animate on scroll ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .commands-layout { grid-template-columns: 1fr; }
  .cmd-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { flex-direction: column; }
  .footer-links-group { gap: 40px; flex-wrap: wrap; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 48px 24px; }
}
