
/* --- 3. HERO SECTION --- */
:root {
    --section-title-fluid: clamp(2.5rem, 5vw, 3.5rem);
}

.hero {
    min-height: 100vh;
    background-color: var(--bg-dark);
    background-image: url('../assets/backgrounds/goory_bg_pattern.png');
    background-position: right;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 10vw, 8.25rem) 2rem clamp(4rem, 8vw, 6rem);
    isolation: isolate;
}

.hero-content {
    max-width: var(--container-width);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    position: relative;
    z-index: var(--z-float);
}

.hero-text {
    padding-inline-end: 0;
    display: flex;
    flex-direction: column;
    font-weight: 700;
}

.color-accent {
    color: var(--brand-accent);
}

.color-white {
    color: var(--text-white, #ffffff);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    inline-size: max-content;
    max-inline-size: 100%;
    white-space: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    margin-bottom: 2rem;
    color: var(--brand-accent);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--bg-light);
}

.story-text {
    display: block;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    color: var(--brand-accent);
    margin-top: 0.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 42rem;
    margin-inline: auto;
    color: var(--text-light);
}

.hero-subtitle strong {
    color: white;
    font-weight: 600;
}

.hero-subtitle-lead {
    display: block;
}

.hero-subtitle-block {
    display: block;
}

.hero-subtitle-block:last-of-type {
    margin-bottom: 1rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    width: 100%;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 10rem;
    max-width: 13.75rem;
}

@media (hover: hover) {
    .store-btn:hover {
        background: var(--brand-accent);
        color: var(--bg-dark);
        transform: translateY(-0.125rem);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-color: var(--brand-accent);
    }

    .store-btn:hover svg path {
        fill: var(--bg-dark);
    }
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-text span:first-child {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.03125rem;
}

.store-text span:last-child {
    font-size: 1rem;
    font-weight: 700;
}

/* --- 3D SLIDER Thanks https://www.jhey.dev/ --- */
.showcase-window {
    position: relative;
    height: clamp(31.25rem, 62vw, 43.75rem);
    width: 100%;
    overflow: hidden;
    perspective: 62.5rem;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.showcase-wrapper {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    transform: rotateY(-10deg) rotateX(5deg) translateZ(50px);
    transform-style: preserve-3d;
    padding: 1.25rem 3.125rem;
    --x: 0;
    --y: 1;
    --gap-fix: 1.25rem;
}

.scrolling-col {
    --count: 5;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
    height: 100%;
    width: 100%;
}

.col-1 {
    --speed: 25s;
    --dir: normal;
}

.col-2 {
    --speed: 30s;
    --dir: reverse;
}

.social-card {
    grid-area: 1 / 1;
    width: 100%;
    --duration: var(--speed);
    --delay: calc((var(--duration) / var(--count)) * (var(--index) - var(--count)));
    animation: marquee var(--duration) var(--delay) infinite linear;
    animation-direction: var(--dir, normal);
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem;
    padding: 0.625rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 10rem;
    border-radius: 0.875rem;
    overflow: hidden;
    margin-bottom: 0.625rem;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 0 0.25rem 0.25rem;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.producer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.producer-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.producer-name {
    font-size: 0.85rem;
    color: var(--text-grey);
    font-weight: 600;
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-bottom: 0.5rem;
    width: 100%;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-heart {
    color: var(--accent-red);
    font-size: 1rem;
}

.icon-gps {
    color: var(--brand-primary);
    font-size: 1rem;
}

.stat-text {
    color: var(--text-grey);
    font-weight: 600;
    font-size: 0.75rem;
}

.is-clone {
    pointer-events: none;
    user-select: none;
}

@keyframes marquee {
    0% {
        translate:
            calc(var(--x) * (100% + var(--gap-fix)) * (var(--count) - 1))
            calc(var(--y) * (100% + var(--gap-fix)) * (var(--count) - 1));
    }
    100% {
        translate:
            calc(var(--x) * (-100% - var(--gap-fix)))
            calc(var(--y) * (-100% - var(--gap-fix)));
    }
}

/* --- FEATURES SECTION --- */
#features-section,
#producers-section {
    scroll-margin-top: clamp(5rem, 9vw, 6.5rem);
}

.features-section {
    background: var(--bg-light);
    padding: clamp(3.75rem, 8vw, 7.5rem) 2rem;
    position: relative;
    border-radius: clamp(2.5rem, 5vw, 3.75rem);
}

.features-section .section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.features-section .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    margin-bottom: 2rem;
    color: var(--brand-accent);
}

.features-section .section-title {
    font-size: var(--section-title-fluid);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.3rem;
    color: #004745;
}

.features-section .section-desc {
    font-size: 1.15rem;
    color: rgba(0, 71, 69, 0.7);
    line-height: 1.6;
    max-width: 31.25rem;
    margin: 0 auto;
}

.features-dashboard {
    max-width: var(--container-width);
    margin: 0 auto;
    background: #044340;
    border-radius: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(4, 67, 64, 0.25);
}

.features-dashboard::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../assets/backgrounds/pattern.webp);
    opacity: 0.1;
    pointer-events: none;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem 1.5rem;
    cursor: pointer;
    position: relative;
    border-radius: 1.25rem;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    appearance: none;
}

