/* CSS Variables */
:root {
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #111111;
    --border-color: #222222;
    --border-hover: #333333;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --brand-accent: #3b82f6;
    --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --glow-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Glow */
.ambient-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.logo img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 60px 5% 40px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.hero-icon {
    font-size: 64px;
    color: var(--brand-accent);
    margin-bottom: 24px;
    display: inline-block;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge-separator {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(16, 185, 129, 0.3);
    margin: 0 8px;
}

/* Tool Container */
.tool-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(20, 20, 30, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-wrapper input {
    flex: 1;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-color);
    color: var(--brand-accent);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-action {
    padding: 10px 16px;
    font-size: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-color);
    color: var(--brand-accent);
}

.btn-action:hover {
    background: rgba(59, 130, 246, 0.2);
}

.input-hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--brand-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-state i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 20px;
}

.error-state h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
}

/* Code Section */
.code-section {
    background: rgba(5, 5, 10, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.code-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.code-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.file-name {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-actions {
    display: flex;
    gap: 8px;
}

/* Code Viewer */
.code-viewer {
    position: relative;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
}

.code-viewer pre {
    margin: 0;
    padding: 20px;
    background: transparent;
}

.code-viewer code {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Syntax Highlighting */
.hljs {
    background: transparent !important;
    padding: 0 !important;
}

.hljs-tag { color: #ef4444; }
.hljs-attr { color: #3b82f6; }
.hljs-string { color: #10b981; }
.hljs-number { color: #f59e0b; }

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success-color);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
    z-index: 999;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Content Sections */
.content-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 i {
    color: var(--brand-accent);
}

.content-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: justify;
}

/* Info Section */
.info-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.info-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-section h2 i {
    color: var(--brand-accent);
}

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

.step-card {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(20, 20, 30, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--brand-gradient);
    color: white;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.use-cases-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.use-cases-section h2 i {
    color: var(--brand-accent);
}

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

.use-case-card {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(20, 20, 30, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.use-case-card i {
    font-size: 36px;
    color: var(--brand-accent);
    margin-bottom: 16px;
    display: block;
}

.use-case-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Comparison Section - Box Table Style */
.comparison-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.comparison-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.comparison-section h2 i {
    color: var(--brand-accent);
}

.comparison-table {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(20, 20, 30, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 14px;
    padding: 16px 20px;
    gap: 12px;
    color: var(--brand-accent);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    padding: 14px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.feature {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.comparison-row div:not(.feature) {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-row i.fa-check-circle {
    color: var(--success-color);
}

.comparison-row i.fa-times-circle {
    color: #ef4444;
}

.comparison-row i.fa-dollar-sign,
.comparison-row i.fa-chart-line,
.comparison-row i.fa-star,
.comparison-row i.fa-bolt,
.comparison-row i.fa-triangle-exclamation {
    color: var(--brand-accent);
}

/* Responsive Comparison Table */
@media (max-width: 768px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .feature {
        font-weight: 700;
        margin-bottom: 6px;
        font-size: 15px;
    }

    .comparison-row div:not(.feature) {
        padding-left: 24px;
        font-size: 14px;
    }
}

/* FAQ Section - Wider */
.faq-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.faq-section h2 i {
    color: var(--brand-accent);
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    background: rgba(15, 15, 15, 0.5);
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 500;
}

.faq-question:hover {
    background: rgba(20, 20, 30, 0.8);
}

.faq-question i:first-child {
    color: var(--brand-accent);
    margin-right: 12px;
}

.faq-question i:last-child {
    transition: transform 0.3s ease;
    color: var(--brand-accent);
}

.faq-answer {
    background: rgba(10, 10, 10, 0.8);
    padding: 20px 24px;
    color: var(--text-secondary);
    display: none;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-section h2 i {
    color: var(--brand-accent);
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(5, 5, 10, 0.9) 100%);
    border-top: 1px solid var(--border-color);
    padding: 50px 5%;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-top {
    text-align: center;
}

.footer-brand {
    font-size: 18px;
    font-weight: 700;
}

.footer-brand span {
    color: var(--brand-accent);
}

.footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-email {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-email:hover {
    color: var(--brand-accent);
}

.footer-contact {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-contact a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact a:hover {
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--brand-accent);
}

.footer-links .separator {
    color: var(--border-color);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
}

.social-icons a:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.1);
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        padding: 16px 4%;
    }
    
    .logo-text {
        font-size: 16px;
    }

    main {
        padding: 40px 4% 30px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .tool-container {
        padding: 24px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .code-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .code-viewer {
        max-height: 400px;
    }

    .footer-content {
        gap: 24px;
    }

    .copy-notification {
        bottom: 20px;
        right: 20px;
        font-size: 12px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .steps, .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .social-icons {
        gap: 12px;
    }
}