/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection only on UI elements that shouldn't be selectable */
button, .btn, .nav-toggle, .tab-btn, .tool-btn, .quick-cmd-btn, .suggestion-btn, .quick-action-btn, 
.sidebar-toggle, .status-indicator, .demo-badge, .feature-pill, .tool-tag, .fullscreen-btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

*:focus {
    outline: none;
}

/* Ensure text content is selectable */
p, span, div, h1, h2, h3, h4, h5, h6, li, td, th, blockquote, 
.message-content, .message-content-fullpage, .chat-messages, .chat-messages-fullpage,
.hero-title, .hero-subtitle, .section-header, .feature-card p, .feature-card h3,
.about-text, .contact-info, .footer-content, .article-content, .disclaimer-content,
.tools-description, .command-example, .welcome-message, .typing-text,
input, textarea, [contenteditable] {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    cursor: text;
}

/* Make sure chat messages are definitely selectable */
.chat-messages *, .message-content *, .message-content-fullpage * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important; 
    -ms-user-select: text !important;
    user-select: text !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #18181b;
    background-color: #ffffff;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #09090b;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #71717a;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    min-height: 44px;
    padding: 0 20px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:active::before {
    opacity: 1;
}

.btn:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

.btn-primary {
    background: #18181b;
    color: #fafafa;
    border: 1px solid #18181b;
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.15);
}

.btn-primary:hover {
    background: #09090b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 24, 27, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(24, 24, 27, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #18181b;
    border: 1px solid #e4e4e7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f4f4f5;
    border-color: #d4d4d8;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: #71717a;
    border: 1px solid #e4e4e7;
}

.btn-outline:hover {
    background: #f4f4f5;
    color: #18181b;
}

.btn-large {
    min-height: 48px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 10px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
}

/* Logo Styling */
.nav-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 18px;
    font-weight: 700;
    color: #18181b;
    line-height: 1.2;
}

.logo-badge {
    font-size: 11px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #18181b;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #18181b;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link-secondary {
    font-size: 15px;
    font-weight: 500;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link-secondary:hover {
    color: #18181b;
}

.btn-nav-primary {
    background: #18181b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.15);
}

.btn-nav-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #18181b;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle span:nth-child(1) {
    margin-bottom: 4px;
}

.mobile-menu-toggle span:nth-child(2) {
    margin-bottom: 4px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #18181b;
}

.mobile-logo .logo-icon {
    font-size: 24px;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 20px;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #18181b;
}

