/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 120px;
    }
    
    .footer-copyright {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .footer-copyright p {
        margin: 0 !important;
    }
    
    .maker-gully-footer-link img {
        width: 28px !important;
        height: 28px !important;
    }
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Mobile-specific optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
    -webkit-appearance: none;
    border-radius: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1d1d1f;
    text-decoration: none;
}

.logo-text {
    display: flex;
    align-items: baseline;
}

.logo-subtext {
    font-size: 0.75em;
    color: #6e6e73;
    font-weight: 400;
    margin-left: 0.25em;
}

.maker-gully-logo {
    height: 32px;
    width: auto;
    margin-left: 0.5rem;
    transition: opacity 0.2s ease;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.maker-gully-logo:hover {
    opacity: 1;
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: #ff0080; /* Neon pink */
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6e6e73;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0080, #ff6b9d); /* Neon pink gradient */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #ff6b9d, #ff4d7a);
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
    opacity: 0.6;
    transform: none;
}

.coming-soon {
    font-size: 0.9rem;
    color: #6e6e73;
    font-style: italic;
    margin: 0;
}

.phone-image {
    max-width: 100%;
    height: auto;
    width: 280px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #ffffff;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1d1d1f;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #ff0080, #ff6b9d); /* Neon pink */
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #00d4ff, #0099cc); /* Neon cyan */
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #ffd700, #ffb347); /* Neon yellow */
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #00ff88, #00cc6a); /* Neon green */
}

.feature-card:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, #ff0080, #ff6b9d); /* Neon pink */
}

.feature-card:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, #00d4ff, #0099cc); /* Neon cyan */
}

.feature-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.feature-card p {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 1rem;
}

/* Only fade out Font Awesome icons for cards that have PNG images */
.feature-card:nth-child(1):hover .feature-icon i,
.feature-card:nth-child(2):hover .feature-icon i,
.feature-card:nth-child(3):hover .feature-icon i,
.feature-card:nth-child(4):hover .feature-icon i,
.feature-card:nth-child(6):hover .feature-icon i {
    opacity: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1d1d1f;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0080, #ff6b9d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.step-content p {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 1rem;
}

/* App Tabs Section */
.app-tabs {
    padding: 6rem 0;
    background: #ffffff;
}

.app-tabs h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1d1d1f;
}

.tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tab-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.tab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tab-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tab-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