@media (hover: hover) {
    .feature-item:hover:not(.active) {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(0.75rem);
    }
}

.feature-item.active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    transform: scale(1.02) translateX(0.3125rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.feature-item-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item-icon svg {
    width: 3rem;
    height: 3rem;
    stroke: var(--brand-accent);
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.feature-item.active .feature-item-icon svg {
    stroke: var(--brand-secondary);
}

.feature-item-content h3,
.feature-item-title {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    color: var(--brand-accent);
}

.feature-item-title {
    display: block;
}

.feature-item-content p,
.feature-item-desc {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    line-height: clamp(1.4, 2vw, 1.5);
    margin: 0;
    transition: color 0.3s ease;
}

.feature-item-desc {
    display: block;
}

.feature-item.active .feature-item-content h3,
.feature-item.active .feature-item-title {
    color: var(--brand-secondary);
}

.feature-item.active .feature-item-content p,
.feature-item.active .feature-item-desc {
    color: rgba(0, 71, 69, 0.8);
}

.features-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: clamp(25rem, 50vw, 37.5rem);
}

.phone-wrapper {
    width: clamp(12.5rem, 22vw, 18.75rem);
    aspect-ratio: 300 / 620;
    height: auto;
    background: #000;
    border-radius: clamp(1.875rem, 3vw, 2.75rem);
    border: clamp(0.3125rem, 0.7vw, 0.5rem) solid #121212;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 0 0 2px #222, 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.screen-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    visibility: hidden;
}

.phone-screen.active {
    visibility: visible;
}

/* --- PRODUCERS SECTION --- */
.producers-section {
    background-color: var(--bg-dark);
    padding: clamp(3.75rem, 8vw, 7.5rem) 2rem;
    position: relative;
    overflow: hidden;
    z-index: 5;
    display: flex;
    align-items: center;
}

.producers-section::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(1, 211, 125, 0.12) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: var(--z-back);
    pointer-events: none;
}

.producer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.producer-text-col {
    padding-inline-end: 2rem;
}

.producer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    margin-bottom: 1.5rem;
    color: var(--brand-accent);
}

.producer-title {
    font-size: var(--section-title-fluid);
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.producer-title span {
    font-family: "Playfair Display", serif;
    font-style: italic;
    color: var(--brand-accent);
}

.producer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 31.25rem;
}

.producer-features {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    margin-bottom: 2.5rem;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.p-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-white);
    font-weight: 500;
}

.p-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(156, 224, 105, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
}

.producer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--brand-accent);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
    will-change: transform;
}

@media (hover: hover) {
    .producer-cta:hover {
        transform: translateY(-0.3125rem);
    }
}

.producer-img-col {
    position: relative;
    width: 100%;
}

.producer-img-col::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(
        circle at center,
        rgba(1, 211, 125, 0.12) 0%,
        transparent 70%
    );
    filter: blur(80px);
    z-index: var(--z-back);
    pointer-events: none;
}

/* --- DASHBOARD COMPONENTS --- */
.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(1, 211, 125, 0.05);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    container-type: inline-size;
    pointer-events: none;
    user-select: none;
}

