/* ===========================================================================
   modern-v11.css — v0.1.79 (additive) : 3D VEGGIE PLAYGROUND + SPEED LAYER.

   Pure cascade addition on top of every earlier layer (main.css → polish →
   modern → v2..v10). Nothing earlier is modified; new rules style only the
   nodes this release family creates (md79-*) and add performance rules for
   the sections earlier releases injected.

   Deep-green palette only — no amber/yellow hex anywhere in this file.
   =========================================================================== */

/* ------------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------------ */
body {
    --md79-ink: #052e16;
    --md79-deep: #14532d;
    --md79-forest: #0b3d20;
    --md79-leaf: #15803d;
    --md79-green: #22c55e;
    --md79-mint: #4ade80;
    --md79-ice: #a7f3d0;
    --md79-mist: #ecfdf5;
}

/* ------------------------------------------------------------------
   3D FRESH PLAYGROUND BAND
   ------------------------------------------------------------------ */
.md79-play-band {
    background:
        radial-gradient(1000px 460px at 50% -10%, rgba(34, 197, 94, 0.20), transparent 62%),
        radial-gradient(700px 340px at 8% 108%, rgba(74, 222, 128, 0.10), transparent 60%),
        radial-gradient(700px 340px at 92% 108%, rgba(74, 222, 128, 0.10), transparent 60%),
        linear-gradient(165deg, #041f10 0%, #052e16 42%, #0b3d20 100%);
    padding-top: 84px;
    padding-bottom: 84px;
    overflow: hidden;
    position: relative;
}
/* starfield dust — a faint drifting grid of mint points */
.md79-play-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(167, 243, 208, 0.35), transparent 55%),
        radial-gradient(1.5px 1.5px at 78% 14%, rgba(167, 243, 208, 0.28), transparent 55%),
        radial-gradient(1px 1px at 34% 66%, rgba(167, 243, 208, 0.30), transparent 55%),
        radial-gradient(1.5px 1.5px at 62% 80%, rgba(167, 243, 208, 0.24), transparent 55%),
        radial-gradient(1px 1px at 88% 58%, rgba(167, 243, 208, 0.30), transparent 55%),
        radial-gradient(1px 1px at 8% 84%, rgba(167, 243, 208, 0.22), transparent 55%);
    animation: md79-dust 18s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes md79-dust {
    from { transform: translate3d(0, 0, 0); opacity: 0.75; }
    to   { transform: translate3d(0, -14px, 0); opacity: 1; }
}
.md79-play-band .md76-head p {
    color: rgba(214, 245, 228, 0.80);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.md79-play-band .md76-head h2 { color: var(--md79-mist); }
.md79-play-band .md76-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--md79-ice);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.md79-play-band .md76-head { text-align: center; }

.md79-stage-wrap {
    position: relative;
    max-width: 1200px;
    margin: 34px auto 0;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(6, 42, 22, 0.55), rgba(4, 31, 16, 0.75));
    border: 1px solid rgba(74, 222, 128, 0.22);
    box-shadow: 0 30px 80px rgba(1, 20, 10, 0.55), inset 0 1px 0 rgba(167, 243, 208, 0.08);
    padding: 10px 10px 18px;
}
.md79-stage {
    display: block;
    width: 100%;
    height: 520px;
    border-radius: 20px;
    touch-action: none;
    cursor: default;
}
.md79-stage.md79-grab { cursor: grab; }
.md79-stage.md79-grabbing { cursor: grabbing; }

.md79-hints {
    position: absolute;
    top: 22px;
    left: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.md79-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.85);
    background: rgba(5, 46, 22, 0.55);
    border: 1px solid rgba(74, 222, 128, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    backdrop-filter: blur(6px);
}
.md79-hint i { color: var(--md79-mint); }

.md79-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 0 12px;
}
.md79-leg-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(214, 245, 228, 0.88);
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.24);
    border-radius: 999px;
    padding: 7px 14px;
}
.md79-leg-chip i { color: var(--md79-mint); font-size: 0.78rem; }
.md79-leg-chip b { color: var(--md79-ice); font-weight: 800; }
.md79-leg-chip u {
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #052e16;
    background: linear-gradient(135deg, var(--md79-mint), var(--md79-green));
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 2px;
}

/* ------------------------------------------------------------------
   SPIN THE CRATE — CSS 3D cubes
   ------------------------------------------------------------------ */
