/* General Reset */
body {
    font-family: 'Urbanist', sans-serif;
    margin: 0;
    background: #020818;
    color: #fff;
    height: 100%;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    background: #020818;
    height: 100%;
    width: 100%;
}

/* Page Container */
.page-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background: #020818;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-color: #020818;
    background-image: url('https://trading-botback-storage.s3.us-east-1.amazonaws.com/landing/phone-charts-background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #020818 0%, rgba(2, 8, 24, 0.4) 40%, rgba(2, 8, 24, 0.2) 60%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 80px 120px;
    box-sizing: border-box;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: white;
    max-width: 650px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(42px, 6vw, 80px);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 24px 0;
    line-height: 1.1;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0 0 48px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    align-items: flex-start;
    font-size: clamp(14px, 2vw, 16px);
}

.download-buttons.mobile-buttons {
    display: none;
}

.download-buttons.desktop-buttons {
    display: flex;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    width: 100%;
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 18px);
    box-sizing: border-box;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 64, 224, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-blue {
    background: linear-gradient(90deg, #0196F9, #0040E0);
    color: white;
}

.btn-dark {
    background: linear-gradient(90deg, #1a1e28, #151823);
    color: white;
}

/* Services Section */
.services {
    padding: 100px 120px;
}

.services-container {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.services-header {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #ffffff;
    line-height: 1.2;
    text-align: left;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
}

.service-card {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.service-description {
    font-size: clamp(14px, 1.8vw, 18px);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Insights Section */
.insights {
    padding: 100px 120px;
}

.insights-container {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.insights-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.insights-title-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insights-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #328EFF;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(1, 150, 249, 0.4);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* Индикаторы для мобильных */
.insights-indicators {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background: #328EFF;
    width: 24px;
    border-radius: 4px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active:hover {
    background: #328EFF;
}

.insights-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.insights-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    width: 100%;
}

.insight-card {
    background: #1a1e28;
    padding: 40px;
    border-radius: 20px;
    min-width: 100%;
    flex-shrink: 0;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.insight-card.active {
    opacity: 1;
    transform: translateX(0);
}

.insight-user {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.insight-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.insight-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-name {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.insight-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star {
    color: #FFD700;
    font-size: 20px;
    line-height: 1;
}

.star-empty {
    color: rgba(255, 255, 255, 0.3);
}

.insight-text {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Install & Start Section */
.install-start {
    padding: 100px 120px;
}

.install-start-container {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.install-start-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
}

.install-start-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.robot-mascot {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Адаптивность */

/* Планшеты в альбомной ориентации (до 1200px) */
@media (max-width: 1200px) {

    .services,
    .insights,
    .install-start {
        padding: 70px 60px;
    }

    .services-container {
        gap: 50px;
    }

    .insights-container {
        gap: 50px;
    }
}

/* Планшеты в портретной ориентации (до 1024px) */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero::before {
        background: linear-gradient(to bottom, rgba(2, 8, 24, 0.1) 0%, rgba(2, 8, 24, 0.3) 50%, rgba(2, 8, 24, 0.5) 100%);
    }

    .hero-wrapper {
        padding: 50px 40px;
        align-items: center;
    }

    .hero-content {
        max-width: 60%;
        margin-bottom: 30px;
    }

    .download-buttons {
        max-width: 80%;
        align-items: center;
    }

    .hero-title {
    font-size: clamp(32px, 6vw, 38px);
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(14px, 2.2vw, 14px);
}


    .services,
    .insights,
    .install-start {
        padding: 50px 40px;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-header {
        margin-bottom: 32px;
        text-align: center;
    }

    .services-header .section-title,
    .section-subtitle {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 0;
        text-align: left;
    }

    .service-icon-wrapper {
        margin: 0;
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }

    .insights-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .insights-title-group {
        width: 100%;
        text-align: center;
                flex-direction: column;
        align-items: center;
    }

    .insights-nav.desktop-nav {
        display: none;
    }

    .insights-indicators.mobile-indicators {
        display: flex;
    }

    .insights-carousel {
        width: 100%;
    }

    .insight-card {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .install-start-container {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: center;
    }

    .install-start-content {
        align-items: center;
        max-width: 100%;
        text-align: center;
        order: 1;
    }

    .download-buttons.desktop-buttons {
        display: none;
    }

    .install-start-visual {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .download-buttons.mobile-buttons {
        display: flex;
        width: 100%;
        max-width: 400px;
    }

    .robot-mascot {
        max-width: 70%;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .page-container {
        min-height: calc(100vh - 60px);
    }

    .hero {
        /* padding-top: 60px; */
        padding-bottom: 0;
        min-height: 40vh;
        background-attachment: scroll;
        /* Максимально увеличиваем размер фона с телефонами для крупного отображения */
        background-size: 250% auto;
        /* Позиционируем фон так, чтобы телефоны были в центре и перекрывали кнопки */
        background-position: center 50%;
        background-repeat: no-repeat;
        background-image: url('https://trading-botback-storage.s3.us-east-1.amazonaws.com/landing/phone-charts-background.webp');
    }

    .hero::before {
        background: linear-gradient(to bottom, rgba(2, 8, 24, 0.1) 0%, rgba(2, 8, 24, 0.3) 50%, rgba(2, 8, 24, 0.5) 100%);
    }

    .hero-wrapper {
        /* Максимально компактные отступы для плотной композиции как в дизайне */
        /* padding: 16px 20px 0; */
        /* display: flex; */
        /* flex-direction: column; */
        /* justify-content: flex-start; */
    }

    .hero-content {
        /* align-items: center; */
        /* text-align: center; */
        /* width: 100%;
        max-width: 100%; */
    }

    .hero-title {
        /* font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 8px;
        line-height: 1.1; */
        text-align: center;
    }

    .hero-subtitle {
        /* font-size: clamp(16px, 4vw, 18px);
        margin-bottom: 12px; */
        text-align: center;
        /* line-height: 1.4; */
    }

    .download-buttons {
        gap: 12px;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    /* Кнопки сильно перекрывают нижнюю часть телефонов как в дизайне */
    .hero .download-buttons {
        margin-top: -40px;
        position: relative;
        z-index: 10;
        padding-bottom: 20px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .services,
    .insights,
    .install-start {
        padding: 40px 20px;
    }

    .services {
        padding-top: 50px;
    }

    .insights {
        padding-top: 50px;
    }

    .install-start {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: clamp(14px, 3.5vw, 16px);
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-header {
        margin-bottom: 24px;
        text-align: center;
    }

    .services-header .section-title,
    .section-subtitle {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 0;
        text-align: left;
    }

    .service-icon-wrapper {
        width: 64px;
        height: 64px;
        min-width: 64px;
        margin: 0;
    }

    .service-icon {
        width: 64px;
        height: 64px;
    }

    .service-title {
        font-size: clamp(18px, 4.5vw, 22px);
        margin-bottom: 6px;
    }

    .service-description {
        font-size: clamp(14px, 3.5vw, 16px);
    }

    /* .insights-container {
        grid-template-columns: 1fr;
        gap: 32px;
    } */

    .insights-header {
        gap: 20px;
    }

    .insights-title-group {
        gap: 12px;
        width: 100%;
    }

    .insights-nav.desktop-nav {
        display: none;
    }

    .insights-indicators.mobile-indicators {
        display: flex;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .insights-carousel {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .insights-carousel::-webkit-scrollbar {
        display: none;
    }

    .insights-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-padding: 0 16px;
        padding: 0 16px;
    }

    .insights-track::-webkit-scrollbar {
        display: none;
    }

    .insight-card {
        min-width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        padding: 24px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        opacity: 1;
        transform: translateX(0);
        flex-shrink: 0;
    }

    .insight-card.active {
        opacity: 1;
    }

    .insight-user {
        gap: 12px;
        margin-bottom: 16px;
    }

    .insight-avatar {
        width: 48px;
        height: 48px;
    }

    .insight-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .star {
        font-size: 16px;
    }

    .insight-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .install-start-container {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: center;
    }

    .install-start-content {
        gap: 20px;
        order: 1;
        align-items: center;
        text-align: center;
    }

    .download-buttons.desktop-buttons {
        display: none;
    }

    .install-start-visual {
        width: 100%;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .download-buttons.mobile-buttons {
        display: flex;
        width: 100%;
        max-width: 400px;
    }

    .robot-mascot {
        max-width: 100%;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .page-container {
        min-height: calc(100vh - 56px);
    }

    .hero {
        /* padding-top: 56px; */
        padding-bottom: 0;
        min-height: auto;
        /* Максимально увеличиваем размер фона для маленьких экранов */
        background-size: 280% auto;
        background-position: center 48%;
        background-attachment: scroll;
        background-repeat: no-repeat;
        /* background-image: url('https://trading-botback-storage.s3.us-east-1.amazonaws.com/landing/phone-charts-background.webp'); */
    }

    .hero::before {
        background: linear-gradient(to bottom, rgba(2, 8, 24, 0.1) 0%, rgba(2, 8, 24, 0.3) 50%, rgba(2, 8, 24, 0.5) 100%);
    }

    .hero-wrapper {
        padding: 12px 16px 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.1;
        text-align: center;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 14px;
        text-align: center;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    /* На маленьких экранах кнопки максимально перекрывают телефоны */
    .hero .download-buttons {
        margin-top: -45px;
        position: relative;
        z-index: 10;
        padding-bottom: 16px;
    }

    .services,
    .insights,
    .install-start {
        padding: 32px 16px;
    }

    .services {
        padding-top: 40px;
    }

    .insights {
        padding-top: 40px;
    }

    .install-start {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .services-container {
        gap: 24px;
    }

    .services-header {
        margin-bottom: 20px;
    }

    .services-grid {
        gap: 16px;
    }

    .service-card {
        gap: 12px;
    }

    .service-icon-wrapper {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .insights-container {
        gap: 24px;
    }

    .insights-header {
        gap: 16px;
    }

    .insight-card {
        min-width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        width: calc(100% - 16px);
        padding: 20px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }
}

