:root {
  --bg: #04070d;
  --card: rgba(12, 18, 32, 0.75);
  --muted: #b7c1d9;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #1ee7ff;
  --secondary: #ff2fb4;
  --accent: #ff8c2f;
  --deep: #0c1b2a;
  --text: #f2f5ff;
  --glow-1: rgba(30, 231, 255, 0.4);
  --glow-2: rgba(255, 47, 180, 0.4);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: radial-gradient(circle at 20% 20%, rgba(30, 231, 255, 0.08), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(255, 47, 180, 0.08), transparent 30%),
    linear-gradient(120deg, #081020 0%, #050a12 40%, #0a1322 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 32px clamp(20px, 5vw, 56px) 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 17, 30, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand__text strong {
  letter-spacing: 0.6px;
  font-size: 1.05rem;
}

.brand__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 231, 255, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(30, 231, 255, 0.3);
}

.nav__actions {
  display: flex;
  gap: 10px;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 42px;
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 6px 0 14px;
}

.hero__copy .gradient {
  background: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}

.lede {
  color: var(--muted);
  max-width: 560px;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.pill {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 35px rgba(30, 231, 255, 0.35), 0 0 20px var(--glow-2);
}

.btn.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 45px rgba(255, 47, 180, 0.35);
}

.btn.neon {
  background: linear-gradient(120deg, var(--secondary), var(--accent));
  box-shadow: 0 10px 35px rgba(255, 140, 47, 0.25), 0 0 20px var(--glow-1);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.btn.full {
  width: 100%;
}

/* High-contrast variants */
.btn.secondary {
  background: #1e40af;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}
.btn.secondary:hover {
  background: #1d4ed8;
}

.btn.danger {
  background: #b91c1c !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
.btn.danger:hover {
  background: #dc2626 !important;
}

.cta {
  display: flex;
  gap: 12px;
  margin: 16px 0 6px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stats strong {
  font-size: 1.3rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__panel {
  position: relative;
}

.small {
  font-size: 0.88rem;
}

.panel__status {
  min-height: 28px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel__status.success {
  color: #4ade80;
}

.panel__status.error {
  color: #f87171;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dot-group {
  display: inline-flex;
  gap: 6px;
}

.dot-group span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  opacity: 0.8;
}

.panel__tabs {
  margin: 16px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  color: var(--text);
  border-color: rgba(30, 231, 255, 0.4);
  box-shadow: 0 10px 30px rgba(30, 231, 255, 0.15);
  background: linear-gradient(120deg, rgba(30, 231, 255, 0.15), rgba(255, 47, 180, 0.1));
}

.form {
  display: none;
  gap: 12px;
  flex-direction: column;
}

.form.active {
  display: flex;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.field input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.field input:focus {
  outline: 1px solid rgba(30, 231, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(30, 231, 255, 0.12);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.switch input {
  display: none;
}

.slider {
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
  border: 1px solid var(--line);
}

.slider::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 1px;
  left: 1px;
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
}

.switch input:checked + .slider::after {
  transform: translateX(18px);
}

.switch__label {
  color: var(--muted);
  font-size: 0.9rem;
}

.form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.link {
  color: var(--primary);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--muted);
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 60px clamp(20px, 5vw, 56px);
}

.section__head {
  max-width: 820px;
  margin-bottom: 28px;
}

.muted {
  color: var(--muted);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 231, 255, 0.35);
}

.card__icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.connect {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.connect__visual .glass {
  height: 100%;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.steps {
  list-style: decimal-leading-zero;
  margin: 12px 0 16px 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.connect__banner .banner {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 320px;
  background: linear-gradient(120deg, rgba(30, 231, 255, 0.18), rgba(255, 47, 180, 0.16)),
    url("../img/Banni%C3%A8re%20horizontale.png") center/cover no-repeat;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.connect__banner .banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.35), transparent 50%);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.panel.soft {
  background: rgba(255, 255, 255, 0.03);
}

.list {
  color: var(--muted);
  margin: 10px 0 0 16px;
  display: grid;
  gap: 8px;
}

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: center;
  padding: 26px clamp(20px, 5vw, 56px) 36px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__links,
.footer__social {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .hero__copy h1 {
    font-size: 32px;
  }
  .nav__actions {
    width: 100%;
    justify-content: space-between;
  }
  .cta .btn {
    flex: 1 1 100%;
  }
}
/* Carousel Styles */
.carousel-section {
  position: relative;
  z-index: 1;
}

/* Ambient neon glow behind the gallery section */
.carousel-section::before {
  content: "";
  position: absolute;
  inset: -60px 0 auto 0;
  height: 220px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(30,231,255,0.20), transparent 75%) 20% 50% / 40% 140px no-repeat,
    radial-gradient(closest-side, rgba(255,47,180,0.16), transparent 75%) 80% 50% / 40% 140px no-repeat;
  filter: blur(30px);
  animation: ambientDrift 12s ease-in-out infinite alternate;
}

.carousel-header {
  text-align: center;
  /* Match carousel width and center */
  width: 90%;
  max-width: 800px;
  margin: 0 auto 40px;
}

.carousel-title {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  animation: titleGlow 3s ease-in-out infinite;
}

.carousel-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(30,231,255,0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(30,231,255,0.6));
  }
}

.carousel {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  height: 350px;
  /* Neon gradient border */
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--card), var(--card)),
    linear-gradient(135deg, rgba(30,231,255,0.7), rgba(255,47,180,0.7));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  /* Glow */
  box-shadow:
    0 0 26px rgba(30,231,255,0.45),
    0 0 60px rgba(255,47,180,0.35),
    0 14px 44px rgba(0,0,0,0.35);
  background-size: 200% 200%, 200% 200%;
  animation: borderShift 10s linear infinite, neonPulse 6s ease-in-out infinite;
}

.carousel__track {
  display: block;
  white-space: nowrap;
  transition: transform 1s ease-in-out;
  height: 100%;
}

.carousel__slide {
  display: inline-block;
  width: 800px;
  height: 350px;
  white-space: normal;
  vertical-align: top;
  position: relative;
}

.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Slight vividness for neon feel */
  filter: saturate(1.12) contrast(1.08);
  /* True reflection below (Chromium/WebKit browsers) */
  -webkit-box-reflect: below 6px
    linear-gradient(to bottom, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 55%, rgba(255,255,255,0.02) 85%, transparent 100%);
}

/* Subtle reflective gloss at the bottom of each slide */
.carousel__slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.02), transparent);
}