.md79-crate-band {
    background:
        radial-gradient(900px 420px at 14% 0%, rgba(34, 197, 94, 0.14), transparent 60%),
        radial-gradient(900px 420px at 86% 100%, rgba(74, 222, 128, 0.10), transparent 60%),
        linear-gradient(160deg, #041f10 0%, #052e16 46%, #0b3d20 100%);
    padding-top: 84px;
    padding-bottom: 84px;
    overflow: hidden;
    position: relative;
}
.md79-crate-band .md76-head { text-align: center; }
.md79-crate-band .md76-head h2 { color: var(--md79-mist); }
.md79-crate-band .md76-head p {
    color: rgba(214, 245, 228, 0.80);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.md79-crate-band .md76-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--md79-ice);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.md79-cubes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    max-width: 1160px;
    margin: 44px auto 0;
}
.md79-cube-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
/* the cube's 3D projection overflows its 200px scene box — keep the
   label clear of the bottom corner */
.md79-cube-scene {
    width: 200px;
    height: 200px;
    margin-bottom: 26px;
    perspective: 1100px;
    cursor: grab;
    touch-action: none;
}
.md79-cube-scene.md79-grabbing { cursor: grabbing; }
.md79-cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transform: rotateX(-14deg) rotateY(-26deg);
}
.md79-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    background:
        radial-gradient(140px 100px at 30% 18%, rgba(74, 222, 128, 0.16), transparent 65%),
        linear-gradient(155deg, rgba(11, 61, 32, 0.94), rgba(5, 46, 22, 0.96));
    border: 1px solid rgba(74, 222, 128, 0.38);
    box-shadow: inset 0 0 24px rgba(34, 197, 94, 0.10);
    backface-visibility: hidden;
}
.md79-face-cap {
    background:
        radial-gradient(120px 90px at 50% 40%, rgba(74, 222, 128, 0.20), transparent 70%),
        linear-gradient(155deg, rgba(20, 83, 45, 0.96), rgba(9, 49, 26, 0.98));
    color: var(--md79-ice);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
}
.md79-face-cap i { font-size: 1.5rem; color: var(--md79-mint); }
.md79-face-topf { transform: rotateX(90deg) translateZ(100px); }
.md79-face-botf { transform: rotateX(-90deg) translateZ(100px); }
.md79-face-front { transform: translateZ(100px); }
.md79-face-back { transform: rotateY(180deg) translateZ(100px); }
.md79-face-right { transform: rotateY(90deg) translateZ(100px); }
.md79-face-left { transform: rotateY(-90deg) translateZ(100px); }

.md79-face-top {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--md79-leaf), var(--md79-green));
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.4);
    margin-bottom: 4px;
}
.md79-face-top i { color: #ecfdf5; font-size: 1.15rem; }
.md79-face-name {
    color: var(--md79-mist);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.md79-face-count { color: rgba(214, 245, 228, 0.78); font-size: 0.8rem; }
.md79-face-count b { color: var(--md79-mint); font-size: 1.25rem; font-weight: 800; margin-right: 3px; }
.md79-face-rate {
    font-size: 0.78rem;
    font-weight: 800;
    color: #052e16;
    background: linear-gradient(135deg, var(--md79-mint), var(--md79-green));
    border-radius: 999px;
    padding: 4px 12px;
}
.md79-face-tag {
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.62);
}
.md79-cube-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.7);
}

/* ------------------------------------------------------------------
   HERO DEPTH LAYER (floating parallax tiles)
   ------------------------------------------------------------------ */
.md79-hero-depth {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    transform-style: preserve-3d;
}
.md79-depth-tile {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(11, 61, 32, 0.55), rgba(5, 46, 22, 0.65));
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: 0 14px 34px rgba(1, 20, 10, 0.35), inset 0 1px 0 rgba(167, 243, 208, 0.14);
    backdrop-filter: blur(4px);
    transform: translate3d(var(--md79-dx, 0px), var(--md79-dy, 0px), 0);
    animation: md79-hero-float 7s ease-in-out infinite alternate;
    transition: transform 0.12s linear;
    will-change: transform;
}
.md79-depth-tile i {
    font-size: 1.15rem;
    color: var(--md79-mint);
    filter: drop-shadow(0 3px 8px rgba(34, 197, 94, 0.5));
}
@keyframes md79-hero-float {
    from { margin-top: -7px; }
    to   { margin-top: 7px; }
}

/* ------------------------------------------------------------------
   SPEED PACK — pause off-screen decorations + hidden tab
   ------------------------------------------------------------------ */