.db-card {
    background: var(--text-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.db-card-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.db-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.db-icon-box {
    width: 28px;
    height: 28px;
    background: var(--bg-light);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}

.db-icon-box svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--brand-secondary);
}

.db-card-hero,
.db-card-score {
    grid-column: span 7;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #065f5c 100%);
    color: var(--text-white);
}

.db-card-hero::after,
.db-card-score::after {
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(1, 211, 125, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.db-hero-amount,
.db-score-value {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 8px 0 16px 0;
    color: var(--text-white);
}

.db-card-score .db-title,
.db-card-score .db-label-sm,
.db-card-score .db-score-caption {
    color: var(--text-white);
}

.db-score-caption {
    font-size: 0.8rem;
    margin: 0 0 0.625rem;
    opacity: 0.86;
}

.db-score-track {
    height: 0.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 0.5rem;
}

.db-score-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--brand-primary);
}

.db-score-fill-78 { width: 78%; }

.db-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.db-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    position: relative;
    z-index: 2;
    padding: 0;
}

.db-stat-item { margin: 0; }
.db-stat-item dt,
.db-stat-item dd { margin: 0; }

.db-card-metrics,
.db-card-top5 {
    grid-column: span 5;
}

.db-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.db-rank-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
}

.db-rank-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-rank-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-secondary);
}

.db-rank-track {
    grid-column: 1 / -1;
    height: 0.45rem;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.db-rank-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--brand-secondary) 86%, white),
        color-mix(in srgb, var(--brand-primary) 86%, white)
    );
}

.db-rank-fill-98 { width: 98%; }
.db-rank-fill-90 { width: 90%; }
.db-rank-fill-84 { width: 84%; }
.db-rank-fill-76 { width: 76%; }
.db-rank-fill-69 { width: 69%; }

.db-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.db-metric-box {
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.db-metric-box p { margin: 0; }

.db-metric-val {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 4px;
    color: var(--text-dark);
}

.db-metric-val-accent {
    color: var(--brand-secondary);
}

.db-card-chart,
.db-card-views {
    grid-column: span 12;
}

.db-view-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.66rem;
    color: var(--text-grey);
}

.db-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.db-legend-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
}

.db-legend-dot.profile { background: var(--brand-secondary); }
.db-legend-dot.products { background: var(--brand-primary); }

.db-views-chart {
    height: 180px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(1, 211, 125, 0.03) 0%, transparent 100%);
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.db-view-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.db-view-bars {
    width: 100%;
    height: 85%;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.db-view-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    transition: height 1s ease-out;
    height: 0;
}

.db-view-bar.profile { background: var(--brand-secondary); }
.db-view-bar.products { background: var(--brand-primary); }

.db-view-label {
    font-size: 0.62rem;
    color: var(--text-grey);
    margin-top: 0.35rem;
}

.db-chart-container {
    height: 180px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(1, 211, 125, 0.03) 0%, transparent 100%);
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.db-chart-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.db-bars-wrap {
    width: 100%;
    height: 85%;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.db-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    transition: height 1s ease-out;
    height: 0;
}

.db-bar.income { background: var(--brand-secondary); }
.db-bar.expense { background: var(--brand-primary); }

.db-card-half,
.db-card-likes,
.db-card-coupons {
    grid-column: span 6;
}

.db-like-hero {
    text-align: center;
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
}

