/* Opa Design & Tecnologia — estilos (mobile-first) */
:root {
  --ink: #0B0F14;
  --ink-2: #131A22;
  --ink-3: #1C2530;
  --green: #22C55E;
  --green-d: #16A34A;
  --lime: #A3E635;
  --white: #FFFFFF;
  --gray: #F3F4F6;
  --gray-2: #E5E7EB;
  --muted: #5B6573;
  --muted-d: #9AA5B1;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(11, 15, 20, .08);
  --font: "Poppins", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

.skip { position: absolute; left: 12px; top: -60px; background: var(--green); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 200; }
.skip:focus { top: 10px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; text-align: center; line-height: 1.2; }
.btn .icon { font-size: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #B5F04C; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(11, 15, 20, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 52px; width: auto; }
.nav { display: none; }
.nav a { color: #D5DBE2; font-weight: 500; font-size: .95rem; padding: 8px 4px; position: relative; transition: color .15s; }
.nav a:hover { color: var(--lime); }
.header-cta { display: none; }
.menu-btn { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; color: var(--white); cursor: pointer; font-size: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-menu { background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 8px 0 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 4px; color: #E5E9EE; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mobile-menu .btn { margin-top: 18px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 500px at 85% 40%, rgba(34, 197, 94, .16), transparent 60%), var(--ink); }
.hero-grid { display: grid; gap: 40px; padding: 48px 0 56px; align-items: center; }
.eyebrow { display: inline-block; color: var(--lime); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 8.5vw, 3.9rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .sub { margin-top: 20px; font-size: 1.05rem; color: #D5DBE2; max-width: 34rem; }
.hero .comp { margin-top: 12px; color: var(--muted-d); font-size: .98rem; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; color: #E5E9EE; font-size: .95rem; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 9px; }
.checks .icon { color: var(--lime); font-size: 1.3em; }

.hero-visual { position: relative; padding: 24px 0 8px; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; right: -20vw; top: -10%; bottom: -10%; width: 80%; background: linear-gradient(160deg, #2BD06A 0%, #16A34A 70%, #0F7A38 100%); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); opacity: .92; }

/* mockups em CSS */
.laptop { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.laptop-screen { background: #1B2027; border: 6px solid #2A2F37; border-bottom-width: 8px; border-radius: 16px 16px 6px 6px; aspect-ratio: 16 / 10; overflow: hidden; display: grid; grid-template-columns: 17% 1fr; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.laptop-base { height: 14px; margin: 0 -4%; background: linear-gradient(#D5D9DE, #9AA1AA); border-radius: 0 0 18px 18px; box-shadow: 0 14px 24px rgba(0, 0, 0, .35); position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 18%; height: 5px; background: #81888F; border-radius: 0 0 8px 8px; }
.ui-side { background: var(--ink); padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.ui-logo { font-weight: 700; font-size: clamp(.7rem, 2vw, 1rem); color: var(--white); letter-spacing: -.02em; margin-bottom: 4px; }
.ui-nav { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.ui-nav.on { background: var(--green); width: 80%; }
.ui-main { background: #F5F6F8; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-card { background: var(--white); border-radius: 8px; padding: 8px; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 6px rgba(11, 15, 20, .06); min-height: 34px; }
.ui-card.g { background: var(--green); color: var(--white); }
.ui-card .icon { font-size: clamp(14px, 3vw, 22px); }
.ui-card i { display: block; height: 5px; border-radius: 3px; background: #D6DAE0; flex: 1; }
.ui-card.g i { background: rgba(255, 255, 255, .55); }
.ui-chart { flex: 1; background: var(--white); border-radius: 8px; padding: 8px; min-height: 0; box-shadow: 0 2px 6px rgba(11, 15, 20, .06); }
.ui-chart svg { width: 100%; height: 100%; }
.ui-rows { display: grid; gap: 6px; }
.ui-row { display: grid; grid-template-columns: 8px 1fr 1fr 1fr; gap: 8px; align-items: center; background: var(--white); border-radius: 6px; padding: 5px 8px; }
.ui-row b { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ui-row i { height: 5px; border-radius: 3px; background: #DDE1E6; }

.phone { position: absolute; right: -2%; bottom: -4%; width: 24%; min-width: 96px; max-width: 150px; aspect-ratio: 9 / 19; background: var(--ink); border: 5px solid #3A3F47; border-radius: 22px; padding: 22px 8px 8px; box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
.phone::before { content: ""; position: absolute; top: 4%; left: 50%; transform: translateX(-50%); width: 34%; height: 4%; background: #000; border-radius: 10px; }
.phone .ui-logo { text-align: center; margin: 0 0 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.tiles span { width: 100%; min-width: 0; aspect-ratio: 1 / 1; background: var(--white); border-radius: 8px; display: grid; place-items: center; color: var(--green-d); font-size: clamp(14px, 3.4vw, 24px); }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--gray); }
.section.dark { background: var(--ink); color: var(--white); }
.sec-head { max-width: 40rem; margin-bottom: 40px; }
.sec-head .eyebrow { color: var(--green-d); }
.dark .sec-head .eyebrow { color: var(--lime); }
.sec-head h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.dark .sec-head p { color: var(--muted-d); }

/* Soluções */
.cards { display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFE9D9; }
.card .ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: #E9F9EF; color: var(--green-d); font-size: 28px; margin-bottom: 20px; }
.card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.card p { margin-top: 10px; color: var(--muted); font-size: .97rem; }

/* Projetos */
.projects { display: grid; gap: 20px; }
.project { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-2); display: flex; flex-direction: column; }
.project-media { padding: 22px 22px 0; background: linear-gradient(180deg, var(--bg1), var(--bg2)); position: relative; }
.badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(11, 15, 20, .72); color: #E5E9EE; font-size: .68rem; font-weight: 500; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.browser { background: var(--white); border-radius: 10px 10px 0 0; box-shadow: 0 -4px 24px rgba(11, 15, 20, .12); overflow: hidden; aspect-ratio: 16 / 10; display: flex; flex-direction: column; }
.browser-bar { display: flex; gap: 5px; padding: 7px 10px; background: #E9ECF0; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #C3C9D1; }
.browser-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--b-body, #F7F8FA); min-height: 0; }
.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-top b { height: 8px; width: 28%; border-radius: 4px; background: var(--acc); }
.mk-top i { height: 6px; width: 40%; border-radius: 3px; background: rgba(120, 128, 140, .3); }
.mk-grid { flex: 1; display: grid; gap: 7px; min-height: 0; }
.mk-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.mk-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.mk-grid span { border-radius: 7px; background: var(--tile, #fff); box-shadow: 0 1px 4px rgba(11, 15, 20, .08); position: relative; overflow: hidden; }
.mk-grid span::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 10%; height: 14%; border-radius: 3px; background: var(--acc); opacity: .85; }
.mk-grid span.on { background: var(--acc); }
.mk-grid span.on::after { background: rgba(255, 255, 255, .6); }
.mk-hero { flex: 1; border-radius: 7px; background: linear-gradient(135deg, var(--acc), var(--acc2)); position: relative; min-height: 0; }
.mk-hero::after { content: ""; position: absolute; left: 10%; bottom: 14%; width: 40%; height: 12%; border-radius: 4px; background: rgba(255, 255, 255, .85); }
.mk-hero::before { content: ""; position: absolute; left: 10%; bottom: 32%; width: 55%; height: 10%; border-radius: 4px; background: rgba(255, 255, 255, .5); }
.project-body { padding: 22px 24px 26px; }
.project h3 { font-size: 1.2rem; font-weight: 700; }
.project p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.tag { display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 600; color: var(--green-d); background: #E9F9EF; padding: 3px 12px; border-radius: 999px; }
.note { margin-top: 24px; font-size: .88rem; color: var(--muted); }

/* Portfólio: filtro e link */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.project[hidden] { display: none; }
.browser-shot { flex: 1; min-height: 0; background: var(--ink-2); overflow: hidden; }
.browser-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.project-body .tag { margin-top: auto; }
.project-body p { margin-bottom: 14px; }
.project-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gray-2); padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.project-link .icon { width: 14px; height: 14px; }
.project-link:hover, .project-link:focus-visible { color: var(--green-d); border-color: var(--green-d); }
.filters { display: none; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.js .filters { display: flex; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--gray-2); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip span { margin-left: 6px; font-weight: 500; color: var(--muted); }
.chip:hover { border-color: var(--green-d); }
.chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip.on span { color: var(--muted-d); }
.chip:focus-visible { outline: 2px solid var(--green-d); outline-offset: 2px; }

/* Como funciona */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { position: relative; padding-left: 76px; }
.step .num { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--ink); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }
.step::before { content: ""; position: absolute; left: 27px; top: 62px; bottom: -22px; width: 2px; background: rgba(163, 230, 53, .3); }
.step:last-child::before { display: none; }
.step .ico { color: var(--lime); font-size: 26px; margin-bottom: 6px; }
.step h3 { font-size: 1.15rem; font-weight: 700; }
.step p { margin-top: 6px; color: var(--muted-d); font-size: .96rem; }

/* Sobre */
.about { display: grid; gap: 32px; align-items: start; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about p + p { margin-top: 16px; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 20px 22px; }
.fact .icon { font-size: 24px; color: var(--green-d); margin-top: 3px; }
.fact strong { display: block; font-size: 1rem; }
.fact span { color: var(--muted); font-size: .93rem; }

/* CTA / formulário */
.cta { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; right: -25%; top: -30%; width: 70%; height: 160%; background: linear-gradient(160deg, rgba(34, 197, 94, .35), rgba(34, 197, 94, 0)); clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%); }
.cta-grid { display: grid; gap: 36px; padding: 72px 0; align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.cta h2 em { font-style: normal; color: var(--lime); }
.cta .lead { margin-top: 16px; color: #D5DBE2; font-size: 1.05rem; max-width: 30rem; }
.cta .alt-wa { margin-top: 24px; }
.form { background: var(--white); color: var(--ink); border-radius: 18px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #D0D5DB; border-radius: 10px; background: var(--white); min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.field.err input, .field.err select, .field.err textarea { border-color: #DC2626; }
.err-msg { display: none; color: #B91C1C; font-size: .82rem; margin-top: 4px; }
.field.err .err-msg { display: block; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { font-size: .9rem; font-weight: 500; text-align: center; min-height: 1.2em; color: var(--green-d); }

/* Rodapé */
.footer { background: #070A0E; color: var(--muted-d); padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; }
.footer img { height: 64px; width: auto; }
.footer h4 { color: var(--white); font-size: .95rem; margin: 0 0 12px; font-weight: 600; }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: var(--lime); }
.footer .loc { display: flex; gap: 8px; align-items: flex-start; }
.footer .loc .icon { margin-top: 5px; color: var(--green); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.tagline { margin-top: 14px; max-width: 20rem; }

/* WhatsApp flutuante (mobile) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--ink); display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }

/* animação de entrada (só com JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .step::before { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  
  .nav { display: flex; gap: 26px; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu, .wa-float { display: none !important; }
  .brand img { height: 58px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; padding: 88px 0 96px; }
  .hero-visual { padding: 32px 0; }
  .hero-visual::before { right: -30vw; width: 110%; }
  .section { padding: 104px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .projects { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 0; padding-top: 76px; }
  .step::before { display: block; left: 66px; right: -22px; top: 27px; bottom: auto; width: auto; height: 2px; }
  .step:last-child::before { display: none; }
  .about { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 64px; padding: 104px 0; }
}
