/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Градиент для текста */
.text-gradient {
    background: linear-gradient(90deg, #0a558a 0%, #6ab8ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Анимация появления */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple fade in for tabs */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки анимации */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* --- Стили для стопки карточек (Card Stack) --- */
.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.card-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);

    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    transform-origin: center bottom;
    /* Fix for overflow hidden during animation */
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.card-pos-0 {
    z-index: 30;
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.card-pos-1 {
    z-index: 20;
    transform: scale(0.95) translateY(20px);
    opacity: 0.8;
    filter: brightness(0.98);
    pointer-events: none;
}

.card-pos-2 {
    z-index: 10;
    transform: scale(0.9) translateY(40px);
    opacity: 0.6;
    filter: brightness(0.95);
    pointer-events: none;
}

.card-out {
    transform: translateX(120%) rotate(10deg) !important;
    opacity: 0 !important;
    z-index: 40 !important;
}

.card-hidden {
    z-index: 0;
    transform: scale(0.85) translateY(60px);
    opacity: 0;
    pointer-events: none;
}

/* --- Bento Grid Animations & Styles --- */
.bento-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Fix for sharp corners during animation */
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    border-radius: 2.5rem;
    /* Ensure radius matches HTML class usually */
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(26, 43, 97, 0.25);
    border-color: rgba(106, 184, 238, 0.5);
    z-index: 10;
}

.bento-card:hover .bento-img {
    transform: scale(1.1);
}

.bento-img {
    transition: transform 1.2s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevent image bleed */
    backface-visibility: hidden;
}

/* Улучшенная прозрачная плашка (Frosted Glass) */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    /* Более прозрачный фон */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.bento-card:hover .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    /* Чуть плотнее при наведении для читаемости */
}

/* --- Enhanced Footer Styles --- */
.footer-nav-link {
    @apply text-white text-sm transition-all duration-300 relative inline-block;
}

.footer-nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-[1px] bg-brand-primary transition-all duration-300;
}

.footer-nav-link:hover {
    @apply text-brand-primary opacity-100;
}

.footer-nav-link:hover::after {
    @apply w-full;
}

.footer-social-link {
    @apply w-12 h-12 rounded-xl bg-white/5 flex items-center justify-center hover:bg-brand-primary hover:-translate-y-1 transition-all duration-300;
}

/* --- Architecture of Excellence Section (V3 - Soft & Natural) --- */
.architecture-section {
    padding: 8rem 0;
    background-color: #fdfcf9;
    /* Soft Cream/Nature White */
    position: relative;
    overflow: hidden;
    color: #2d3748;
}

.architecture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background: radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.05), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(251, 113, 133, 0.05), transparent 50%);
    pointer-events: none;
}

.molecular-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 9999px;
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.title-outline {
    color: #22c55e;
    opacity: 0.8;
}

