:root {
  --bg: #050816;
  --bg-soft: #091126;
  --panel: rgba(12, 24, 52, 0.82);
  --panel-strong: #0d1c3d;
  --text: #f4f7ff;
  --muted: #aab7d3;
  --primary: #00d9ff;
  --secondary: #7457ff;
  --accent: #14f195;
  --border: rgba(126, 205, 255, 0.18);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 217, 255, .12), transparent 27%),
    radial-gradient(circle at 85% 20%, rgba(116, 87, 255, .15), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(67, 120, 199, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 120, 199, .16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.header {
  position: fixed;
  z-index: 1000;
  width: 100%;
  padding: 18px 0;
  transition: .3s ease;
}

.header.scrolled {
  background: rgba(5, 8, 22, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo--footer {
  height: 90px;
}

.menu {
  display: flex;
  gap: 28px;
  color: #d7e0f3;
  font-size: .94rem;
}

.menu a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 11px;
}

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #3c82ff);
  color: #03111b;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 217, 255, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 217, 255, .28);
}

.btn-small { padding: 11px 16px; font-size: .88rem; }
.btn-client { background: linear-gradient(135deg, #f59e0b, #d97706); margin-right: 8px; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 145px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: 2.4px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(2.65rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -4px;
  max-width: 780px;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--primary), #8f7cff, var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 28px 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(9, 17, 38, .62);
  border-radius: 15px;
}

.hero-metrics strong {
  display: block;
  color: var(--primary);
  font-size: 1.15rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: .76rem;
}

.hero-visual {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual {
  background: url('../img/robo-mac3.png') center center / contain no-repeat;
  animation: robotFloat 4s ease-in-out infinite;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 35px rgba(0, 217, 255, .2));
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .7;
}
.orb-one {
  width: 240px;
  height: 240px;
  background: rgba(0,217,255,.12);
  top: 0;
  right: -20px;
  animation: orbPulse 5s ease-in-out infinite;
}
.orb-two {
  width: 200px;
  height: 200px;
  background: rgba(116,87,255,.18);
  bottom: 0;
  left: -10px;
  animation: orbPulse 5s ease-in-out 2.5s infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.2); opacity: .4; }
}

.section { padding: 105px 0; position: relative; }
.section-soft {
  background: linear-gradient(180deg, transparent, rgba(9,17,38,.88), transparent);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-heading h2,
.about h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
}

.section-heading p {
  max-width: 520px;
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #02131e;
  background: var(--primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(9, 17, 38, .75);
  transition: transform .25s ease, border-color .25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,217,255,.45);
}

.news-card.hidden { display: none; }

.news-image {
  height: 190px;
  display: grid;
  place-items: center;
  font-family: "Orbitron";
  letter-spacing: 3px;
  color: rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
}

.news-image:before,
.news-image:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}

.news-image:before { width: 190px; height: 190px; }
.news-image:after { width: 120px; height: 120px; }

