/* ========================================
   Hero Section - ТОЧНО ПО FIGMA
   ======================================== */
.hero {
    position: relative;
    background: var(--background);
    overflow: hidden;
}

/* Hero / Default - FIXED */
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 32px var(--spacing-20); /* Added bottom padding */
    gap: 96px;
    isolation: isolate;
    position: relative;
    width: 100%;
    max-width: 1312px;
    min-height: 100vh; /* Changed from fixed height to min-height */
    background: #000000;
}

/* content - ТОЧНО ПО КОДУ FIGMA */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 48px;
    width: 1248px;
    height: 428px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    z-index: 1;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-1) 10px;
    background: var(--background);
    border: 1px solid var(--input);
    border-radius: var(--radius-full);
    font-family: var(--font-rubik);
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.badge-verified {
    font-family: var(--font-rubik);
    font-size: 10px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
}

.hero-title {
    font-family: var(--font-rubik);
    font-size: 82px;
    font-weight: 500;
    line-height: 1;
    color: var(--foreground);
    max-width: 1248px;
    text-shadow: 0px 25px 50px rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, var(--foreground) 0%, var(--muted-foreground) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-family: var(--font-inter);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--muted-foreground);
    max-width: 544px;
}

/* Frame 1 - Контейнер кнопок - ТОЧНО ПО FIGMA */
.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 0px;
    width: 261px;
    height: 36px;
    flex: none;
    order: 3;
    flex-grow: 0;
}

/* Button Hero - БАЗОВЫЙ СТИЛЬ */
.btn-hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    height: 36px;
    border-radius: 45px;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    flex: none;
    flex-grow: 0;
}

/* Button Primary - ПЕРВАЯ КНОПКА ИЗ FIGMA */
.btn-hero-primary {
    width: 124px;
    background: linear-gradient(73.46deg, rgba(250, 250, 250, 0.25) -16.79%, rgba(153, 153, 153, 0.25) 122.8%);
    font-size: 14px;
    color: #FAFAFA;
    order: 0;
}

.btn-hero-primary:hover {
    background: linear-gradient(73.46deg, rgba(250, 250, 250, 0.35) -16.79%, rgba(153, 153, 153, 0.35) 122.8%);
    transform: translateY(-2px);
}

/* Button Secondary - ВТОРАЯ КНОПКА ИЗ FIGMA */
.btn-hero-secondary {
    width: 137px;
    background: transparent;
    font-size: 12px;
    color: #A1A1AA;
    order: 3;
}

.btn-hero-secondary:hover {
    background: rgba(250, 250, 250, 0.05);
    color: #FAFAFA;
}

/* Illustration / Mockup - ТОЧНО ПО КОДУ FIGMA */
.hero-illustration {
    position: relative;
    width: 1248px;
    height: 789px;
    border-radius: 12px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 1;
    z-index: 0;
}

/* glows - ТОЧНО ПО КОДУ FIGMA */
.hero-glow {
    position: absolute;
    width: 1636px;
    height: 1115px;
    left: calc(50% - 1636px/2 + 40.09px);
    top: calc(50% - 1115px/2 - 62px);
    z-index: 0;
    pointer-events: none;
}

/* Убираем img внутри hero-glow, используем только псевдоэлементы */
.hero-glow img {
    display: none;
}

/* Ellipse 1 - ОСНОВНОЕ СВЕЧЕНИЕ - FIXED POSITION */
.hero-glow::before {
    content: '';
    position: absolute;
    width: 740.41px;
    height: 450px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-31.4deg); /* Centered */
    background: rgba(2, 173, 161, 0.2);
    filter: blur(100px);
    transition: top 0.3s ease-out;
}

/* frame - КОНТЕЙНЕР ДЛЯ ТЕЛЕФОНА - FIXED TOP */
.phone-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 8px 0px;
    gap: 10px;
    position: absolute;
    height: auto; /* Changed from fixed height */
    left: 0px;
    right: 0px;
    top: 0px; /* Removed negative top */
    border-radius: 16px;
    z-index: 1;
}

/* iPhone 15 - ИЗОБРАЖЕНИЕ ТЕЛЕФОНА - FIXED TRANSFORM */
.phone-mockup img {
    width: 884px;
    height: 718px;
    border-radius: 8px;
    /* transform: matrix(-1, 0, 0, 1, 0, 0); REMOVED FLIP */
    flex: none;
    order: 1;
    flex-grow: 0;
    display: block;
    object-fit: cover;
}

@media (max-width: 1312px) {
    .hero-illustration {
        width: 100%;
        height: auto;
        min-height: 600px;
    }

    .hero-glow {
        width: 120%;
        height: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .phone-mockup {
        height: auto;
        min-height: 800px;
    }

    .phone-mockup img {
        width: 90%;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-illustration {
        min-height: 500px;
    }

    .phone-mockup {
        min-height: 600px;
    }

    .phone-mockup img {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-12) 0;
    }

    .hero .container {
        height: auto;
        padding: 60px 16px 0px;
    }

    .hero-content {
        width: 100%;
        height: auto;
    }

    .hero-title {
        font-size: 32px;
        width: 100%;
    }

    .hero-description {
        font-size: 16px;
        width: 100%;
    }

    .hero-actions {
        flex-direction: row; /* Кнопки в один ряд для мобильных */
        width: 100%;
        height: auto;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }

    .btn-hero {
        width: auto !important; /* Автоматическая ширина вместо 100% */
        flex: 1;
        max-width: 180px; /* Ограничиваем максимальную ширину */
    }

    .hero-illustration {
        height: auto; /* Автоматическая высота */
        min-height: 500px; /* Минимальная высота для мобильных */
        width: 100%;
    }

    .phone-mockup {
        width: 100%;
        height: auto;
    }

    .phone-mockup img {
        width: 120%; /* Увеличиваем размер телефона еще больше */
        max-width: 1000px; /* Увеличиваем размер телефона на мобильных */
        height: auto;
    }
}