.architecture-card {
    padding: 2.5rem;
    border-radius: 2.5rem;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.architecture-card:hover {
    transform: translateY(-0.75rem);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.architecture-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2.5rem;
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    box-shadow: 0 0 40px -5px var(--glow-color);
}

.architecture-card:hover::after {
    opacity: 0.15;
}

.card-marker {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.marker-meat {
    background-color: #fecdd3;
}

.marker-sprout {
    background-color: #d1fae5;
}

.marker-pure {
    background-color: #cffafe;
}

.marker-smart {
    background-color: #ede9fe;
}

.icon-box {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.architecture-card:hover .icon-box {
    transform: scale(1.15) rotate(5deg);
}

.icon-box-rose {
    background-color: #fff1f2;
    color: #e11d48;
}

.icon-box-emerald {
    background-color: #ecfdf5;
    color: #059669;
}

.icon-box-cyan {
    background-color: #ecfeff;
    color: #0891b2;
}

.icon-box-purple {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.formula-card {
    margin-top: 10rem;
    padding: 3rem;
    border-radius: 4rem;
    background: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

@media (min-width: 1024px) {
    .formula-card {
        flex-direction: row;
        padding: 5rem;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .formula-card {
        padding: 2.5rem 1.5rem !important;
        gap: 3rem !important;
        border-radius: 2.5rem !important;
    }
}

.orbit-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .orbit-container {
        width: 450px;
        height: 450px;
    }
}

@media (min-width: 1024px) {
    .orbit-container {
        width: 650px;
        height: 650px;
    }
}

.orbit-glow {
    position: absolute;
    inset: 0;
    background-color: rgba(34, 197, 94, 0.05);
    border-radius: 9999px;
    filter: blur(100px);
    animation: orbitPulse 6s ease-in-out infinite;
}

@keyframes orbitPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.orbit-path {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
}

@media (max-width: 767px) {
    .orbit-path {
        opacity: 0.2;
        border-style: solid;
        border-width: 0.5px;
    }
}

.orbit-item {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 20;
    border: 1px solid rgba(0, 0, 0, 0.03);
    offset-path: border-box;
    animation: orbitRotate 30s linear infinite;
}

@media (min-width: 768px) {
    .orbit-item {
        width: 4rem;
        height: 4rem;
        font-size: 1.75rem;
    }
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .checklist-item {
        gap: 1.25rem;
        padding: 1.25rem;
        border-radius: 1.25rem;
        transform: none !important;
        text-align: left;
    }

    .checklist-item p.text-lg {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    .checklist-item p.text-\[10px\] {
        font-size: 9px !important;
    }
}

.checklist-item:hover {
    background-color: #ffffff;
    border-color: rgba(34, 197, 94, 0.2);
    transform: translateX(1rem);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.check-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 767px) {
    .check-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
        border-radius: 1rem;
    }
}

.checklist-item:hover .check-circle {
    transform: scale(1.1) rotate(10deg);
}

.check-rose {
    background-color: #fff1f2;
    color: #f43f5e;
}

.check-emerald {
    background-color: #ecfdf5;
    color: #10b981;
}

.check-cyan {
    background-color: #ecfeff;
    color: #06b6d4;
}

.btn-molecular {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    background-color: #22c55e;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.3);
    transition: all 0.4s;
    margin-top: 3rem;
    text-decoration: none;
}

.btn-molecular:hover {
    background-color: #16a34a;
    transform: scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(34, 197, 94, 0.4);
}


@keyframes bounce {

    0%,
    100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* --- Ingredient Roadmap Styles --- */
/* --- Ingredient Roadmap Improvements --- */
/* --- Ingredient Roadmap Improvements --- */
.roadmap-container {
    position: relative;
    padding: 2rem 0;
}

.roadmap-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5rem;
    bottom: 25rem;
    /* Adjusted to end near the start of finale card */
    width: 2px;
    background: rgba(34, 197, 94, 0.1);
    z-index: 0;
}

.roadmap-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, #22c55e, #10b981);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    transition: height 0.2s ease-out;
}

.roadmap-item {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.2;
    transform: translateY(40px);
    filter: blur(4px);
    position: relative;
    z-index: 10;
}

.roadmap-item.is-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.roadmap-dot {
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: block;
    z-index: 50;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 15px rgba(0, 0, 0, 0.05);
}

.roadmap-item:not(.is-active) .roadmap-dot {
    background-color: #f3f4f6 !important;
}

.roadmap-item.is-active .roadmap-dot {
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 10px 25px rgba(0, 0, 0, 0.1);
}

.roadmap-item.is-active .roadmap-dot::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.2;
    animation: dotPulse 2s infinite;
    z-index: -1;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.roadmap-item.finale-item {
    opacity: 0.2;
    margin-top: -2rem;
    /* Pull closer */
}

.roadmap-item.finale-item.is-active {
    opacity: 1;
}

.formula-card {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent !important;
}

.formula-card.finale-glow-active {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1), 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 30px rgba(34, 197, 94, 0.3);
    animation: finaleGlow 3s infinite alternate;
}

@keyframes finaleGlow {
    0% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1), 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 20px rgba(34, 197, 94, 0.2);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15), 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 50px rgba(34, 197, 94, 0.5);
    }
}

.roadmap-card {
    background: white;
    border-radius: 2.5rem;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.4s ease;
}

.roadmap-item.is-active .roadmap-card {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.step-num {
    position: absolute;
    top: -1.25rem;
    left: 3rem;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Alternate positions for step numbers on desktop */
.roadmap-item:nth-child(even) .step-num {
    right: auto;
    left: 2rem;
}

@media (max-width: 767px) {
    .roadmap-track {
        display: block;
        /* Show track on mobile */
    }

    .roadmap-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        margin-bottom: 5rem;
        /* More air between steps */
    }

    .roadmap-dot {
        margin: 2.5rem 0;
        width: 1.25rem;
        height: 1.25rem;
    }

    .step-num {
        right: 1.5rem !important;
        left: auto !important;
        top: -1.5rem;
    }

    .ingredient-img-container {
        border-radius: 2rem !important;
        max-width: 90% !important;
    }

    .roadmap-card {
        padding: 2.5rem 1.5rem 2rem;
        border-radius: 2rem !important;
        max-width: 95% !important;
    }
}

/* Mobile menu collapsible submenus */
li.open .mobile-submenu {
    max-height: 500px;
}

li.open .mobile-chevron {
    transform: rotate(180deg);
}