.mobile-nav-menu {
    list-style: none;
    padding: 24px 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-menu a:hover {
    background: rgba(24, 24, 27, 0.05);
    color: #18181b;
    border-left-color: #18181b;
}

.mobile-menu-actions {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-mobile-primary {
    width: 100%;
    background: #18181b;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mobile-primary:hover {
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        padding: 12px 20px;
    }
    
    .logo-main {
        font-size: 16px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 12px 16px;
    }
    
    .mobile-menu-content {
        max-width: 100%;
    }
    
    .logo-badge {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: #ffffff;
    color: #18181b;
    padding: 140px 0 80px;
    text-align: center;
    border-bottom: 1px solid #e4e4e7;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to bottom, #09090b, #71717a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #71717a;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #09090b;
}

.stat-label {
    font-size: 14px;
    color: #71717a;
    font-weight: 500;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #71717a;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #fafafa;
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e4e4e7;
    transition: all 0.15s ease;
}

.feature-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: #09090b;
    font-size: 1.125rem;
}

.feature-card p {
    color: #71717a;
    line-height: 1.6;
    font-size: 14px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: white;
}

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

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #18181b;
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.step h3 {
    margin-bottom: 0.75rem;
    color: #09090b;
    font-size: 1.125rem;
}

.step p {
    color: #71717a;
    font-size: 14px;
}

/* Enhanced Demo Section */
.demo-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Demo badges */
.demo-badge {
    background: linear-gradient(135deg, #18181b 0%, #52525b 100%);
    color: #fafafa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.connection-status-enhanced {
    max-width: 800px;
    margin: 3rem auto;
}

.status-card-enhanced {
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.status-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #18181b 0%, #71717a 100%);
}

.status-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.status-indicator-enhanced {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-indicator-enhanced.connected {
    background: #22c55e;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #ef4444;
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

.status-indicator-enhanced.connected .pulse-ring {
    border-color: #22c55e;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.connection-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.status-content {
    text-align: left;
}

.status-content h3 {
    margin: 0 0 0.5rem 0;
    color: #09090b;
    font-size: 1.5rem;
}

.status-content p {
    margin: 0 0 1.5rem 0;
    color: #71717a;
}

.status-connect-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.status-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-pill {
    background: #18181b;
    color: #fafafa;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.demo-preview {
    margin: 4rem 0;
    text-align: center;
}

.demo-preview h3 {
    color: #09090b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.demo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.demo-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #18181b 0%, #71717a 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.demo-card:hover::before {
    transform: scaleX(1);
}

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

.demo-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.demo-card h4 {
    color: #09090b;
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.demo-card p {
    color: #71717a;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.demo-card-tag {
    background: linear-gradient(135deg, #18181b 0%, #52525b 100%);
    color: #fafafa;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.tool-interface-enhanced {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

.tool-tabs {
    display: flex;
    background: #fafafa;
    border-bottom: 1px solid #e4e4e7;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #71717a;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    white-space: nowrap;
}

.tab-btn.active {
    background: white;
    color: #09090b;
    border-bottom-color: #18181b;
}

.tab-btn:hover:not(.active) {
    color: #18181b;
    background: #f4f4f5;
}

.tab-content {
    display: none;
    padding: 32px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #09090b;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
}

.search-results {
    margin-top: 24px;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e4e4e7;
    min-height: 100px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: #fafafa;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e4e4e7;
}

.metric-card h4 {
    margin-bottom: 8px;
    color: #71717a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #09090b;
}

/* Chat Interface Styles */
.chat-interface {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 16px;
    max-height: 400px;
    border: 1px solid #e4e4e7;
}

/* Redesigned Chat Interface with Sidebar */
.chat-interface-redesigned {
    display: flex;
    height: 600px;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 600px; /* Ensure minimum height */
    max-width: 1200px; /* Add max width for better control */
    margin: 0 auto; /* Center the interface */
}

/* Tools Sidebar - Adjusted width for all tools */
.tools-sidebar {
    width: 260px; /* Increased slightly to fit all tools */
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tools-sidebar-header {
    text-align: center;
    margin-bottom: 16px; /* Reduced margin */
    padding-bottom: 12px; /* Reduced padding */
    border-bottom: 1px solid #e4e4e7;
    position: relative;
}

.sidebar-toggle {
    display: none; /* Hidden by default on desktop */
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #71717a;
    margin-top: 8px;
    align-items: center;
    gap: 4px;
}

.sidebar-toggle:hover {
    background: #e4e4e7;
    color: #18181b;
}

.toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.tools-sidebar.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.tools-sidebar.collapsed .toggle-text::before {
    content: "Show ";
}

.tools-sidebar.collapsed .toggle-text {
    color: #18181b;
}

.tools-content {
    transition: all 0.3s ease;
}

.tools-sidebar.collapsed .tools-content {
    display: none;
}

/* Show toggle button on mobile */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex !important;
    }
    
    .tools-sidebar {
        transition: max-height 0.3s ease;
    }
    
    .tools-sidebar.collapsed {
        max-height: 80px !important; /* Just header height */
    }
    
    .tools-sidebar.collapsed .tools-content {
        display: none;
    }
}

.tools-sidebar-header h4 {
    color: #09090b;
    margin-bottom: 4px;
    font-size: 1rem; /* Slightly smaller */
    font-weight: 600;
}

.tools-sidebar-header p {
    color: #71717a;
    font-size: 0.8rem; /* Smaller text */
    margin: 0;
}

/* Compact Tool Categories */
.tools-categories-compact {
    margin-bottom: 16px; /* Reduced margin */
}

.tool-category-compact {
    margin-bottom: 12px; /* Reduced margin */
}

.tool-category-compact h5 {
    color: #09090b;
    font-size: 0.87rem; /* Slightly larger for category titles */
    font-weight: 600;
    margin-bottom: 7px;
    padding: 5px 0;
    border-bottom: 1px solid #e4e4e7;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px; /* Slightly increased for better readability */
}

.tool-tag {
    background: linear-gradient(135deg, #18181b 0%, #52525b 100%);
    color: #fafafa;
    padding: 4px 7px; /* Slightly increased padding */
    border-radius: 10px; /* Balanced roundness */
    font-size: 0.68rem; /* Slightly larger for readability */
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(24, 24, 27, 0.3);
}

/* Quick Commands */
.quick-commands {
    padding-top: 12px; /* Reduced padding */
    border-top: 1px solid #e4e4e7;
}

.quick-commands h5 {
    color: #09090b;
    font-size: 0.85rem; /* Smaller font */
    font-weight: 600;
    margin-bottom: 8px; /* Reduced margin */
}

.quick-cmd-btn {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    padding: 7px 10px; /* Slightly increased padding */
    margin-bottom: 5px;
    font-size: 0.77rem; /* Slightly larger for readability */
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #71717a;
    line-height: 1.3; /* Better line height for longer text */
}

.quick-cmd-btn:hover {
    background: #18181b;
    color: white;
    border-color: #18181b;
    transform: translateX(2px);
}

/* Chat Area - Expanded */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    overflow: hidden;
    position: relative; /* Ensure it stays in position */
    min-width: 0; /* Prevent overflow issues */
    max-width: 900px; /* Increase max width for ChatGPT-like experience */
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e4e4e7;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #09090b;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #71717a;
}

.fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #71717a;
    text-decoration: none;
}

.fullscreen-btn:hover {
    background: #18181b;
    color: white;
    border-color: #18181b;
    transform: translateY(-1px);
}

.fullscreen-btn span:first-child {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
    }
    
    .fullscreen-btn span:last-child {
        display: none; /* Hide text on mobile */
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Adjusted Chat Container for Sidebar Layout */
.chat-interface-redesigned .chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0;
    position: relative; /* Ensure it stays in position */
    min-height: 0; /* Allow flexbox to work properly */
}

.chat-interface-redesigned .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px; /* Increased padding for more ChatGPT-like spacing */
    background: #ffffff;
    border-radius: 0;
    margin-bottom: 0;
    max-height: none;
    border: none;
    min-height: 300px;
    position: relative; /* Ensure it stays in position */
}

.chat-interface-redesigned .chat-input-container {
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

/* Ensure chat input wrapper stays visible */
.chat-interface-redesigned .chat-input-wrapper {
    gap: 14px;
    max-width: none;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
}

.chat-interface-redesigned .chat-input-wrapper textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e4e4e7;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    outline: none;
    min-height: 72px;
    max-height: 140px;
    resize: none;
    font-family: inherit;
    overflow-y: auto;
    line-height: 1.5;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-interface-redesigned .chat-input-wrapper textarea:focus {
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08), 0 3px 10px rgba(0, 0, 0, 0.08);
}

.chat-interface-redesigned .chat-input-wrapper textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 16px;
}

.chat-interface-redesigned .chat-send-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(24, 24, 27, 0.2);
    letter-spacing: 0.3px;
}

.chat-interface-redesigned .chat-send-btn:hover {
    background: linear-gradient(135deg, #000000 0%, #18181b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(24, 24, 27, 0.3);
}

.chat-interface-redesigned .chat-send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.2);
}

/* Ensure suggestions stay visible */
.chat-interface-redesigned .chat-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.chat-interface-redesigned .suggestion-btn {
    background: #f8f9fa;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #71717a;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.chat-interface-redesigned .suggestion-btn:hover {
    background: #18181b;
    color: white;
    border-color: #18181b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(24, 24, 27, 0.15);
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
    max-width: 70%;
    margin-bottom: 16px;
}

/* Specific typing indicator styles for redesigned interface */
.chat-interface-redesigned .typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
    max-width: 70%;
    margin-bottom: 16px;
}

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

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d8;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-stats {
        gap: 2rem;
}

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .tool-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
    text-align: left;
        border-bottom: 1px solid #e4e4e7;
        border-right: none;
}

    .tab-btn.active {
        border-bottom: 1px solid #e4e4e7;
        border-left: 3px solid #18181b;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chat-suggestions {
        flex-direction: column;
    }
    
    .suggestion-btn {
        text-align: left;
    }
    
    .chat-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        height: 40px;
        padding: 0 20px;
        font-size: 14px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .contact-form {
        padding: 24px;
    }
    
    .tool-interface {
        margin: 0 8px;
    }
    
    .tab-content {
        padding: 24px;
    }
}