.db-like-heart {
    display: inline-block;
    color: var(--brand-primary);
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.db-like-total {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.db-like-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.db-like-breakdown li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.65rem;
    background: color-mix(in srgb, var(--bg-light) 86%, white);
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

.db-like-breakdown strong {
    font-size: 0.8rem;
    color: var(--brand-secondary);
}

.db-coupon-value {
    margin: 0.35rem 0 0.4rem;
    font-size: clamp(2rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-secondary);
}

.db-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.db-list-item:last-child { margin-bottom: 0; }

.db-label-sm {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin: 0;
}

.db-label-xs {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.db-label-muted {
    color: var(--text-grey);
    font-size: 0.65rem;
    margin: 0;
}

.db-badge-weekly {
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--brand-secondary);
}

.db-icon-bg-white { background: white; }

.db-text-active {
    font-size: 0.65rem;
    color: var(--text-grey);
    margin: 0;
}

.db-big-number {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
}

.db-flex-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-flex-between {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
}

.db-status {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.db-status.success {
    background: rgba(1, 211, 125, 0.15);
    color: var(--brand-secondary);
}

.db-status.pending {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-grey);
}

.db-progress-track {
    height: 6px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    margin-top: 12px;
    overflow: hidden;
}

.db-progress-fill {
    height: 100%;
    background: var(--brand-primary);
    width: 0;
    transition: width 1s ease-out;
}

.db-progress-fill-83 { width: 83%; }

.db-item-title {
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0;
}

.db-setup-progress { margin-top: 12px; }

.db-setup-percent {
    font-weight: 700;
    color: var(--brand-secondary);
}

.db-list-value { text-align: right; }

.db-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Dashboard interna: container query OK perché dipende da un componente,
   non dal viewport — il breakpoint è semanticamente corretto qui */
@container (width <= 31.25rem) {
    .db-card-hero,
    .db-card-score,
    .db-card-metrics,
    .db-card-top5,
    .db-card-chart,
    .db-card-views,
    .db-card-half,
    .db-card-likes,
    .db-card-coupons {
        grid-column: span 12;
    }

    .db-hero-stats {
        grid-template-columns: 1fr;
    }

    .db-chart-container,
    .db-views-chart {
        gap: 0.25rem;
    }
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.testimonials-section .section-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--brand-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(156, 224, 105, 0.2);
}

.testimonials-section .section-title {
    font-size: var(--section-title-fluid);
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
}

.testimonials-section .section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.marquee-row {
    --count: 6;
    --gap: 20px;
    --card-width: 380px;
    display: flex;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.marquee-track {
    display: grid;
    gap: var(--gap);
    position: relative;
    width: var(--card-width);
}

.row-top {
    --speed: 35s;
    --animation-dir: normal;
}

.row-bottom {
    --speed: 45s;
    --animation-dir: reverse;
}

.review-card {
    grid-area: 1 / 1;
    width: var(--card-width);
    height: 210px;
    --duration: var(--speed);
    --delay: calc((var(--duration) / var(--count)) * (var(--index) - var(--count)));
    animation: scroll-horizontal var(--duration) var(--delay) infinite linear;
    animation-direction: var(--animation-dir, normal);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes scroll-horizontal {
    from {
        transform: translateX(calc((var(--card-width) + var(--gap)) * (var(--count) - 1)));
    }
    to {
        transform: translateX(calc((var(--card-width) + var(--gap)) * -1));
    }
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.star-rating svg {
    width: 18px;
    height: 18px;
    fill: #ffd700;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: 0 0 15px 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #333;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    outline: 1px solid transparent;
}

.review-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.review-role {
    font-size: 0.75rem;
    color: var(--brand-accent);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- FAQ BENTO SECTION --- */
.faq-section {
    background-color: var(--bg-light);
    padding: 120px 2rem;
    color: var(--brand-secondary);
    position: relative;
    z-index: 10;
    border-radius: clamp(2.5rem, 5vw, 3.75rem);
    margin-top: -40px;
}

.faq-bento-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
}

.faq-sidebar {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-header-small {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-accent);
    margin-bottom: 10px;
    display: block;
}

.faq-title {
    font-size: var(--section-title-fluid);
    font-weight: 800;
    line-height: 1;
    color: var(--brand-secondary);
    margin-bottom: 1rem;
}

.faq-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(0, 71, 69, 0.7);
    margin-bottom: 20px;
}

.contact-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 15px;
}

.contact-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--bg-dark);
}

.contact-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #666;
}

.contact-btn {
    display: inline-block;
    background: var(--brand-accent);
    color: var(--bg-dark);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: transform 0.2s;
}

@media (hover: hover) {
    .contact-btn:hover {
        transform: translateY(-2px);
    }
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-tabs {
    display: inline-flex;
    background: #fff;
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--bg-dark);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.5s ease;
}

.faq-list-container[hidden] { display: none; }
.faq-list-container.active { display: flex; }

details.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
    transform: translateZ(0);
}

