/* ═══════════════════════════════════════════
   NIVO — styles.css
   Desktop-first base → mobile override abaixo de 768px
   ═══════════════════════════════════════════ */

:root {
  --bg: #080B12;
  --surface: #0D111B;
  --surface-2: #121722;
  --text: #FFFFFF;
  --muted: #9198A7;
  --blue: #0B4DFF;
  --blue-dim: #1A3ECC;
  --line: rgba(245,246,250,.12);
  --line-soft: rgba(245,246,250,.07);
  --gradient: linear-gradient(135deg,#0B4DFF,#1A6BFF);
  --container: min(1280px, calc(100vw - 96px));
  --ease: cubic-bezier(.2,.75,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: #fff; color: var(--bg); padding: 12px 16px; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 16px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.section-pad { padding: 150px 0; }

/* ── HEADER ── */
.site-header { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease; }
.site-header.scrolled { background: rgba(7,8,15,.72); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(18px); }
.header-shell { height: 82px; width: var(--container); margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; width: max-content; min-height: 38px; }
.brand-logo { display:block; width:auto; height:35px; max-width:124px; object-fit:contain; }
.brand-svg { display: block; height: 30px; width: auto; }
.brand-svg-sm { height: 26px; }
.brand-fallback { font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .13em; }
.desktop-nav { display: flex; gap: 32px; align-items: center; }
.desktop-nav a { position: relative; color: #b6b9c3; font-size: 13px; font-weight: 500; transition: color .25s; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gradient); transition: right .35s var(--ease); }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--text); }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-cta { justify-self: end; padding: 11px 0; font-size: 13px; font-weight: 600; border-bottom: 1px solid rgba(245,246,250,.4); transition: border-color .25s; }
.header-cta span { margin-left: 8px; color: var(--blue); }
.header-cta:hover { border-color: var(--blue); }
.menu-toggle { display: none; justify-self: end; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; background: var(--text); margin: 6px auto; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu { position: fixed; z-index: 900; inset: 0; background: rgba(7,8,15,.98); padding: 120px 24px 32px; display: flex; flex-direction: column; justify-content: space-between; transform: translateY(-105%); transition: transform .5s var(--ease); }
.mobile-menu.open { transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font: 500 38px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.mobile-menu-footer { display: flex; justify-content: space-between; gap: 20px; align-items: end; color: var(--muted); font-size: 12px; }
.mobile-menu-footer a { color: var(--text); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1px solid transparent; font-size: 13px; font-weight: 600; letter-spacing: .01em; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #2D62FF; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(245,246,250,.25); }
.btn-ghost:hover { border-color: rgba(245,246,250,.6); }
.btn-light { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-light:hover { background: #2D62FF; }
.btn-ghost-light { background: transparent; color: var(--text); border-color: rgba(245,246,250,.3); }
.btn-ghost-light:hover { border-color: rgba(245,246,250,.7); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; padding: 190px 0 90px; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(140px); pointer-events: none; opacity: .28; }
.hero-glow-a { width: 520px; height: 520px; background: var(--blue); top: -260px; left: -180px; }
.hero-glow-b { width: 450px; height: 450px; background: #0B2E9A; right: -260px; top: 34%; opacity: .16; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 1120px; font: 500 clamp(64px,7.15vw,104px)/.94 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.hero h1 span { color: #a6a9b4; }
.hero-bottom { margin-top: 42px; display: grid; grid-template-columns: minmax(0,620px) auto; align-items: end; gap: 70px; }
.hero-bottom > p { max-width: 590px; color: #b8bac4; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; align-items: center; justify-self: end; }

/* Indicador discreto de rolagem do Hero */
.scroll-cue { position: absolute; right: 28px; bottom: 28px; display: flex; align-items: center; gap: 12px; color: #666b7a; font-size: 8px; letter-spacing: .2em; transform: rotate(90deg); transform-origin: right bottom; }
.scroll-cue i { display: block; width: 45px; height: 1px; background: linear-gradient(90deg,#0B4DFF,#1A6BFF); }

/* ── STATEMENT ── */
.statement { border-top: 1px solid var(--line-soft); }
.statement-grid { display: grid; grid-template-columns: 260px 1fr; gap: 80px; }
.statement-title { max-width: 940px; font: 500 clamp(46px,5.4vw,78px)/1.02 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.statement-title span { color: #787d8b; }
.statement-copy { max-width: 620px; margin-top: 42px; color: #b7bac5; font-size: 19px; line-height: 1.7; }

/* ── SOLUTIONS ── */
.solutions { background: #0A0D16; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: grid; grid-template-columns: 260px 1fr; gap: 80px; margin-bottom: 80px; }
.section-head > div:last-child { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 60px; }
.section-head h2 { font: 500 clamp(48px,5vw,72px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.section-head > div:last-child > p { max-width: 390px; color: var(--muted); font-size: 15px; }
.solution-list { border-top: 1px solid var(--line); }
.solution-row { position: relative; display: grid; grid-template-columns: minmax(220px,.9fr) 1.5fr 40px; align-items: center; gap: 30px; min-height: 148px; border-bottom: 1px solid var(--line); transition: background .35s, padding .35s var(--ease); outline: none; }
.solution-row::before { content: ""; position: absolute; inset: 0; right: 100%; background: linear-gradient(90deg,rgba(11,77,255,.08),rgba(11,77,255,.02)); transition: right .5s var(--ease); z-index: 0; }
.solution-row:hover::before, .solution-row:focus-visible::before { right: 0; }
.solution-row > * { position: relative; z-index: 1; }
.solution-row:hover, .solution-row:focus-visible { padding-inline: 18px; }
.solution-row h3 { font: 500 clamp(32px,3.1vw,46px)/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.solution-row p { max-width: 540px; color: #8d919d; }
.solution-arrow { justify-self: end; color: var(--blue); font-size: 19px; }

/* ── PROJECTS ── */
.projects { padding-bottom: 190px; }
.projects-intro { display: grid; grid-template-columns: 260px 1fr; gap: 80px; margin-bottom: 100px; }
.projects-intro h2 { font: 500 clamp(50px,5.6vw,80px)/1 "Space Grotesk", sans-serif; letter-spacing: -.058em; }
.projects-intro h2 span { color: #777c89; }
.project-stack { display: flex; flex-direction: column; gap: 160px; }
.project-meta { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 26px; }
.project-meta > div { display: flex; gap: 22px; align-items: end; }
.project-meta > div:first-child { align-items: baseline; flex-wrap: wrap; }
.project-meta span, .project-meta em { font-size: 9px; letter-spacing: .13em; color: #777c89; text-transform: uppercase; font-style: normal; }
.project-meta h3 { font: 500 clamp(28px,3.1vw,44px)/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.project-frame { position: relative; height: 680px; overflow: hidden; border: 1px solid var(--line); }
.project-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); pointer-events: none; }
.project-description { max-width: 630px; margin: 28px 0 0 auto; color: #8f939f; font-size: 14px; line-height: 1.7; }
.project-browser, .auto-browser, .rural-browser { position: absolute; left: 50%; top: 56px; width: min(1000px,82%); height: 540px; transform: translateX(-50%) rotate(-1deg); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.35); transition: transform .8s var(--ease); }
.project-frame:hover .project-browser, .project-frame:hover .auto-browser, .project-frame:hover .rural-browser { transform: translateX(-50%) translateY(-8px) rotate(0deg) scale(1.01); }
.browser-chrome.light { background: #efebe6; color: #978e85; }
.browser-chrome.light i { background: #c8c0b8; }

/* Alta Rotação */
.fashion-frame { background: #25221f; }
.alta-page { position: relative; height: calc(100% - 32px); background: #f3eee8; color: #211e1b; overflow: hidden; }
.alta-header { height: 68px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.07); font-size: 9px; }
.alta-header b { letter-spacing: .16em; }
.alta-header span { color: #7b736d; }
.alta-copy { position: absolute; left: 46px; top: 145px; z-index: 2; }
.alta-copy small { font-size: 8px; letter-spacing: .16em; }
.alta-copy h4 { font: 500 56px/.92 "Space Grotesk", sans-serif; letter-spacing: -.055em; margin: 14px 0 24px; }
.alta-copy i { font-style: normal; font-size: 8px; padding-bottom: 6px; border-bottom: 1px solid #211e1b; }
.alta-model { position: absolute; right: 0; bottom: 0; }
.alta-model-a { width: 47%; height: 82%; right: 11%; background: linear-gradient(150deg,#928277,#ddd1c8); clip-path: polygon(20% 0,100% 0,87% 100%,0 100%); }
.alta-model-b { width: 28%; height: 58%; right: -5%; background: linear-gradient(160deg,#4a4643,#aaa09a); clip-path: polygon(18% 0,100% 8%,100% 100%,0 100%); }
.project-phone { position: absolute; z-index: 4; width: 190px; height: 390px; right: 7%; bottom: 32px; border: 6px solid #17181d; border-radius: 29px; box-shadow: 0 25px 70px rgba(0,0,0,.4); overflow: hidden; transition: transform .8s var(--ease); }
.project-frame:hover .project-phone { transform: translateY(-12px) rotate(1deg); }
.mini-notch { width: 65px; height: 14px; border-radius: 8px; background: #17181d; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); }
.alta-phone { background: #f4efe9; color: #211e1b; padding: 30px 12px 12px; }
.alta-phone > b { font-size: 7px; letter-spacing: .14em; }
.alta-phone > span { display: block; margin-top: 19px; font-size: 6px; letter-spacing: .12em; }
.alta-mobile-img { height: 178px; margin: 8px 0 12px; background: linear-gradient(150deg,#756861,#cabdb4); }
.alta-phone strong { font: 500 18px/1.02 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.alta-phone > i { display: block; margin-top: 12px; font-size: 6px; font-style: normal; letter-spacing: .08em; }

/* Podium */
.auto-frame { background: #d9dee4; }
.auto-browser { background: #fff; }
.browser-chrome.auto { background: #f5f6f8; color: #9aa0a8; }
.browser-chrome.auto i { background: #cfd3d8; }
.auto-page { position: relative; height: calc(100% - 32px); background: #f7f8fa; color: #12151a; overflow: hidden; }
.auto-nav { height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 46px; border-bottom: 1px solid #e3e6e9; font-size: 8px; }
.auto-nav b { font-size: 11px; font-style: italic; }
.auto-nav span { color: #747a84; flex: 1; }
.auto-nav i { font-style: normal; background: #11151a; color: #fff; padding: 8px 11px; font-size: 6px; }
.auto-hero { position: absolute; left: 45px; top: 130px; z-index: 2; }
.auto-hero small { font-size: 7px; letter-spacing: .14em; color: #818792; }
.auto-hero h4 { font: 600 58px/.9 "Space Grotesk", sans-serif; letter-spacing: -.06em; margin: 15px 0 28px; }
.auto-filter { display: flex; box-shadow: 0 10px 30px rgba(0,0,0,.08); background: white; }
.auto-filter span, .auto-filter b { min-width: 110px; padding: 12px; border-right: 1px solid #eceef0; font-size: 7px; color: #777d85; }
.auto-filter b { background: #11151a; color: #fff; font-weight: 500; text-align: center; }
.auto-car { position: absolute; right: 4%; bottom: 62px; width: 49%; height: 210px; background: linear-gradient(180deg,transparent 60%,rgba(0,0,0,.07)); border-radius: 50%; }
.auto-car::before { content: ""; position: absolute; left: 6%; right: 4%; top: 36%; height: 70px; background: linear-gradient(145deg,#3c4148,#101317); border-radius: 50% 45% 22% 25%; transform: skewX(-8deg); }
.auto-car::after { content: ""; position: absolute; width: 42%; height: 52px; left: 27%; top: 16%; background: #272c32; clip-path: polygon(19% 100%,35% 15%,77% 0,100% 100%); }
.auto-car i { position: absolute; z-index: 2; top: 76%; width: 54px; height: 54px; background: #171b20; border: 10px solid #32373d; border-radius: 50%; }
.auto-car i:first-child { left: 15%; }
.auto-car i:last-child { right: 12%; }
.auto-phone { background: #fff; color: #11151a; padding: 30px 11px 12px; }
.auto-phone > b { font-size: 8px; font-style: italic; }
.auto-phone > span { display: block; margin-top: 18px; font-size: 6px; letter-spacing: .13em; color: #777; }
.car-mobile { height: 155px; margin: 10px 0; background: linear-gradient(155deg,#e4e7ea,#cbd0d5); position: relative; }
.car-mobile::after { content: ""; position: absolute; width: 78%; height: 42px; left: 11%; bottom: 38px; background: #20252a; border-radius: 50% 50% 25% 25%; transform: skewX(-10deg); }
.auto-phone strong { font: 600 17px/1.05 "Space Grotesk", sans-serif; }
.car-data { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.car-data i { height: 35px; background: #f0f2f4; }

/* Portal Rural */
.rural-frame { background: #1b2a22; }
.rural-browser { background: #f2ede5; }
.browser-chrome.rural { background: #e8e1d7; color: #938b80; }
.browser-chrome.rural i { background: #c6bdae; }
.rural-page { position: relative; height: calc(100% - 32px); background: #efe9de; color: #1c2a22; overflow: hidden; }
.rural-nav { height: 64px; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(28,42,34,.1); font-size: 8px; }
.rural-nav b { letter-spacing: .14em; }
.rural-nav span { color: #617067; }
.rural-copy { position: absolute; z-index: 4; left: 44px; top: 130px; }
.rural-copy small { font-size: 7px; letter-spacing: .14em; }
.rural-copy h4 { font: 500 56px/.92 "Space Grotesk", sans-serif; letter-spacing: -.055em; margin: 14px 0; }
.rural-copy p { font-size: 11px; color: #667169; }
.rural-copy i { display: block; width: max-content; margin-top: 22px; font-size: 7px; font-style: normal; padding-bottom: 6px; border-bottom: 1px solid #1c2a22; }
.landscape { position: absolute; right: 0; bottom: 0; width: 58%; height: 82%; overflow: hidden; background: linear-gradient(#d8d3c4 0 48%,#677b61 49%); }
.hill { position: absolute; bottom: -30px; border-radius: 50% 50% 0 0; background: #3f5d48; }
.hill.h1 { width: 120%; height: 54%; left: -20%; transform: rotate(8deg); }
.hill.h2 { width: 90%; height: 37%; right: -12%; bottom: -8%; background: #587058; transform: rotate(-8deg); }
.sun { position: absolute; right: 15%; top: 12%; width: 68px; height: 68px; border-radius: 50%; background: #d1b783; }
.house { position: absolute; z-index: 3; left: 37%; bottom: 25%; width: 72px; height: 42px; background: #e6ddd0; }
.house::after { content: ""; position: absolute; left: -6px; top: -23px; border-left: 42px solid transparent; border-right: 42px solid transparent; border-bottom: 27px solid #734f39; }
.rural-phone { background: #f0eade; color: #1c2a22; padding: 30px 11px 12px; }
.rural-phone > b { font-size: 7px; letter-spacing: .13em; }
.rural-phone > span { display: block; margin-top: 18px; font-size: 6px; letter-spacing: .13em; }
.rural-mobile-img { height: 168px; margin: 9px 0 12px; background: linear-gradient(#d4d0c3 0 47%,#49644e 48%); position: relative; }
.rural-mobile-img::after { content: ""; position: absolute; left: 45%; bottom: 28px; width: 36px; height: 25px; background: #e7dfd3; }
.rural-phone strong { font: 500 17px/1.05 "Space Grotesk", sans-serif; }
.rural-phone small { display: block; margin-top: 5px; color: #6a746d; font-size: 7px; }
.rural-phone > i { display: block; margin-top: 14px; font-size: 6px; font-style: normal; }
.project-realestate .project-meta em { border: 1px solid #30343d; padding: 4px 7px; border-radius: 20px; }

/* ── PRINCIPLES ── */
.principles { background: #0A0D16; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.principles-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.principles-sticky { align-self: start; position: sticky; top: 150px; }
.principles-sticky h2 { font: 500 clamp(40px,4.2vw,62px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.principles-sticky h2 span { color: #777c89; }
.principle-list { border-top: 1px solid var(--line); }
.principle { padding: 42px 0; border-bottom: 1px solid var(--line); }
.principle h3 { font: 500 26px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.principle p { max-width: 520px; margin-top: 12px; color: #8d919d; font-size: 14px; line-height: 1.7; }

/* ── PROCESS ── */
.process-head { margin-bottom: 90px; }
.process-track { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.process-step { min-height: 200px; padding: 28px 24px 28px 0; border-right: 1px solid var(--line); position: relative; }
.process-step:last-child { border-right: 0; padding-left: 24px; }
.process-step:not(:first-child) { padding-left: 24px; }
.process-step h3 { margin-top: 64px; font: 500 28px/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.process-step p { margin-top: 10px; color: #858a96; font-size: 13px; }
.process-step::after { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--gradient); transition: width .6s var(--ease); }
.process-step:hover::after { width: 100%; }

/* ── ABOUT ── */
.about { border-top: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 80px; }
.about-copy h2 { font: 500 clamp(52px,5.8vw,82px)/.94 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.about-copy h2 span { color: #747986; }
.about-copy p { max-width: 610px; margin-top: 28px; color: #a0a4af; font-size: 16px; line-height: 1.75; }

/* ── FINAL CTA ── */
.final-cta { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--line-soft); background: #060910; }
.final-glow { position: absolute; width: 780px; height: 780px; right: -220px; bottom: -450px; border-radius: 50%; background: conic-gradient(from 90deg,rgba(11,77,255,.55),rgba(11,77,255,.35),rgba(11,77,255,.55)); filter: blur(120px); opacity: .32; }
.final-inner { position: relative; z-index: 2; }
.final-inner h2 { max-width: 1050px; font: 500 clamp(62px,7vw,102px)/.93 "Space Grotesk", sans-serif; letter-spacing: -.065em; }
.final-inner h2 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-actions { display: flex; align-items: center; gap: 14px; margin-top: 48px; }

/* ── FOOTER ── */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line-soft); }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 100px; padding-bottom: 56px; }
.footer-brand .brand-fallback { font-size: 17px; letter-spacing: .14em; }
.footer-links { display: flex; gap: 90px; }
.footer-links > div { display: flex; flex-direction: column; gap: 9px; min-width: 120px; }
.footer-links span { margin-bottom: 8px; color: #5f6470; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a, .footer-button { width: max-content; border: 0; background: none; color: #acafb8; font-size: 12px; cursor: pointer; }
.footer-links a:hover, .footer-button:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; color: #626672; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }

/* ── BACK TO TOP ── */
.back-to-top { position: fixed; z-index: 500; right: 28px; bottom: 28px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(14,16,24,.9); backdrop-filter: blur(12px); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .25s, background .25s; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: rgba(30,33,50,.95); border-color: rgba(245,246,250,.3); }

/* ── TOAST ── */
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 28px; max-width: min(90vw,520px); padding: 13px 17px; border: 1px solid var(--line); background: rgba(14,16,24,.95); backdrop-filter: blur(16px); color: #d4d6dc; font-size: 12px; transform: translate(-50%,30px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* ── REVEAL ── */
.reveal, .reveal-media { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal-media { transform: translateY(34px) scale(.992); }
.reveal.visible, .reveal-media.visible { opacity: 1; transform: none; }
.hero-enter { opacity: 0; transform: translateY(22px); animation: heroIn .85s var(--ease) forwards; }
.hero-enter-1 { animation-delay: .12s; }
.hero-enter-2 { animation-delay: .28s; }
.hero-enter-3 { animation-delay: .48s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ── DESKTOP INTERMEDIATE ── */
@media (max-width: 1100px) {
  :root { --container: min(100% - 56px, 1100px); }
  .section-pad { padding: 120px 0; }
  .hero { padding-top: 160px; }
  .hero h1 { font-size: clamp(60px,8vw,86px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-self: start; }
  .statement-grid, .section-head, .projects-intro, .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-head > div:last-child { grid-template-columns: 1fr; gap: 22px; }
  .project-frame { height: 610px; }
  .project-browser, .auto-browser, .rural-browser { height: 485px; }
  .principles-grid { gap: 65px; }
}


/* ══════════════════════════════════════════
   MOBILE — experiência própria abaixo de 768px
   Pensa no polegar, não no cursor.
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --container: calc(100% - 40px);
  }

  /* Tipografia base mobile */
  body { font-size: 15px; line-height: 1.6; }
  .section-pad { padding: 72px 0; }

  /* ── HEADER MOBILE ── */
  .desktop-nav, .header-cta { display: none; }
  .header-shell { height: 64px; grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .brand-fallback { font-size: 17px; }

  /* Menu mobile — letras maiores e mais respiro */
  .mobile-menu { padding: 96px 20px 36px; }
  .mobile-menu nav a {
    font-size: 11vw;
    padding: 16px 0;
    letter-spacing: -.04em;
  }

  /* ── HERO MOBILE ── */
  .hero {
    min-height: 100svh;
    padding: 110px 0 56px;
  }
  .hero-glow-a { width: 320px; height: 320px; top: -120px; left: -120px; opacity: .18; }
  .hero-glow-b { width: 280px; height: 280px; right: -120px; top: 40%; opacity: .14; }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 58px);
    line-height: .96;
    letter-spacing: -.05em;
  }
  .hero h1 br { display: none; }
  .hero h1 span { display: block; margin-top: 4px; }

  .hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 24px;
  }
  .hero-bottom > p {
    font-size: 15px;
    line-height: 1.65;
    color: #b0b3be;
    max-width: 100%;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 14px;
  }

  /* Stage no mobile: só mostra o phone, esconde o browser pesado */
  .scroll-cue { display: none; }

  /* Phone centralizado e grande no hero mobile */
  .phone-notch { width: 56px; height: 12px; }
  .phone-ui { padding: 28px 10px 10px; }
  .phone-image { height: 120px; }
  .phone-ui h4 { font-size: 15px; margin-top: 10px; }
  .phone-products i { height: 36px; }
  .phone-nav { height: 30px; }

  /* ── STATEMENT MOBILE ── */
  .statement-grid { display: block; }
  .statement-title {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.06;
    letter-spacing: -.04em;
  }
  .statement-title span { display: block; }
  .statement-copy {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  /* ── SOLUTIONS MOBILE ── */
  .section-head { display: block; margin-bottom: 40px; }
  .section-head h2 {
    font-size: clamp(28px, 8.5vw, 42px);
    letter-spacing: -.04em;
    margin-bottom: 12px;
  }
  .section-head > div:last-child { display: block; }
  .section-head > div:last-child > p { font-size: 14px; margin-top: 8px; }

  /* Rows de solução — empilhadas, toque fácil */
  .solution-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: auto;
    padding: 24px 0;
    transition: none;
  }
  .solution-row::before { display: none; }
  .solution-row:hover, .solution-row:focus-visible { padding-inline: 0; }
  .solution-row h3 {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: -.04em;
    line-height: 1;
  }
  .solution-row p { font-size: 13px; color: #7a7e8a; max-width: 100%; }
  .solution-arrow { display: none; }

  /* ── PROJECTS MOBILE ── */
  .projects { padding-bottom: 80px; }
  .projects-intro { display: block; margin-bottom: 48px; }
  .projects-intro h2 {
    font-size: clamp(28px, 8.5vw, 42px);
    letter-spacing: -.04em;
    line-height: 1.04;
  }
  .projects-intro h2 span { display: block; }

  .project-stack { gap: 64px; }

  .project-meta {
    display: block;
    margin-bottom: 16px;
  }
  .project-meta > div:last-child { display: none; } /* esconde o ano no mobile */
  .project-meta span {
    display: block;
    font-size: 9px;
    color: #666b78;
    margin-bottom: 6px;
  }
  .project-meta h3 {
    font-size: clamp(22px, 6.5vw, 32px);
    letter-spacing: -.04em;
    margin-top: 0;
  }
  .project-meta em {
    display: inline-block;
    margin-top: 6px;
    border: 1px solid #30343d;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 9px;
  }

  /* Frame do projeto mobile: apenas o phone centralizado, grande, sem browser */
  .project-frame {
    height: 340px;
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
  }
  .project-browser, .auto-browser, .rural-browser { display: none; }
  .project-frame:hover .project-browser,
  .project-frame:hover .auto-browser,
  .project-frame:hover .rural-browser { display: none; }

  /* Phone centralizado dentro do frame */
  .project-phone {
    position: absolute;
    width: 160px;
    height: 330px;
    left: 50%;
    right: auto;
    bottom: 8px;
    transform: translateX(-50%) rotate(0deg) !important;
    border-width: 5px;
    border-radius: 26px;
    transition: none !important;
  }
  .project-frame:hover .project-phone { transform: translateX(-50%) rotate(0deg) !important; }

  /* Fundo colorido de cada projeto fica visível atrás do phone */
  .fashion-frame { background: #25221f; }
  .auto-frame { background: #d9dee4; }
  .rural-frame { background: #1b2a22; }

  .project-description {
    margin: 14px 0 0 0;
    font-size: 13px;
    max-width: 100%;
    color: #888c98;
  }

  /* Phones individuais no mobile */
  .alta-phone { padding: 26px 10px 10px; }
  .alta-mobile-img { height: 130px; margin: 8px 0 10px; }
  .alta-phone strong { font-size: 14px; }
  .mini-notch { width: 50px; height: 11px; }

  .auto-phone { padding: 26px 10px 10px; }
  .car-mobile { height: 120px; margin: 8px 0 10px; }
  .auto-phone strong { font-size: 14px; }
  .car-data { gap: 5px; margin-top: 8px; }
  .car-data i { height: 28px; }

  .rural-phone { padding: 26px 10px 10px; }
  .rural-mobile-img { height: 120px; margin: 8px 0 10px; }
  .rural-phone strong { font-size: 14px; }
  .rural-phone small { font-size: 8px; }

  /* ── PRINCIPLES MOBILE ── */
  .principles-grid { display: block; }
  .principles-sticky {
    position: static;
    margin-bottom: 40px;
  }
  .principles-sticky h2 {
    font-size: clamp(28px, 8.5vw, 40px);
    line-height: 1.06;
    letter-spacing: -.04em;
  }
  .principles-sticky h2 span { display: block; }
  .principle { padding: 28px 0; }
  .principle h3 { font-size: 18px; letter-spacing: -.025em; }
  .principle p { font-size: 13px; margin-top: 8px; }

  /* ── PROCESS MOBILE ── */
  .process-head { margin-bottom: 40px; }
  .section-head.process-head { display: block; }
  .section-head.process-head h2 {
    font-size: clamp(28px, 8.5vw, 42px);
    letter-spacing: -.04em;
  }

  /* Etapas em coluna única, simples, sem número */
  .process-track {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    border-left: none;
  }
  .process-step {
    min-height: auto;
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .process-step:not(:first-child) { padding-left: 0; }
  .process-step:last-child { border-right: 0; border-bottom: 0; padding-left: 0; }
  .process-step h3 {
    margin-top: 0;
    font-size: 20px;
    letter-spacing: -.03em;
  }
  .process-step p { font-size: 13px; margin-top: 6px; }
  .process-step::after { display: none; }

  /* Linha de gradiente à esquerda em vez de barra superior */
  .process-step {
    padding-left: 20px;
    border-left: 2px solid var(--line);
  }
  .process-step:last-child { padding-left: 20px; }

  /* ── ABOUT MOBILE ── */
  .about-grid { display: block; }
  .about-copy h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.04;
    letter-spacing: -.05em;
  }
  .about-copy h2 span { display: block; }
  .about-copy p { font-size: 14px; margin-top: 18px; line-height: 1.7; }
  .about-copy p + p { margin-top: 12px; }

  /* ── FINAL CTA MOBILE ── */
  .final-cta { min-height: auto; padding: 80px 0; align-items: flex-start; }
  .final-glow { opacity: .2; }
  .final-inner h2 {
    font-size: clamp(32px, 10vw, 52px);
    line-height: 1.02;
    letter-spacing: -.05em;
  }
  .final-inner h2 span { display: block; }
  .final-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
    width: 100%;
  }
  .final-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 14px;
  }

  /* ── FOOTER MOBILE ── */
  .footer { padding: 48px 0 24px; }
  .footer-top { display: block; padding-bottom: 36px; }
  .footer-brand { margin-bottom: 32px; }
  .footer-links { gap: 36px; flex-wrap: wrap; }
  .footer-links > div { min-width: 100px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    font-size: 10px;
  }

  /* Back to top: posição segura longe do polegar direito */
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  /* Toast não conflita com back-to-top */
  .toast { bottom: 72px; }
}

/* Pequenino (320–375px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .statement-title { font-size: 28px; }
  .solution-row h3 { font-size: 24px; }
  .projects-intro h2, .principles-sticky h2, .about-copy h2, .final-inner h2 { font-size: 28px; }
  .mobile-menu nav a { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-enter, .reveal, .reveal-media { opacity: 1; transform: none; animation: none; transition: none; }
  .device, .project-browser, .auto-browser, .rural-browser, .project-phone { transition: none !important; }
  .hero-glow, .final-glow { display: none; }
  .back-to-top { transition: none; }
}

.brand-logo-footer { height:29px; max-width:102px; opacity:.98; }

@media (max-width: 640px) {
  .brand-logo { height: 31px; max-width: 108px; }
  .brand-logo-footer { height: 26px; max-width: 92px; }
}




/* ── INTRO LOGO ── */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  background: #07080F;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: nivoIntroExit .72s ease 3.35s forwards;
}
.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-inner {
  width: min(78vw, 330px);
  display: grid;
  justify-items: center;
  gap: 18px;
}
.intro-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(8px) scale(.975);
  animation: nivoLogoEnter 1s cubic-bezier(.22,.61,.36,1) .18s forwards;
}
.intro-line {
  width: 0;
  height: 1px;
  opacity: .85;
  background: linear-gradient(90deg, transparent, #0B4DFF 25%, #2F6BFF 70%, transparent);
  animation: nivoLineEnter .95s cubic-bezier(.22,.61,.36,1) .9s forwards;
}
@keyframes nivoLogoEnter {
  from { opacity: 0; transform: translateY(8px) scale(.975); }
  to { opacity: 1; transform: none; }
}
@keyframes nivoLineEnter {
  from { width: 0; opacity: .15; }
  to { width: min(34vw, 170px); opacity: .85; }
}
@keyframes nivoIntroExit {
  0% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; pointer-events: none; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 640px) {
  .brand-logo { height: 32px; max-width: 114px; }
  .brand-logo-footer { height: 27px; max-width: 96px; }
  .intro-inner { width: min(82vw, 270px); gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none !important; }
  .intro-logo, .intro-line { animation: none !important; }
}




/* Realistic demo screenshots */
.image-frame {
  position: relative;
  min-height: 760px;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 18px;
}
.project-shot {
  display: block;
  object-fit: cover;
}
.project-shot-desktop {
  width: calc(100% - 120px);
  max-width: 1080px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}
.project-shot-mobile {
  position: absolute;
  right: 28px;
  top: 94px;
  width: min(22vw, 248px);
  max-width: 248px;
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.project-realestate .project-shot-mobile { top: 118px; }
.project-description {
  max-width: 760px;
  margin: 18px 0 0 0;
  color: #8f939f;
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 1200px) {
  .image-frame { min-height: 700px; }
  .project-shot-desktop { width: calc(100% - 100px); }
  .project-shot-mobile { width: 220px; top: 96px; }
}
@media (max-width: 1024px) {
  .image-frame { min-height: 620px; padding: 22px; }
  .project-shot-desktop { width: calc(100% - 70px); }
  .project-shot-mobile { width: 190px; right: 22px; top: 82px; }
}
@media (max-width: 760px) {
  .image-frame {
    min-height: auto;
    display: grid;
    gap: 18px;
    padding: 16px;
  }
  .project-shot-desktop {
    width: 100%;
    max-width: none;
  }
  .project-shot-mobile {
    position: relative;
    top: auto;
    right: auto;
    width: min(68%, 280px);
    max-width: 280px;
    margin-left: auto;
  }
}


/* =========================================================
   MOBILE FINAL — projetos e processo
   ========================================================= */
@media (max-width: 768px) {
  .project .image-frame,
  .project-frame.image-frame {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 12px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #0b0e16 !important;
  }
  .project .project-shot,
  .project-frame.image-frame .project-shot {
    display: block !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }
  .project .project-shot-desktop,
  .project-frame.image-frame .project-shot-desktop {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 10px !important;
  }
  .project .project-shot-mobile,
  .project-frame.image-frame .project-shot-mobile {
    width: min(58%, 230px) !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: top center !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
  }
  .project-description {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
  }
  .process-track {
    display: flex !important;
    flex-direction: column !important;
    border-top: 1px solid var(--line) !important;
    border-left: 0 !important;
  }
  .process-track .process-step,
  .process-track .process-step:first-child,
  .process-track .process-step:not(:first-child),
  .process-track .process-step:last-child {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 26px 0 26px 30px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-left: 1px solid rgba(245,246,250,.18) !important;
    transform: none !important;
  }
  .process-track .process-step:last-child { border-bottom: 0 !important; }
  .process-track .process-step h3,
  .process-track .process-step p {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }
  .process-track .process-step h3 {
    margin-top: 0 !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
  }
  .process-track .process-step p { margin-top: 7px !important; }
}
@media (max-width: 390px) {
  .project .project-shot-mobile,
  .project-frame.image-frame .project-shot-mobile {
    width: min(62%, 215px) !important;
  }
}
