:root {
    --ink: #14202a;
    --muted: #62717f;
    --line: #dde5e9;
    --paper: #f6f8f7;
    --white: #ffffff;
    --teal: #127c77;
    --teal-dark: #0d5d5a;
    --coral: #e86f51;
    --lemon: #f5c95d;
    --shadow: 0 28px 90px rgba(16, 31, 42, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}

body::selection {
    background: rgba(245, 201, 93, 0.42);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 28px));
    min-height: 76px;
    margin: 14px auto 0;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(9, 21, 31, 0.14);
    animation: headerDrop 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}

.brand-logo-text {
    font-family: "Autography", "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: 42px;
    font-weight: 500;
    line-height: 0.9;
    color: var(--ink);
    text-transform: none;
}

.brand small {
    color: var(--muted);
    margin-top: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #34444f;
    font-size: 15px;
    font-weight: 700;
}

.nav-links a:hover,
.text-link:hover {
    color: var(--teal);
}

.nav-links a,
.text-link {
    position: relative;
}

.nav-links a::after,
.text-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-links a:hover::after,
.text-link:hover::after {
    transform: scaleX(1);
}

.header-cta,
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.header-cta::after,
.btn::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -70%;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    transition: left 500ms ease;
}

.header-cta:hover,
.btn:hover {
    transform: translateY(-2px);
}

.header-cta:hover::after,
.btn:hover::after {
    left: 130%;
}

.header-cta,
.btn.primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(18, 124, 119, 0.18);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.54);
    color: var(--ink);
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(16px, 1fr) minmax(0, 1180px) minmax(16px, 1fr);
    align-items: center;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 132px 0 58px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 19, 27, 0.92) 0%, rgba(10, 23, 31, 0.78) 38%, rgba(10, 23, 31, 0.22) 72%, rgba(10, 23, 31, 0.1) 100%),
        linear-gradient(180deg, rgba(7, 16, 22, 0.28), rgba(7, 16, 22, 0.58)),
        url("../img/hero-packaging.png?v=20260706-12") center right / cover no-repeat;
    animation: heroPan 16s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(246, 248, 247, 0), var(--paper));
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0) 62%);
    opacity: 0.34;
    transform: translateX(-42%);
    animation: heroLightSweep 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    grid-column: 2;
    max-width: 760px;
    color: var(--white);
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-text,
.hero-chips,
.hero-actions,
.hero-stats {
    animation: riseIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy h1 {
    animation-delay: 90ms;
}

.hero-copy .hero-text {
    animation-delay: 180ms;
}

.hero-chips {
    animation-delay: 270ms;
}

.hero-actions {
    animation-delay: 360ms;
}

.hero-stats {
    animation-delay: 450ms;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 20px;
    font-size: clamp(44px, 6.2vw, 82px);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 21px;
}

.hero-text {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
}

.hero-actions,
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin: 30px 0;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-chips span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 850;
    animation: chipPulse 3.6s ease-in-out infinite;
}

.hero-chips span:nth-child(2) {
    animation-delay: 350ms;
}

.hero-chips span:nth-child(3) {
    animation-delay: 700ms;
}

.hero-chips span:nth-child(4) {
    animation-delay: 1050ms;
}

.hero-stats span {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    min-height: 62px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, background 180ms ease;
}

.hero-stats span:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
}

.hero-stats strong {
    color: var(--white);
    font-size: 22px;
}

