/* ==========================================================================
   Gestor SST — Landing Page
   Base: tokens, reset, tipografia, fundo (FX)
   ========================================================================== */

:root {
  --bg: #070b11;
  --bg-soft: #0b121b;
  --surface: #111a28;
  --surface-2: #16212f;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.26);

  --brand: #22d3ee;
  --brand-deep: #006680;
  --brand-glow: rgba(34, 211, 238, 0.35);

  --accent: #ffb627;
  --accent-soft: rgba(255, 182, 39, 0.14);

  --ok: #2dd9a3;
  --ok-soft: rgba(45, 217, 163, 0.14);
  --danger: #fb6464;
  --danger-soft: rgba(251, 100, 100, 0.12);

  --text: #eef3f9;
  --text-soft: #9fb1c7;
  --text-mute: #7587a0;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@property --pct {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center { margin-inline: auto; text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-soft);
  max-width: 56ch;
}

.text-accent { color: var(--accent); }
.text-brand { color: var(--brand); }

/* ---------------------------- Background FX ---------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.bg-glow--1 {
  width: 620px; height: 620px;
  top: -200px; right: -160px;
  background: var(--brand-deep);
  animation: drift-a 26s ease-in-out infinite;
}

.bg-glow--2 {
  width: 520px; height: 520px;
  top: 60vh; left: -200px;
  background: var(--accent);
  opacity: 0.12;
  animation: drift-b 32s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 60px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; filter: blur(2px); }
  50% { opacity: 1; filter: blur(0); }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* -------------------------------- Scrollbar ------------------------------ */
html {
  scrollbar-color: var(--brand-deep) var(--bg-soft);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: var(--brand-deep);
  border-radius: 999px;
  border: 2px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* -------------------------------- Skip link ------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------ Focus states ------------------------------ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible { border-radius: 999px; }

/* --------------------------- Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
