:root { --accent-text: #151c0b; }
h1, h2, p { margin-top: 0; }
body { background: radial-gradient(ellipse at 80% 10%, #171f1a 0%, transparent 52rem), var(--page); }
.wrap { width: min(1392px, calc(100% - 84px)); }
.header { min-height: 70px; }
.hero { display: grid; grid-template-columns: .87fr 1.13fr; min-height: min(610px, 54vw); align-items: stretch; position: relative; isolation: isolate; margin: 18px 0 30px; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 37px 0 44px; }
.eyebrow { color: #d0efac; display: flex; align-items: center; gap: 13px; letter-spacing: .15em; font-weight: 750; font-size: .875rem; margin-bottom: 24px; }
.eyebrow span { height: 1px; width: 28px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1 { color: #f1f5ed; font-size: clamp(3.6rem, 7.5vw, 8.35rem); line-height: .85; font-weight: 800; letter-spacing: -.082em; margin-bottom: 24px; }
h1 em { display: block; font-style: normal; color: var(--accent); }
.hero-copy > p:not(.eyebrow) { max-width: 32ch; font-size: clamp(1rem, 1.4vw, 1.21rem); line-height: 1.48; color: #c4cec4; margin-bottom: 24px; }
.hero-actions, .quick-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; gap: 8px; border-radius: 7px; font-size: .9375rem; font-weight: 750; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); }
.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.primary .icon { width: 18px; height: 18px; }
.secondary { border: 1px solid #647060; color: var(--ink); background: #181e19; }
.secondary:hover { border-color: var(--accent-hover); color: var(--accent-hover); }

.stage { min-width: 0; min-height: 390px; display: grid; grid-template-rows: minmax(0, 1fr) auto; position: relative; isolation: isolate; border: 1px solid #415241; border-radius: 25px; overflow: hidden; background: #151e18 radial-gradient(ellipse at 57% 58%, #42682d70, transparent 62%); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/baia.webp") 50% 56% / cover no-repeat; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #090f0bd9 0%, transparent 34%, transparent 80%, #0b130d40 100%); }
.scene { display: grid; place-items: center; perspective: 1050px; cursor: grab; touch-action: pan-y; min-width: 0; user-select: none; }
.scene.dragging { cursor: grabbing; }
.rig { transform-style: preserve-3d; animation: arrive 900ms cubic-bezier(.2,.78,.22,1) both; }
@keyframes arrive { from { transform: translateY(28px) scale(.88); } to { transform: translateY(0) scale(1); } }
.parcel { --side: clamp(118px, 16vw, 230px); --half: calc(var(--side) / 2); --pitch: -23deg; --yaw: -35deg; width: var(--side); height: var(--side); font-size: var(--side); position: relative; transform-style: preserve-3d; transform: rotateX(var(--pitch)) rotateY(var(--yaw)); transition: transform 420ms cubic-bezier(.22,.82,.2,1); will-change: transform; }
.scene.dragging .parcel { transition: none; }
.face { position: absolute; inset: 0; border: .015em solid #788b67; border-radius: .055em; backface-visibility: hidden; overflow: hidden; box-shadow: inset 0 0 .12em #101811b0, inset 0 0 0 .015em #becdaa45; }
.front { transform: translateZ(var(--half)); background: linear-gradient(150deg, #526345, #2b382a 38%, #151d17 100%); color: #eef4e7; box-shadow: inset 0 0 .12em #101811b0, inset 0 0 0 .03em #10181195; display: flex; flex-direction: column; justify-content: center; padding: .1em; }
.front::after, .back::after { content: ""; position: absolute; inset: .09em .055em; border: 1px solid #d7e9bd35; border-radius: .025em; pointer-events: none; }
.front strong { font-size: .235em; line-height: 1; letter-spacing: -.08em; font-weight: 850; white-space: nowrap; }
.front strong span { color: #d5ff72; }
.front small { font-size: .051em; margin-top: .72em; letter-spacing: .2em; font-weight: 700; }
.corner { position: absolute; top: .063em; right: .07em; width: .15em; height: .075em; border-top: .012em solid #d9ff83; border-right: .012em solid #d9ff83; }
.code-mark { position: absolute; left: .105em; bottom: .136em; width: .18em; height: .055em; background: repeating-linear-gradient(90deg, #b8cf9c 0 2px, transparent 2px 4px, #b8cf9c 4px 5px, transparent 5px 8px); opacity: .68; }
.back { transform: rotateY(180deg) translateZ(var(--half)); background: linear-gradient(158deg, #41533a, #1b241b); }
.right { transform: rotateY(90deg) translateZ(var(--half)); background: linear-gradient(145deg, #222f20, #0b120e); border-color: #5f7451; }
.left { transform: rotateY(-90deg) translateZ(var(--half)); background: linear-gradient(140deg, #3e5137, #202c20); }
.grille { position: absolute; inset: 25% 15% 20%; border: 1px solid #a6c48c50; background: repeating-linear-gradient(0deg,#151e15 0 5%, #788f6a 5% 6%, transparent 6% 16%); border-radius: .024em; }
.top { transform: rotateX(90deg) translateZ(var(--half)); background: linear-gradient(138deg, #bbcfa1, #586c50 64%, #2e3c2d); border-color: #b0c09d; }
.top::after { content: ""; position: absolute; inset: .1em; border: 1px solid #2633229c; border-radius: .04em; box-shadow: inset 0 0 .06em #1a291f7a; }
.seal { position: absolute; inset: 11% 38%; background: #caff69; opacity: .94; box-shadow: 0 0 .09em #caff69; border: 2px solid #b2db77; border-radius: .03em; }
.bottom { transform: rotateX(-90deg) translateZ(var(--half)); background: #111913; }
.stage-ui { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 18px 18px; padding: 10px 12px; border: 1px solid #6f876754; border-radius: 12px; background: #101a13d9; backdrop-filter: blur(8px); }
.stage-caption { display: flex; align-items: center; gap: 11px; color: #edf5e8; font-weight: 700; }
.stage-caption .icon { color: var(--accent); }
.stage-caption small { display: block; color: #b7c7b7; font-size: .8125rem; margin-top: 3px; font-weight: 450; }
.stage-controls { display: flex; gap: 7px; }
.stage-controls button { min-height: 44px; min-width: 44px; display: grid; place-items: center; border: 1px solid #566b50; background: #1b261c; border-radius: 8px; font-size: 1.45rem; }
.stage-controls button:hover { border-color: var(--accent-hover); color: var(--accent-hover); }

.quick-order { background: linear-gradient(120deg, #222e20, #141b18 57%); padding: clamp(16px, 2.8vw, 33px); border: 1px solid #4c5d48; border-radius: 19px; margin-bottom: 45px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px 32px; scroll-margin-top: 16px; }
.quick-intro { display: flex; gap: 14px; }
.quick-intro h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.quick-intro p { line-height: 1.5; margin: 8px 0 0; color: #c0cbbd; max-width: 42ch; }
.quick-icon { background: #303e23; border: 1px solid #546843; color: var(--accent); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }
.quick-intro .secondary { margin-top: 15px; }
.quick-chat { min-width: 0; display: grid; align-content: start; gap: 13px; }
.quick-form { display: grid; gap: 9px; }
.quick-form label { font-size: .875rem; font-weight: 650; }
.quick-form textarea { width: 100%; min-height: 90px; padding: 10px 12px; border-radius: 8px; border: 1px solid #60705b; background: #101611; color: var(--ink); resize: vertical; font: inherit; }
.quick-form textarea::placeholder { color: #a8b7a6; opacity: 1; }
.quick-form textarea:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.quick-controls { justify-content: space-between; }
.quick-controls p { color: var(--muted); font-size: .875rem; margin: 0; line-height: 1.4; flex: 1 1 13rem; }
.quick-review { display: grid; gap: 10px; min-width: 0; }
.quick-request { justify-self: end; background: #2d3d22; border: 1px solid #536742; border-radius: 12px 12px 3px 12px; padding: 10px 12px; max-width: min(100%, 54ch); line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.quick-answer { border: 1px solid #526050; border-radius: 12px 12px 12px 3px; padding: 14px; background: #141d16; min-width: 0; }
#quick-feedback { font-weight: 750; margin: 0; color: #dcf3c3; }
#quick-results { list-style: none; padding: 0; margin: 4px 0 12px; overflow-wrap: anywhere; }
.chat-result { margin-top: 10px; padding-top: 10px; border-top: 1px solid #3b4a3b; }
.chat-result p { line-height: 1.42; margin: 0 0 6px; }
.measure-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.measure-result, .choice-confirmation, .product-size { color: #d7f6a8; font-weight: 650; }
.quick-warning { color: #ffd3a0; }
.quantity label { display: flex; align-items: center; gap: 9px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 52px); }
  .hero { grid-template-columns: .95fr 1.05fr; }
  h1 { font-size: clamp(3.25rem, 8vw, 6.1rem); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .hero-copy { padding: 29px 0 22px; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(3.25rem, 11vw, 5.2rem); margin-bottom: 15px; }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 17px; }
  .stage { min-height: clamp(300px, 73vw, 365px); border-radius: 17px; }
  .parcel { --side: clamp(120px, 30vw, 158px); }
  .stage-ui { margin: 0 11px 11px; }
  .quick-order { grid-template-columns: minmax(0, 1fr); margin-bottom: 27px; }
  .quick-controls { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .rig { animation: none; }
  .parcel { transition: none; }
}
