/* ============================================
   CaptchaKings.com - Royal Dark Theme Styles
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Royal Color Palette */
    --primary-gold: #FFD700;
    --primary-gold-dark: #DAA520;
    --royal-purple: #4A148C;
    --royal-purple-light: #6A1B9A;
    --dark-bg: #0a0a0f;
    --dark-bg-secondary: #13131a;
    --dark-card: #1a1a24;
    --dark-card-hover: #222230;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #6b6b80;
    --border-color: #2a2a3a;
    --success: #00D97E;
    --danger: #E63946;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-royal: linear-gradient(135deg, #4A148C 0%, #7B1FA2 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(19,19,26,1) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.6);
    --shadow-gold: 0 0 30px rgba(255,215,0,0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Particle Background
   ============================================ */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at top, rgba(74, 20, 140, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.navbar {
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-family: 'Cinzel', serif;
    font-weight: 900;
}

.crown-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.brand-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 50px;
    color: var(--primary-gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--dark-card-hover);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: 100px 0;
    background: var(--dark-bg-secondary);
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-base);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-gold);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--dark-bg);
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 20px;
    margin-top: 5px;
}

.amount {
    font-size: 56px;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    font-size: 18px;
    color: var(--text-muted);
    margin-top: 10px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* ============================================
   Demo Section
   ============================================ */
.demo-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.demo-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-card {
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    margin-bottom: 30px;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-gold);
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.upload-hint {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.preview-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.preview-content img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 12px;
    object-fit: contain;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: var(--dark-bg);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-area {
    background: var(--dark-bg-secondary);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 30px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

.result-icon {
    width: 30px;
    height: 30px;
    background: var(--success);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.result-content label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.result-text {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-meta strong {
    color: var(--primary-gold);
}

.demo-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.info-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.info-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.info-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.code-example {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--dark-bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.code-copy {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}

.code-copy:hover {
    color: var(--primary-gold);
}

.code-example pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 20px 0;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    border-color: var(--primary-gold);
    background: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .upload-area {
        padding: 40px 20px;
        min-height: 250px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .features,
    .pricing,
    .demo-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .crown-icon {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .feature-card,
    .pricing-card,
    .demo-card,
    .info-card {
        padding: 25px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

