:root{
  --bg:#05070b;
  --card:#0b101a;
  --line:#1a2638;

  --text:#d7e1f0;
  --muted:#8aa0c2;

  --green:#22ff7a;
  --green2:#00c85f;

  --shadow: 0 20px 60px rgba(0,0,0,.65);
  --radius: 20px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: Segoe UI, Inter, system-ui, -apple-system, sans-serif;
  overflow-x:hidden;
}

/* ===== BACKGROUND LAYERS (no bottom seam) ===== */
.bg{ position:fixed; inset:0; z-index:-1; pointer-events:none; }
.bgGlow{
  position:absolute; inset:-30%;
  background:
    radial-gradient(900px 700px at 20% 20%, rgba(34,255,122,.22), transparent 65%),
    radial-gradient(900px 700px at 85% 25%, rgba(34,255,122,.12), transparent 60%),
    radial-gradient(800px 800px at 50% 85%, rgba(34,255,122,.08), transparent 60%);
  filter: blur(18px);
  opacity:.95;
}
.bgGrid{
  position:absolute; inset:0;
  background:
    linear-gradient(to right, rgba(34,255,122,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34,255,122,.04) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,.95), transparent 70%);
  opacity:.35;
}
.bgNoise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:.06;
  mix-blend-mode: overlay;
}

/* ===== LAYOUT ===== */
.ecosystem{
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 28px 48px;
}

.hero{
  text-align:center;
  margin-bottom: 44px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border: 1px solid rgba(34,255,122,.18);
  background: rgba(11,16,26,.55);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  color: rgba(215,225,240,.85);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(34,255,122,.8);
}

.hero h1{
  margin: 18px 0 6px;
  font-size: 56px;
  letter-spacing: .5px;
}
.hero h1 span{
  color: var(--green);
  text-shadow: 0 0 18px rgba(34,255,122,.55);
}
.hero p{
  margin: 0;
  color: var(--muted);
}

/* ===== TILES ===== */
.tiles{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.tile{
  position:relative;
  display:block;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  text-decoration:none;
  color: var(--text);

  background: linear-gradient(180deg, rgba(11,16,26,.92), rgba(7,10,16,.88));
  border: 1px solid rgba(34,255,122,.12);
  box-shadow: var(--shadow);
  overflow:hidden;

  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tile::after{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 140px at 30% 10%, rgba(34,255,122,.18), transparent 55%);
  opacity:.65;
  pointer-events:none;
}

.tile:hover{
  transform: translateY(-6px);
  border-color: rgba(34,255,122,.55);
  box-shadow: 0 24px 70px rgba(0,0,0,.78);
}

.tileTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 14px;
}

.logo{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  color: var(--green);
  background: rgba(34,255,122,.08);
  border: 1px solid rgba(34,255,122,.22);
  box-shadow: 0 0 22px rgba(34,255,122,.18);
}
.logo svg{
  width: 26px;
  height: 26px;
}

.pill{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(215,225,240,.9);
  border: 1px solid rgba(34,255,122,.18);
  background: rgba(11,16,26,.55);
}
.pill.ok{
  color: rgba(34,255,122,.95);
  border-color: rgba(34,255,122,.35);
  box-shadow: 0 0 18px rgba(34,255,122,.16);
}

.tile h2{
  margin: 0 0 8px;
  color: var(--green);
  font-size: 20px;
}
.tile p{
  margin: 0;
  color: rgba(138,160,194,.95);
  font-size: 13.5px;
  line-height: 1.45;
}

.foot{
  margin-top: 46px;
  text-align:center;
  color: var(--muted);
  font-size: 12px;
  opacity:.95;
}

/* Mobile tweak */
@media (max-width: 520px){
  .hero h1{ font-size: 40px; }
}

.bgGlow{
  position:absolute; inset:-30%;
  background:
    radial-gradient(900px 700px at 20% 20%, rgba(34,255,122,.22), transparent 65%),
    radial-gradient(900px 700px at 85% 25%, rgba(34,255,122,.12), transparent 60%),
    radial-gradient(800px 800px at 50% 85%, rgba(34,255,122,.08), transparent 60%);
  filter: blur(18px);
  opacity:.95;
}

/* ===== SWEEP GLOW (balayage subtil) ===== */
.bgGlow::before{
  content:"";
  position:absolute;
  inset:-35%;
  pointer-events:none;

  /* un beam diagonal très soft */
  background:
    radial-gradient(700px 500px at 0% 50%,
      rgba(34,255,122,.18),
      rgba(34,255,122,.08) 45%,
      transparent 72%);

  filter: blur(70px);
  opacity: .55;
  mix-blend-mode: screen;

  transform: translateX(-35%) rotate(-12deg);
  animation: ilcSweep 18s linear infinite;
  will-change: transform, opacity;
}

