:root {
  --color-primary: #1a1a1a;
  --color-text: #ffffff;
  --color-accent: #1a1a1a;

  --font-title: "Orbitron", sans-serif;
  --font-body: "Montserrat", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: #000;
  color: var(--color-text);
  overflow: hidden;
  scroll-behavior: smooth;
}

/* --- STRUCTURE & SECTIONS --- */

#scroll-wrapper,
.scroll-section {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#scroll-spacer {
  height: 200vh;
}

/* --- TYPOGRAPHIE --- */

h1,
.brand-title {
  font-family: var(--font-title);
}

.brand-title {
  font-size: 2.75rem;
  letter-spacing: 0.25em;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  color: var(--color-text);
}

.subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  font-weight: 300;
}

.price {
  font-size: 1.5rem;
  color: var(--color-text);
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #ddd;
  text-align: right;
}

.writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* --- NAVIGATION --- */

nav {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 1.3s ease, border-radius 1.3s ease,
    background-color 0.5s ease, backdrop-filter 0.5s ease;
  border-radius: 12px;
}

.scrolled {
  border-color: white;
  border-radius: 50px;
}

/* --- BOUTONS --- */

button,
a,
.buy-button,
.color-swatch,
nav {
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

#btnHeader,
.buy-button {
  background-color: var(--color-primary);
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: transform 0.3s ease;
}

.buy-button {
  padding: 14px 36px;
  font-weight: 600;
  box-shadow: 0 0 16px var(--color-primary);
}

.buy-button:hover {
  transform: scale(1.02);
}

/* --- PALETTE DE COULEURS --- */

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--color-text);
}

/* --- EFFETS --- */

.flicker-text {
  font-size: 2rem;
  color: #fff;
  animation: flicker 5s linear forwards;
  opacity: 0;
  filter: drop-shadow(0 0 2rem var(--color-text));
  -webkit-filter: drop-shadow(0 0 1.2rem rgba(255, 255, 255, 0.38));
}

@keyframes flicker {
  0%,
  10%,
  17%,
  21% {
    opacity: 0;
  }
  5%,
  15%,
  19%,
  23%,
  30%,
  100% {
    opacity: 1;
  }
}

/* --- 3D CANVAS --- */

canvas {
  pointer-events: none;
  z-index: 20;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  filter: drop-shadow(0 0.5rem 2rem rgba(131, 131, 131, 0.35))
  drop-shadow(0 1rem 4rem rgba(131, 131, 131, 0.25))
  drop-shadow(0 2rem 8rem rgba(131, 131, 131, 0.15))
  drop-shadow(0 0rem 12rem rgba(131, 131, 131, 0.15));

-webkit-filter: drop-shadow(0 0.5rem 2rem rgba(131, 131, 131, 0.35))
          drop-shadow(0 1rem 4rem rgba(131, 131, 131, 0.25))
          drop-shadow(0 2rem 8rem rgba(131, 131, 131, 0.15))
          drop-shadow(0 0rem 12rem rgba(131, 131, 131, 0.15));
}

/* --- SPÉCIFIQUE --- */

#btmFirst {
  position: relative !important;
  width: 50vw;
  background-color: #000;
  z-index: 1000 !important;
  border-radius: 40px;
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
  .brand-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.875rem;
  }

  .price {
    font-size: 1.25rem;
  }

  .features {
    font-size: 0.75rem;
  }

  .buy-button {
    padding: 12px 24px;
    font-size: 0.75rem;
    margin-left: 10px;
  }

  #specs-block {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    padding: 0 1rem;
  }

  #specs-block ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
  }

  .py-24 {
    padding-bottom: 4rem !important;
  }
}