/* Focus states for accessibility */
.btn:focus-visible,
input:focus,
textarea:focus,
button:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000000;
        border-color: #000000;
    }
    
    .btn-secondary {
        border-color: #000000;
        color: #000000;
    }
}

/* Dark mode preparations (optional for future) */
@media (prefers-color-scheme: dark) {
    /* Can be enabled later if needed */
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #18181b;
    color: #fafafa;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text p {
    margin: 0;
    color: #fafafa;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-link {
    color: #a1a1aa;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.15s ease;
}

.cookie-link:hover {
    color: #fafafa;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: #fafafa;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: #09090b;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.company-stat {
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e4e4e7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.capability-item {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capability-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.capability-item h4 {
    margin-bottom: 16px;
    color: #18181b;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.capability-item p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #09090b;
    font-size: 1rem;
}

.contact-item p {
    color: #71717a;
    margin: 0;
    font-size: 14px;
}

.contact-form {
    background: #fafafa;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color 0.15s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
}

/* Footer */
.footer {
    background: #18181b;
    color: #fafafa;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fafafa;
    font-size: 1rem;
}

.footer-section p {
    color: #a1a1aa;
    line-height: 1.6;
    font-size: 14px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #fafafa;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #3f3f46;
    color: #fafafa;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
    font-size: 14px;
}

.social-links a:hover {
    background: #52525b;
}

.footer-bottom {
    border-top: 1px solid #3f3f46;
    padding-top: 2rem;
    text-align: center;
    color: #a1a1aa;
    font-size: 14px;
}

/* Success/Error States */
.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
    }
    
.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
    }
    