/* Animated border glow */
@keyframes borderShift {
  0% { background-position: 0% 50%, 0% 50%; }
  50% { background-position: 100% 50%, 100% 50%; }
  100% { background-position: 0% 50%, 0% 50%; }
}

/* Neon pulse on the frame */
@keyframes neonPulse {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(30,231,255,0.40),
      0 0 52px rgba(255,47,180,0.30),
      0 12px 40px rgba(0,0,0,0.35);
  }
  50% {
    box-shadow:
      0 0 34px rgba(30,231,255,0.55),
      0 0 74px rgba(255,47,180,0.45),
      0 16px 48px rgba(0,0,0,0.38);
  }
}

/* Ambient background drift */
@keyframes ambientDrift {
  0% { transform: translateY(0px); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.95; }
  100% { transform: translateY(-6px); opacity: 1; }
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(30,231,255,0.15);
  border: 2px solid var(--primary);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel__btn:hover {
  background: rgba(30,231,255,0.3);
  box-shadow: 0 0 30px rgba(30,231,255,0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
  left: 20px;
}

.carousel__btn--next {
  right: 20px;
}

.carousel__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.3);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(30,231,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel__dot:hover {
  border-color: var(--primary);
  transform: scale(1.2);
}

.carousel__dot.active {
  background: var(--primary);
  box-shadow: 0 0 15px rgba(30,231,255,0.8);
  border-color: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .carousel {
    height: 250px;
    width: 95%;
    border-radius: 12px;
  }
  
  .carousel__slide {
    width: 100%;
    height: 250px;
  }
  
  .carousel__img {
    width: 100%;
    height: 250px;
  }
  
  .carousel__btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel__btn--prev {
    left: 10px;
  }
  
  .carousel__btn--next {
    right: 10px;
  }
}