/* DEVS Tecnologia — estilos globais */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --ink: #0b0c0e;
  --ink-2: #3a3d44;
  --muted: #6b707a;
  --line: #e6e8ec;
  --line-2: #d5d9df;
  --accent: #1f6bff;
  --accent-soft: rgba(31, 107, 255, 0.08);
  --radius: 14px;
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.25rem; }
h2, .lead, .contact .muted { text-wrap: balance; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Fundo animado */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 19px; width: auto; }
.menu { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.menu a:not(.btn) { color: var(--ink-2); position: relative; transition: color .2s; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu a:not(.btn):hover { color: var(--ink); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(11, 12, 14, .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 18px 34px; font-size: 18px; font-family: var(--mono); font-weight: 400; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; position: relative;
  padding: 120px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(255,255,255,.92), rgba(255,255,255,.55) 55%, rgba(255,255,255,0) 100%);
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px);
  margin-bottom: 44px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31,107,255,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,107,255,.45); } 70% { box-shadow: 0 0 0 9px rgba(31,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(31,107,255,0); } }
.hero-logo { width: min(640px, 82vw); }
.hero-logo img { width: 100%; height: auto; }
.tagline {
  margin: 26px 0 0; font-size: clamp(.78rem, 1.6vw, 1rem);
  letter-spacing: .42em; text-transform: uppercase; color: var(--ink); font-weight: 500;
  padding-left: .42em;
}
.tagline i { font-style: normal; color: var(--accent); margin: 0 .3em; }
.lead { max-width: 620px; margin: 38px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--ink); animation: wheel 2s infinite var(--ease);
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Seções */
.section { padding: 130px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(247,248,250,.0), rgba(247,248,250,.92) 12%, rgba(247,248,250,.92) 88%, rgba(247,248,250,0)); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .06em; margin-bottom: 18px; text-transform: uppercase; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 90px; }
.pillar { padding: 34px 34px 10px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar-n {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 22px;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* Serviços */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(11,12,14,.25); }
.card:hover::before { opacity: 1; }
.card-icon { width: 52px; height: 52px; margin-bottom: 26px; }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.card > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.ticks li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 1.5px; background: var(--accent);
}
.ticks li::after {
  content: ""; position: absolute; left: 12px; top: 50%; width: 5px; height: 5px; margin-top: -1.75px;
  border-radius: 50%; background: var(--accent);
}

.process { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.process li { padding-top: 22px; border-top: 1px solid var(--line-2); position: relative; display: flex; flex-direction: column; gap: 6px; }
.process li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.process span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.process strong { font-size: 1.05rem; font-weight: 500; }
.process em { font-style: normal; color: var(--muted); font-size: 15px; }

/* Know-how */
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card-top .card-icon { margin-bottom: 0; }
.card-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 6px 11px; border-radius: 999px; background: var(--accent-soft); }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; }

.proof {
  margin-top: 24px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center;
  padding: 44px; border-radius: var(--radius); background: var(--ink); color: #c9ccd2;
  position: relative; overflow: hidden;
}
.proof::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.proof > * { position: relative; z-index: 1; }
.proof .kicker { color: #7fa6ff; margin-bottom: 12px; }
.proof h3 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; margin-bottom: 14px; }
.proof .muted { color: #9a9fa8; margin: 0; font-size: 15.5px; }
.proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; }
.proof-stats div { background: #121418; padding: 22px 24px; }
.proof-stats dt { color: #fff; font-family: var(--mono); font-size: 1.05rem; font-weight: 500; }
.proof-stats dd { margin: 4px 0 0; font-size: 14px; color: #8d929b; }

/* Produtos */
.product-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.product-head h2 { max-width: 620px; }
.kartspd-brand { display: flex; align-items: center; gap: 20px; padding: 14px 22px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.9); transition: border-color .3s, transform .3s var(--ease); flex-shrink: 0; }
.kartspd-brand:hover { border-color: var(--line-2); transform: translateY(-2px); }
.kartspd-brand img { width: 112px; height: auto; }
.kartspd-brand span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.kartspd-brand b { color: var(--ink); font-weight: 500; }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: rgba(255,255,255,.92); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -36px rgba(11,12,14,.35); }
.product-media { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 36px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.media-velo { background: radial-gradient(120% 90% at 50% 0%, #2a2d33 0%, #0b0c0e 70%); }
.media-emerson { background: linear-gradient(160deg, #eef1ec 0%, #dfe5da 100%); }
.device {
  width: 88%; padding: 12px; border-radius: 18px; background: #16181c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.8);
  transition: transform .6s var(--ease);
}
.device img { border-radius: 6px; width: 100%; height: auto; }
.browser {
  width: 100%; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -28px rgba(32,35,30,.55);
  transform: translateY(14%); transition: transform .6s var(--ease);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid #eceee9; background: #fafbf8; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #dcdfd8; }
.browser-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: #8a8f86; }
.browser img { width: 100%; height: auto; }
.product-card:hover .device { transform: scale(1.025); }
.product-card:hover .browser { transform: translateY(10%); }
.product-body { padding: 34px 36px 36px; display: flex; flex-direction: column; flex: 1; }
.product-tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.product-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.product-body > p:not(.product-tag) { color: var(--muted); }
.specs { list-style: none; padding: 0; margin: 6px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.specs b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.link-arrow { margin-top: auto; align-self: flex-start; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.product-more { margin: 32px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.product-more a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.product-more a:hover { border-color: var(--ink); }

/* Contato */
.section-contact { padding-bottom: 150px; }
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin-bottom: 16px; }
.contact .muted { max-width: 540px; margin-bottom: 38px; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .92); padding: 34px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner img { height: 15px; width: auto; }
.footer-inner p { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.footer-inner p.muted { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* Animação de entrada */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 900px) {
  .grid-2, .services, .products, .proof { grid-template-columns: 1fr; }
  .product-head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .proof { gap: 28px; padding: 32px; }
  .grid-2 { gap: 28px; }
  .pillars { grid-template-columns: 1fr; margin-top: 56px; }
  .pillar, .pillar:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 6px; }
  .process { grid-template-columns: 1fr 1fr; }
  .section { padding: 96px 0; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 42px; height: 42px; background: none; border: 0; padding: 0 9px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 16px; justify-content: center; }
  .site-header:has(.menu.open) { background: rgba(255,255,255,.97); }
  .card { padding: 30px 24px; }
  .proof { padding: 26px 20px; }
  .proof-stats div { padding: 18px 16px; }
  .proof-stats dt { font-size: .95rem; }
  .product-media { padding: 22px; }
  .product-body { padding: 26px 22px 28px; }
  .kartspd-brand img { width: 84px; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .tagline { letter-spacing: .16em; padding-left: .16em; font-size: .72rem; }
  .tagline i { margin: 0 .1em; }
  .btn-lg { font-size: 15px; padding: 16px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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