.hero-media {
    display: none;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 1.24 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.preview-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: min(280px, calc(100% - 48px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(24, 33, 42, 0.16);
}

.preview-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-marquee {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    margin-bottom: 54px;
    border-top: 1px solid rgba(20, 32, 42, 0.08);
    border-bottom: 1px solid rgba(20, 32, 42, 0.08);
    background: var(--ink);
    color: var(--white);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 12px;
    padding: 14px 0;
    animation: marqueeMove 30s linear infinite;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.section,
.designer-section,
.quote-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0;
}

.intro-band {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.7fr);
    gap: 32px;
    align-items: end;
    margin-top: 0;
    padding: 34px;
    border: 1px solid rgba(221, 229, 233, 0.84);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 70px rgba(16, 31, 42, 0.08);
}

.intro-band p:last-child,
.designer-copy p,
.quote-copy p {
    color: var(--muted);
    font-size: 17px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
        linear-gradient(135deg, rgba(18, 124, 119, 0.14), rgba(232, 111, 81, 0.1));
    box-shadow: 0 18px 60px rgba(16, 31, 42, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card .card-action {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.product-card:hover .card-action,
.product-card:focus-within .card-action {
    opacity: 1;
    transform: translateY(0);
}

.product-card .card-action:hover {
    background: var(--teal);
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--lemon), var(--coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 124, 119, 0.36);
    box-shadow: 0 26px 76px rgba(16, 31, 42, 0.12);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card p {
    color: var(--muted);
}

.product-card span {
    display: inline-flex;
    margin-top: 12px;
    color: var(--teal-dark);
    font-weight: 900;
}

.product-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 26px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(232, 111, 81, 0.58) 49% 54%, transparent 55%),
        linear-gradient(145deg, rgba(18, 124, 119, 0.14), rgba(245, 201, 93, 0.26));
    transition: transform 220ms ease, border-color 220ms ease;
}

.product-card:hover .product-icon {
    border-color: var(--teal);
    transform: rotate(-4deg) scale(1.04);
}

.designer-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    padding: 88px max(16px, calc((100% - 1180px) / 2));
    width: 100%;
    background:
        linear-gradient(120deg, rgba(20, 32, 42, 0.96), rgba(13, 93, 90, 0.94)),
        linear-gradient(90deg, rgba(232, 111, 81, 0.22), rgba(245, 201, 93, 0.12));
    color: var(--white);
    cursor: pointer;
}

.designer-section .btn {
    margin-top: 10px;
}

.text-link {
    display: inline-flex;
    color: var(--lemon);
    font-weight: 900;
}

.designer-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.editor-mock {
    display: grid;
    grid-template-columns: 72px 1fr 96px;
    gap: 14px;
    min-height: 430px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    animation: editorFloat 5.4s ease-in-out infinite;
}

.toolbar,
.side-tools,
.canvas-preview {
    border-radius: 8px;
    background: var(--white);
}

.toolbar {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
}

.toolbar span {
    height: 36px;
    border-radius: 8px;
    background: #dce6e5;
    animation: toolGlow 2.8s ease-in-out infinite;
}

.toolbar span:nth-child(2) {
    animation-delay: 220ms;
}

.toolbar span:nth-child(3) {
    animation-delay: 440ms;
}

.toolbar span:nth-child(4) {
    animation-delay: 660ms;
}

.canvas-preview {
    display: grid;
    place-items: center;
    padding: 24px;
}

.package-face {
    display: grid;
    place-items: center;
    width: min(270px, 100%);
    aspect-ratio: 1 / 1;
    border: 3px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(18, 124, 119, 0.18), transparent 55%),
        linear-gradient(135deg, rgba(232, 111, 81, 0.25), rgba(245, 201, 93, 0.2));
    transform: perspective(900px) rotateY(-16deg) rotateX(6deg);
    box-shadow: 22px 26px 0 rgba(18, 33, 42, 0.12);
    animation: packageTilt 4.8s ease-in-out infinite;
}

.package-face span {
    color: var(--teal-dark);
    font-weight: 900;
}

.package-face strong {
    font-size: 28px;
}

.side-tools {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
}

.side-tools span {
    min-height: 38px;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #42505b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.designer-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f6f8f7 0%, #eef5f3 42%, #fff8ee 100%);
}

.designer-page .site-header {
    position: sticky;
}

.designer-app {
    padding: 46px 0 0;
}

.designer-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
    gap: clamp(24px, 4vw, 58px);
    align-items: stretch;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 132px 0 76px;
}

.designer-controls,
.mockup-stage {
    border: 1px solid rgba(221, 229, 233, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 90px rgba(16, 31, 42, 0.12);
}

.designer-controls {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: clamp(22px, 3vw, 34px);
}

.designer-controls h1 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: clamp(38px, 4.8vw, 62px);
}

.designer-help {
    margin-bottom: 8px;
    color: var(--muted);
}

input[type="color"] {
    min-height: 48px;
    padding: 6px;
}

input[type="range"] {
    padding: 0;
    accent-color: var(--teal);
}

.designer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.mockup-stage {
    position: sticky;
    top: 112px;
    display: grid;
    place-items: center;
    min-height: 650px;
    overflow: hidden;
    padding: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 246, 0.94)),
        linear-gradient(135deg, rgba(18, 124, 119, 0.16), rgba(232, 111, 81, 0.12));
    perspective: 1100px;
}

