/* ==========================================================================
   DL SERVICE — 02 · COMPONENTES DE TOPO
   Header, navegação, hero, acesso rápido, números e sobre
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    -webkit-backdrop-filter 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(9, 9, 11, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.18), rgba(16, 185, 129, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px -12px rgba(6, 182, 212, 0.8);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ecfeff;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-name strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav { display: none; }

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--cyan);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-wa {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.header-wa:hover { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.4); }
.header-wa svg { width: 18px; height: 18px; }
.header-cta { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.07); }
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (min-width: 940px) {
  :root { --header: 72px; }
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.023);
  }
  .header-wa { display: none; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .brand-name strong { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; }
}

/* ---------- Drawer mobile ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header) + 22px) 20px 34px;
  background:
    radial-gradient(110% 55% at 100% 0%, rgba(6, 182, 212, 0.14), transparent 70%),
    rgba(9, 9, 11, 0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s, transform 0.45s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav-links { display: flex; flex-direction: column; }

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mobile-nav-links a span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.mobile-nav-links a:active { color: var(--cyan); }

.mobile-nav-foot { margin-top: auto; padding-top: 26px; }
.mobile-nav-foot .btn { width: 100%; }

.mobile-nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

@media (min-width: 940px) {
  .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header) + clamp(34px, 7vw, 72px));
  padding-bottom: clamp(30px, 5vw, 52px);
}

.hero-grid {
  display: grid;
  gap: clamp(36px, 6vw, 56px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-badge {
  display: inline-block;
  max-width: 100%;
  padding: 7px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d4d4d8;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  vertical-align: 2px;
  margin-right: 5px;
}
.hero-badge .dot::after { animation-duration: 2s; }
.hero-badge b { color: #fff; font-weight: 600; }

.hero h1 { margin-top: 20px; }

.hero h1 .line { display: block; }

.hero-sub {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(0.96rem, 2.5vw, 1.06rem);
  line-height: 1.7;
}

.hero-ctas { margin-top: 26px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 23px;
  color: var(--dim);
  font-size: 11.5px;
}

.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 13px; height: 13px; color: #5eead4; }

/* Visual do hero */
.hero-visual {
  position: relative;
  min-width: 0;
  perspective: 1200px;
}

.hero-window {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(23, 23, 28, 0.96), rgba(10, 10, 13, 0.98));
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(6, 182, 212, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.hero-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.45), transparent 38%, transparent 68%, rgba(16, 185, 129, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3f3f46; }
.window-dots i:nth-child(1) { background: #f87171; opacity: 0.75; }
.window-dots i:nth-child(2) { background: #fbbf24; opacity: 0.75; }
.window-dots i:nth-child(3) { background: #34d399; opacity: 0.75; }

.window-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-url svg { width: 10px; height: 10px; flex: none; color: #6ee7b7; }

.window-body { padding: 15px; }

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a7f3d0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-live .dot { width: 5px; height: 5px; }
.status-live .dot::after { display: none; }

.status-meta {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.code-mini {
  padding: 2px 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.85;
  color: #d4d4d8;
  overflow: hidden;
}

.code-mini .ln { display: block; white-space: pre; }
.code-mini .ln-n { display: inline-block; width: 17px; color: #3f3f46; user-select: none; }
.code-mini .k { color: #c084fc; }
.code-mini .v { color: #67e8f9; }
.code-mini .s { color: #86efac; }
.code-mini .c { color: #52525b; }
.code-mini .p { color: #71717a; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}

.hero-metrics div {
  padding: 9px 8px;
  background: #0c0c10;
  text-align: center;
}

.hero-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-metrics span {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(14, 14, 18, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #d4d4d8;
  animation: float-y 5s ease-in-out infinite;
}

.hero-float svg { width: 13px; height: 13px; color: #67e8f9; }
.hero-float--a { right: -16px; top: -18px; }
.hero-float--b { left: -20px; bottom: -18px; animation-delay: -2.4s; }
.hero-float--b svg { color: #6ee7b7; }

@media (min-width: 980px) {
  .hero-float { display: inline-flex; }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.06fr 0.94fr; gap: 46px; }
  .hero { padding-top: calc(var(--header) + 54px); }
  .hero-window { transform: rotateY(-3deg) rotateX(1deg); }
  .hero-float--a { right: -22px; top: -20px; }
  .hero-float--b { left: -30px; bottom: -20px; }
}

/* ---------- Acesso rápido ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(30px, 5vw, 46px);
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 108px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
  overflow: hidden;
}

.quick-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-card:hover { border-color: rgba(6, 182, 212, 0.34); transform: translateY(-2px); }
.quick-card:hover::after { opacity: 1; }

.quick-card .icon-box { width: 32px; height: 32px; border-radius: 9px; }
.quick-card .icon-box svg { width: 15px; height: 15px; }

.quick-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.quick-card small {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.35;
}

.quick-card .quick-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: #52525b;
  width: 14px;
  height: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.quick-card:hover .quick-arrow { color: var(--cyan); transform: translate(1px, -1px); }

@media (min-width: 700px) {
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .quick-card { min-height: 122px; padding: 15px; }
  .quick-card strong { font-size: 13.5px; }
}

/* ---------- Números / Bento ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  position: relative;
  padding: 18px 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(6, 182, 212, 0.15), transparent 70%);
  pointer-events: none;
}

.stat-card--emerald::before {
  background: radial-gradient(50% 60% at 50% 100%, rgba(16, 185, 129, 0.16), transparent 70%);
}

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-num .suffix {
  font-size: 0.58em;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 7px;
  color: #d4d4d8;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

.stat-note {
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 22px 19px 20px; }
  .stat-label { font-size: 12.5px; }
}

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

.about-copy p + p { margin-top: 13px; }
.about-copy p { color: var(--muted); font-size: 14.5px; line-height: 1.72; }
.about-copy p strong { color: var(--text); font-weight: 600; }

.about-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sign-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.12));
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #ecfeff;
}

.about-sign strong { display: block; font-size: 13px; font-weight: 600; }
.about-sign span { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.02em; }

.about-panel {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(16, 185, 129, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.about-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.about-panel-top .badge { border-color: rgba(16, 185, 129, 0.25); color: #a7f3d0; }

.about-rows { display: grid; gap: 1px; background: var(--line); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  background: #0b0b0f;
}

.about-row span { color: var(--dim); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.about-row strong { color: #e4e4e7; font-size: 11.5px; font-weight: 500; text-align: right; }

.about-quote {
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 2px solid var(--emerald);
  border-radius: 0 10px 10px 0;
  background: rgba(16, 185, 129, 0.055);
  color: #d4d4d8;
  font-size: 12.5px;
  line-height: 1.6;
}

@media (min-width: 920px) {
  .about-grid { grid-template-columns: 1.18fr 0.82fr; gap: 56px; }
  .about-panel { position: sticky; top: calc(var(--header) + 24px); padding: 24px; }
  .about-copy p { font-size: 15px; }
}

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.diff-card {
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

.diff-card:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.045); transform: translateY(-2px); }
.diff-card .icon-box { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 11px; }
.diff-card .icon-box svg { width: 15px; height: 15px; }
.diff-card h3 { font-size: 12.5px; }
.diff-card p { margin-top: 4px; color: var(--dim); font-size: 10.5px; line-height: 1.45; }

@media (min-width: 700px) {
  .diff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .diff-card { padding: 18px; }
  .diff-card h3 { font-size: 13.5px; }
  .diff-card p { font-size: 11.5px; }
}
