/* ==========================================================================
   BOQIN.AI Clean & Minimalist Style Sheet
   ========================================================================== */

:root {
    --bg-dark: #090a0f;
    --bg-card: #12141c;
    --bg-terminal: #090a0f;
    
    --color-primary: #00e5ff;   /* Electric Cyan for accents */
    --color-border: #222533;
    --color-border-hover: #3b4059;
    
    --text-primary: #ffffff;
    --text-muted: #8e95a5;
    --text-dark: #4d5366;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e2029;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}

/* Utility Layouts */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 24px;
}

/* Sublte Grid Background */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -10;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    background: rgba(9, 10, 15, 0.8);
    transition: var(--transition-fast);
}

.nav-container {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}


.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-nav {
    padding: 6px 14px;
    font-size: 0.8rem;
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    background: transparent;
}

.btn-nav:hover {
    color: var(--text-primary);
    border-color: var(--color-border-hover);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: 1px solid var(--text-primary);
    font-weight: 600;
}

.btn-primary:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
}

.btn-secondary {
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.02);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: #12141c;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.title-gradient-1 {
    color: var(--text-primary);
}

.title-gradient-2 {
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
}

/* Section Global Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 32px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.philosophy-card:hover {
    border-color: var(--color-border-hover);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
}

.icon-svg {
    width: 20px;
    height: 20px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-interactive {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.8rem;
}

/* Erudition Mini Component */
.erudition-demo .demo-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    margin-bottom: 8px;
}

.erudition-demo .search-input {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    width: 100%;
    margin-left: 6px;
    outline: none;
}

.erudition-demo .demo-result {
    font-size: 0.7rem;
    line-height: 1.4;
}

.erudition-demo .result-label {
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.erudition-demo .result-text {
    color: var(--text-dark);
}

/* Diligence Mini Component */
.diligence-demo .stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.diligence-demo .stat-label {
    color: var(--text-dark);
}

.diligence-demo .stat-value {
    font-weight: 500;
    color: var(--text-muted);
}

.diligence-demo .progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.diligence-demo .progress-bar {
    height: 100%;
    background: var(--text-muted);
    border-radius: 4px;
}

/* AI Mini Component */
.ai-demo .ai-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ai-demo .flow-node {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-dark);
}

.ai-demo .flow-node.active {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.ai-demo .flow-arrow {
    color: var(--text-dark);
}

.ai-demo .ai-status {
    font-size: 0.7rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-demo .status-indicator {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.blog-card:hover {
    border-color: var(--color-border-hover);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.blog-card-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.blog-tag {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.blog-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-link:hover {
    text-decoration: underline;
}



/* Playground Section */
.playground-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.playground-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.01);
}

.playground-content-area {
    padding: 24px;
}

.playground-panel {
    display: none;
}

.playground-panel.active {
    display: block;
}

.panel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel-input-side, .panel-output-side {
    display: flex;
    flex-direction: column;
}

.panel-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.interactive-input-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.panel-textarea {
    width: 100%;
    min-height: 90px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    resize: none;
    outline: none;
}

.panel-textarea::placeholder {
    color: var(--text-dark);
}

.btn-panel-action {
    align-self: flex-end;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--color-border);
}

.btn-panel-action:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.input-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-tag {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.preset-tag:hover {
    color: var(--text-muted);
    border-color: var(--color-border-hover);
}

.panel-output-box {
    background: #000;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 16px;
    flex-grow: 1;
    min-height: 200px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-y: auto;
}

.panel-output-box.code-output {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #a9b7c6;
}

.output-placeholder {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Contact Section */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.email-link {
    color: var(--text-primary);
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-textarea {
    min-height: 90px;
    resize: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--color-border-hover);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

/* Footer Section */
.main-footer {
    border-top: 1px solid var(--color-border);
    background: #090a0f;
    padding: 32px 0;
    color: var(--text-dark);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-top: 2px;
}

.footer-center {
    display: flex;
    align-items: center;
}

.beian-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.beian-link:hover {
    color: var(--text-muted);
}

.footer-right {
    text-align: right;
    font-size: 0.75rem;
}

.copyright {
    margin-bottom: 2px;
}

.server-info {
    color: var(--text-dark);
}

/* Media Queries for Responsiveness */
@media (max-width: 850px) {
    .panel-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 24px;
    }
    
    .footer-right {
        text-align: left;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: auto;
        padding: 12px 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-section {
        padding-top: 150px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}