.image-ai { background: linear-gradient(145deg, #142d5d, #5415a5); }
.image-auto { background: linear-gradient(145deg, #0c4e63, #04253f); }
.image-security { background: linear-gradient(145deg, #0b3551, #082b1f); }
.image-infra { background: linear-gradient(145deg, #223463, #0c1229); }
.image-data { background: linear-gradient(145deg, #472e82, #0b315c); }
.image-system { background: linear-gradient(145deg, #003b44, #152f64); }

.news-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
  overflow: hidden;
}

.news-content { padding: 22px; }
.tag {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-content h3 {
  margin: 10px 0;
  font-size: 1.15rem;
}

.news-content p {
  color: var(--muted);
  font-size: .9rem;
}

.news-meta {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  color: #7888a8;
  font-size: .72rem;
}

/* ── Ferramentas ── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(9, 17, 38, .75);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,217,255,.35);
}

.tool-header {
  height: 80px;
  display: grid;
  place-items: center;
  font-family: "Orbitron";
  letter-spacing: 3px;
  color: rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
}

.tool-header:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

.tool-body {
  padding: 24px;
}

.tool-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.tool-body p {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 16px;
}

.tool-controls {
  margin-bottom: 14px;
}

.tool-controls label {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-controls input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.tool-checks {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.tool-checks label {
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-checks input[type="checkbox"] {
  accent-color: var(--primary);
}

.tool-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  margin-bottom: 12px;
  resize: vertical;
}

.tool-input:focus {
  outline: none;
  border-color: var(--primary);
}

.tool-result {
  background: rgba(0,217,255,.06);
  border: 1px solid rgba(0,217,255,.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "Courier New", monospace;
  font-size: .95rem;
  color: var(--primary);
  margin-bottom: 14px;
  word-break: break-all;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tool-result--lg {
  font-size: 1.4rem;
  font-weight: 700;
  justify-content: center;
}

.tool-body .btn {
  width: 100%;
  text-align: center;
}

.tool-buttons {
  display: flex;
  gap: 10px;
}

.tool-buttons .btn {
  flex: 1;
}

.net-info {
  margin-bottom: 14px;
}

.net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.net-row:last-child {
  border-bottom: none;
}

.net-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.net-value {
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-size: .88rem;
  text-align: right;
}

.qr-output {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 40px;
}

.qr-output img {
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.hidden {
  display: none !important;
}

.tool-card--wide {
  grid-column: 1 / -1;
}

.calc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.calc-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}

.calc-tab.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  font-weight: 600;
}

.calc-panel.hidden {
  display: none;
}

.calc-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.calc-field label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-input--small {
  flex: 1;
  margin-bottom: 0;
}

select.tool-input option {
  background: #0a1628;
  color: #fff;
}

.calc-label {
  color: var(--muted);
  font-size: .88rem;
  white-space: nowrap;
}

.btn-swap {
  background: rgba(0,217,255,.1);
  border: 1px solid rgba(0,217,255,.3);
  color: var(--primary);
  font-size: 1.2rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}

.btn-swap:hover {
  background: rgba(0,217,255,.25);
}

.calc-result {
  flex-direction: column;
  gap: 4px;
  text-align: center;
  font-family: inherit;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-card--wide {
    grid-column: auto;
  }
  .calc-dates {
    grid-template-columns: 1fr;
  }
  .calc-tabs {
    flex-direction: column;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 30px;
  min-height: 225px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(12,24,52,.74), rgba(7,14,34,.65));
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(116,87,255,.6);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--primary);
  border: 1px solid var(--border);
  font-family: "Orbitron";
  margin-bottom: 26px;
}

.service-card h3 { margin-bottom: 11px; }
.service-card p { color: var(--muted); font-size: .92rem; }

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 75px;
}

.about-panel {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(rgba(0,217,255,.08), rgba(116,87,255,.08)),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255,255,255,.025) 25px),
    #071126;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.about-logo {
  max-width: 80%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 30px;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 4s linear infinite;
}

.about-copy p {
  color: var(--muted);
  margin-top: 20px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: #dce6f8;
}

.contact {
  background:
    radial-gradient(circle at 10% 50%, rgba(0,217,255,.10), transparent 28%),
    radial-gradient(circle at 95% 80%, rgba(116,87,255,.12), transparent 28%);
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact-copy > p {
  color: var(--muted);
  margin: 22px 0 30px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: flex;
  flex-direction: column;
  padding: 17px 19px;
  background: rgba(9,17,38,.7);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-list span {
  color: var(--muted);
  font-size: .75rem;
}

.contact-form {
  background: rgba(9,17,38,.84);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

label {
  display: block;
  color: #dfe7f7;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

input, textarea, select {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  outline: none;
  background: #071127;
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,217,255,.08);
}

textarea { resize: vertical; }
.contact-form .btn { width: 100%; }
.contact-form small {
  display: block;
  text-align: center;
  color: #7d8baa;
  margin-top: 12px;
}

.footer {
  border-top: 1px solid var(--border);
  background: #040713;
  padding: 55px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr 1fr;
  gap: 55px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: .88rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 35px;
  color: #72809f;
  font-size: .78rem;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #04140a;
  font-weight: 900;
  box-shadow: 0 15px 40px rgba(37,211,102,.28);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 25px rgba(0,217,255,.18); }
  50% { box-shadow: 0 0 60px rgba(0,217,255,.42); }
}

@keyframes scan {
  from { top: -10%; }
  to { top: 110%; }
}

/* PDF Tools */
.pdf-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pdf-tool-card {
  background: linear-gradient(160deg, rgba(12, 24, 52, .9), rgba(7, 14, 34, .95));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-align: center;
  cursor: pointer;
  transition: transform .35s ease, border-color .35s, box-shadow .35s;
  position: relative;
  overflow: hidden;
}

.pdf-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, #3b82f6);
  opacity: 0;
  transition: opacity .3s;
}

.pdf-tool-card:hover::before { opacity: 1; }

.pdf-tool-card:nth-child(1) { --card-accent: #3b82f6; }
.pdf-tool-card:nth-child(2) { --card-accent: #8b5cf6; }
.pdf-tool-card:nth-child(3) { --card-accent: #f59e0b; }
.pdf-tool-card:nth-child(4) { --card-accent: #10b981; }
.pdf-tool-card:nth-child(5) { --card-accent: #ef4444; }
.pdf-tool-card:nth-child(6) { --card-accent: #ec4899; }

.pdf-tool-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-accent, var(--primary));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3), 0 0 30px color-mix(in srgb, var(--card-accent) 15%, transparent);
}

.pdf-tool-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.pdf-tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.pdf-tool-card p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* PDF Modal */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.pdf-modal.active { display: flex; }

.pdf-modal-content {
  background: #0a1628;
  border: 1px solid var(--border);
  border-radius: 20px;
  width: min(960px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.pdf-modal-header h3 { font-size: 1.1rem; color: var(--text); }

.pdf-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.pdf-modal-close:hover { color: #f87171; }

.pdf-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.pdf-upload-area {
  border: 2px dashed rgba(0, 217, 255, .3);
  border-radius: 16px;
  padding: 60px 30px;
  text-align: center;
  transition: border-color .3s, background .3s;
}

.pdf-upload-area:hover,
.pdf-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(0, 217, 255, .04);
}

.pdf-upload-area p { color: var(--muted); margin: 16px 0 12px; }
.pdf-upload-area small { display: block; margin-top: 16px; color: #475569; font-size: .75rem; }

/* PDF Editor */
.pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0d1c3d;
  border-radius: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pdf-tb-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}

.pdf-tb-btn:hover { background: rgba(0,217,255,.1); color: var(--primary); }
.pdf-tb-btn.active { background: rgba(0,217,255,.15); color: var(--primary); border-color: rgba(0,217,255,.3); }

.pdf-tb-save {
  margin-left: auto;
  background: rgba(0,217,255,.15);
  color: var(--primary);
  font-weight: 600;
  font-size: .82rem;
}

.pdf-tb-save:hover { background: rgba(0,217,255,.25); }

.pdf-tb-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.pdf-color-pick {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.pdf-font-size {
  background: #0a1628;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: .8rem;
}

.pdf-pages-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .9rem;
}

.pdf-canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
  max-height: 60vh;
}

.pdf-canvas-wrap canvas {
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

#pdfOverlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  cursor: crosshair;
}

@media (max-width: 980px) {
  .pdf-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .header .btn-small { display: none; }
  .menu-toggle { display: block; }
  .menu {
    position: absolute;
    display: none;
    flex-direction: column;
    top: 72px;
    right: 20px;
    width: 220px;
    padding: 18px;
    background: #071127;
    border: 1px solid var(--border);
    border-radius: 15px;
  }
  .menu.open { display: flex; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; }
  .news-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 125px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .hero-robot-img { width: min(260px, 100%); }
  .news-grid, .services-grid, .pdf-tools-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section { padding: 78px 0; }
}