.tab-card:nth-child(1) .tab-icon {
    background: linear-gradient(135deg, #ff0080, #ff6b9d); /* Neon pink */
}

.tab-card:nth-child(2) .tab-icon {
    background: linear-gradient(135deg, #00d4ff, #0099cc); /* Neon cyan */
}

.tab-card:nth-child(3) .tab-icon {
    background: linear-gradient(135deg, #ffd700, #ffb347); /* Neon yellow */
}

.tab-card:nth-child(4) .tab-icon {
    background: linear-gradient(135deg, #00ff88, #00cc6a); /* Neon green */
}

.tab-card:nth-child(5) .tab-icon {
    background: linear-gradient(135deg, #ff0080, #ff6b9d); /* Neon pink */
}

.tab-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.tab-card p {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 1rem;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1d1d1f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ff0080, #ff6b9d);
    color: #ffffff;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cta .btn-primary {
    background: #ffffff;
    color: #ff0080;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.cta .coming-soon {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e7;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #6e6e73;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ff0080;
}

.footer-copyright {
    text-align: center;
    color: #6e6e73;
    font-size: 0.9rem;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.download-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.download-stats .stat-item {
    text-align: center;
}

.download-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
}

.download-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.geometric-demo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.demo-shapes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 200px;
    height: 200px;
}

.demo-shape {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    animation: shapeRotate 3s ease-in-out infinite;
}

.demo-shape.square {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.demo-shape.triangle {
    background: rgba(255, 255, 255, 0.2);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.demo-shape.circle {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.demo-shape.hexagon {
    background: rgba(255, 255, 255, 0.2);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

@keyframes shapeRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.download-actions {
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #667eea;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid,
    .steps,
    .tabs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .step,
    .tab-card {
        padding: 1.5rem;
    }
    
    .features h2,
    .how-it-works h2,
    .app-tabs h2,
    .cta h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .phone-image {
        width: 240px;
    }
    
    .btn {
        min-width: 180px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0 4rem;
    }
    
    .features,
    .how-it-works,
    .app-tabs,
    .cta {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features h2,
    .how-it-works h2,
    .app-tabs h2,
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .phone-image {
        width: 200px;
    }
    
    .feature-card,
    .step,
    .tab-card {
        padding: 1.25rem;
    }
    
    .feature-icon,
    .tab-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Mobile-specific PNG image visibility */
@media (max-width: 768px) {
    .feature-card:nth-child(1) .feature-icon-img,
    .feature-card:nth-child(2) .feature-icon-img,
    .feature-card:nth-child(3) .feature-icon-img,
    .feature-card:nth-child(4) .feature-icon-img,
    .feature-card:nth-child(6) .feature-icon-img {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    
    .feature-card:nth-child(1) .feature-icon i,
    .feature-card:nth-child(2) .feature-icon i,
    .feature-card:nth-child(3) .feature-icon i,
    .feature-card:nth-child(4) .feature-icon i,
    .feature-card:nth-child(6) .feature-icon i {
        opacity: 0;
    }
}

/* New Spatial Patch Visual Design */

/* Hero Section - Technical Geometric Design */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.geometric-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.geometric-grid {
    position: absolute;
    width: 100%;
    height: 100%;
}

.grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    animation: gridPulse 4s ease-in-out infinite;
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

.line-1 { top: 25%; animation-delay: 0s; }
.line-2 { top: 50%; animation-delay: 0.5s; }
.line-3 { top: 75%; animation-delay: 1s; }
.line-4 { left: 25%; animation-delay: 1.5s; }
.line-5 { left: 50%; animation-delay: 2s; }
.line-6 { left: 75%; animation-delay: 2.5s; }

@keyframes gridPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: floatGeometric 8s ease-in-out infinite;
    opacity: 0.6;
}

.square-shape {
    top: 20%; left: 15%;
    background: #ff0080;
    animation-delay: 0s;
}

.triangle-shape {
    top: 30%; right: 20%;
    background: #00d4ff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 1s;
}

.circle-shape {
    top: 60%; left: 25%;
    background: #00ff88;
    border-radius: 50%;
    animation-delay: 2s;
}

.hexagon-shape {
    top: 70%; right: 30%;
    background: #ffaa00;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: 3s;
}

.diamond-shape {
    top: 40%; left: 70%;
    background: #ff6b9d;
    transform: rotate(45deg);
    animation-delay: 4s;
}

@keyframes floatGeometric {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(90deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    margin-bottom: 24px;
}

.title-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 32px rgba(255, 0, 128, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 128, 0.4);
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.stars {
    color: #ffd700;
    font-size: 1.1rem;
}

/* Algorithm Overview Section */
.algorithm-overview {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

.algorithm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.algorithm-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.algorithm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.algorithm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
}

.algorithm-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.algorithm-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.algorithm-card p {
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 20px;
}

.algorithm-stats {
    display: flex;
    gap: 8px;
}

.algorithm-stats .stat {
    background: #f0f0f0;
    color: #6e6e73;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Mastery Matrix Section */
.mastery-matrix {
    padding: 100px 0;
    background: white;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.matrix-level {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e5e7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.matrix-level:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.matrix-level.starter { border-left: 4px solid #00d4ff; }
.matrix-level.junior { border-left: 4px solid #00ff88; }
.matrix-level.expert { border-left: 4px solid #ffaa00; }
.matrix-level.master { border-left: 4px solid #ff6b9d; }
.matrix-level.wizard { border-left: 4px solid #ff0080; }

.level-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.level-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.starter .level-icon { background: #00d4ff; }
.junior .level-icon { background: #00ff88; }
.expert .level-icon { background: #ffaa00; }
.master .level-icon { background: #ff6b9d; }
.wizard .level-icon { background: #ff0080; }

.level-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.level-code {
    font-size: 0.8rem;
    color: #6e6e73;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.level-description p {
    color: #6e6e73;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.level-metrics {
    display: flex;
    gap: 16px;
}

.level-metrics .metric {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e7;
}

.metric-label {
    display: block;
    font-size: 0.7rem;
    color: #6e6e73;
    margin-bottom: 4px;
}

.metric-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Cognitive Benefits Section */
.cognitive-benefits {
    padding: 100px 0;
    background: #f8f9fa;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.benefits-intro {
    font-size: 1.2rem;
    color: #6e6e73;
    margin-bottom: 40px;
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e7;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.benefit-content p {
    color: #6e6e73;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cognitive-demo {
    position: relative;
    width: 200px;
    height: 200px;
}

.brain-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.neural-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    border-radius: 50%;
    animation: nodePulse 3s ease-in-out infinite;
}

.node-1 { top: 20%; left: 20%; animation-delay: 0s; }
.node-2 { top: 20%; right: 20%; animation-delay: 0.5s; }
.node-3 { bottom: 20%; left: 20%; animation-delay: 1s; }
.node-4 { bottom: 20%; right: 20%; animation-delay: 1.5s; }

.neural-connection {
    position: absolute;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    height: 2px;
    animation: connectionFlow 4s ease-in-out infinite;
}

.conn-1 {
    top: 30%;
    left: 20%;
    width: 60%;
    animation-delay: 0s;
}

.conn-2 {
    top: 30%;
    right: 20%;
    width: 60%;
    animation-delay: 1s;
}

.conn-3 {
    bottom: 30%;
    left: 20%;
    width: 60%;
    animation-delay: 2s;
}

.conn-4 {
    bottom: 30%;
    right: 20%;
    width: 60%;
    animation-delay: 3s;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes connectionFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .hero-metrics {
        gap: 20px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .algorithm-grid {
        grid-template-columns: 1fr;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .download-text h2 {
        font-size: 2rem;
    }
    
    .download-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .demo-shapes {
        width: 150px;
        height: 150px;
    }
}

.challenge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.challenge-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.challenge-intro {
    font-size: 1.2rem;
    color: #6e6e73;
    margin-bottom: 40px;
    line-height: 1.6;
}

.challenge-aspects {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aspect {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e7;
}

.aspect-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0080, #ff6b9d);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aspect-icon i {
    font-size: 1.5rem;
    color: white;
}

.aspect-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.aspect-content p {
    color: #6e6e73;
    line-height: 1.5;
}

.challenge-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.geometry-demo {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.shape-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 200px;
    height: 200px;
}

.shape {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.shape.square {
    background: linear-gradient(135deg, #ff0080, #ff6b9d);
}

.shape.triangle {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape.circle {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    border-radius: 50%;
}

.shape.hexagon {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Mastery Levels Section */
.mastery-levels {
    padding: 80px 0;
    background: white;
}

.mastery-levels h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 16px;
}

.mastery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.mastery-card {
    padding: 32px 24px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e5e5e7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mastery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.mastery-card.starter {
    border-left: 4px solid #00d4ff;
}

.mastery-card.junior {
    border-left: 4px solid #00ff88;
}

.mastery-card.expert {
    border-left: 4px solid #ffaa00;
}

.mastery-card.master {
    border-left: 4px solid #ff6b9d;
}

.mastery-card.wizard {
    border-left: 4px solid #ff0080;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.level-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.starter .level-icon {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
}

.junior .level-icon {
    background: linear-gradient(135deg, #00ff88, #00cc66);
}

.expert .level-icon {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
}

.master .level-icon {
    background: linear-gradient(135deg, #ff6b9d, #ff4d7a);
}

.wizard .level-icon {
    background: linear-gradient(135deg, #ff0080, #cc0066);
}

.level-icon i {
    font-size: 1.5rem;
    color: white;
}

.level-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.level-desc {
    font-size: 0.9rem;
    color: #6e6e73;
    font-weight: 500;
}

.mastery-card p {
    color: #6e6e73;
    line-height: 1.5;
    margin-bottom: 24px;
}

.level-stats {
    display: flex;
    gap: 16px;
}

.level-stats .stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e7;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: #6e6e73;
}

/* Technical Features Section */
.technical-features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.features-intro {
    font-size: 1.2rem;
    color: #6e6e73;
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e7;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0080, #ff6b9d);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: white;
}

.highlight-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.highlight-content p {
    color: #6e6e73;
    line-height: 1.5;
}

.features-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e7;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ff0080;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    color: #6e6e73;
    font-weight: 500;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .challenge-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .challenge-text h2 {
        font-size: 2rem;
    }
    
    .shape-grid {
        width: 150px;
        height: 150px;
    }
    
    .mastery-grid {
        grid-template-columns: 1fr;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-text h2 {
        font-size: 2rem;
    }
}