.three-viewer {
    position: relative;
    z-index: 2;
    width: min(520px, 82vw);
    height: min(520px, 68vh);
    min-height: 420px;
    cursor: grab;
}

.three-viewer:active {
    cursor: grabbing;
}

.three-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.legacy-mockup {
    display: none;
}

.mockup-meta {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mockup-meta span {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(20, 32, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.mockup-object {
    --mockup-color: #127c77;
    --rotate-x: 7deg;
    --rotate-y: -18deg;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: min(360px, 76vw);
    min-height: 430px;
    padding: 72px 42px;
    color: var(--white);
    text-align: center;
    cursor: grab;
    transform: rotateY(var(--rotate-y)) rotateX(var(--rotate-x));
    transform-style: preserve-3d;
    filter: drop-shadow(34px 38px 34px rgba(20, 32, 42, 0.24));
    transition: transform 160ms ease, width 180ms ease, min-height 180ms ease;
}

.mockup-object.is-dragging {
    cursor: grabbing;
    transition: none;
}

.mockup-object::before,
.mockup-object::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.mockup-object::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 34%, rgba(0, 0, 0, 0.13) 82%),
        var(--mockup-color);
}

.mockup-object::after {
    border: 2px solid rgba(255, 255, 255, 0.26);
    box-shadow: inset -28px 0 34px rgba(0, 0, 0, 0.16);
}

.mockup-cup {
    border-radius: 34px 34px 78px 78px / 18px 18px 86px 86px;
    clip-path: polygon(10% 0, 90% 0, 78% 100%, 22% 100%);
}

.mockup-cup::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 35%, rgba(0, 0, 0, 0.16) 82%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px),
        var(--mockup-color);
}

.cup-rim,
.cup-base {
    position: absolute;
    left: 12%;
    z-index: 3;
    width: 76%;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset -18px 0 22px rgba(20, 32, 42, 0.16);
    transform: translateZ(18px);
}

.cup-rim {
    top: 0;
    border: 2px solid rgba(20, 32, 42, 0.12);
}

.cup-base {
    bottom: 0;
    left: 29%;
    width: 42%;
    height: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.mockup-paper .cup-rim,
.mockup-paper .cup-base,
.mockup-box .cup-rim,
.mockup-box .cup-base {
    display: none;
}

.mockup-glass .cup-rim {
    background: rgba(235, 255, 255, 0.72);
}

.mockup-paper {
    width: min(460px, 78vw);
    min-height: 310px;
    border-radius: 8px;
    clip-path: none;
}

.mockup-glass {
    border-radius: 38px 38px 74px 74px / 18px 18px 76px 76px;
    clip-path: polygon(8% 0, 92% 0, 80% 100%, 20% 100%);
}

.mockup-box {
    width: min(430px, 78vw);
    min-height: 380px;
    border-radius: 8px;
    clip-path: polygon(0 12%, 16% 0, 100% 0, 100% 88%, 84% 100%, 0 100%);
}

.mockup-art {
    position: relative;
    z-index: 2;
    width: 138px;
    height: 138px;
    margin-bottom: 22px;
    border: 2px dashed rgba(255, 255, 255, 0.64);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.mockup-art.has-image {
    border-style: solid;
    background-color: rgba(255, 255, 255, 0.9);
}

.mockup-object strong,
.mockup-object small {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.mockup-object strong {
    font-size: 32px;
    line-height: 1.02;
}

.mockup-object small {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.stage-shadow {
    position: absolute;
    bottom: 86px;
    width: min(420px, 70vw);
    height: 54px;
    border-radius: 50%;
    background: rgba(20, 32, 42, 0.18);
    filter: blur(16px);
}

.rotate-hint {
    position: absolute;
    right: 24px;
    bottom: 24px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid rgba(20, 32, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 24px;
}

.preview-modal.is-open {
    display: grid;
    place-items: center;
}

.preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 19, 27, 0.76);
    backdrop-filter: blur(12px);
}

.preview-dialog {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    width: min(980px, 100%);
    min-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 243, 0.96)),
        linear-gradient(135deg, rgba(18, 124, 119, 0.18), rgba(232, 111, 81, 0.16));
    box-shadow: 0 42px 120px rgba(0, 0, 0, 0.34);
}

.preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.preview-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 590px;
    perspective: 1300px;
}

