:root {
  --ink: #09090b;
  --ink-soft: #151518;
  --paper: #f4f1ea;
  --paper-deep: #e8e3d8;
  --muted: #a7a5a0;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff4d19;
  --accent-bright: #ff6a00;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --container: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.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: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: rgba(9,9,11,.88); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-family: var(--display); font-size: .95rem; font-weight: 700; line-height: 1; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.brand strong { font-weight: 700; letter-spacing: .055em; }
.brand small { font-family: var(--body); font-size: .52rem; font-weight: 600; letter-spacing: .285em; color: var(--muted); }
.brand-mark { width: 56px; height: 28px; display: block; flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 600; }
.site-nav > a:not(.nav-cta) { color: #c9c6bf; transition: color .2s; }
.site-nav > a:hover, .site-nav > a:focus-visible { color: #fff; }
.nav-cta { padding: 11px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 50%; align-items: center; justify-content: center; flex-direction: column; gap: 6px; cursor: pointer; }
.menu-button i { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s; }

.hero { position: relative; min-height: 100svh; padding: 152px 0 34px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 78% 35%, rgba(255,77,25,.13), transparent 26%), var(--ink); }
.hero-grid, .cta-grid { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.22fr .78fr; align-items: center; gap: clamp(48px, 7vw, 100px); }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: #bbb8b1; font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--accent); }
.eyebrow.dark { color: #625f59; }
.hero h1, .section-heading h2, .process-intro h2, .cta-inner h2 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.hero h1 { max-width: 820px; font-size: clamp(3.5rem, 7vw, 6.9rem); }
.hero h1 em, .cta-inner h2 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 640px; margin: 32px 0 0; color: #bcb9b2; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-family: var(--display); font-size: .95rem; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover, .button-primary:focus-visible { background: #ff6432; }
.text-link { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; }
.delivery-map { padding: 24px; border: 1px solid var(--line); background: rgba(18,18,21,.82); box-shadow: 0 32px 90px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.map-topline { padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; color: #888680; font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.live-dot { color: #d9d6ce; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,77,25,.12); }
.delivery-map ol { margin: 0; padding: 0; list-style: none; }
.delivery-map li { position: relative; min-height: 82px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.delivery-map li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3f3f43; border-radius: 50%; color: #747278; font-family: var(--display); font-size: .67rem; font-weight: 700; }
.delivery-map li.done > span { color: var(--paper); border-color: #716e68; }
.delivery-map li.active > span { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,77,25,.1); }
.delivery-map strong, .delivery-map small { display: block; }
.delivery-map strong { font-family: var(--display); font-size: .93rem; }
.delivery-map small { margin-top: 2px; color: #817f7a; font-size: .78rem; }
.map-footer { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 18px; }
.map-footer span { padding: 5px 9px; color: #99968f; border: 1px solid var(--line); border-radius: 999px; font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-foot { position: relative; z-index: 2; margin-top: 64px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #888680; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-foot p { margin: 0; }
.hero-foot div { display: flex; gap: 30px; flex-wrap: wrap; }
.tracer { position: absolute; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px 5px rgba(255,77,25,.5); }
.tracer::after { content: ""; position: absolute; top: 3px; right: 5px; width: 180px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,77,25,.7)); }
.tracer-one { top: 22%; right: 9%; }
.tracer-two { bottom: 18%; left: 6%; transform: rotate(18deg); opacity: .45; }

.section { padding: clamp(92px, 11vw, 150px) 0; }
.light-section { color: var(--ink); background: var(--paper); }
.section-heading { display: grid; grid-template-columns: .45fr 1fr .65fr; align-items: end; gap: 38px; margin-bottom: 64px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.section-heading > p:last-child { margin: 0; color: #5d5a55; font-size: 1.03rem; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #d5d0c5; }
.service-card { position: relative; min-height: 410px; padding: 34px; display: flex; flex-direction: column; border-right: 1px solid #d5d0c5; }
.service-card:last-child { border-right: 0; }
.service-card.featured { background: var(--ink); color: var(--paper); transform: translateY(-18px); box-shadow: 0 24px 55px rgba(9,9,11,.15); border: 0; }
.card-number { color: #8f8b83; font-family: var(--display); font-size: .75rem; letter-spacing: .14em; }
.service-card h3 { margin: 96px 0 18px; font-family: var(--display); font-size: clamp(1.55rem, 2vw, 2rem); letter-spacing: -.03em; }
.service-card p { margin: 0; color: #63605a; }
.service-card.featured p { color: #a9a69f; }
.service-card ul { margin: auto 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid #d5d0c5; }
.service-card.featured ul { border-color: var(--line); }
.service-card li { padding: 4px 0; font-size: .86rem; font-weight: 600; }
.service-card li::before { content: "/"; margin-right: 9px; color: var(--accent); }

.projects-section { position: relative; background: var(--ink); }
.section-heading.inverse { color: var(--paper); }
.section-heading.inverse > p:last-child { color: #96938d; }
.project-stack { display: grid; gap: 24px; }
.project-card { min-height: 530px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); background: var(--ink-soft); }
.project-content { padding: clamp(34px,5vw,72px); display: flex; flex-direction: column; align-items: flex-start; }
.project-meta { width: 100%; display: flex; justify-content: space-between; gap: 18px; color: #95928c; font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-content h3 { margin: auto 0 8px; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 5.4rem); letter-spacing: -.06em; line-height: 1; }
.project-tagline { margin: 0 0 18px; color: var(--paper) !important; font-family: var(--display); font-size: 1.12rem; font-weight: 600; }
.project-content > p:not(.project-tagline) { max-width: 520px; margin: 0; color: #a3a099; }
.project-content > a { margin-top: 34px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.35); font-weight: 700; }
.project-visual { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; }
.blessed-visual { background: radial-gradient(circle at center, #5a3279 0, #281735 38%, #120b18 70%); }
.halo { position: absolute; width: 55%; aspect-ratio: 1; border: 1px solid rgba(255,226,167,.45); border-radius: 50%; box-shadow: 0 0 100px rgba(167,97,215,.25), inset 0 0 100px rgba(167,97,215,.12); }
.halo::before, .halo::after { content:""; position:absolute; inset:12%; border:1px solid rgba(255,255,255,.16); border-radius:50%; }
.halo::after { inset:26%; }
.blessed-symbol { position: absolute; top: 22%; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,226,167,.5); border-radius: 50%; color: #ffe2a7; font-family: Georgia, serif; font-size: 2.2rem; }
.blessed-visual p { position: relative; z-index: 2; margin: 0; color: #fff4dc; font-family: Georgia, serif; font-size: clamp(2.7rem, 6vw, 6.5rem); line-height: .8; letter-spacing: -.07em; text-align: center; }
.cronos-visual { background: #101827; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; }
.mini-dashboard { width: min(78%, 500px); padding: 34px; border: 1px solid rgba(255,255,255,.12); background: rgba(17,27,44,.92); box-shadow: 0 28px 80px rgba(0,0,0,.45); transform: rotate(-2deg); }
.dash-label { color: #7e899a; font-size: .65rem; font-weight: 700; letter-spacing: .15em; }
.mini-dashboard strong { display: block; margin-top: 30px; font-family: var(--display); font-size: clamp(2rem,4vw,3.7rem); letter-spacing: -.05em; }
.mini-dashboard small { color: #7e899a; }
.mini-dashboard svg { width: 100%; margin-top: 34px; overflow: visible; }

.process-section { color: var(--ink); background: var(--paper-deep); }
.process-section .container { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 9vw, 130px); }
.process-intro { position: sticky; top: 130px; align-self: start; }
.process-intro h2 { font-size: clamp(3rem, 5.6vw, 5.7rem); }
.process-intro > p:last-child { max-width: 480px; margin: 30px 0 0; color: #5f5c57; font-size: 1.05rem; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c7c1b6; }
.process-list li { min-height: 176px; display: grid; grid-template-columns: 70px 1fr; gap: 22px; align-items: center; border-bottom: 1px solid #c7c1b6; }
.process-list > li > span { align-self: start; margin-top: 44px; color: var(--accent); font-family: var(--display); font-size: .75rem; font-weight: 700; }
.process-list h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.55rem; }
.process-list p { max-width: 530px; margin: 0; color: #615e58; }

.network-section { background: #111114; border-top: 1px solid var(--line); }
.network-heading { display: grid; grid-template-columns: .45fr 1fr .65fr; align-items: end; gap: 38px; margin-bottom: 58px; }
.network-heading .eyebrow { align-self: start; margin-bottom: 0; }
.network-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 600; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.network-heading > p:last-child { margin: 0; color: #9b9892; font-size: 1.03rem; }
.network-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.network-card { min-height: 330px; padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); transition: background .25s, transform .25s; }
.network-card:last-child { border-right: 0; }
.network-card:hover, .network-card:focus-visible { background: rgba(255,77,25,.08); }
.network-label { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.network-card h3 { margin: 48px 0 14px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.05em; }
.network-card p { max-width: 510px; margin: 0; color: #a9a69f; }
.network-card strong { margin-top: auto; padding-top: 34px; font-family: var(--display); font-size: .9rem; }

.cta-section { position: relative; overflow: hidden; background: var(--accent); }
.cta-grid { opacity: .2; mask-image: none; }
.cta-inner { position: relative; z-index: 2; text-align: center; }
.cta-inner .eyebrow { justify-content: center; color: rgba(255,255,255,.78); }
.cta-inner .eyebrow span { background: white; }
.cta-inner h2 { font-size: clamp(3rem, 7vw, 7rem); color: #fff; }
.cta-inner h2 em { color: #24110a; }
.cta-inner > p:not(.eyebrow) { max-width: 620px; margin: 30px auto 38px; color: rgba(255,255,255,.84); font-size: 1.1rem; }
.button-light { background: var(--ink); color: #fff; }
.button-light:hover, .button-light:focus-visible { background: #27272a; }

.site-footer { padding: 56px 0; background: var(--ink); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; }
.footer-grid > p { margin: 0; color: #8f8d87; }
.footer-links { justify-self: end; display: flex; gap: 24px; color: #b7b4ad; font-size: .88rem; }
.copyright { justify-self: end; font-size: .78rem; text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --container: min(100% - 36px, 760px); }
  .menu-button { display: flex; }
  .site-nav { position: absolute; top: 72px; left: 18px; right: 18px; padding: 24px; display: none; align-items: stretch; flex-direction: column; gap: 18px; background: #141416; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
  .site-nav.open { display: flex; }
  .nav-cta { text-align: center; }
  .menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .hero { min-height: auto; }
  .hero-layout, .project-card, .process-section .container { grid-template-columns: 1fr; }
  .delivery-map { max-width: 560px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .network-heading { grid-template-columns: 1fr; gap: 20px; }
  .network-heading > p:last-child { max-width: 620px; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .section-heading > p:last-child { max-width: 620px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 340px; border-right: 0; border-bottom: 1px solid #d5d0c5; }
  .service-card:last-child { border-bottom: 0; }
  .service-card.featured { transform: none; }
  .service-card h3 { margin-top: 60px; }
  .project-card { min-height: 0; }
  .project-visual { grid-row: 1; min-height: 400px; }
  .project-content { min-height: 430px; }
  .process-intro { position: static; }
  .network-grid { grid-template-columns: 1fr; }
  .network-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .network-card:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 28px); }
  .header-inner { min-height: 72px; }
  .hero { padding-top: 124px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-lead { margin-top: 24px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .button { width: 100%; }
  .text-link { align-self: center; }
  .hero-foot { align-items: flex-start; flex-direction: column; }
  .hero-foot div { gap: 14px 20px; }
  .delivery-map { padding: 18px; }
  .section { padding: 84px 0; }
  .section-heading { margin-bottom: 42px; }
  .service-card { padding: 28px; }
  .project-content { min-height: 440px; padding: 30px 24px; }
  .project-meta { flex-direction: column; gap: 5px; }
  .project-visual { min-height: 320px; }
  .mini-dashboard { width: 88%; padding: 24px; }
  .process-list li { grid-template-columns: 44px 1fr; min-height: 190px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links, .copyright { justify-self: start; }
  .copyright { text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
}

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

/* Página legal (/privacidade/) */
.legal-section { padding-top: clamp(140px, 16vw, 200px); }
.legal { max-width: 760px; }
.legal h1 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.legal-updated { margin: 18px 0 0; color: #8f8d87; font-size: .9rem; }
.legal h2 { margin: 44px 0 12px; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.legal p, .legal li { color: #bcb9b2; line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal a:not(.text-link) { color: #f4f1ea; border-bottom: 1px solid rgba(255,255,255,.35); }
.legal code { font-size: .9em; color: #f4f1ea; }
.legal-back { margin-top: 48px; }

/* Banner de cookies: aparece só sem escolha gravada (dist/script.js) */
.consent { position: fixed; inset: auto 0 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 16px 24px; background: var(--ink-soft); border-top: 1px solid var(--line); box-shadow: 0 -18px 50px rgba(0,0,0,.45); }
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 720px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.consent p a { color: #f4f1ea; border-bottom: 1px solid rgba(255,255,255,.35); }
.consent-actions { display: flex; gap: 10px; }
.consent .button { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.button-outline { background: transparent; border-color: rgba(255,255,255,.3); color: #f4f1ea; cursor: pointer; }
.consent .button-primary { cursor: pointer; }
.button-outline:hover, .button-outline:focus-visible { border-color: #f4f1ea; }
