:root {
    --green: #00a33c;
    --green-dark: #007b32;
    --yellow: #ffd800;
    --yellow-dark: #d6b400;
    --orange: #ed7d00;
    --teal: #5b9795;
    --teal-dark: #397572;
    --ink: #111315;
    --muted: #667276;
    --light: #f4f8f7;
    --white: #ffffff;
    --border: #dce6e4;
    --shadow: 0 18px 45px rgba(17, 19, 21, .10);
    --radius: 22px;
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }

/* Cabeçalho */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(220,230,228,.85);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 500; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name strong { font-weight: 800; }
.site-navigation { display: flex; align-items: center; gap: 7px; }
.nav-link { position: relative; padding: 10px 13px; border-radius: 10px; color: #4d585b; font-size: .92rem; font-weight: 600; transition: .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--light); }
.nav-link.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Elementos comuns */
.eyebrow { display: inline-block; color: var(--teal-dark); font-size: .75rem; letter-spacing: .18em; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border-radius: 12px; font-size: .9rem; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 10px 25px rgba(17,19,21,.14); }
.button-primary:hover { box-shadow: 0 14px 30px rgba(17,19,21,.20); }
.button-secondary { color: var(--ink); border: 1px solid var(--border); background: rgba(255,255,255,.75); }

/* Destaque principal */
.hero { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; background: linear-gradient(135deg, #eef7f5 0%, #ffffff 62%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 80px 0; }
.hero-content { max-width: 650px; }
.hero h1 { margin: 15px 0 22px; font-size: clamp(3rem, 6vw, 5.2rem); letter-spacing: -.055em; }
.hero h1 span { color: var(--teal-dark); }
.hero-text { max-width: 590px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-logo-wrap { position: relative; display: grid; place-items: center; min-height: 400px; }
.hero-logo { position: relative; z-index: 2; width: min(370px, 75vw); filter: drop-shadow(0 25px 25px rgba(17,19,21,.14)); animation: float 5s ease-in-out infinite; }
.hero-logo-ring { position: absolute; width: 390px; height: 390px; border: 1px solid rgba(91,151,149,.24); border-radius: 50%; box-shadow: 0 0 0 35px rgba(91,151,149,.04), 0 0 0 70px rgba(91,151,149,.025); }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .55; }
.hero-shape-one { width: 220px; height: 220px; right: -80px; top: 30px; background: rgba(255,216,0,.22); }
.hero-shape-two { width: 170px; height: 170px; left: 38%; bottom: -80px; background: rgba(0,163,60,.13); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Áreas do site */
.intro-section { padding: 100px 0; }
.section-heading { max-width: 700px; margin-bottom: 45px; }
.section-heading h2 { margin: 10px 0 14px; font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: 1.03rem; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.area-card { position: relative; min-height: 355px; overflow: hidden; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 30px rgba(17,19,21,.05); transition: transform .25s ease, box-shadow .25s ease; }
.area-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.area-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; }
.area-green::before { background: var(--green); }
.area-yellow::before { background: var(--yellow); }
.area-orange::before { background: var(--orange); }
.area-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 38px; border-radius: 16px; color: var(--white); font-weight: 900; font-size: .85rem; letter-spacing: .04em; }
.area-green .area-icon { background: var(--green); }
.area-yellow .area-icon { background: var(--yellow); color: var(--ink); }
.area-orange .area-icon { background: var(--orange); }
.area-number { position: absolute; top: 31px; right: 29px; color: #b9c5c4; font-size: .78rem; font-weight: 800; }
.area-card h3 { max-width: 250px; margin-bottom: 12px; font-size: 1.45rem; }
.area-card p { color: var(--muted); font-size: .93rem; }
.area-link { position: absolute; left: 30px; bottom: 28px; font-size: .82rem; font-weight: 800; }
.area-link span { display: inline-block; margin-left: 6px; transition: transform .2s; }
.area-card:hover .area-link span { transform: translateX(4px); }

/* Sobre a 3i */
.about-strip { padding: 75px 0; background: var(--ink); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.about-grid .eyebrow { color: #8fc6c3; }
.about-grid h2 { margin: 13px 0 0; font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.035em; }
.about-grid > p { margin: 0; color: #bdc7c8; font-size: 1.04rem; }

/* Páginas em construção */
.construction-page { min-height: calc(100vh - 160px); display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, #f5faf9, #fff); padding: 80px 0; }
.construction-inner { display: flex; flex-direction: column; align-items: center; }
.construction-mark { width: 86px; height: 86px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 24px; font-size: 1.35rem; font-weight: 900; box-shadow: 0 14px 35px rgba(17,19,21,.10); }
.construction-green { background: var(--green); color: var(--white); }
.construction-yellow { background: var(--yellow); color: var(--ink); }
.construction-orange { background: var(--orange); color: var(--white); }
.construction-page h1 { max-width: 800px; margin: 12px 0 18px; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -.05em; }
.construction-page p { max-width: 620px; margin-bottom: 25px; color: var(--muted); font-size: 1.08rem; }
.construction-status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; color: #526063; font-size: .88rem; font-weight: 650; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(237,125,0,.10); }

/* Rodapé */
.site-footer { border-top: 1px solid var(--border); background: #f8faf9; }
.footer-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong { font-size: .9rem; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.footer-copy { margin: 0; color: #7b8688; font-size: .76rem; }

/* Carregamento e erros */
#spa-loading { position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform .35s ease, opacity .2s ease; }
.erro-spa { min-height: 60vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 60px 20px; }
.erro-spa p { color: var(--muted); }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .site-navigation { position: absolute; top: 78px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; padding: 10px; background: rgba(255,255,255,.98); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
    .site-navigation.open { display: flex; }
    .nav-link { padding: 13px; }
    .nav-link.active::after { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-logo-wrap { min-height: 300px; }
    .hero-logo { width: 290px; }
    .hero-logo-ring { width: 300px; height: 300px; }
    .areas-grid { grid-template-columns: 1fr; }
    .area-card { min-height: 300px; }
    .about-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 600px) {
    .container { width: min(calc(100% - 28px), var(--max-width)); }
    .brand-name { display: none; }
    .hero { min-height: auto; }
    .hero-grid { padding: 70px 0 60px; }
    .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    .hero-text { font-size: 1rem; }
    .hero-logo-wrap { min-height: 255px; }
    .hero-logo { width: 235px; }
    .hero-logo-ring { width: 250px; height: 250px; }
    .intro-section { padding: 70px 0; }
    .section-heading { margin-bottom: 30px; }
    .about-strip { padding: 60px 0; }
    .footer-inner { flex-direction: column; align-items: flex-start; padding: 25px 0; gap: 15px; }
    .footer-copy { font-size: .7rem; }
}

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

/* Animações e efeitos visuais da página inicial */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 70% 48%, rgba(91,151,149,.08), transparent 30%);
}
.hero-content,
.hero-logo-wrap { animation: hero-enter .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-logo-wrap { animation-delay: .12s; }
.hero-intro { animation: hero-enter .65s cubic-bezier(.2,.7,.2,1) .04s both; }
.hero-title { animation: hero-enter .75s cubic-bezier(.2,.7,.2,1) .12s both; }
.hero-text { animation: hero-enter .75s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-actions { animation: hero-enter .75s cubic-bezier(.2,.7,.2,1) .28s both; }
@keyframes hero-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.slogan-word { display: inline-block; }
.slogan-word-ideas { animation: slogan-focus 4.8s ease-in-out .9s infinite; }
.slogan-word-solutions { animation: slogan-focus 4.8s ease-in-out 2.1s infinite; }
@keyframes slogan-focus {
    0%, 18%, 100% { color: var(--teal-dark); text-shadow: none; transform: translateY(0); }
    8% { color: var(--green-dark); text-shadow: 0 8px 24px rgba(0,123,50,.12); transform: translateY(-2px); }
}
.hero-shape-three { width: 125px; height: 125px; left: 8%; top: 14%; background: rgba(237,125,0,.08); animation: drift-one 11s ease-in-out infinite; }
.hero-shape-four { width: 90px; height: 90px; right: 18%; bottom: 9%; background: rgba(0,163,60,.09); animation: drift-two 13s ease-in-out infinite; }
.hero-shape-one { animation: drift-two 14s ease-in-out infinite; }
.hero-shape-two { animation: drift-one 12s ease-in-out infinite; }
@keyframes drift-one { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(12px,-16px,0); } }
@keyframes drift-two { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-15px,12px,0); } }
.hero-particle { position: absolute; z-index: 1; width: 7px; height: 7px; border-radius: 50%; opacity: .45; }
.hero-particle-one { left: 15%; top: 28%; background: var(--green); animation: particle-one 7s ease-in-out infinite; }
.hero-particle-two { right: 14%; top: 24%; width: 5px; height: 5px; background: var(--orange); animation: particle-two 9s ease-in-out infinite; }
.hero-particle-three { right: 27%; bottom: 18%; width: 6px; height: 6px; background: var(--yellow-dark); animation: particle-one 8s ease-in-out 1s infinite; }
@keyframes particle-one { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-12px); } }
@keyframes particle-two { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-12px,18px); } }
.hero-logo-ring { animation: ring-breathe 7s ease-in-out infinite; }
@keyframes ring-breathe { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.035); opacity: 1; } }
.hero-logo-orbit { position: absolute; border: 1px solid rgba(91,151,149,.16); border-radius: 50%; pointer-events: none; }
.hero-logo-orbit-one { width: 455px; height: 275px; transform: rotate(22deg); animation: orbit-breathe 8s ease-in-out infinite; }
.hero-logo-orbit-two { width: 315px; height: 455px; transform: rotate(-25deg); animation: orbit-breathe 10s ease-in-out 1s infinite reverse; }
@keyframes orbit-breathe { 0%,100% { opacity: .35; transform: rotate(22deg) scale(1); } 50% { opacity: .8; transform: rotate(27deg) scale(1.02); } }

.section-transition { height: 76px; display: flex; align-items: center; justify-content: center; gap: 0; background: var(--white); overflow: hidden; }
.transition-line { width: min(30vw, 180px); height: 1px; background: linear-gradient(90deg, transparent, var(--border)); }
.transition-line:last-child { background: linear-gradient(90deg, var(--border), transparent); }
.transition-node { position: relative; width: 9px; height: 9px; margin: 0 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 7px rgba(91,151,149,.08); animation: node-pulse 3s ease-in-out infinite; }
@keyframes node-pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 7px rgba(91,151,149,.08); } 50% { transform: scale(1.12); box-shadow: 0 0 0 11px rgba(91,151,149,.03); } }
.section-transition-dark { background: var(--light); }
.section-transition-dark .transition-line { background: linear-gradient(90deg, transparent, rgba(91,151,149,.35)); }
.section-transition-dark .transition-line:last-child { background: linear-gradient(90deg, rgba(91,151,149,.35), transparent); }

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.area-card { will-change: transform; }
.area-card .area-icon { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.area-card:hover .area-icon { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px rgba(17,19,21,.12); }
.area-card::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.area-green::after { background: var(--green); }
.area-yellow::after { background: var(--yellow-dark); }
.area-orange::after { background: var(--orange); }
.area-card:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
    .hero-logo-orbit-one { width: 340px; height: 220px; }
    .hero-logo-orbit-two { width: 250px; height: 340px; }
}

@media (max-width: 600px) {
    .hero-shape-three, .hero-shape-four, .hero-particle { opacity: .25; }
    .hero-logo-orbit-one { width: 275px; height: 185px; }
    .hero-logo-orbit-two { width: 205px; height: 275px; }
    .section-transition { height: 58px; }
    .transition-line { width: 24vw; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content, .hero-logo-wrap, .hero-intro, .hero-title, .hero-text, .hero-actions,
    .slogan-word-ideas, .slogan-word-solutions, .hero-shape-one, .hero-shape-two,
    .hero-shape-three, .hero-shape-four, .hero-particle-one, .hero-particle-two,
    .hero-particle-three, .hero-logo-ring, .hero-logo-orbit-one, .hero-logo-orbit-two,
    .transition-node { animation: none !important; }
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
