:root {
    --paper: #f2efe4;
    --white: #fffdf7;
    --ink: #101b35;
    --blue: #244cff;
    --orange: #ff5a36;
    --acid: #d6ff3f;
    --line: rgba(16, 27, 53, .18);
    --muted: rgba(16, 27, 53, .66);
    --max: 1440px;
    --gutter: clamp(18px, 3vw, 44px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: 'Bricolage Grotesque', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.shell { width: min(var(--max), calc(100% - (var(--gutter) * 2))); 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; }

.portfolio-nav { position: fixed; z-index: 90; inset: 0 0 auto; height: 72px; border-bottom: 1px solid var(--line); background: rgba(242, 239, 228, .88); backdrop-filter: blur(18px); }
.portfolio-nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.22rem; font-weight: 800; letter-spacing: -.05em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--acid); box-shadow: 5px 5px 0 var(--ink); font: 600 .62rem/1 'JetBrains Mono', monospace; letter-spacing: 0; }
.nav-context { display: flex; align-items: center; gap: 14px; color: var(--muted); font: 600 .64rem/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.nav-context a { padding: 10px 13px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); text-decoration: none; }

.hub { min-height: 100vh; padding: 132px 0 120px; background: radial-gradient(circle at 82% 5%, rgba(36, 76, 255, .13), transparent 30rem), linear-gradient(90deg, rgba(16, 27, 53, .045) 1px, transparent 1px), linear-gradient(rgba(16, 27, 53, .045) 1px, transparent 1px), var(--paper); background-size: auto, 34px 34px, 34px 34px, auto; }
.hub-label { margin: 0 0 26px; font: 600 .68rem/1 'JetBrains Mono', monospace; letter-spacing: .11em; text-transform: uppercase; }
.hub-label::before { content: ''; display: inline-block; width: 36px; height: 9px; margin-right: 10px; background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 7px); }
.hub h1 { max-width: 1140px; margin: 0; font-size: clamp(4rem, 8vw, 9rem); line-height: .82; letter-spacing: -.08em; text-wrap: balance; }
.hub h1 em { color: var(--orange); font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -.04em; }
.hub-intro { max-width: 760px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.3rem); line-height: 1.65; }
.hub-index { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); font: 600 .62rem/1.5 'JetBrains Mono', monospace; text-transform: uppercase; }
.hub-index span::before { content: '↳'; margin-right: 8px; color: var(--blue); }

.portal-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: 90px; perspective: 1200px; }
.portal { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; min-height: 590px; overflow: hidden; border: 1px solid var(--ink); color: var(--ink); background: var(--white); text-decoration: none; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .18s ease, box-shadow .22s ease; }
.portal:hover { box-shadow: 14px 14px 0 var(--ink); }
.portal::after { content: ''; position: absolute; z-index: 3; inset: 0; opacity: .86; pointer-events: none; background: radial-gradient(circle 180px at var(--mx) var(--my), transparent, rgba(16, 27, 53, .12)); mix-blend-mode: multiply; }
.portal--house { grid-column: 1 / 8; }
.portal--care { grid-column: 8 / 13; margin-top: 120px; }
.portal--nova { grid-column: 2 / 12; min-height: 660px; margin-top: 20px; color: var(--paper); background: #071126; border-color: #071126; }
.portal-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.04); }
.portal-overlay { position: absolute; z-index: 4; inset: 0; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(242, 239, 228, .03), rgba(242, 239, 228, .96) 70%); transform: translateZ(24px); }
.portal--care .portal-overlay { background: linear-gradient(180deg, rgba(16, 28, 20, .03), rgba(237, 244, 237, .96) 70%); }
.portal--nova .portal-overlay { background: linear-gradient(180deg, rgba(7, 17, 38, .1), rgba(7, 17, 38, .96) 74%); }
.portal-meta { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.portal-id, .portal-status { padding: 8px 10px; border: 1px solid currentColor; font: 600 .56rem/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); }
.portal--nova .portal-id, .portal--nova .portal-status { background: #071126; }
.portal-content { max-width: 860px; }
.portal-content h2 { margin: 0; font-size: clamp(2.7rem, 6vw, 6rem); line-height: .84; letter-spacing: -.07em; }
.portal-content p { max-width: 700px; margin: 22px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.62; }
.portal--nova .portal-content p { color: rgba(242, 239, 228, .68); }
.portal-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 700 .68rem/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.portal-link span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; }

