/* ============ FEATURES PAGE SPECIFIC STYLES ============ */

/* Canvas fixed background */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Hero Statement - Big centered text */
.hero-statement {
    font-family: var(--font-main);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    color: var(--ghost-white);
    line-height: 1.3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-statement .highlight-brand {
    color: var(--soft-purple);
    font-weight: 800;
}

/* Nav active state */
.nav a.active { opacity: 1; color: var(--soft-purple); }

/* Section titles */
.section-title { 
    font-family: var(--font-main); 
    font-size: clamp(28px, 5vw, 48px); 
    font-weight: 700; 
    color: var(--ghost-white); 
    margin-bottom: 40px; 
    line-height: 1.2; 
    text-align: center;
}
.section-title span { color: var(--soft-purple); }

/* ============ SCAN SECTION ============ */
.scan-section { text-align: center; padding: 0 20px; }

.scan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    width: 100%;
}

.scan-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--soft-linen);
    border: 2px solid var(--carbon-black);
    padding: 18px 22px;
    text-align: left;
    transition: all 0.2s ease;
    width: calc(50% - 8px);
    box-sizing: border-box;
}
.scan-card:hover {
    box-shadow: 6px 6px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}

.scan-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alabaster-grey);
    border: 2px solid var(--carbon-black);
}
.scan-icon svg { width: 22px; height: 22px; stroke: var(--carbon-black); }

.scan-content h3 {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    color: var(--carbon-black);
    margin-bottom: 4px;
}
.scan-content p {
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============ DETECT SECTION ============ */
.detect-section { text-align: center; padding: 0 20px; }

.detect-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    width: 100%;
    margin-bottom: 30px;
}

.detect-card {
    background: var(--soft-linen);
    border: 2px solid var(--carbon-black);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
    width: calc(20% - 13px);
    min-width: 140px;
    box-sizing: border-box;
}
.detect-card:hover {
    box-shadow: 6px 6px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}

.detect-emoji {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.detect-card h3 {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    color: var(--carbon-black);
    margin-bottom: 6px;
}
.detect-card p {
    font-family: var(--font-main);
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.detect-note {
    font-family: var(--font-main);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}
.detect-note .highlight {
    color: var(--lime-accent);
    font-weight: 600;
}

/* ============ FEATURES SECTION ============ */
.features-section { text-align: center; padding: 0 20px; }

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

.feature-card {
    background: var(--soft-linen);
    border: 2px solid var(--carbon-black);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s ease;
    width: calc(33.333% - 14px);
    min-width: 240px;
    box-sizing: border-box;
}
.feature-card:hover {
    box-shadow: 6px 6px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alabaster-grey);
    border: 2px solid var(--carbon-black);
    margin: 0 auto 20px;
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--carbon-black); }

.feature-card h3 {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--carbon-black);
    margin-bottom: 10px;
}
.feature-card p {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============ FLOW SECTION ============ */
.flow-section { text-align: center; padding: 0 20px; }

.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap;
}

.flow-step {
    background: var(--soft-linen);
    border: 2px solid var(--carbon-black);
    padding: 30px 24px;
    text-align: center;
    max-width: 280px;
    flex: 1;
    min-width: 220px;
    transition: all 0.2s ease;
}
.flow-step:hover {
    box-shadow: 6px 6px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}

.flow-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-purple);
    border: 2px solid var(--carbon-black);
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 700;
    color: var(--carbon-black);
    margin: 0 auto 20px;
}