@keyframes ilcSweep{
  0%   { transform: translateX(-40%) rotate(-12deg); opacity: .40; }
  35%  { opacity: .65; }
  50%  { transform: translateX(40%)  rotate(-12deg); opacity: .55; }
  85%  { opacity: .62; }
  100% { transform: translateX(-40%) rotate(-12deg); opacity: .40; }
}

.bgGlow::after{
  content:"";
  position:absolute;
  inset:-35%;
  pointer-events:none;

  background:
    radial-gradient(650px 450px at 100% 55%,
      rgba(34,255,122,.12),
      transparent 72%);

  filter: blur(90px);
  opacity: .35;
  mix-blend-mode: screen;

  transform: translateX(35%) rotate(10deg);
  animation: ilcSweep2 26s linear infinite;
  will-change: transform, opacity;
}

@keyframes ilcSweep2{
  0%   { transform: translateX(35%) rotate(10deg); opacity: .25; }
  50%  { transform: translateX(-35%) rotate(10deg); opacity: .40; }
  100% { transform: translateX(35%) rotate(10deg); opacity: .25; }
}

/* ===== TOPBAR ===== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin: 0 auto 26px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,255,122,.14);
  background: rgba(11,16,26,.42);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: rgba(215,225,240,.88);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brandDot{
  width:10px; height:10px; border-radius:999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(34,255,122,.75);
}

.topActions{
  display:flex;
  align-items:center;
  gap:10px;
}
.topLink{
  color: rgba(215,225,240,.78);
  text-decoration:none;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.topLink:hover{
  color: rgba(215,225,240,.92);
  border-color: rgba(34,255,122,.18);
  background: rgba(34,255,122,.06);
}

.topBtn{
  text-decoration:none;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(34,255,122,.95);
  border: 1px solid rgba(34,255,122,.28);
  background: rgba(34,255,122,.06);
  box-shadow: 0 0 18px rgba(34,255,122,.12);
}
.topBtn:hover{
  border-color: rgba(34,255,122,.55);
  background: rgba(34,255,122,.10);
}

/* ===== TILE UPGRADE (neo-glass + shine) ===== */
.tile{
  isolation:isolate; /* pour gérer les layers proprement */
  backdrop-filter: blur(10px);
}

.tile::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 35%);
  opacity:.55;
  z-index:0;
}

.tile::after{
  /* ton glow existant, mais on le met derrière le contenu */
  z-index:0;
}

/* contenu au-dessus des effets */
.tile > *{ position:relative; z-index:1; }

/* fine accent line */
.tile{
  box-shadow: 0 18px 55px rgba(0,0,0,.70);
}
.tile:hover{
  box-shadow: 0 26px 80px rgba(0,0,0,.82);
}

/* shine sweep au hover */
.tile .tileTop::after{
  content:"";
  position:absolute;
  inset:-40px -60px auto -60px;
  height: 90px;
  background: radial-gradient(300px 70px at 50% 50%, rgba(34,255,122,.18), transparent 70%);
  opacity:0;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events:none;
}
.tile:hover .tileTop::after{
  opacity:.9;
  transform: translateY(6px);
}

/* Focus clavier (important) */
.tile:focus-visible,
.topLink:focus-visible,
.topBtn:focus-visible{
  outline: 2px solid rgba(34,255,122,.55);
  outline-offset: 3px;
}

/* ===== SOON STATE ===== */
.tile.isSoon{
  opacity:.70;
  cursor:not-allowed;
}
.tile.isSoon:hover{
  transform:none;
  border-color: rgba(34,255,122,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.70);
}
.tile.isSoon .pill{
  color: rgba(215,225,240,.75);
  border-color: rgba(215,225,240,.14);
}
.soonTag{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  margin-left: 8px;
  color: rgba(215,225,240,.85);
  border: 1px solid rgba(215,225,240,.18);
  background: rgba(11,16,26,.40);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

    .pulse{
      width:8px;height:8px;border-radius:50%;
      background:var(--green);
      box-shadow:0 0 12px rgba(34,255,122,.9);
      animation:pulse 1.25s ease-in-out infinite;
    }
    @keyframes pulse{
      0%,100%{transform:scale(1);opacity:1}
      50%{transform:scale(1.55);opacity:.55}
    }
	
	    /* Reduced motion */
    @media (prefers-reduced-motion: reduce){
      .grid,.blob,.pulse,.bar>i{animation:none}
    }