.page-home {
    --bg-pattern-primary: rgba(201, 169, 98, 0.07);
    --bg-pattern-secondary: rgba(201, 169, 98, 0.04);
    --grid-line-color: rgba(201, 169, 98, 0.015);
    --grid-size: 80px;
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0;
    animation: float-particle 10s infinite ease-in-out;
    box-shadow: 0 0 6px var(--accent);
}

@keyframes float-particle {
    0%, 100% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10%,
    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-50px) scale(1);
    }
}

.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: calc(100vh - 7.5rem);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
}

.logo-section,
.divider,
.cta-section,
.social-section {
    opacity: 0;
    animation: fade-slide-up 0.9s ease-out forwards;
}

.divider {
    animation-delay: 0.15s;
}

.cta-section {
    animation-delay: 0.3s;
}

.social-section {
    animation-delay: 0.45s;
}

.logo-section {
    text-align: center;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

.logo {
    position: relative;
    display: flex;
    width: 140px;
    height: 140px;
    align-items: center;
    justify-content: center;
}

.logo-mark {
    width: 100%;
    height: 100%;
    overflow: visible;
    color: var(--accent);
}

.shine-rect {
    fill: url(#shine-gradient);
    animation: shine-move 5s ease-in-out infinite;
}

@keyframes shine-move {
    0% {
        opacity: 0;
        transform: translateX(-200px) rotate(15deg);
    }

    20%,
    50% {
        opacity: 1;
    }

    50% {
        transform: translateX(300px) rotate(15deg);
    }

    51%,
    100% {
        opacity: 0;
    }
}

.brand-name {
    margin-top: 0.5rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
}

.brand-tagline {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 0.1em;
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 1rem 2.5rem;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s ease;
}

.cta-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover::before,
.cta-button:focus-visible::before {
    transform: scaleX(1);
    transform-origin: right;
}

.cta-button:hover,
.cta-button:focus-visible {
    border-color: var(--accent-light);
    color: var(--bg);
    box-shadow: 0 15px 50px -15px var(--accent-glow);
}

.cta-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover .icon,
.cta-button:focus-visible .icon {
    transform: translateX(4px);
}

.social-label {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.social-link:hover,
.social-link:focus-visible {
    border-color: var(--accent);
    background: rgba(201, 169, 98, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.social-link.instagram:hover,
.social-link.instagram:focus-visible {
    border-color: #e1306c;
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(193, 53, 132, 0.12), rgba(131, 58, 180, 0.12));
}

.social-link.telegram:hover,
.social-link.telegram:focus-visible {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.12);
}

.social-link .icon {
    width: 18px;
    height: 18px;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle,
    .shine-rect {
        display: none;
    }
}

@media (max-width: 640px) {
    .logo {
        width: 110px;
        height: 110px;
    }

    .brand-tagline {
        font-size: 0.85rem;
        letter-spacing: 0.05em;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link {
        justify-content: center;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}