.flow-step h3 {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--carbon-black);
    margin-bottom: 10px;
}
.flow-step p {
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-arrow svg {
    width: 30px;
    height: 30px;
    stroke: var(--soft-purple);
}

/* ============ DASHBOARD SECTION ============ */
.dashboard-section { text-align: center; padding: 0 20px; }

.dashboard-features {
    display: flex;
    gap: 30px;
    max-width: 800px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.dashboard-column {
    background: var(--soft-linen);
    border: 2px solid var(--carbon-black);
    padding: 30px;
    text-align: left;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    transition: all 0.2s ease;
}
.dashboard-column:hover {
    box-shadow: 6px 6px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}

.dashboard-column h3 {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--carbon-black);
    margin-bottom: 16px;
}

.dashboard-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-column li {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(44, 42, 74, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dashboard-column li:last-child { border-bottom: none; }
.dashboard-column li::before {
    content: '→';
    color: var(--soft-purple);
    font-weight: bold;
}

/* ============ CTA SECTION ============ */
.cta-section { text-align: center; padding: 0 20px; }

.cta-title {
    color: var(--ghost-white) !important;
    font-size: clamp(36px, 6vw, 64px) !important;
}

.cta-subtitle {
    font-family: var(--font-main);
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--soft-purple);
    border: 2px solid var(--carbon-black);
    color: var(--carbon-black);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 40px;
}
.cta-button:hover {
    background: var(--lime-accent);
    box-shadow: 6px 6px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}
.cta-button svg { width: 20px; height: 20px; stroke: var(--carbon-black); }

.cta-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ============ RESPONSIVE ============ */

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1001;
    width: 40px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.menu-toggle.visible {
    opacity: 1;
    transform: translateY(0);
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ghost-white);
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tablet */
@media (max-width: 991px) {
    .hero-statement { font-size: clamp(24px, 4vw, 40px); max-width: 700px; }
    
    /* Section titles smaller on tablet */
    .scan-section .section-title,
    .detect-section .section-title,
    .features-section .section-title,
    .flow-section .section-title,
    .dashboard-section .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    /* Scan cards - 2 per row */
    .scan-grid { gap: 10px; }
    .scan-card { 
        width: calc(50% - 5px); 
        padding: 12px 14px;
        gap: 10px;
    }
    .scan-icon { width: 34px; height: 34px; min-width: 34px; }
    .scan-icon svg { width: 17px; height: 17px; }
    .scan-content h3 { font-size: 12px; }
    .scan-content p { font-size: 10px; }
    
    /* Detect cards - 4 per row */
    .detect-grid { gap: 10px; }
    .detect-card { 
        width: calc(25% - 8px); 
        padding: 14px 10px;
    }
    .detect-emoji { font-size: 22px; margin-bottom: 6px; }
    .detect-card h3 { font-size: 11px; }
    .detect-card p { font-size: 9px; }
    
    /* Feature cards - 3 per row, compact */
    .features-grid { gap: 10px; }
    .feature-card { 
        width: calc(33.33% - 7px); 
        padding: 16px 12px;
    }
    .feature-icon { width: 38px; height: 38px; margin-bottom: 10px; }
    .feature-icon svg { width: 19px; height: 19px; }
    .feature-card h3 { font-size: 12px; margin-bottom: 6px; }
    .feature-card p { font-size: 10px; }
    
    /* Flow - compact */
    .flow-container { gap: 12px; }
    .flow-step { padding: 18px 14px; }
    .flow-number { width: 38px; height: 38px; font-size: 18px; margin-bottom: 10px; }
    .flow-step h3 { font-size: 13px; }
    .flow-step p { font-size: 10px; }
    .flow-arrow svg { width: 22px; height: 22px; }
    
    /* Dashboard - compact */
    .dashboard-features { gap: 14px; }
    .dashboard-column { padding: 18px 16px; }
    .dashboard-column h3 { font-size: 13px; margin-bottom: 12px; }
    .dashboard-column li { font-size: 11px; padding: 5px 0; }
}

/* Mobile */
@media (max-width: 767px) {
    /* Show hamburger, hide nav by default */
    .menu-toggle { display: flex; }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(3, 3, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 60px 20px;
        transition: right 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
        border-left: 2px solid var(--soft-purple);
    }
    .nav.visible { opacity: 1; transform: translateY(0); }
    .nav.open { right: 0; }
    .nav a { font-size: 14px; opacity: 0.8; }
    .nav a:hover, .nav a.active { opacity: 1; }
    
    /* Logo and hamburger alignment */
    .logo { top: 20px; left: 20px; }
    .nav-logo-img { height: 32px; }
    .menu-toggle { top: 20px; right: 20px; height: 32px; }
    
    /* Grids */
    .scan-grid, .detect-grid, .features-grid { 
        max-width: 100%; 
        gap: 8px;
    }
    
    /* Section titles */
    .scan-section .section-title,
    .detect-section .section-title,
    .features-section .section-title,
    .flow-section .section-title,
    .dashboard-section .section-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .scan-section .section-tag,
    .detect-section .section-tag,
    .features-section .section-tag,
    .flow-section .section-tag,
    .dashboard-section .section-tag {
        margin-bottom: 10px;
        font-size: 10px;
    }
    
    /* Scan cards - 2 per row */
    .scan-card { 
        width: calc(50% - 4px); 
        padding: 10px 12px;
        gap: 10px;
    }
    .scan-icon { width: 32px; height: 32px; min-width: 32px; }
    .scan-icon svg { width: 16px; height: 16px; }
    .scan-content h3 { font-size: 11px; margin-bottom: 2px; }
    .scan-content p { font-size: 9px; }
    
    /* Detect cards - 3 per row */
    .detect-card { 
        width: calc(33.33% - 6px); 
        padding: 12px 10px;
    }
    .detect-emoji { font-size: 20px; margin-bottom: 6px; }
    .detect-card h3 { font-size: 10px; margin-bottom: 3px; }
    .detect-card p { font-size: 8px; line-height: 1.2; }
    .detect-note { font-size: 11px; margin-top: 12px; }
    
    /* Feature cards - 2 per row */
    .feature-card { 
        width: calc(50% - 4px); 
        padding: 14px 12px;
    }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 10px; }
    .feature-icon svg { width: 18px; height: 18px; }
    .feature-card h3 { font-size: 11px; margin-bottom: 5px; }
    .feature-card p { font-size: 9px; line-height: 1.3; }
    
    /* How It Works - horizontal compact */
    .flow-container { 
        flex-direction: row; 
        flex-wrap: nowrap;
        gap: 8px; 
        max-width: 100%;
        justify-content: center;
    }
    .flow-step { 
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
    }
    .flow-number { 
        width: 32px; 
        height: 32px; 
        font-size: 16px; 
        margin-bottom: 8px; 
    }
    .flow-step h3 { font-size: 10px; margin-bottom: 4px; }
    .flow-step p { font-size: 8px; line-height: 1.3; }
    .flow-arrow { display: none; }
    
    /* Dashboard - 2 columns side by side compact */
    .dashboard-features { 
        flex-direction: row; 
        gap: 10px;
        max-width: 100%;
    }
    .dashboard-column { 
        flex: 1;
        min-width: 0;
        padding: 14px 12px;
    }
    .dashboard-column h3 { font-size: 11px; margin-bottom: 10px; }
    .dashboard-column ul { padding: 0; }
    .dashboard-column li { 
        font-size: 9px; 
        padding: 4px 0; 
        gap: 6px;
    }
    .dashboard-column li::before { font-size: 10px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo { top: 15px; left: 15px; }
    .nav-logo-img { height: 28px; }
    .menu-toggle { top: 15px; right: 15px; height: 28px; }
    
    .scan-section .section-title,
    .detect-section .section-title,
    .features-section .section-title,
    .flow-section .section-title,
    .dashboard-section .section-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    /* Scan cards */
    .scan-card { padding: 8px 10px; gap: 8px; }
    .scan-icon { width: 28px; height: 28px; min-width: 28px; }
    .scan-icon svg { width: 14px; height: 14px; }
    .scan-content h3 { font-size: 10px; }
    .scan-content p { font-size: 8px; }
    
    /* Detect cards */
    .detect-card { padding: 10px 8px; }
    .detect-emoji { font-size: 18px; margin-bottom: 4px; }
    .detect-card h3 { font-size: 9px; }
    .detect-card p { font-size: 7px; }
    
    /* Feature cards */
    .feature-card { padding: 12px 10px; }
    .feature-icon { width: 32px; height: 32px; margin-bottom: 8px; }
    .feature-icon svg { width: 16px; height: 16px; }
    .feature-card h3 { font-size: 10px; margin-bottom: 4px; }
    .feature-card p { font-size: 8px; }
    
    /* Flow */
    .flow-step { padding: 10px 6px; }
    .flow-number { width: 28px; height: 28px; font-size: 14px; margin-bottom: 6px; }
    .flow-step h3 { font-size: 9px; }
    .flow-step p { font-size: 7px; }
    
    /* Dashboard */
    .dashboard-column { padding: 12px 10px; }
    .dashboard-column h3 { font-size: 10px; margin-bottom: 8px; }
    .dashboard-column li { font-size: 8px; padding: 3px 0; }
}

/* Very Small Mobile */
@media (max-width: 320px) {
    .logo { top: 12px; left: 12px; }
    .nav-logo-img { height: 22px; }
    .menu-toggle { top: 12px; right: 12px; width: 30px; height: 22px; }
    .menu-toggle span { width: 20px; }
    
    .scan-section .section-title,
    .detect-section .section-title,
    .features-section .section-title,
    .flow-section .section-title,
    .dashboard-section .section-title {
        font-size: 18px;
    }
    
    .scan-card { padding: 6px 8px; gap: 6px; }
    .scan-icon { width: 24px; height: 24px; min-width: 24px; }
    .scan-content h3 { font-size: 9px; }
    .scan-content p { font-size: 7px; }
    
    .detect-card { padding: 8px 6px; }
    .detect-emoji { font-size: 16px; }
    .detect-card h3 { font-size: 8px; }
    .detect-card p { display: none; }
    
    .feature-card { padding: 10px 8px; }
    .feature-icon { width: 28px; height: 28px; }
    .feature-card h3 { font-size: 9px; }
    .feature-card p { font-size: 7px; }
    
    .flow-step { padding: 8px 5px; }
    .flow-number { width: 24px; height: 24px; font-size: 12px; }
    .flow-step h3 { font-size: 8px; }
    .flow-step p { font-size: 6px; }
    
    .dashboard-column { padding: 10px 8px; }
    .dashboard-column h3 { font-size: 9px; }
    .dashboard-column li { font-size: 7px; }
}