@media (hover: hover) {
    details.faq-item:hover {
        border-color: rgba(0, 71, 69, 0.2);
    }
}

summary.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-dark);
    list-style: none;
}

summary.faq-question::-webkit-details-marker { display: none; }

.faq-icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

details[open] summary .faq-icon-wrap {
    background: var(--brand-accent);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px 30px 30px;
    background: #fff;
    color: #555;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

.faq-answer p { margin: 0; }

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

    .col-1,
    .col-2,
    .marquee-track {
        animation: none !important;
    }

    .marquee-row {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .marquee-track {
        display: flex;
        gap: 20px;
        width: max-content;
        margin-left: 0;
        transform: none;
    }

    .review-card {
        animation: none !important;
        grid-area: auto;
        transform: none !important;
        margin: 0;
        flex: 0 0 var(--card-width);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — 3 fasce:
   Desktop:      width > 48rem       → stili base
   Tablet Mini:  28rem < width ≤ 48rem
   Mobile:       width ≤ 28rem
───────────────────────────────────────────────────────────────────────────── */

/* ─── Tablet Pro / Laptop: soglia condivisa layout (width ≤ 64rem) ────────── */
/* Hero e sezioni principali: da 2 colonne a layout verticale */
@media (width <= 64rem) {
    .hero {
        padding: 7rem 1rem 4rem 1rem;
        overflow-x: hidden;
        background-attachment: scroll;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .hero-subtitle-block {
        margin-bottom: 0.62rem;
    }

    .store-buttons {
        justify-content: center;
        max-width: 37.5rem;
        margin: 1rem auto 0 auto;
    }

    .store-btn {
        min-width: 10rem;
        max-width: 13.75rem;
    }

    .showcase-window {
        overflow: hidden;
        perspective: none;
        height: clamp(35rem, 75dvh, 48rem);
        min-height: auto;
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    }

    .showcase-wrapper {
        flex-direction: column;
        transform: none;
        transform-style: flat;
        gap: 2.1875rem;
        padding: 0.75rem 1rem;
        --x: 1;
        --y: 0;
        --gap-fix: 2.1875rem;
    }

    .scrolling-col {
        height: auto;
        min-height: 13.5rem;
        width: 100%;
        --speed: 30s;
    }

    .col-1 { --dir: normal; }
    .col-2 { --dir: reverse; }

    .social-card {
        width: 15.625rem;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: none;
        flex-shrink: 0;
    }

    .card-img-wrapper {
        height: 9.375rem;
    }

    /* Features dashboard: 2 colonne su tablet pro */
    .features-dashboard {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
        align-items: center;
    }

    .features-visual-col {
        order: unset;
        width: 100%;
        margin-bottom: 0;
        justify-content: center;
    }

    .features-text-col {
        order: unset;
    }

    .phone-wrapper {
        width: 16.25rem;
        height: auto;
        border-width: 0.375rem;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
        margin: 0 auto;
    }

    /* Producers */
    .producers-section::before {
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        background: radial-gradient(
            circle at top right,
            rgba(1, 211, 125, 0.08) 0%,
            transparent 60%
        );
    }

    .producer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .producer-text-col,
    .producer-img-col {
        display: contents;
    }

    .producer-tag  { order: 1; margin-bottom: 1.5rem; }
    .producer-title { order: 2; margin-bottom: 1.5rem; }
    .producer-desc  { order: 3; margin-bottom: 2.5rem; }

    .dashboard-card {
        order: 4;
        width: 100%;
        margin-bottom: 3rem;
        height: auto;
    }

    .producer-features {
        order: 5;
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 0.9375rem;
    }

    .p-feature {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .producer-cta {
        order: 6;
        width: auto;
        padding: 1rem 3rem;
        justify-content: center;
    }

    /* FAQ: sidebar in alto */
    .faq-bento-grid {
        display: flex;
        flex-direction: column;
    }

    .faq-sidebar {
        display: contents;
    }

    .faq-header-content { order: 1; }
    .faq-content         { order: 2; }
    .contact-card        { order: 3; }
}

/* ─── Tablet Mini: iPad Mini, tablet stretti (28rem < width ≤ 48rem) ──────── */
@media (width <= 48rem) {
    /* Store buttons */
    .store-buttons {
        width: 100%;
        gap: 0.75rem;
        padding: 0 0.625rem;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 15.625rem;
        margin: 0 auto;
        justify-content: center;
        padding: 0.8rem 1.2rem;
    }

    .hero-tag {
        max-width: 100%;
        text-align: center;
        line-height: 1.35;
    }

    .hero-subtitle {
        text-wrap: pretty;
        text-align: center;
        margin-inline: auto;
    }

    /* Features */
    .features-section {
        padding: 3.75rem 1.5rem;
        border-top-left-radius: 2.5rem;
        border-top-right-radius: 2.5rem;
    }

    /* Dashboard ancora a 2 colonne su tablet mini */
    .features-dashboard {
        grid-template-columns: 1fr 1fr;
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
        gap: 1.5rem;
    }

    .phone-wrapper {
        width: 13rem;
        height: auto;
        border-width: 0.3125rem;
    }

    .feature-list {
        gap: 0.75rem;
        order: 1;
    }

    .feature-item {
        padding: 1.2rem;
        gap: 1rem;
        flex-direction: row;
        align-items: flex-start;
    }

    .feature-item-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .feature-item-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* Producers */
    .producers-section {
        padding: 3.75rem 1.5rem;
    }

    .producer-title {
        font-size: var(--section-title-fluid);
        line-height: 1.1;
    }

    .producer-features {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 3.75rem 0;
    }

    .testimonials-section .section-header {
        margin-bottom: 2.5rem;
        padding-inline: 1.5rem;
    }

    .marquee-row {
        --card-width: 17.5rem;
        --gap: 0.75rem;
    }

    .row-top  { --speed: 60s; }
    .row-bottom { --speed: 70s; }

    .review-card {
        width: 17.5rem;
        flex: 0 0 17.5rem;
        min-width: 17.5rem;
        height: 11.875rem;
        padding: 1.25rem;
    }

    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* FAQ */
    .faq-section {
        padding: 3.75rem 1.5rem;
        border-top-left-radius: 2.5rem;
        border-top-right-radius: 2.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-text {
        font-size: 0.9rem;
    }

    summary.faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.5rem;
    }

    .faq-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
        margin-bottom: 0.625rem;
    }

    .tab-btn {
        width: 100%;
        min-inline-size: 0;
        padding: 0.7rem 0.55rem;
        line-height: 1.25;
        white-space: normal;
    }
}

/* ─── Mobile: smartphone (width ≤ 28rem) ──────────────────────────────────── */
@media (width <= 28rem) {
    .hero {
        padding: 6rem 0.75rem 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.45rem);
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle-lead {
        margin-bottom: 0.65rem;
    }

    .hero-subtitle-block {
        margin-bottom: 0.55rem;
    }

    .hero-tag {
        margin-bottom: 1.2rem;
        font-size: 0.68rem;
        padding: 0.45rem 0.65rem;
    }

    .store-buttons {
        padding-inline: 0;
        flex-direction: column;
    }

    .store-btn {
        max-width: 100%;
    }

    .showcase-window {
        height: 42rem;
        min-height: auto;
        margin-top: 1rem;
        mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
        perspective: 1200px;
    }

    /* Features: passa a colonna singola su mobile */
    .features-section,
    .producers-section,
    .faq-section {
        padding-inline: 1rem;
        border-top-left-radius: 2rem;
        border-top-right-radius: 2rem;
    }

    .features-dashboard {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
    }

    .features-visual-col {
        order: -1;
        margin-bottom: 1rem;
    }

    .feature-list {
        order: 1;
    }

    .phone-wrapper {
        width: 12.5rem;
        height: auto;
        border-width: 0.3125rem;
        border-radius: 1.875rem;
    }

    .feature-item {
        padding: 1rem 0.85rem;
        gap: 0.75rem;
    }

    .producer-title {
        font-size: var(--section-title-fluid);
        line-height: 1.1;
    }

    .producer-features {
        flex-direction: column;
        align-items: center;
    }

    .faq-tabs {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.58rem 0.42rem;
    }

    summary.faq-question {
        gap: 0.65rem;
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1rem 1.2rem;
    }
}
