/* =========================================================
   GLOBAL.CSS
   Alx Tech Solutions
   Base visual, cores, tipografia e acessibilidade
   ========================================================= */

:root {
  color-scheme: dark;

  --color-primary: #60a5fa;
  --color-primary-hover: #3b82f6;
  --color-accent: #38bdf8;
  --color-accent-soft: #7dd3fc;

  --color-background: #0f172a;
  --color-background-deep: #080f1f;
  --color-surface: #1e293b;
  --color-surface-light: #26364d;
  --color-surface-soft: rgba(30, 41, 59, 0.7);

  --color-text: #f8fafc;
  --color-text-soft: #e2e8f0;
  --color-muted: #94a3b8;
  --color-muted-dark: #64748b;
  --color-border: #334155;
  --color-border-light: rgba(148, 163, 184, 0.2);

  --color-white: #ffffff;
  --color-black: #000000;
  --color-success: #34d399;

  --font-body: "DM Sans", sans-serif;
  --font-display: "Playfair Display", serif;

  --container-width: 1180px;
  --container-padding: 24px;

  --header-height: 82px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(96, 165, 250, 0.18);

  --glass-background: rgba(30, 41, 59, 0.56);
  --glass-border: rgba(148, 163, 184, 0.18);
  --glass-blur: blur(18px);

  --transition-fast: 180ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  --z-background: -1;
  --z-base: 1;
  --z-header: 100;
  --z-menu: 110;
  --z-modal: 200;
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(56, 189, 248, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 28%,
      rgba(96, 165, 250, 0.08),
      transparent 30%
    ),
    var(--color-background);

  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------------------------------------------------------
   Seleção e acessibilidade
   --------------------------------------------------------- */

::selection {
  background: rgba(96, 165, 250, 0.35);
  color: var(--color-white);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-modal);

  padding: 10px 16px;
  border-radius: var(--radius-sm);

  background: var(--color-primary);
  color: var(--color-background);
  font-size: 0.875rem;
  font-weight: 700;

  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------
   Estrutura global
   --------------------------------------------------------- */

.container {
  width: min(
    calc(100% - (var(--container-padding) * 2)),
    var(--container-width)
  );

  margin-inline: auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section--compact {
  padding-block: 84px;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: var(--z-background);
  overflow: hidden;
  pointer-events: none;
}

.background-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.65;
}

.background-orb--one {
  top: 8%;
  left: -180px;
  width: 420px;
  height: 420px;
  background: rgba(14, 165, 233, 0.06);
}

.background-orb--two {
  top: 42%;
  right: -220px;
  width: 500px;
  height: 500px;
  background: rgba(96, 165, 250, 0.05);
}

.background-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;

  background-image:
    linear-gradient(
      rgba(148, 163, 184, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.1) 1px,
      transparent 1px
    );

  background-position: center;
  background-size: 80px 80px;

  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    transparent 55%
  );
}

/* ---------------------------------------------------------
   Tipografia
   --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--color-muted);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--color-accent-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-label::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .section-label {
  justify-content: center;
}

.section-heading h2 {
  margin-top: 18px;
}

.section-heading h2 span,
.about-content h2 span,
.differentials-content h2 span,
.final-cta h2 span {
  display: block;
  color: var(--color-primary);
  font-style: italic;
}

.section-heading p {
  max-width: 640px;
  margin-top: 22px;
  font-size: 1.05rem;
}

.section-heading--center p {
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Barra de rolagem
   --------------------------------------------------------- */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-deep);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--color-background-deep);
  border-radius: var(--radius-pill);
  background: var(--color-border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ---------------------------------------------------------
   Classes auxiliares
   --------------------------------------------------------- */

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-muted);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.no-scroll {
  overflow: hidden;
}

/* ---------------------------------------------------------
   Animações de entrada
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 120ms;
}

.reveal--delay-2 {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}