/* Squevo Labs — landing */

:root {
  --bg: #030208;
  --blue: #1FA9F6;
  --royal: #2B6EF6;
  --violet: #A02BE0;
  --pink: #FF4D8D;
  --ink: #fff;
  --lang-fade: .6s ease;
  --headline: 300 clamp(44px, 8.5vw, 116px)/1.02 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

/* ---------- Stage ---------- */
.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--bg);
}

.corner-logo {
  position: absolute;
  right: clamp(-460px, -30vw, -180px);
  bottom: clamp(-840px, -55vh, -360px);
  width: clamp(760px, 105vw, 1550px);
  height: auto;
  opacity: .9;
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.swirl {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  will-change: transform;
}
.swirl--a {
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(31,169,246,.16), rgba(160,43,224,.3), rgba(245,49,107,.2),
    rgba(7,6,15,0) 62%, rgba(43,110,246,.22), rgba(31,169,246,.16));
  filter: blur(70px);
  animation: swirl 24s linear infinite;
}
.swirl--b {
  background: conic-gradient(from 180deg at 50% 50%,
    rgba(245,49,107,.14), rgba(7,6,15,0) 40%, rgba(160,43,224,.24),
    rgba(7,6,15,0) 78%, rgba(245,49,107,.14));
  filter: blur(90px);
  animation: swirl 37s linear infinite reverse;
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  opacity: .5;
  pointer-events: none;
}

.scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(160,43,224,.09), transparent);
  animation: scan 9s linear infinite;
  pointer-events: none;
}

.particles { position: absolute; inset: 0; pointer-events: none; }
.particles i {
  position: absolute;
  left: var(--x);
  bottom: -20px;
  width: var(--s);
  height: var(--s);
  border-radius: 99px;
  background: var(--c);
  box-shadow: 0 0 calc(var(--s) * 4) var(--c);
  opacity: var(--o);
  animation: driftup var(--d) var(--delay) linear infinite;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(3,2,8,0) 30%, rgba(3,2,8,.6) 80%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 30px) clamp(20px, 4.5vw, 64px);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark {
  display: block;
  width: clamp(48px, 5vw, 72px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(160,43,224,.55));
}
.brand__word {
  display: flex;
  align-items: baseline;
  gap: clamp(5px, .6vw, 8px);
  font: 300 clamp(25px, 2.75vw, 40px)/1 'Poppins', sans-serif;
  letter-spacing: .02em;
}
.brand__squevo { color: #f5f4f8; }
.brand__bar {
  width: 2px;
  height: .92em;
  align-self: center;
  transform: translateY(.06em);
  border-radius: 2px;
  background: linear-gradient(180deg, #f43f8e, #8b5cf6, #4f8ef7);
}
.brand__labs {
  display: inline-block;
  font-size: .78em;
  background: linear-gradient(90deg, #c084fc, #8ab4ff, #5eb4f7);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.cta {
  position: relative;
  overflow: hidden;
  font: 600 clamp(13px, 1vw, 14px) 'Sora', sans-serif;
  color: #fff;
  padding: 12px clamp(16px, 1.7vw, 24px);
  border-radius: 99px;
  background: linear-gradient(100deg, var(--royal), var(--violet) 26%, var(--pink) 52%, var(--violet) 76%, var(--royal));
  background-size: 220% 100%;
  box-shadow: 0 10px 34px rgba(160,43,224,.45);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .45s ease;
  white-space: nowrap;
}
.cta:hover,
.cta:focus-visible {
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  animation: sheen 2.2s linear infinite;
  box-shadow: 0 0 40px rgba(160,43,224,.8), 0 0 16px rgba(255,77,141,.5);
}

/* ---------- Bilingual cross-fade ---------- */
.bi { display: inline-grid; text-align: center; }
.bi__en, .bi__fr { grid-area: 1 / 1; transition: opacity var(--lang-fade); }
.bi__fr { opacity: 0; }
html.is-fr .bi__en { opacity: 0; }
html.is-fr .bi__fr { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(70px, 10vh, 110px) 20px 40px;
}
.headline-wrap { position: relative; text-align: center; }

.headline {
  margin: 0;
  font: var(--headline);
  letter-spacing: -.05em;
}
.line { display: block; color: #fff; }
.line--flicker { animation: flicker 9s linear infinite; }
.line--grad {
  background: linear-gradient(100deg, var(--blue), var(--violet) 40%, var(--pink) 70%, var(--blue));
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}

.headline--ghost {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}
.headline--ghost .line { color: inherit; }
.ghost--blue { color: var(--blue); animation: glitch1 5s linear infinite; }
.ghost--pink { color: var(--pink); animation: glitch2 7s linear infinite; }

/* ---------- Keyframes ---------- */
@keyframes sheen   { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes swirl   { from { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.25); } to { transform: rotate(360deg) scale(1); } }
@keyframes breathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 40px rgba(160,43,224,.5)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 110px rgba(255,77,141,.75)); }
}
@keyframes flicker { 0%, 91%, 94%, 100% { opacity: 1; } 92% { opacity: .2; } 93% { opacity: .85; } }
@keyframes scan    { from { transform: translateY(-100%); } to { transform: translateY(1000%); } }
@keyframes driftup {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(60px); opacity: 0; }
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0,0); opacity: 0; }
  91% { transform: translate(-6px, 2px); opacity: .8; }
  93% { transform: translate(5px, -2px); opacity: .6; }
  95% { transform: translate(0,0); opacity: 0; }
}
@keyframes glitch2 {
  0%, 88%, 100% { transform: translate(0,0); opacity: 0; }
  89% { transform: translate(7px, 3px); opacity: .7; }
  92% { transform: translate(-4px, -1px); opacity: .5; }
  94% { transform: translate(0,0); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .corner-logo { right: -38vw; bottom: -64vw; width: 130vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01s !important;
  }
  .particles, .scanline, .headline--ghost { display: none; }
}
