/* =======================================================
   SKYESIXS — design tokens
   ======================================================= */
:root{
  --bg-void: #0A0C0F;
  --bg-panel: #14181D;
  --bg-panel-raised: #1B2129;
  --steel-line: #2B323C;
  --steel-line-soft: #20262E;
  --chrome: #E4E8EC;
  --text-dim: #8B93A1;
  --racing-red: #DA1E2C;
  --racing-red-text: #FF4B57; /* brighter, for small text on dark backgrounds (contrast) */
  --pit-blue: #2FA7DE;

  --font-display: "Rajdhani", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1120px;
  --radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg-void);
  color: var(--chrome);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

::selection{ background: var(--racing-red); color:#fff; }

:focus-visible{
  outline: 2px solid var(--pit-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,h2,h3{
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

/* thin livery line — the single, deliberate racing nod on the page */
.top-accent{
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--racing-red), var(--pit-blue));
}

/* =======================================================
   BRAND / LOGO LOCKUP
   ======================================================= */
.brand{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
}
.brand .logo-mark{
  width:19px; height:19px;
  color: var(--racing-red);
  flex: 0 0 auto;
}
.brand .brand-text{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.05rem;
}
.brand--sm .brand-text{ font-size:.95rem; }
.brand--sm .logo-mark{ width:16px; height:16px; }

/* status dot */
.status-dot{
  width:7px; height:7px;
  border-radius:50%;
  background: var(--racing-red);
  display:inline-block;
  margin-right:.4em;
  box-shadow: 0 0 0 0 rgba(218,30,44,.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(218,30,44,.55); }
  70%{ box-shadow: 0 0 0 7px rgba(218,30,44,0); }
  100%{ box-shadow: 0 0 0 0 rgba(218,30,44,0); }
}

/* =======================================================
   SOCIAL ICON BADGES (image-based)
   ======================================================= */
.icon-badge{
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease;
}
.icon-badge img{ width:100%; height:100%; object-fit:cover; display:block; }
.icon-badge:hover{ transform: translateY(-3px); }

.icon-badge--sm{
  width: 34px; height: 34px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.icon-badge--sm:hover{ box-shadow: 0 8px 16px rgba(0,0,0,.4); }

.icon-badge--lg{
  width: 56px; height: 56px;
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
.icon-badge--lg:hover{ box-shadow: 0 16px 32px rgba(0,0,0,.5); transform: translateY(-4px) scale(1.03); }

/* =======================================================
   NAV
   ======================================================= */
.site-nav{
  position: sticky;
  top:0;
  z-index: 40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(10,12,15,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-line-soft);
}
.nav-links{ display:flex; gap:.55rem; }

/* =======================================================
   HERO
   ======================================================= */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding: 6rem 1.5rem 4rem;
}
.hero-bg{
  position:absolute; inset:-2%;
  background-size: cover;
  background-position: center 42%;
  animation: drift 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift{
  0%{ transform: scale(1.015) translate3d(0,0,0); }
  100%{ transform: scale(1.05) translate3d(-1%, -1%, 0); }
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(10,12,15,.4) 0%, rgba(10,12,15,.8) 62%, rgba(10,12,15,.97) 100%),
    linear-gradient(180deg, rgba(10,12,15,.9) 0%, rgba(10,12,15,.4) 24%, rgba(10,12,15,.6) 62%, rgba(10,12,15,.98) 100%);
}
.hero-inner{
  position:relative;
  z-index:2;
  max-width: 640px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  font-family: var(--font-mono);
  font-size:.7rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  color: var(--text-dim);
  margin-bottom: 1.7rem;
}
.hero-kicker-sep{
  width:1px; height:12px;
  background: var(--steel-line);
}
.hero-kicker .live{
  display:flex;
  align-items:center;
  color: var(--chrome);
}

.avatar-wrap{
  width: 140px; height:140px;
  border-radius:50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--racing-red) 0%, rgba(218,30,44,.15) 45%, var(--pit-blue) 100%);
  margin-bottom: 1.6rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.avatar{
  width:100%; height:100%;
  border-radius:50%;
  object-fit: cover;
  border: 3px solid var(--bg-void);
}

.wordmark{
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: .95;
  color:#fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.wordmark-stripe{
  width: 60px; height:3px;
  margin: 1.2rem 0 1.4rem;
  border-radius:3px;
  background: linear-gradient(90deg, var(--racing-red), var(--pit-blue));
}
.hero-sub{
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 44ch;
  margin: 0 0 2.2rem;
}

.hero-cta{
  display:flex;
  gap:1rem;
  margin-bottom: 2.6rem;
}

.scroll-cue{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:.35rem;
  font-family: var(--font-mono);
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: var(--text-dim);
  transition: color .2s ease;
}
.scroll-cue:hover{ color: var(--chrome); }
.scroll-cue svg{ width:16px; height:16px; }
.scroll-cue .bounce{ animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(5px); }
}

/* staggered hero entrance */
.reveal-stagger > *{
  opacity:0;
  transform: translateY(16px);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal-stagger > *:nth-child(1){ animation-delay:.05s; }
.reveal-stagger > *:nth-child(2){ animation-delay:.15s; }
.reveal-stagger > *:nth-child(3){ animation-delay:.25s; }
.reveal-stagger > *:nth-child(4){ animation-delay:.32s; }
.reveal-stagger > *:nth-child(5){ animation-delay:.42s; }
.reveal-stagger > *:nth-child(6){ animation-delay:.52s; }
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }

/* =======================================================
   SECTION HEAD (shared)
   ======================================================= */
.section-head{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align:center;
  margin-bottom: 3rem;
}
.eyebrow{
  display:inline-block;
  font-family: var(--font-mono);
  font-size:.72rem;
  letter-spacing:.18em;
  color: var(--racing-red-text);
  margin-bottom: .9rem;
}
.section-head h2{
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom:.6rem;
}
.section-head p{ color: var(--text-dim); margin:0; }

/* =======================================================
   RÉSEAUX — link cards
   ======================================================= */
.pitlane{ padding: 6rem 0 5rem; }

.card-grid{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 720px){
  .card-grid{ grid-template-columns: 1fr; max-width: 460px; }
}

.platform-card{
  display:flex;
  flex-direction:column;
  gap: .9rem;
  background: linear-gradient(165deg, var(--bg-panel-raised), var(--bg-panel));
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
  overflow:hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.platform-card::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(218,30,44,.1), transparent 55%);
  opacity:0;
  transition: opacity .3s ease;
}
.platform-card:hover{
  transform: translateY(-6px);
  border-color: var(--racing-red);
  box-shadow: 0 18px 34px rgba(0,0,0,.4);
}
.platform-card:hover::before{ opacity:1; }

