/* ==========================================================================
   DL SERVICE INFORMÁTICA — 01 · BASE
   Tokens, reset, tipografia, superfícies, botões e utilitários
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-soft: #0b0b0f;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;

  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.14);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);

  --grad: linear-gradient(100deg, #67e8f9 0%, #22d3ee 38%, #34d399 100%);
  --grad-line: linear-gradient(135deg, rgba(6, 182, 212, 0.55), rgba(16, 185, 129, 0.35));

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 13px;
  --header: 68px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 24px 60px -28px rgba(6, 182, 212, 0.55);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 18px);
}

body {
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

ul, ol { list-style: none; padding: 0; }

::selection { background: rgba(6, 182, 212, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #27272a;
  border: 3px solid var(--bg);
  border-radius: 999px;
}

/* ---------- Fundo ambiente ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90vh;
  background:
    radial-gradient(52% 46% at 18% 22%, rgba(6, 182, 212, 0.17), transparent 70%),
    radial-gradient(46% 42% at 88% 8%, rgba(16, 185, 129, 0.12), transparent 68%),
    radial-gradient(40% 38% at 55% -10%, rgba(56, 189, 248, 0.08), transparent 70%);
  filter: blur(8px);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 56% at 50% 0%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 56% at 50% 0%, #000 18%, transparent 78%);
  opacity: 0.7;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.site { position: relative; z-index: 2; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  position: relative;
  padding-block: clamp(58px, 9vw, 104px);
}

.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

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

.section-head--split {
  max-width: none;
  display: grid;
  gap: 18px;
  align-items: end;
}

@media (min-width: 880px) {
  .container { padding-inline: 32px; }
  .section-head--split {
    grid-template-columns: 1fr auto;
    gap: 40px;
  }
}

/* ---------- Tipografia ---------- */
.display,
body h1,
body h2,
body h3,
body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body h1 { font-size: clamp(2.25rem, 7.4vw, 4.3rem); }
body h2 { font-size: clamp(1.72rem, 4.8vw, 2.85rem); }
body h3 { font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.02em; }

p { text-wrap: pretty; }

.lead {
  color: var(--muted);
  font-size: clamp(0.98rem, 2.4vw, 1.09rem);
  line-height: 1.68;
  max-width: 60ch;
}

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--font-mono); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #a5f3fc;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.kicker--emerald { color: #a7f3d0; }
.kicker--emerald::before { background: linear-gradient(90deg, var(--emerald), transparent); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn svg { flex: none; width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #16c79a 0%, #0ea472 100%);
  border-color: rgba(255, 255, 255, 0.16);
  color: #04140f;
  box-shadow: 0 12px 30px -14px rgba(16, 185, 129, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px -16px rgba(16, 185, 129, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, #22d3a6 0%, #10b981 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-wa {
  background: linear-gradient(180deg, #25d366 0%, #12a150 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #03170c;
  box-shadow: 0 12px 32px -14px rgba(37, 211, 102, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-wa:hover {
  background: linear-gradient(180deg, #2ee06f 0%, #16b85a 100%);
  box-shadow: 0 16px 38px -14px rgba(37, 211, 102, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
}

/* ---------- Pills, badges e chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge svg { width: 13px; height: 13px; }

.dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.55);
  animation: pulse-ring 2.4s var(--ease) infinite;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.chip svg { width: 12px; height: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- Superfícies ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
  isolation: isolate;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(6, 182, 212, 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover::after { opacity: 1; }
}

.card--flat { background: rgba(255, 255, 255, 0.025); }
.card--line:hover { border-color: rgba(6, 182, 212, 0.32); }

.glass {
  background: rgba(9, 9, 11, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ---------- Ícones ---------- */
.icon-box {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  color: #a5f3fc;
}

.icon-box svg { width: 17px; height: 17px; stroke-width: 1.75; }
.icon-box--emerald { color: #6ee7b7; }
.icon-box--purple { color: #c4b5fd; }

/* ---------- Acessibilidade e movimento ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--emerald);
  color: #04140f;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