.md79-paused,
.md79-paused::before,
.md79-paused::after,
.md79-paused *,
.md79-paused *::before,
.md79-paused *::after {
    animation-play-state: paused !important;
}
html.md79-tab-hidden *,
html.md79-tab-hidden *::before,
html.md79-tab-hidden *::after {
    animation-play-state: paused !important;
}

/* skip layout/paint for below-fold bands until approached */
#md76-journey,
#md76-gallery,
#md76-partners,
#md76-compare,
#md77-value,
#md77-cats,
#md78-stats,
#md78-banner-market,
#md78-banner-van,
#md78-about-live,
#md78-about-road,
#md78-contact-desk,
#md75-cta,
#md75-faq,
#md79-playground,
#md79-crates,
.md78-banner-band,
.testimonials-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 640px;
}

/* trim permanent GPU hints from the v10 tilt layer: only hint while hovered */
body .md78-tilt { will-change: auto; }
body .md78-tilt:hover { will-change: transform; }

/* ------------------------------------------------------------------
   REVEAL (v11-injected elements)
   ------------------------------------------------------------------ */
.md79-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.md79-reveal.md79-in {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .md79-cubes { gap: 26px; }
    .md79-cube-scene, .md79-cube { width: 170px; height: 170px; }
    .md79-face-topf { transform: rotateX(90deg) translateZ(85px); }
    .md79-face-botf { transform: rotateX(-90deg) translateZ(85px); }
    .md79-face-front { transform: translateZ(85px); }
    .md79-face-back { transform: rotateY(180deg) translateZ(85px); }
    .md79-face-right { transform: rotateY(90deg) translateZ(85px); }
    .md79-face-left { transform: rotateY(-90deg) translateZ(85px); }
}
@media (max-width: 900px) {
    .md79-cubes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .md79-cube-scene, .md79-cube { width: 140px; height: 140px; }
    .md79-face-topf { transform: rotateX(90deg) translateZ(70px); }
    .md79-face-botf { transform: rotateX(-90deg) translateZ(70px); }
    .md79-face-front { transform: translateZ(70px); }
    .md79-face-back { transform: rotateY(180deg) translateZ(70px); }
    .md79-face-right { transform: rotateY(90deg) translateZ(70px); }
    .md79-face-left { transform: rotateY(-90deg) translateZ(70px); }
    .md79-face { padding: 10px; gap: 4px; }
    .md79-face-name { font-size: 0.9rem; }
    .md79-face-count { font-size: 0.7rem; }
    .md79-face-count b { font-size: 1rem; }
    .md79-face-top { width: 34px; height: 34px; }
    .md79-face-top i { font-size: 0.9rem; }
    .md79-stage { height: 420px; }
    .md79-hints { flex-direction: row; left: 50%; top: 14px; transform: translateX(-50%); }
}
@media (max-width: 640px) {
    .md79-cubes { grid-template-columns: 1fr; gap: 30px; }
    .md79-cube-scene, .md79-cube { width: 180px; height: 180px; }
    .md79-face-topf { transform: rotateX(90deg) translateZ(90px); }
    .md79-face-botf { transform: rotateX(-90deg) translateZ(90px); }
    .md79-face-front { transform: translateZ(90px); }
    .md79-face-back { transform: rotateY(180deg) translateZ(90px); }
    .md79-face-right { transform: rotateY(90deg) translateZ(90px); }
    .md79-face-left { transform: rotateY(-90deg) translateZ(90px); }
    .md79-stage { height: 380px; }
    .md79-play-band, .md79-crate-band { padding-top: 62px; padding-bottom: 62px; }
    .md79-hint { font-size: 0.66rem; padding: 5px 9px; }
    .md79-leg-chip { font-size: 0.74rem; padding: 6px 11px; }
    .md79-depth-tile { display: none; }
    .md79-crate-band .md76-head, .md79-play-band .md76-head { text-align: left; }
    .md79-play-band .md76-head p, .md79-crate-band .md76-head p { margin-left: 0; margin-right: 0; }
}

/* ------------------------------------------------------------------
   MOTION SAFETY
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .md79-play-band::before,
    .md79-depth-tile,
    .md79-reveal {
        animation: none !important;
        transition: none !important;
    }
    .md79-reveal { opacity: 1; transform: none; }
    .md79-cube { transform: rotateX(-14deg) rotateY(-26deg) !important; }
    .md79-stage { cursor: grab; }
}