.preview-three-viewer {
    width: min(720px, 86vw);
    height: min(620px, 70vh);
}

.preview-object {
    width: min(460px, 78vw);
    min-height: 540px;
}

.preview-controls {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 24px;
    border-top: 1px solid rgba(20, 32, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-weight: 900;
}

.preview-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 18px;
    border-top: 3px solid var(--coral);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(16, 31, 42, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 70px rgba(16, 31, 42, 0.1);
}

.step span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-weight: 900;
    flex: 0 0 auto;
}

.step p {
    margin: 0;
    font-weight: 850;
}

.quote-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
    padding: 88px 0;
}

.quote-form {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 28px 90px rgba(24, 33, 42, 0.1);
}

.quote-form:focus-within {
    border-color: rgba(18, 124, 119, 0.36);
    box-shadow: 0 34px 100px rgba(18, 124, 119, 0.13);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: #3f4c57;
    font-size: 14px;
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fbfdfd;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(18, 124, 119, 0.14);
    border-color: var(--teal);
}

.form-status {
    min-height: 22px;
    margin: 0;
    color: var(--teal-dark);
    font-weight: 800;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    padding: 28px 16px 36px;
    color: #52616d;
    border-top: 1px solid var(--line);
    background: var(--white);
    text-align: center;
}

.site-footer strong {
    color: var(--ink);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card.reveal,
.step.reveal {
    transition-delay: var(--reveal-delay, 0ms);
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translate(-50%, -16px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPan {
    from {
        background-position: center right, center right, center right;
    }
    to {
        background-position: center right, center right, 58% center;
    }
}

@keyframes heroLightSweep {
    0%,
    45% {
        transform: translateX(-48%);
    }
    100% {
        transform: translateX(60%);
    }
}

@keyframes chipPulse {
    0%,
    100% {
        transform: translateY(0);
        border-color: rgba(255, 255, 255, 0.24);
    }
    50% {
        transform: translateY(-3px);
        border-color: rgba(245, 201, 93, 0.55);
    }
}

@keyframes marqueeMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes editorFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes packageTilt {
    0%,
    100% {
        transform: perspective(900px) rotateY(-16deg) rotateX(6deg) translateY(0);
    }
    50% {
        transform: perspective(900px) rotateY(-10deg) rotateX(8deg) translateY(-8px);
    }
}

@keyframes toolGlow {
    0%,
    100% {
        background: #dce6e5;
    }
    50% {
        background: rgba(245, 201, 93, 0.48);
    }
}

@media (max-width: 920px) {
    .site-header {
        min-height: 70px;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 13px;
    }

    .intro-band,
    .designer-section,
    .quote-section,
    .designer-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 760px;
        padding-top: 124px;
        background:
            linear-gradient(180deg, rgba(8, 19, 27, 0.92) 0%, rgba(10, 23, 31, 0.76) 58%, rgba(10, 23, 31, 0.38) 100%),
            url("../img/hero-packaging.png?v=20260706-12") center / cover no-repeat;
    }

    .mockup-stage {
        position: relative;
        top: auto;
        min-height: 560px;
    }

    .product-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header,
    .section,
    .quote-section,
    .designer-panel {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        min-height: 64px;
        margin-top: 10px;
        padding: 0 10px;
    }

    .brand-logo-text {
        font-size: 34px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 30px;
    }

    .hero {
        min-height: 820px;
        padding: 112px 0 52px;
        background-position: center bottom;
    }

    .product-grid,
    .steps,
    .form-row {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: auto;
    }

    .editor-mock {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .product-card .card-action {
        position: static;
        margin-top: 16px;
        opacity: 1;
        transform: none;
    }

    .designer-panel {
        padding-top: 90px;
    }

    .mockup-stage {
        min-height: 520px;
        padding: 24px 14px;
    }

    .three-viewer {
        width: min(100%, 420px);
        height: 420px;
        min-height: 360px;
    }

    .mockup-object {
        min-height: 360px;
        padding: 62px 30px;
    }

    .preview-modal {
        padding: 12px;
    }

    .preview-dialog {
        min-height: calc(100vh - 24px);
    }

    .preview-stage {
        min-height: 520px;
    }

    .preview-three-viewer {
        height: 520px;
    }

    .preview-controls {
        grid-template-columns: 1fr;
    }

    .toolbar,
    .side-tools {
        grid-template-columns: repeat(4, 1fr);
    }

    .side-tools {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
