/* ==========================================================
   ClickVetor — Design tokens & shared styles
   ========================================================== */

:root {
  /* Brand */
  --brand-deep:    #1e3aff;   /* deep electric blue from logo */
  --brand-mid:     #2b8cff;   /* mid blue */
  --brand-cyan:    #22d3ee;   /* cyan accent */
  --brand-glow:    #4ee2ff;   /* bright glow */
  --brand-ink:     #5eead4;   /* mint accent */

  /* Surface */
  --bg-0:          #030610;   /* deepest */
  --bg-1:          #060a18;
  --bg-2:          #0a1024;
  --bg-3:          #111a36;

  --line:          rgba(120, 170, 255, 0.10);
  --line-strong:   rgba(120, 170, 255, 0.22);

  --text:          #eaf2ff;
  --text-dim:      #95a3c4;
  --text-mute:     #5e6b8a;

  /* Typography */
  --f-display: "Sora", system-ui, sans-serif;
  --f-body:    "Sora", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows / glows */
  --glow-cyan: 0 0 40px rgba(78, 226, 255, 0.45),
               0 0 80px rgba(34, 211, 238, 0.18);
  --glow-blue: 0 0 60px rgba(43, 140, 255, 0.35);
  --shadow-card: 0 30px 80px -30px rgba(0, 20, 60, 0.6),
                 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-deep), var(--brand-cyan));
  border-radius: 10px;
}

/* Selection */
::selection {
  background: var(--brand-cyan);
  color: var(--bg-0);
}

/* ==========================================================
   Background ambient: grid + radial glow
   ========================================================== */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before {
  /* radial halo */
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(60% 50% at 50% 0%,
      rgba(43, 140, 255, 0.35) 0%,
      rgba(43, 140, 255, 0) 60%),
    radial-gradient(40% 40% at 90% 30%,
      rgba(34, 211, 238, 0.20) 0%,
      rgba(34, 211, 238, 0) 70%),
    radial-gradient(45% 45% at 10% 80%,
      rgba(94, 234, 212, 0.12) 0%,
      rgba(94, 234, 212, 0) 70%);
  filter: blur(0px);
}
.ambient::after {
  /* grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,
      rgba(120, 170, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom,
      rgba(120, 170, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%,
    #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%,
    #000 30%, transparent 80%);
}

/* Scanline / noise overlay — lightweight CSS-only noise */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 2px 2px;
}

/* ==========================================================
   Layout
   ========================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ==========================================================
   Type
   ========================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-glow);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-glow);
  box-shadow: 0 0 10px var(--brand-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.02; letter-spacing: -0.03em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }

.gradient-text {
  background: linear-gradient(110deg,
    #ffffff 0%,
    #b8d6ff 35%,
    var(--brand-glow) 60%,
    #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

.cyan-text {
  background: linear-gradient(120deg, var(--brand-mid), var(--brand-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-cyan));
  color: #021024;
  box-shadow:
    0 10px 30px -10px rgba(34, 211, 238, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  box-shadow:
    0 16px 40px -8px rgba(34, 211, 238, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 100%; }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--brand-cyan);
}

/* ==========================================================
   Card
   ========================================================== */
.card {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.25s ease, background 0.3s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(78, 226, 255, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* ==========================================================
   Reveal animation
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1),
              transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(20px); }
.stagger.in > * {
  animation: rise 0.8s cubic-bezier(.22,.61,.36,1) forwards;
}
.stagger.in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger.in > *:nth-child(2) { animation-delay: 0.15s; }
.stagger.in > *:nth-child(3) { animation-delay: 0.25s; }
.stagger.in > *:nth-child(4) { animation-delay: 0.35s; }
.stagger.in > *:nth-child(5) { animation-delay: 0.45s; }
.stagger.in > *:nth-child(6) { animation-delay: 0.55s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Float */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float-slow { animation: float-y 6s ease-in-out infinite; will-change: transform; }

/* Marquee */
@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Sparkle for the hero arrow path */
@keyframes dash {
  to { stroke-dashoffset: 0; }
}

/* Respeita a preferência do usuário de reduzir animações (enjoo, epilepsia fotossensível etc.) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
