/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No script message */
.noscript-message {
    max-width: 600px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

/* Hero section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.rotating-examples {
    width: 100%;
    max-width: 500px;
}

.example-window {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 400px;
}

.window-header {
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e1e5e9;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27ca3f;
}

.window-title {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.example-content {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

/* Cursor-like Interface */
.cursor-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

.command-palette {
    background: #2d2d2d;
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.command-input {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.command-icon {
    color: #569cd6;
    font-size: 16px;
}

.command-text {
    color: #d4d4d4;
    flex: 1;
}

.command-cursor {
    color: #569cd6;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(86, 156, 214, 0.1);
    border-left: 3px solid #569cd6;
    border-radius: 4px;
    font-size: 13px;
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #569cd6;
    border-radius: 50%;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.dot.active {
    opacity: 1;
}

.thinking-text {
    color: #d4d4d4;
    font-style: italic;
}

.results-panel {
    flex: 1;
    background: #252526;
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    overflow: hidden;
}

.results-header {
    background: #2d2d2d;
    padding: 8px 16px;
    border-bottom: 1px solid #3e3e3e;
    font-size: 12px;
    color: #cccccc;
}

.results-count {
    font-weight: 600;
}

.results-list {
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #2d2d2d;
    border: 1px solid #3e3e3e;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: #333333;
    border-color: #569cd6;
}

.result-item.selected {
    background: rgba(86, 156, 214, 0.15);
    border-color: #569cd6;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: #569cd6;
    font-size: 14px;
    margin-bottom: 4px;
}

.result-description {
    color: #cccccc;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.result-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11px;
}

.provider {
    color: #9cdcfe;
    background: rgba(156, 220, 254, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.status {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

.status.ready {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.result-actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background: #569cd6;
    color: white;
}

.action-btn.primary:hover {
    background: #4a8bc2;
}

.action-btn.secondary {
    background: transparent;
    color: #cccccc;
    border: 1px solid #3e3e3e;
}

.action-btn.secondary:hover {
    background: #3e3e3e;
}

.action-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
    border-radius: 4px;
    font-size: 13px;
}

.status-icon {
    color: #4caf50;
    font-size: 14px;
}

.status-text {
    color: #d4d4d4;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.search-demo {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.search-box {
    display: flex;
    margin-bottom: 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 12px 16px;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-results {
    space-y: 0.5rem;
}

/* Features section */
.features {
    padding: 80px 0;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .rotating-examples {
        max-width: 100%;
    }
    
    .example-window {
        min-height: 350px;
    }
    
    .example-content {
        height: 300px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-container,
    .features-container,
    .footer-container {
        padding: 0 1rem;
    }
    
    .example-window {
        min-height: 300px;
    }
    
    .example-content {
        height: 250px;
        padding: 12px;
    }
    
    .window-header {
        padding: 10px 12px;
    }
    
    .window-title {
        font-size: 0.8rem;
    }
}

/* Getting Started Section */
.getting-started {
    background: white;
    padding: 80px 0;
}

.getting-started-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Integration Tabs */
.integration-tabs {
    margin-bottom: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #e1e5e9;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tab-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    min-height: 400px;
}

.tab-panel {
    display: none;
}

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

/* Assistant Info */
.assistant-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.assistant-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status.supported {
    background: #d1fae5;
    color: #065f46;
}

.status.experimental {
    background: #fef3c7;
    color: #92400e;
}

.status.planned {
    background: #e0e7ff;
    color: #3730a3;
}

/* Steps */
.steps {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    margin-bottom: 1rem;
}

.step-content ul {
    margin-left: 1rem;
    color: #666;
}

.step-content li {
    margin-bottom: 0.5rem;
}

.step-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #667eea;
}

/* Code Blocks - Enhanced with !important for specificity */
.code-block {
    position: relative !important;
    background: #1e293b !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 1rem 0 !important;
    min-height: 60px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.code-block pre {
    padding: 1.5rem 4rem 1.5rem 1.5rem !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: thin !important;
    scrollbar-color: #475569 #1e293b !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Special style for command blocks that should wrap visually */
.code-block.command-wrap pre {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-x: hidden !important;
    padding-right: 4rem !important;
}

.code-block.command-wrap code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    line-height: 1.6 !important;
}

/* Custom scrollbar for webkit browsers */
.code-block pre::-webkit-scrollbar {
    height: 8px !important;
}

.code-block pre::-webkit-scrollbar-track {
    background: #1e293b !important;
}

.code-block pre::-webkit-scrollbar-thumb {
    background: #475569 !important;
    border-radius: 4px !important;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
    background: #64748b !important;
}

.code-block code {
    color: #e2e8f0 !important;
    font-family: 'Monaco', 'Menlo', monospace !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    background: none !important;
    padding: 0 !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.copy-btn {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: #475569 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    z-index: 100 !important;
    flex-shrink: 0 !important;
    min-width: auto !important;
}

.copy-btn:hover {
    background: #64748b !important;
}

/* Help Links */
.help-links {
    margin-top: 1.5rem;
}

.help-links a {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #667eea;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.help-links a:hover {
    background: #667eea;
    color: white;
}

/* Additional Resources */
.additional-resources {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e1e5e9;
}

.additional-resources h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.resource-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design for Getting Started */
@media (max-width: 768px) {
    .getting-started-container {
        padding: 0 1rem;
    }
    
    .tab-buttons {
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .step {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .code-block pre {
        padding: 1rem 3rem 1rem 1rem;
        font-size: 0.8rem;
    }
    
    .copy-btn {
        top: 0.75rem;
        right: 0.75rem;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
    }
    
    .assistant-info,
    .step {
        padding: 1rem;
    }
} 