/* =====================================================
   OxiRide — style.css
   Concept : Dark Premium / Moto Racing Luxury
   Typographie : Bebas Neue (display) + Rajdhani (body)
   ===================================================== */

:root {
  --black:       #000000;
  --white:       #ffffff;
  --silver-lt:   #e0e0e0;
  --silver:      #b0b0b0;
  --silver-dk:   #707070;
  --accent:      #c8c2b4;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Rajdhani', sans-serif;

  --max-w: 760px;
  --gap:   clamp(2rem, 5vw, 3.5rem);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   BACKGROUND LAYERS
   ===================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--black);
}

.bg-glow--top {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 130vw);
  height: 600px;
  background: radial-gradient(ellipse at 50% 20%,
    rgba(180,175,165,0.07) 0%,
    transparent 65%);
  border-radius: 50%;
}

.bg-glow--mid {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 100vw);
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(200,194,180,0.03) 0%,
    transparent 70%);
}

.bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 119px,
      rgba(255,255,255,0.012) 120px
    );
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 250px 250px;
}

/* =====================================================
   PAGE WRAPPER
   ===================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  text-align: center;
}

/* =====================================================
   HEADER / H1
   ===================================================== */

.site-header {
  width: 100%;
  animation: revealDown 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-transform: uppercase;
  background: linear-gradient(
    170deg,
    #ffffff  0%,
    #d8d8d8 25%,
    #8a8a8a 50%,
    #d0d0d0 72%,
    #f0f0f0 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.06));
}

.title-rule {
  margin: 1.2rem auto 0;
  width: clamp(60px, 15vw, 110px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 40%,
    var(--silver) 60%,
    transparent 100%);
}

/* =====================================================
   H2 ACCROCHE
   ===================================================== */

.tagline-section {
  width: 100%;
  animation: revealUp 0.9s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--silver-lt);
}

/* =====================================================
   BOUTON CTA
   ===================================================== */

.cta-section {
  animation: revealUp 0.9s 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: linear-gradient(135deg,
    #e0e0e0 0%,
    #f5f5f5 35%,
    #c8c2b4 70%,
    #e8e8e8 100%);
  background-size: 200% 200%;
  padding: clamp(16px, 3vw, 22px) clamp(32px, 7vw, 60px);
  border-radius: 3px;
  transition:
    transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.3s ease,
    background-position 0.4s ease;
  box-shadow:
    0 4px 24px rgba(200,194,180,0.20),
    0 1px 0 rgba(255,255,255,0.4) inset;
}

.btn-cta__arrow {
  font-size: 1.1em;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-cta:hover {
  transform: translateY(-3px);
  background-position: 100% 100%;
  box-shadow:
    0 12px 40px rgba(200,194,180,0.28),
    0 1px 0 rgba(255,255,255,0.4) inset;
}

.btn-cta:hover .btn-cta__arrow {
  transform: translateX(5px);
}

.btn-cta:active {
  transform: translateY(-1px);
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  animation: revealUp 0.9s 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.site-footer::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-dk), transparent);
  margin: 0 auto 1.5rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  letter-spacing: 0.35em;
  color: var(--silver-dk);
  text-transform: uppercase;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes revealDown {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 640px) {
  .brand-title { letter-spacing: 0.05em; }
  .tagline { letter-spacing: 0.03em; }
}

@media (max-width: 380px) {
  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
