/* Modern CSS Reset & Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

.di-premium-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.di-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
}

.di-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.di-header-logo {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.di-header-logo:hover {
    transform: scale(1.05);
}

.di-nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.di-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.di-btn-outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.di-btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.di-mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Main Content */
.di-main {
    flex: 1;
}

.di-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    text-align: center;
}

/* Logo Animation */
.di-logo-wrapper {
    margin-bottom: 24px;
}

.di-hero-logo {
    height: 80px;
    width: auto;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

/* Tagline */
.di-hero-tagline {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.di-gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Section */
.di-search-section {
    max-width: 800px;
    margin: 0 auto;
}

.di-search-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.di-search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.di-search-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), var(--shadow-xl);
}

.di-search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-right: 12px;
}

.di-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 16px 0;
    background: transparent;
    color: var(--text-primary);
}

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

.di-search-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.di-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.di-arrow-icon {
    width: 16px;
    height: 16px;
}

.di-voice-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.di-voice-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.05);
}

.di-voice-btn svg {
    width: 24px;
    height: 24px;
}

.di-voice-btn.listening {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Suggestions */
.di-suggestions-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.di-suggestion-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.di-suggestions-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.di-suggestion-chip {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.di-suggestion-chip:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.di-chip-icon {
    width: 14px;
    height: 14px;
    color: #667eea;
}

/* Results Container */
.di-results-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.di-loading {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.di-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.di-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

.di-typing-indicator {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}

.di-typing-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

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

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

.di-answer-box {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: slideUp 0.3s ease;
}

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

.di-answer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.di-answer-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
}

.di-answer-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.di-answer-content p {
    margin-bottom: 16px;
}

.di-answer-content p:last-child {
    margin-bottom: 0;
}

.di-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #dc2626;
    text-align: center;
}

/* Feature Cards */
.di-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 80px;
}

.di-feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.di-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #667eea;
}

.di-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.di-card-icon svg {
    width: 28px;
    height: 28px;
}

.di-card-icon.purple {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: #667eea;
}

.di-card-icon.green {
    background: linear-gradient(135deg, #84fab020, #8fd3f420);
    color: #10b981;
}

.di-card-icon.orange {
    background: linear-gradient(135deg, #f093fb20, #f5576c20);
    color: #f59e0b;
}

.di-card-icon.blue {
    background: linear-gradient(135deg, #3b82f620, #2563eb20);
    color: #3b82f6;
}

.di-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

/* Footer */
.di-footer {
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
    padding: 24px;
}

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

.di-footer-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.di-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.di-footer-links a:hover {
    color: #667eea;
}

.di-footer-divider {
    color: var(--border-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .di-header {
        padding: 0 16px;
    }
    
    .di-nav-desktop {
        display: none;
    }
    
    .di-mobile-menu {
        display: block;
    }
    
    .di-hero-tagline {
        font-size: 32px;
    }
    
    .di-hero-logo {
        height: 60px;
    }
    
    .di-search-container {
        flex-direction: column;
    }
    
    .di-search-wrapper {
        width: 100%;
    }
    
    .di-search-input {
        font-size: 14px;
    }
    
    .di-search-btn .di-btn-text {
        display: none;
    }
    
    .di-search-btn {
        padding: 12px 20px;
    }
    
    .di-voice-btn {
        width: 48px;
        height: 48px;
    }
    
    .di-suggestions-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .di-suggestions-list {
        gap: 8px;
    }
    
    .di-suggestion-chip {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .di-features-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    
    .di-footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .di-answer-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .di-hero-container {
        padding: 20px 16px 40px;
    }
    
    .di-hero-tagline {
        font-size: 28px;
    }
    
    .di-search-wrapper {
        padding: 2px 2px 2px 12px;
    }
    
    .di-search-icon {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .di-search-input {
        padding: 12px 0;
    }
    
    .di-suggestion-label {
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1e293b;
        --bg-secondary: #0f172a;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-light: #334155;
    }
    
    .di-premium-wrapper {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }
    
    .di-header {
        background: rgba(30, 41, 59, 0.95);
    }
    
    .di-feature-card {
        background: var(--bg-primary);
    }
}