/* CocoStudios - Complete Standalone Styles */

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%) !important;
    background-attachment: fixed !important;
    color: #fff;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Force dark background on all sections */
section, .section, .features-section, #features {
    background: transparent !important;
    background-color: transparent !important;
}

/* Override Bootstrap row background */
.row {
    background: transparent !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a12;
}
::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: rgba(255, 255, 255, 0.7);
}

a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #818cf8;
}

ul {
    list-style: none;
}

/* Container Override */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
.header-area {
    background: rgba(15, 15, 26, 0.98);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav li a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.nav li a:hover,
.nav li a.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
}

/* Mobile Menu */
.menu-trigger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-trigger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero / Welcome Area */
.welcome-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.welcome-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #818cf8;
    margin-bottom: 30px;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary-coco {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    border: none;
}

.btn-primary-coco:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-secondary-coco {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-secondary-coco:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #fff;
}

/* Detection Status Badge */
.detection-status {
    text-align: center;
    margin-top: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-clean {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.status-clean .status-dot {
    background: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.status-detected {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.status-detected .status-dot {
    background: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: transparent !important;
    background-color: transparent !important;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title-main {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Feature Cards */
.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.feature-cards > div {
    flex: 0 0 calc(33.333% - 16px);
    max-width: 380px;
}

.feature-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 280px;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
    background: rgba(40, 40, 70, 0.7);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 60px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #818cf8;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* API Key Page Styles */
#apiKey {
    display: inline-block;
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 1.5rem;
    font-family: 'Monaco', 'Consolas', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

#apiKey:hover {
    border-color: #6366f1;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

#copyNotification {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 16px 32px;
    border-radius: 12px;
    z-index: 9999;
}

#copyNotification p {
    color: #818cf8;
    margin: 0;
}

/* API Usage Hint */
.api-usage-hint {
    margin-top: 40px;
    padding: 24px 32px;
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    display: inline-block;
}

.api-usage-hint p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.api-endpoint {
    display: block;
    background: rgba(15, 15, 30, 0.6);
    color: #818cf8;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    word-break: break-all;
}
/* Page Content (Policy pages) */
.page-content {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #fff;
}

.content-block {
    background: rgba(30, 30, 50, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 24px;
}

.content-block h2 {
    font-size: 1.4rem;
    color: #818cf8;
    margin-bottom: 16px;
    font-weight: 700;
}

.content-block p,
.content-block li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.7;
}

.content-block ul {
    padding-left: 24px;
    list-style: disc;
}

.content-block a {
    color: #818cf8;
}

.content-block a:hover {
    color: #a5b4fc;
}

/* Responsive */
@media (max-width: 991px) {
    .menu-trigger {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    }
    
    .nav.open {
        display: flex;
    }
    
    .nav li {
        width: 100%;
    }
    
    .nav li a {
        display: block;
        padding: 15px;
    }
    
    .feature-cards > div {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-coco,
    .btn-secondary-coco {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title-main {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 28px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .content-block {
        padding: 24px;
    }
    
    #apiKey {
        font-size: 1rem;
        padding: 16px 24px;
        word-break: break-all;
    }
}

@media (max-width: 576px) {
    .feature-cards > div {
        flex: 0 0 100%;
    }
}