/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    }
    
.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e4e4e7;
    border-top: 2px solid #18181b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    }
    
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 

/* Typewriter Effect */
.typewriter-container {
    display: flex;
        align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: #18181b;
    margin: 2rem 0;
    min-height: 60px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.typewriter-prefix,
.typewriter-suffix {
    color: #71717a;
    font-size: 1.5rem;
    }
    
.typewriter-text {
    color: #18181b;
    background: linear-gradient(135deg, #18181b 0%, #71717a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    min-width: 400px;
    text-align: left;
    }
    
.typewriter-cursor {
    color: #18181b;
    font-weight: 600;
    animation: blink 1s infinite;
    }
    
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .typewriter-container {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .typewriter-text {
        min-width: 300px;
        text-align: center;
    }
    
    .typewriter-prefix,
    .typewriter-suffix {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .typewriter-text {
        min-width: 250px;
    }
} 

/* Demo Section */
.demo-section {
    padding: 100px 0;
    background: #fafafa;
    }
    
@media (max-width: 768px) {
    .demo-badges {
        gap: 0.5rem;
    }
    
    .demo-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .status-card-enhanced {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .status-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .demo-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-card {
        padding: 1.5rem;
    }
    
    .demo-preview h3 {
        font-size: 1.25rem;
    }
} 

/* Tools Showcase */
.tools-showcase {
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.tools-showcase h3 {
    color: #09090b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
    }
    
.tools-description {
    text-align: center;
    color: #71717a;
    margin-bottom: 2rem;
        font-size: 1rem;
    }
    
.tools-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    }
    
.tool-category {
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
        padding: 1.5rem;
    transition: all 0.3s ease;
}

.tool-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.tool-category h4 {
    color: #09090b;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-item {
    background: linear-gradient(135deg, #18181b 0%, #52525b 100%);
    color: #fafafa;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: default;
}

.tool-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.3);
}

.tools-examples {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.tools-examples h4 {
    color: #09090b;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.example-commands {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.command-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #18181b;
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: #18181b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.command-example:hover {
    background: #e9ecef;
    border-left-color: #71717a;
    transform: translateX(4px);
}

.command-example::before {
    content: '💬 ';
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Custom scrollbar for tools showcase */
.tools-showcase::-webkit-scrollbar {
    width: 6px;
}

.tools-showcase::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tools-showcase::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    }
    
.tools-showcase::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
    }

@media (max-width: 768px) {
    .tools-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-category {
        padding: 1rem;
    }
    
    .tools-showcase {
        padding: 1.5rem;
        max-height: 500px;
    }
    
    .tools-examples {
        padding: 1rem;
    }
    
    .command-example {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
} 

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
    
    .nav-menu a {
        font-size: 18px;
        font-weight: 600;
        color: #18181b;
        padding: 16px 24px;
        border-radius: 12px;
        min-width: 200px;
        text-align: center;
        background: rgba(24, 24, 27, 0.05);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background: #18181b;
        color: #fafafa;
        transform: scale(1.05);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile Hero Section */
    .hero {
        padding: 140px 0 80px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 3rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    /* Mobile Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
    
    /* Mobile Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step {
        padding: 20px;
        border-radius: 12px;
        background: rgba(250, 250, 250, 0.8);
        backdrop-filter: blur(10px);
    }
    
    /* Mobile About */
    .about-content {
        text-align: center;
    }
    
    .company-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .company-stat {
        padding: 16px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .capability-item {
        padding: 20px;
        text-align: left;
    }
    
    .capability-item h4 {
        justify-content: center;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .capability-item p {
        text-align: center;
    }
    
    /* Mobile Articles */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .article-card:active {
        transform: scale(0.98);
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Mobile Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 24px;
        border-radius: 12px;
    }
    
    /* Mobile Disclaimer */
    .disclaimer {
        padding: 40px 0;
        text-align: left;
    }
    
    .disclaimer p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Mobile Typography */
    h1 {
        font-size: 2.25rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Mobile Tool Tabs */
    .tool-tabs {
        flex-direction: column;
        background: #fafafa;
    }
    
    .tab-btn {
        text-align: left;
        padding: 20px 24px;
        border-bottom: 1px solid #e4e4e7;
        border-right: none;
        font-size: 16px;
        transition: all 0.2s ease;
    }
    
    .tab-btn:active {
        transform: scale(0.98);
        background: rgba(24, 24, 27, 0.05);
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #e4e4e7;
        border-left: 4px solid #18181b;
        background: white;
    }
    
    .tab-content {
        padding: 24px;
    }
    
    /* Mobile Chat Interface */
    .chat-interface {
        height: auto;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 16px;
        border-radius: 12px;
    }
    
    .chat-suggestions {
        flex-direction: column;
        gap: 12px;
    }
    
    .suggestion-btn {
        text-align: left;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    
    .suggestion-btn:active {
        transform: scale(0.98);
    }
    
    .chat-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .chat-input-wrapper textarea {
        padding: 16px;
        border-radius: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Mobile Form Inputs */
    .form-group input,
    .form-group textarea {
        padding: 16px;
        border-radius: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        border: 2px solid #e4e4e7;
        transition: all 0.2s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #18181b;
        box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.1);
        transform: scale(1.02);
    }
    
    /* Mobile Tools Showcase */
    .tools-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-category {
        padding: 20px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .tool-category:active {
        transform: scale(0.98);
    }
    
    .tools-showcase {
        padding: 20px;
        max-height: 500px;
    }
    
    .tools-examples {
        padding: 20px;
        border-radius: 12px;
    }
    
    .command-example {
        padding: 16px;
        font-size: 14px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .command-example:active {
        transform: scale(0.98);
    }
} 

/* Mobile Device Specific Styles */
.mobile-device {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.ios-device {
    -webkit-overflow-scrolling: touch;
}

/* Touch Feedback States */
.touch-active {
    transform: scale(0.98);
    opacity: 0.8;
    transition: all 0.1s ease;
}

.btn.touch-active {
    transform: scale(0.96);
    box-shadow: 0 2px 4px rgba(24, 24, 27, 0.2);
}

/* Custom CSS Variables for Mobile */
:root {
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
    --vh: 1vh;
}

/* Safe Area Support for Notched Devices */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(16px, var(--safe-area-inset-top));
    }
    
    .nav-menu {
        padding-top: max(20px, var(--safe-area-inset-top));
        padding-left: max(20px, var(--safe-area-inset-left));
        padding-right: max(20px, var(--safe-area-inset-right));
    }
    
    .hero {
        padding-top: max(140px, calc(140px + var(--safe-area-inset-top)));
    }
}

/* Performance Optimizations */
.feature-card,
.article-card,
.tool-category {
    will-change: transform;
    transform: translateZ(0);
}

/* Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    .nav-menu.active li {
        animation: slideInLeft 0.3s ease forwards;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .btn {
        border-width: 0.5px;
    }
    
    .feature-card,
    .article-card {
        border-width: 0.5px;
    }
} 

/* Critical styles for redesigned chat interface stability */
.chat-interface-redesigned .message {
    display: flex !important;
    margin-bottom: 24px; /* Increased spacing between messages */
    animation: slideInUp 0.2s ease;
    position: relative;
    max-width: 100%; /* Allow full width usage */
}

.chat-interface-redesigned .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 16px; /* Increased margin for better spacing */
    flex-shrink: 0;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    margin-top: 4px; /* Align with text */
}

.chat-interface-redesigned .user-message {
    flex-direction: row-reverse;
}

.chat-interface-redesigned .user-message .message-avatar {
    background: #18181b;
    color: white;
    margin-right: 0;
    margin-left: 16px; /* Increased margin */
}

.chat-interface-redesigned .assistant-message .message-avatar {
    background: #f4f4f5;
    color: #71717a;
}

.chat-interface-redesigned .message-content {
    background: white;
    padding: 16px 20px; /* Increased padding for better readability */
    border-radius: 12px; /* More rounded corners like ChatGPT */
    border: 1px solid #e4e4e7;
    max-width: 85%; /* Increased width for better readability */
    flex: 1;
    font-size: 15px; /* Slightly larger font */
    line-height: 1.6; /* Better line height */
}

.chat-interface-redesigned .user-message .message-content {
    background: #18181b;
    color: white;
    border-color: #18181b;
}

.chat-interface-redesigned .message-content p {
    margin: 0 0 12px 0; /* Increased margin between paragraphs */
    color: inherit;
    font-size: 15px; /* Consistent larger font */
}

.chat-interface-redesigned .message-content p:last-child {
    margin-bottom: 0;
}

.chat-interface-redesigned .message-content ul {
    margin: 12px 0; /* Increased margin */
    padding-left: 20px;
}

.chat-interface-redesigned .message-content li {
    margin-bottom: 6px; /* Increased spacing between list items */
    color: inherit;
    font-size: 15px; /* Consistent larger font */
    line-height: 1.5;
}

/* Ensure input elements stay visible and functional */
.chat-interface-redesigned input,
.chat-interface-redesigned button,
.chat-interface-redesigned .suggestion-btn {
    visibility: visible !important;
    opacity: 1 !important;
}

.chat-interface-redesigned .chat-input-wrapper textarea {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    line-height: 1.4;
    min-height: 56px;
    max-height: 120px;
    resize: none;
    font-family: inherit;
    background: #ffffff;
    overflow-y: auto;
    outline: none;
    box-sizing: border-box;
}

.chat-interface-redesigned .chat-input-wrapper textarea:focus {
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
}

.chat-interface-redesigned .chat-input-wrapper textarea::placeholder {
    color: #a1a1aa;
    font-weight: 400;
}

.chat-interface-redesigned .chat-send-btn {
    width: 100%;
    height: 48px;
    background: #18181b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Scrollbar */
.tools-sidebar::-webkit-scrollbar {
    width: 4px;
}

.tools-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.tools-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.tools-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design for Chat Interface */
@media (max-width: 1024px) {
    .chat-interface-redesigned {
        max-width: 100%;
        margin: 0;
    }
    
    .tools-sidebar {
        width: 220px; /* Slightly smaller on tablets */
    }
    
    .chat-area {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .chat-interface-redesigned {
        flex-direction: column;
        height: auto;
        margin: 0;
        gap: 0;
    }
    
    .tools-sidebar {
        width: 100%;
        height: auto;
        order: 2;
        border-radius: 0 0 8px 8px;
        max-height: 200px; /* Limit height on mobile */
        border-top: 1px solid #e4e4e7;
    }
    
    .chat-area {
        order: 1;
        height: 500px; /* Increased height for mobile */
        max-width: none;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
    }
    
    /* Make tools more compact on mobile */
    .tools-categories-compact {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .tool-category-compact {
        margin-bottom: 8px;
    }
    
    .tool-category-compact h5 {
        font-size: 0.8rem;
        margin-bottom: 4px;
        padding: 3px 0;
    }
    
    .tool-tags {
        gap: 2px;
    }
    
    .tool-tag {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    
    /* Hide quick commands on mobile to save space */
    .quick-commands {
        display: none;
    }
    
    .chat-interface-redesigned .chat-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .chat-interface-redesigned .chat-send-btn {
        width: 100%;
        justify-content: center;
    }
    
    .chat-interface-redesigned .chat-suggestions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 8px;
        margin-top: 12px;
    }
    
    .chat-interface-redesigned .suggestion-btn {
        background: #f8f9fa;
        border: 1px solid #e4e4e7;
        border-radius: 16px;
        padding: 8px 12px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.15s ease;
        color: #71717a;
        font-weight: 500;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .chat-interface-redesigned .suggestion-btn:hover {
        background: #18181b;
        color: white;
        border-color: #18181b;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(24, 24, 27, 0.15);
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .chat-interface-redesigned {
        height: auto;
        min-height: 600px;
    }
    
    .chat-area {
        height: 450px;
    }
    
    .tools-sidebar {
        max-height: 150px; /* Even more compact */
    }
    
    .tools-categories-compact {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 6px;
    }
    
    .tools-sidebar-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .tools-sidebar-header h4 {
        font-size: 0.9rem;
    }
    
    .tools-sidebar-header p {
        font-size: 0.7rem;
    }
    
    .chat-interface-redesigned .chat-messages {
        padding: 16px;
    }
    
    .chat-interface-redesigned .chat-input-container {
        padding: 16px;
    }
} 

/* Mobile optimizations for main page chat interface */
@media (max-width: 768px) {
    .chat-interface-redesigned {
        flex-direction: column;
        height: auto;
        margin: 0;
        gap: 0;
        position: relative;
    }
    
    /* Mobile: Chat takes priority, tools become mobile overlay */
    .chat-area {
        order: 1;
        height: 500px;
        max-width: none;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
        position: relative;
        z-index: 1;
    }
    
    .tools-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        border: none;
        border-radius: 0;
        max-height: none;
        order: unset;
    }
    
    /* Show tools sidebar when active */
    .tools-sidebar.mobile-active {
        transform: translateX(0);
        animation: slideInLeft 0.3s ease;
    }
    
    /* Mobile header for chat */
    .chat-header {
        padding: 12px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #e4e4e7;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        border-radius: 12px 12px 0 0;
    }
    
    .chat-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #18181b;
        margin: 0;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        line-height: 1.2;
        flex: 1;
    }
    
    .chat-header .chat-status {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: #71717a;
        font-weight: 500;
        margin-right: 8px;
    }
    
    .chat-header .status-dot {
        width: 6px;
        height: 6px;
        background: #22c55e;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }
    
    .chat-header .fullscreen-btn {
        background: #f8f9fa;
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        padding: 8px 10px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #71717a;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 3px;
        font-weight: 500;
        min-width: 60px;
        justify-content: center;
    }
    
    .chat-header .fullscreen-btn:hover {
        background: #f1f1f1;
        border-color: #d4d4d8;
    }
    
    /* Add mobile tools button */
    .mobile-tools-btn {
        background: #f8f9fa;
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        padding: 8px 10px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #71717a;
        display: flex;
        align-items: center;
        gap: 3px;
        font-weight: 500;
        min-width: 60px;
        justify-content: center;
        margin-right: 6px;
    }
    
    .mobile-tools-btn:hover {
        background: #f1f1f1;
        border-color: #d4d4d8;
    }
    
    .mobile-tools-btn.active {
        background: #18181b;
        color: white;
        border-color: #18181b;
    }
    
    /* Mobile backdrop */
    .main-mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: block;
    }
    
    .main-mobile-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Optimize tools sidebar for mobile */
    .tools-sidebar-header {
        padding: 20px 20px 16px 20px;
        border-bottom: 1px solid #e4e4e7;
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
        position: relative;
        margin-bottom: 0;
    }
    
    .tools-sidebar-header h4 {
        font-size: 0.95rem;
        font-weight: 600;
        color: #18181b;
        margin: 0 0 6px 0;
        letter-spacing: -0.025em;
    }
    
    .tools-sidebar-header p {
        font-size: 0.75rem;
        color: #71717a;
        margin: 0;
        font-weight: 400;
    }
    
    /* Hide desktop toggle, show mobile close button */
    .sidebar-toggle {
        display: none;
    }
    
    .tools-sidebar-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.1);
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #71717a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: bold;
    }
    
    .tools-sidebar-close-btn:hover {
        background: #18181b;
        color: white;
        transform: scale(1.1);
    }
    
    .tools-sidebar-close-btn:active {
        transform: scale(0.95);
    }
    
    .tools-content {
        padding: 20px;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    /* Hide scrollbar but keep functionality */
    .tools-content::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
    
    /* Make tools more compact on mobile */
    .tools-categories-compact {
        display: block;
        margin-bottom: 24px;
    }
    
    .tool-category-compact {
        margin-bottom: 20px;
    }
    
    .tool-category-compact h5 {
        font-size: 0.85rem;
        font-weight: 600;
        color: #09090b;
        margin: 0 0 10px 0;
        padding: 0 2px;
    }
    
    .tool-tags {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .tool-tag {
        background: #ffffff;
        border: 1px solid #e4e4e7;
        border-radius: 6px;
        padding: 8px 10px;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #71717a;
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .tool-tag:hover {
        background: #18181b;
        color: white;
        border-color: #18181b;
        transform: translateX(1px);
    }
    
    /* Show quick commands on mobile */
    .quick-commands {
        display: block;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #e4e4e7;
    }
    
    .quick-commands h5 {
        font-size: 0.85rem;
        font-weight: 600;
        color: #09090b;
        margin: 0 0 10px 0;
        padding: 0 2px;
    }
    
    .quick-cmd-btn {
        background: #f4f4f5;
        border: 1px solid #e4e4e7;
        border-radius: 6px;
        padding: 8px 10px;
        margin-bottom: 6px;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #71717a;
        width: 100%;
        text-align: left;
    }
    
    .quick-cmd-btn:hover {
        background: #18181b;
        color: white;
        border-color: #18181b;
    }
    
    /* Optimize chat container */
    .chat-interface-redesigned .chat-container {
        height: calc(100% - 60px);
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    
    .chat-interface-redesigned .chat-messages {
        flex: 1;
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chat-interface-redesigned .message {
        margin-bottom: 16px;
        animation: fadeInUp 0.3s ease;
    }
    
    .chat-interface-redesigned .message-content {
        max-width: 90%;
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 12px;
        line-height: 1.4;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .chat-interface-redesigned .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 13px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .chat-interface-redesigned .user-message .message-avatar {
        margin-right: 0;
        margin-left: 10px;
    }
    
    /* Optimize input area */
    .chat-interface-redesigned .chat-input-container {
        padding: 16px;
        background: #ffffff;
        border-top: 1px solid #f1f1f1;
    }
    
    .chat-interface-redesigned .chat-input-wrapper {
        display: flex;
        gap: 10px;
        align-items: flex-end;
        margin-bottom: 12px;
    }
    
    .chat-interface-redesigned .chat-input-wrapper textarea {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 48px;
        max-height: 80px;
        border-radius: 8px;
    }
    
    .chat-interface-redesigned .chat-input-wrapper input {
        flex: 1;
        padding: 14px 16px;
        border: 1px solid #e4e4e7;
        border-radius: 10px;
        font-size: 16px;
        transition: all 0.2s ease;
        background: #ffffff;
        outline: none;
        min-height: 20px;
    }
    
    .chat-interface-redesigned .chat-input-wrapper input:focus {
        border-color: #18181b;
        box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
    }
    
    .chat-interface-redesigned .chat-send-btn {
        background: #18181b;
        color: #ffffff;
        border: none;
        border-radius: 10px;
        padding: 14px 18px;
        font-size: 15px;
        font-weight: 500;
        height: 52px;
        cursor: pointer;
        transition: all 0.2s ease;
        min-width: 70px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .chat-interface-redesigned .chat-send-btn:hover {
        background: #09090b;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .chat-interface-redesigned .chat-suggestions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .chat-interface-redesigned .suggestion-btn {
        background: #f8f9fa;
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        padding: 8px 10px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #71717a;
        font-weight: 500;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .chat-interface-redesigned .suggestion-btn:hover {
        background: #18181b;
        color: white;
        border-color: #18181b;
        transform: translateY(-1px);
    }
    
    /* Mobile animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }
} 

/* For very small screens - main page */
@media (max-width: 480px) {
    .chat-interface-redesigned {
        height: auto;
        min-height: 600px;
    }
    
    .chat-area {
        height: 450px;
    }
    
    .tools-sidebar {
        width: 100%;
    }
    
    .mobile-tools-btn {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 50px;
        gap: 2px;
    }
    
    .tools-sidebar-close-btn {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .chat-header {
        padding: 10px 12px;
    }
    
    .chat-header h3 {
        font-size: 1rem;
    }
    
    .chat-header .chat-status {
        font-size: 10px;
        gap: 3px;
    }
    
    .chat-header .status-dot {
        width: 5px;
        height: 5px;
    }
    
    .chat-header .fullscreen-btn {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 50px;
        gap: 2px;
    }
    
    .tools-sidebar-header {
        padding: 16px 16px 12px 16px;
    }
    
    .tools-sidebar-header h4 {
        font-size: 0.9rem;
    }
    
    .tools-sidebar-header p {
        font-size: 0.7rem;
    }
    
    .tools-content {
        padding: 16px;
    }
    
    .tool-category-compact h5 {
        font-size: 0.8rem;
    }
    
    .tool-tag,
    .quick-cmd-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .chat-interface-redesigned .chat-messages {
        padding: 12px;
    }
    
    .chat-interface-redesigned .chat-input-container {
        padding: 12px;
    }
    
    .chat-interface-redesigned .chat-input-wrapper input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .chat-interface-redesigned .chat-send-btn {
        height: 48px;
        padding: 12px 16px;
        font-size: 14px;
        min-width: 60px;
    }
    
    .chat-interface-redesigned .suggestion-btn {
        padding: 6px 8px;
        font-size: 10px;
        min-height: 32px;
    }
}

/* Hide mobile elements on desktop for main page */
.mobile-tools-btn,
.tools-sidebar-close-btn,
.main-mobile-backdrop {
    display: none;
}

.chat-interface-redesigned .chat-input-wrapper {
    margin: 0 16px 16px 16px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
}

.chat-interface-redesigned .chat-input-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
    outline: none;
    min-height: 52px;
    max-height: 100px;
    resize: none;
    font-family: inherit;
    overflow-y: auto;
    line-height: 1.4;
    box-sizing: border-box;
}

.chat-interface-redesigned .chat-send-btn {
    width: 100%;
    height: 44px;
    background: #18181b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-interface-redesigned .chat-input-container {
    margin: 0 12px 12px 12px;
}

.chat-interface-redesigned .chat-input-wrapper {
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
}

.chat-interface-redesigned .chat-input-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    min-height: 48px;
    max-height: 80px;
    border-radius: 8px;
    box-sizing: border-box;
}

.chat-interface-redesigned .chat-send-btn {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.chat-interface-redesigned .chat-input-container {
    padding: 14px;
}

.chat-interface-redesigned .chat-input-wrapper {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
}

.chat-interface-redesigned .chat-input-wrapper textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    min-height: 64px;
    max-height: 120px;
    border-radius: 12px;
    box-sizing: border-box;
    border: 2px solid #e4e4e7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.chat-interface-redesigned .chat-send-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.2);
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 50px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(255, 94, 98, 0.15);
    animation: none;
}

@keyframes pulse-light {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 94, 98, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 94, 98, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 94, 98, 0);
    }
}

/* Mobile responsive styles for coming soon badge */
@media (max-width: 768px) {
    .coming-soon-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        margin-left: 6px;
    }
    
    .capability-item h4 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .coming-soon-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-top: 4px;
        margin-left: 0;
    }
}

.capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 1rem;
}

/* Make the blue dot icon look like the image */
.capability-icon:contains('🔵') {
    color: #4F46E5;
    font-size: 1.2rem;
}

/* Blue dot icon */
.blue-dot {
    width: 16px;
    height: 16px;
    background-color: #4F46E5;
    border-radius: 50%;
}