/* ==========================================================================
   OCKHAM DESIGN SYSTEM 2.0 — TOKENS OFICIAIS
   Escopo global e tema escuro padrão
   ========================================================================== */

:root {
  /* Cores da Marca */
  --ock-brand-400: #367CDD;
  --ock-brand-500: #2F6FD1;
  --ock-brand-700: #1D4FB3;
  --ock-brand-800: #1947AB;

  /* Superfícies e Fundos */
  --ock-background: #0F0F0F;
  --ock-surface: #15171C;
  --ock-surface-raised: #1B2029;
  --ock-charcoal: #2B2B2B;

  /* Tipografia e Contraste (Elevado para máxima legibilidade em fundo escuro) */
  --ock-text: #F5F7FB;
  --ock-muted: #C8D2E3;
  --ock-subtle: #9FB0C7;
  --ock-link: #8AB8FF;

  /* Linhas e Bordas */
  --ock-border: #354052;
  --ock-border-strong: #6B7B93;
  --ock-border-subtle: rgba(255, 255, 255, 0.08);
  --ock-border-glow: rgba(54, 124, 221, 0.35);

  /* Acessibilidade & Estados */
  --ock-focus: #8AB8FF;
  --ock-error: #FF9B9B;
  --ock-warning: #F2C66D;
  --ock-success: #4ADE80;

  /* Efeitos de Luz / Glow */
  --ock-glow: 0 0 48px rgba(54, 124, 221, 0.25);
  --ock-glow-strong: 0 0 64px rgba(54, 124, 221, 0.45);
  --ock-glow-sm: 0 0 20px rgba(54, 124, 221, 0.35);

  /* Tipografia */
  --ock-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ock-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Estrutura e Grid */
  --ock-container: 1240px;
  --ock-reading: 720px;
  --ock-gutter: clamp(20px, 4vw, 56px);
  --ock-section-space: clamp(64px, 7vw, 112px);

  /* Curvaturas / Raio */
  --ock-radius-control: 12px;
  --ock-radius-pill: 999px;
  --ock-radius-card: 24px;
  --ock-radius-panel: 32px;

  /* Animações e Transições */
  --ock-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ock-duration: 220ms;
}

/* Reset básico e tipografia base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--ock-background);
  color: var(--ock-text);
  color-scheme: dark;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--ock-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ock-muted);
  background-color: var(--ock-background);
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ock-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ock-text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ock-duration) var(--ock-ease);
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--ock-focus);
  outline-offset: 4px;
}

@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;
  }
}
