/* Features Page Styles */

/* 1. Demo Panel Hero Section */
.demo-panel-hero-section,
.demo-panel-hero {
    max-width: 1700px;
    margin: 0 auto;
    padding: 150px 40px 80px;
    position: relative;
}

.demo-panel-container {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.demo-panel-header {
    text-align: center;
    position: relative;
    z-index: 10;
}

.demo-panel-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 64px;
    font-weight: 600;
    color: white;
    margin: 0 0 24px 0;
    line-height: 1.2;
    text-align: center;
}

.demo-panel-title-accent {
    font-family: 'Square721TL-BoldExtended', 'Arial Black', Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

.demo-panel-subtitle {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: rgba(186, 186, 186, 1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.demo-panel-image-wrapper {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 20px;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.demo-panel-main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.demo-panel-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.demo-panel-description {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 18px;
    color: rgba(186, 186, 186, 1);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* 2. Unity Windows Section */
.unity-windows-section {
    position: relative;
    padding: 80px 0;
    width: 100%;
}

.unity-windows-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: rgba(21, 21, 21, 0.3);
    z-index: -1;
}

.unity-windows-container {
    max-width: 1500px;
    margin: 0 auto;
}

.unity-windows-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.unity-windows-description {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: rgba(186, 186, 186, 1);
    text-align: center;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.unity-windows-subdescription {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 18px;
    color: rgba(186, 186, 186, 0.8);
    text-align: center;
    margin: 0 0 60px 0;
    line-height: 1.6;
}

.unity-windows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.unity-window-card {
    background: rgba(21, 21, 21, 0.8);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@supports (corner-shape: squircle) {
    .unity-window-card {
        corner-shape: squircle;
        border-radius: 40px;
    }
}

.unity-window-card:hover {
    transform: translateY(-5px);
}

.unity-window-image-wrapper {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.unity-window-image {
    width: 100%;
    height: auto;
    display: block;
}

.unity-window-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0 0 12px 0;
}

.unity-window-text {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 1);
    margin: 0;
    line-height: 1.6;
}

/* 3. What's Inside Section */
.whats-inside-section {
    max-width: 1700px;
    margin: 0 auto;
    padding: 80px 40px;
}

.whats-inside-container {
    max-width: 1500px;
    margin: 0 auto;
}

.whats-inside-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.whats-inside-title-accent {
    font-family: 'Square721TL-BoldExtended', 'Arial Black', Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #6468FB 0%, #7F82FF 50%, #B5B7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.whats-inside-subtitle {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: rgba(186, 186, 186, 1);
    text-align: center;
    margin: 0 0 60px 0;
    line-height: 1.6;
}

.whats-inside-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.whats-inside-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: rgba(21, 21, 21, 0.8);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


@supports (corner-shape: squircle) {
    .whats-inside-item {
        corner-shape: squircle;
        border-radius: 40px;
    }
}

.whats-inside-item:hover {
    transform: translateY(-5px);
}

.whats-inside-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.whats-inside-item:hover .whats-inside-icon {
    transform: scale(1.1);
}

.whats-inside-content {
    flex: 1;
}

.whats-inside-item-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.whats-inside-item-text {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 1);
    margin: 0;
    line-height: 1.6;
}

.whats-inside-action {
    text-align: center;
}

/* 4. Integration Steps Section */
.integration-steps-section {
    position: relative;
    padding: 80px 0;
    width: 100%;
}

.integration-steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: rgba(21, 21, 21, 0.3);
    z-index: -1;
}

.integration-steps-container {
    max-width: 1500px;
    margin: 0 auto;
}

.integration-steps-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.integration-steps-subtitle {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: rgba(186, 186, 186, 1);
    text-align: center;
    margin: 0 0 60px 0;
    line-height: 1.6;
}

.integration-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
    position: relative;
    margin-top: 100px;
    padding-top: 20px;
}

.integration-step-card {
    background: rgba(21, 21, 21, 0.8);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

@supports (corner-shape: squircle) {
    .integration-step-card {
        corner-shape: squircle;
        border-radius: 40px;
    }
}

.integration-step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 96px;
    font-weight: 800;
    background: linear-gradient(135deg, #6468FB 0%, #7F82FF 50%, #B5B7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: absolute;
    top: -60px;
    left: 10px;
    z-index: 1;
    letter-spacing: -2px;
    filter: drop-shadow(0 4px 12px rgba(100, 104, 251, 0.4));
    opacity: 0.9;
    margin-bottom: 20px;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
    margin-top: 10px;
}

.step-description {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 1);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.step-image-wrapper {
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}



.step-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.btn-cta-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.btn-cta-icon svg {
    width: 18px;
    height: 18px;
}

/* Разные object-fit для каждого изображения */
.integration-step-card:nth-child(1) .step-image {
    object-fit: contain;
    padding: 20px;
}

.integration-step-card:nth-child(2) .step-image {
    object-fit: contain;
    object-position: bottom;
}

.integration-step-card:nth-child(2) .step-image-wrapper {
    align-items: flex-end;
}

.integration-step-card:nth-child(3) .step-image {
    object-fit: contain;
}

.step-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6468FB 0%, #7F82FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(100, 104, 251, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.step-arrow::before {
    content: '→';
    display: block;
    line-height: 1;
}

.step-checkmark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6468FB 0%, #7F82FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(100, 104, 251, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.step-checkmark::before {
    content: '✓';
    display: block;
    line-height: 1;
    font-size: 20px;
}

/* Responsive для integration steps */
@media (max-width: 1200px) {
    .integration-steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .integration-step-card {
        min-height: auto;
    }
}

/* 5. Features CTA Section */
.features-cta-section {
    max-width: 1700px;
    margin: 0 auto;
    padding: 150px 40px;
}

.features-cta-container {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.features-cta-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: white;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.features-cta-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопки на странице features */
.page-features .btn-primary,
.features-cta-actions .btn-primary,
.demo-panel-content .btn-primary,
.whats-inside-action .btn-primary {
    background: #6468FB;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 18px;
    position: relative;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.page-features .btn-primary:hover,
.features-cta-actions .btn-primary:hover,
.demo-panel-content .btn-primary:hover,
.whats-inside-action .btn-primary:hover {
    background: #5559E8;
    transform: translateY(-2px);
}

.page-features .btn-secondary,
.features-cta-actions .btn-secondary {
    background: rgba(186, 186, 186, 0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 18px;
    position: relative;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.page-features .btn-secondary:hover,
.features-cta-actions .btn-secondary:hover {
    background: rgba(186, 186, 186, 0.2);
    transform: translateY(-2px);
}

.features-cta-actions .btn-arrow {
    font-size: 20px;
    line-height: 1;
}

/* Планшет: отступы от краёв экрана для гридов */
@media (min-width: 769px) and (max-width: 1366px) {
    .unity-windows-section {
        padding-left: 32px;
        padding-right: 32px;
    }
    .integration-steps-section {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Responsive */
@media (max-width: 768px) {

    .demo-panel-header {
        margin-top: 40px;
    }

    .demo-panel-hero-section,
    .demo-panel-hero {
        padding: calc(92px + env(safe-area-inset-top)) 16px 40px;
    }
    
    .demo-panel-title {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.2;
    }
    
    .demo-panel-title-accent {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .demo-panel-subtitle {
        font-size: 16px;
        margin-bottom: 0px;
        line-height: 1.5;
    }
    
    .demo-panel-image-wrapper {
        min-height: 400px;
        margin-bottom: 32px;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
        -webkit-mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-size: 100% 100%;
        mask-repeat: no-repeat;
        mask-composite: intersect;
    }
    
    .demo-panel-main-image {
        width: auto;
        min-width: 140%;
        height: auto;
        min-height: 100%;
        max-width: none;
        object-fit: cover;
    }
    
    .demo-panel-description {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    
    .demo-panel-content .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        justify-content: center;
    }

    .unity-windows-section,
    .whats-inside-section,
    .integration-steps-section,
    .features-cta-section {
        padding: 36px 16px;
    }
    
    .unity-windows-title,
    .whats-inside-title,
    .integration-steps-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .unity-windows-description {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .unity-windows-subdescription {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .unity-windows-grid,
    .whats-inside-list,
    .integration-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }
    
    .unity-window-card {
        padding: 24px 18px;
    }
    
    .unity-window-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .unity-window-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .whats-inside-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .whats-inside-list {
        margin-bottom: 32px;
    }
    
    .whats-inside-item {
        padding: 20px 16px;
        gap: 16px;
    }
    
    .whats-inside-icon {
        width: 56px;
        height: 56px;
    }
    
    .whats-inside-item-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .whats-inside-item-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .whats-inside-action .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        justify-content: center;
    }
    
    .integration-steps-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .integration-steps-grid {
        margin-top: 60px;
        padding-top: 20px;
    }
    
    .integration-step-card {
        min-height: auto;
        padding: 24px 18px;
    }
    
    .step-number {
        font-size: 64px;
        top: -40px;
        left: 8px;
    }
    
    .step-title {
        font-size: 20px;
        margin-bottom: 12px;
        margin-top: 8px;
    }
    
    .step-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .step-image-wrapper {
        height: 220px;
        margin-top: 16px;
    }
    
    .step-arrow {
        display: none;
    }

    .features-cta-title {
        font-size: 24px;
        margin-bottom: 28px;
        line-height: 1.3;
    }

    .features-cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .features-cta-actions .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        justify-content: center;
    }
    
    .features-cta-actions .btn-cta-icon {
        width: 28px;
        height: 28px;
    }
    
    .features-cta-actions .btn-cta-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .demo-panel-title {
        font-size: 24px;
    }
    
    .demo-panel-subtitle {
        font-size: 15px;
    }
    
    .demo-panel-image-wrapper {
        min-height: 350px;
    }
    
    .demo-panel-main-image {
        min-width: 150%;
    }
    
    .unity-windows-title,
    .whats-inside-title,
    .integration-steps-title {
        font-size: 22px;
    }
    
    .features-cta-title {
        font-size: 22px;
    }
    
    .step-number {
        font-size: 56px;
        top: -35px;
    }
    
    .step-image-wrapper {
        height: 200px;
    }
}