.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.platform-icon-img{
  width:44px; height:44px;
  border-radius:50%;
  flex: 0 0 auto;
}
.card-arrow{
  width:18px; height:18px;
  color: var(--text-dim);
  transition: transform .25s ease, color .25s ease;
}
.platform-card:hover .card-arrow{
  transform: translate(3px,-3px);
  color: var(--racing-red);
}
.platform-card h3{
  font-size: 1.4rem;
  letter-spacing:.03em;
}
.platform-card p{
  color: var(--text-dim);
  font-size: .92rem;
  margin:0;
  flex-grow:1;
}

/* =======================================================
   À PROPOS
   ======================================================= */
.specsheet{ padding: 2rem 0 6rem; }

.spec-panel{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.spec-bio{
  font-size: 1.1rem;
  color: var(--chrome);
  text-align:center;
  max-width: 56ch;
  margin: 0 auto 2.4rem;
}
.spec-list{
  margin:0;
  border-top: 1px solid var(--steel-line);
}
.spec-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 1rem .2rem;
  border-bottom: 1px solid var(--steel-line);
}
.spec-row dt{
  font-family: var(--font-mono);
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: var(--text-dim);
}
.spec-row dd{
  margin:0;
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.05rem;
  letter-spacing:.02em;
  display:flex;
  align-items:center;
}

/* =======================================================
   FOOTER
   ======================================================= */
.site-footer{
  border-top: 1px solid var(--steel-line-soft);
  padding: 3rem 1.5rem 2.4rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 1.4rem;
  text-align:center;
}
.footer-links{ display:flex; gap:.6rem; }
.footer-fine{
  font-family: var(--font-mono);
  font-size:.72rem;
  letter-spacing:.06em;
  color: var(--text-dim);
  margin:0;
}

/* back to top */
.to-top{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px; height:44px;
  border-radius:50%;
  border: 1px solid var(--steel-line);
  background: rgba(20,24,29,.85);
  backdrop-filter: blur(6px);
  color: var(--chrome);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  opacity:0;
  transform: translateY(10px);
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease, color .2s ease;
  z-index: 45;
}
.to-top svg{ width:18px; height:18px; }
.to-top.visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
.to-top:hover{ border-color: var(--racing-red); color: var(--racing-red); }

/* =======================================================
   SCROLL REVEAL
   ======================================================= */
.reveal{
  opacity:0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{ opacity:1; transform: translateY(0); }
.card-grid .platform-card.reveal:nth-child(1){ transition-delay:.03s; }
.card-grid .platform-card.reveal:nth-child(2){ transition-delay:.09s; }
.card-grid .platform-card.reveal:nth-child(3){ transition-delay:.15s; }

/* =======================================================
   REDUCED MOTION
   ======================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-bg{ animation:none; }
  .status-dot{ animation:none; }
  .scroll-cue .bounce{ animation:none; }
  .reveal-stagger > *{ opacity:1; transform:none; animation:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .platform-card, .icon-badge, .to-top{ transition:none; }
}

/* =======================================================
   SMALL SCREENS
   ======================================================= */
@media (max-width:480px){
  .hero{ min-height: 100vh; padding-top: 5.5rem; }
  .hero-cta{ gap:.8rem; }
  .icon-badge--lg{ width:52px; height:52px; }
}
