/* Featurescape Page Styles */

/* Hero Section - Players Style */
.featurescape-hero {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #7c3aed 100%);
    border-bottom: 2px solid #8b5cf6;
    overflow: hidden;
    padding: 120px 24px 80px;
}

/* Dot pattern background */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 2px 2px, #a78bfa 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Floating Feature Cards */
.hero-floating-cards {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
    z-index: 0;
}

.floating-feature-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
}

.floating-feature-card-1 {
    top: 15%;
    right: 8%;
    animation: floatCard1 8s ease-in-out infinite;
}

.floating-feature-card-2 {
    top: 40%;
    right: 25%;
    animation: floatCard2 10s ease-in-out infinite;
    opacity: 0.85;
}

.floating-feature-card-3 {
    top: 65%;
    right: 12%;
    animation: floatCard3 12s ease-in-out infinite;
    opacity: 0.7;
}

.floating-feature-card-4 {
    top: 30%;
    right: 5%;
    animation: floatCard4 9s ease-in-out infinite;
    opacity: 0.75;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

@keyframes floatCard4 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-18px) rotate(-2deg); }
}

.floating-card-visual {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-card-visual.streaming { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.floating-card-visual.apps { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.floating-card-visual.analytics { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.floating-card-visual.monetization { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.floating-card-visual.automation { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.floating-card-visual.engagement { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.floating-card-visual.players { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.floating-card-visual.smart { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }

.floating-card-visual svg {
    width: 28px;
    height: 28px;
    color: white;
}

.floating-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-card-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.floating-card-sublabel {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .hero-floating-cards {
        display: none;
    }
}

.featurescape-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: left;
    padding-left: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    margin-bottom: 28px;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    color: #c4b5fd;
}

.hero-badge span {
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featurescape-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin: 0 0 24px 0;
    line-height: 1.1;
    max-width: 700px;
}

.gradient-text {
    background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.featurescape-subtitle {
    font-size: 20px;
    color: #cbd5e1;
    margin: 0 0 32px 0;
    line-height: 1.6;
    max-width: 700px;
}

/* Header Highlights */
.header-highlights {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.header-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.header-highlight svg {
    width: 20px;
    height: 20px;
    color: #c4b5fd;
}

.header-highlight span {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary-large {
    padding: 16px 36px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s;
    text-decoration: none;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
    text-decoration: none;
}

.btn-primary-large:visited,
.btn-primary-large:active,
.btn-primary-large:focus {
    color: white;
    text-decoration: none;
}

.btn-secondary-large {
    padding: 16px 36px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary-large:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn-secondary-large:visited,
.btn-secondary-large:active,
.btn-secondary-large:focus {
    color: white;
    text-decoration: none;
}

/* Legacy stat cards - keep for compatibility but update styles */
.hero-stats {
    display: none;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Feature Map Section */
.feature-map-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.feature-map-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 15px 0;
}

.section-subtitle {
    font-size: 18px;
    color: #718096;
    margin: 0;
}

.feature-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.platform-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--category-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover::before,
.category-card:focus::before {
    transform: scaleX(1);
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--category-color);
}

.category-card:focus {
    outline: 2px solid var(--category-color);
    outline-offset: 4px;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--category-gradient);
    color: white;
}

.category-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.category-description {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.category-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--category-color);
}

/* Feature Modal */
.feature-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.modal-header {
    padding: 50px 50px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.modal-platform {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-right: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.modal-body {
    padding: 40px 50px 50px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.feature-list {
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.feature-icon-small {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px 0;
}

.feature-content p {
    font-size: 15px;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

/* Comparison Section */
.comparison-section {
    padding: 100px 20px;
    background: white;
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.comparison-container h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 15px 0;
}

.comparison-container .section-subtitle {
    margin-bottom: 60px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    text-align: left;
}

.comparison-card {
    padding: 40px;
    background: #f7fafc;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.comparison-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.comparison-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.comparison-card p {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.featurescape-cta {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.featurescape-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.featurescape-cta h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
}

.featurescape-cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 40px 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid white;
    outline-offset: 4px;
}

.cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featurescape-hero {
        padding: 100px 20px 60px;
    }

    .featurescape-title {
        font-size: 36px;
    }

    .featurescape-subtitle {
        font-size: 17px;
    }

    .header-highlights {
        flex-direction: column;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-card {
        padding: 20px 30px;
        min-width: 120px;
    }

    .stat-number {
        font-size: 36px;
    }

    .feature-map-section,
    .comparison-section,
    .featurescape-cta {
        padding: 60px 20px;
    }

    .feature-categories {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 30px;
    }

    .modal-content {
        margin: 20px;
    }

    .modal-header,
    .modal-body {
        padding: 30px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .featurescape-hero {
        padding: 90px 16px 50px;
    }

    .hero-badge {
        padding: 6px 14px;
    }

    .hero-badge span {
        font-size: 11px;
    }

    .featurescape-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .featurescape-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-card {
        padding: 16px 20px;
        min-width: auto;
        width: 100%;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .feature-map-section,
    .comparison-section,
    .featurescape-cta {
        padding: 40px 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    .category-card {
        padding: 24px;
    }

    .category-title {
        font-size: 18px;
    }

    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-description {
        font-size: 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keyboard Navigation */
.category-card:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 4px;
}