.nova-viewport { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 68% 26%, rgba(138, 92, 255, .3), transparent 28rem), linear-gradient(180deg, #091b35, #050b18 75%); }
.nova-stars { position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(circle, #fff 0 1px, transparent 1.3px); background-size: 42px 42px; transform: rotate(8deg) scale(1.2); }
.iso-platform { position: absolute; left: 50%; top: 40%; width: min(70%, 720px); aspect-ratio: 1.55; border: 2px solid rgba(214, 255, 63, .5); background: linear-gradient(135deg, rgba(36, 76, 255, .38), rgba(255, 90, 54, .16)); transform: translate(-50%, -50%) rotateX(62deg) rotateZ(45deg); box-shadow: 0 0 90px rgba(36, 76, 255, .34), inset 0 0 50px rgba(214, 255, 63, .12); }
.iso-platform::before, .iso-platform::after { content: ''; position: absolute; inset: 14%; border: 1px solid rgba(242, 239, 228, .25); }
.iso-platform::after { inset: 31%; background: rgba(214, 255, 63, .1); }
.nova-signal { position: absolute; left: 50%; top: 35%; width: 22px; height: 22px; border: 2px solid var(--acid); border-radius: 50%; box-shadow: 0 0 0 12px rgba(214, 255, 63, .08), 0 0 38px var(--acid); animation: novaSignal 2.2s ease-in-out infinite; }
@keyframes novaSignal { 50% { transform: scale(1.5); opacity: .55; } }

.hub-footer { padding: 54px 0; color: var(--paper); background: var(--ink); }
.hub-footer__inner { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.hub-footer p { max-width: 620px; margin: 18px 0 0; color: rgba(242, 239, 228, .56); line-height: 1.55; }
.hub-footer a { color: var(--acid); font: 700 .68rem/1 'JetBrains Mono', monospace; text-transform: uppercase; }

.detail { min-height: 100vh; padding-top: 72px; }
.detail--house { --brand: #f1bc62; --brand-deep: #0e1927; --brand-soft: #f4ead5; background: var(--brand-soft); }
.detail--care { --brand: #8dbd9a; --brand-deep: #102019; --brand-soft: #edf2eb; background: var(--brand-soft); }
.detail-hero { min-height: calc(100svh - 72px); padding: clamp(62px, 8vw, 120px) 0; display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(42px, 7vw, 108px); align-items: center; }
.detail-kicker { margin: 0 0 22px; font: 600 .65rem/1 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.detail-kicker::before { content: ''; display: inline-block; width: 32px; height: 9px; margin-right: 10px; background: var(--brand); }
.detail-copy h1 { margin: 0; color: var(--brand-deep); font-size: clamp(4rem, 8vw, 8.5rem); line-height: .82; letter-spacing: -.08em; }
.detail-copy h1 em { color: var(--brand); font-family: 'Instrument Serif', serif; font-weight: 400; }
.detail-lede { max-width: 660px; margin: 30px 0 0; color: color-mix(in srgb, var(--brand-deep) 68%, transparent); font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.65; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.detail-button { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--brand-deep); color: var(--brand-deep); background: var(--brand); box-shadow: 6px 6px 0 var(--brand-deep); text-decoration: none; font-weight: 800; }
.detail-button--ghost { background: transparent; box-shadow: none; }
.detail-shot { position: relative; padding: 12px; border: 1px solid var(--brand-deep); background: var(--paper); box-shadow: 18px 18px 0 var(--brand); }
.detail-shot::before { content: 'CAPTURA DA LANDING / 21.08.2026'; display: block; padding: 3px 0 13px; color: var(--brand-deep); font: 600 .54rem/1 'JetBrains Mono', monospace; letter-spacing: .08em; }
.detail-shot img { width: 100%; height: auto; display: block; border: 1px solid rgba(16, 27, 53, .18); }

.product-story { padding: clamp(88px, 11vw, 160px) 0; color: var(--paper); background: var(--brand-deep); }
.story-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.story-head h2 { margin: 0; font-size: clamp(3.2rem, 6vw, 6.7rem); line-height: .88; letter-spacing: -.065em; }
.story-head h2 em { color: var(--brand); font-family: 'Instrument Serif', serif; font-weight: 400; }
.story-copy { color: rgba(242, 239, 228, .66); font-size: 1.08rem; line-height: 1.72; }
.story-copy p { margin: 0 0 22px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.fact { min-height: 260px; padding: 26px; border: 1px solid rgba(242, 239, 228, .2); background: rgba(242, 239, 228, .035); }
.fact small { display: block; margin-bottom: 62px; color: var(--brand); font: 600 .57rem/1 'JetBrains Mono', monospace; text-transform: uppercase; }
.fact h3 { margin: 0 0 15px; font-size: 1.5rem; letter-spacing: -.04em; }
.fact p { margin: 0; color: rgba(242, 239, 228, .6); line-height: 1.6; }
.state-note { margin-top: 50px; padding: 20px; border-left: 4px solid var(--brand); color: rgba(242, 239, 228, .7); background: rgba(242, 239, 228, .045); line-height: 1.6; }

.detail-footer { padding: 54px 0; color: var(--brand-deep); background: var(--brand); }
.detail-footer__inner { display: flex; justify-content: space-between; gap: 22px; align-items: center; }
.detail-footer strong { font-size: 1.2rem; }
.detail-footer a { font: 700 .66rem/1 'JetBrains Mono', monospace; text-transform: uppercase; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .75, .18, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
    .portal--house, .portal--care, .portal--nova { grid-column: 1 / 13; margin-top: 0; }
    .portal { min-height: 620px; }
    .detail-hero, .story-head { grid-template-columns: 1fr; }
    .detail-shot { max-width: 940px; }
    .fact-grid { grid-template-columns: 1fr; }
    .fact { min-height: 220px; }
}

@media (max-width: 720px) {
    .nav-context span { display: none; }
    .hub { padding-top: 118px; }
    .hub h1 { font-size: clamp(3.5rem, 18vw, 6rem); }
    .portal { min-height: 560px; }
    .portal-overlay { padding: 20px; }
    .portal-meta { align-items: stretch; flex-direction: column; }
    .portal-id, .portal-status { width: fit-content; }
    .portal-content h2 { font-size: clamp(3rem, 16vw, 5rem); }
    .hub-footer__inner, .detail-footer__inner { align-items: flex-start; flex-direction: column; }
    .detail-actions, .detail-button { width: 100%; }
    .detail-shot { box-shadow: 9px 9px 0 var(--brand); }
}

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