/* ============================================
   VritraAI Documentation Website - Home Page Styles
   Hero, Installation Box, Features, Overview
   ============================================ */

/* Hero Section */
.hero {
    min-height: 90vh;
    width: 100vw;
    padding: 5rem 0 4rem;
    padding-top: 8rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .hero {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.dark-theme .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(22, 163, 74, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.light-theme .hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

.light-theme .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.light-theme .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Installation Box */
.installation-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem;
    margin: 2rem auto;
    box-shadow: var(--shadow-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
    width: 100%;
    max-width: 700px;
}

.dark-theme .installation-box {
    background: linear-gradient(135deg, rgba(20, 27, 20, 0.95) 0%, rgba(24, 32, 24, 0.95) 100%);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.installation-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dark-theme .installation-box:hover .installation-glow {
    opacity: 1;
}

.dark-theme .installation-glow {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
}

.installation-box:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 48px rgba(34, 197, 94, 0.3), 0 0 0 1px rgba(34, 197, 94, 0.2);
    transform: translateY(-4px) scale(1.01);
}

.dark-theme .installation-box:hover {
    border: 1px solid var(--accent-primary);
}

.install-label-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.install-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-primary);
}

.installation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.install-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copy-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.copy-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.copy-btn-mobile {
    display: none;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-theme .code-block {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(15, 20, 27, 0.9) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.code-line-numbers {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    opacity: 0.8;
}

.install-command {
    color: var(--code-text);
    font-size: 1.125rem;
    font-weight: 500;
    display: block;
    flex: 1;
    letter-spacing: 0.02em;
}

.dark-theme .install-command {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.copy-feedback {
    position: absolute;
    top: -3rem;
    right: 0;
    background: var(--success);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-check-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
}

.dark-theme .hero-actions .btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 25%, #4ade80 50%, #10b981 75%, #22c55e 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.light-theme .hero-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 25%, #3b82f6 50%, #6366f1 75%, #2563eb 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dark-theme .hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 25%, #10b981 50%, #4ade80 75%, #16a34a 100%);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.light-theme .hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 25%, #2563eb 50%, #4f46e5 75%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Overview Section */
.overview {
    background: var(--bg-secondary);
}

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

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.highlight-icon svg {
    width: 100%;
    height: 100%;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(5deg);
}

.highlight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.feature-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.dark-theme .feature-category {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.feature-category:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent-primary);
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--code-border);
}

/* Installation Section */
.installation {
    background: var(--bg-secondary);
}

.installation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    position: relative;
}

.installation .step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    padding-top: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.installation .step-card > *:not(.step-number) {
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.dark-theme .installation .step-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.installation .step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.installation .step-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.installation .step-card:hover::before {
    opacity: 1;
}

.installation .step-number {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-md);
    z-index: 10;
    box-sizing: border-box;
    pointer-events: none;
}

.installation .step-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.installation .step-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    flex: 1;
}

.installation .code-block-inline {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.5rem;
    margin-top: auto;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.installation .code-block-inline code {
    color: var(--code-text);
    font-size: 0.9375rem;
    flex: 1;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    padding-right: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.installation .code-block-inline code::-webkit-scrollbar {
    height: 4px;
}

.installation .code-block-inline code::-webkit-scrollbar-track {
    background: transparent;
}

.installation .code-block-inline code::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.installation .code-block-inline code::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.installation .copy-btn-small {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
}

.installation .copy-btn-small:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.installation .copy-btn-small svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.requirements-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

/* Why VritraAI Section */
.why-vritraai {
    background: var(--bg-primary);
}

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

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dark-theme .why-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.why-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.why-card:hover::before {
    opacity: 1;
}

.why-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.2));
}

.why-card:hover .why-icon {
    transform: scale(1.15) rotate(5deg);
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.requirements-box h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.requirements-box ul {
    list-style: none;
}

.requirements-box li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.requirements-box li:last-child {
    border-bottom: none;
}

/* Responsive Design - Home Page */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        width: 100vw;
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .highlights-grid,
    .features-grid,
    .installation-steps,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .installation-steps {
        padding-top: 2.5rem;
    }
    
    /* Reduce paragraph font size on mobile */
    p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .highlight-card p,
    .why-card p,
    .installation .step-card p,
    .feature-card p {
        font-size: 0.9375rem;
    }
    
    .installation .step-card {
        min-height: auto;
        padding: 1.25rem;
        padding-top: 2rem;
    }
    
    .installation .step-number {
        left: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
        top: -1.5rem;
    }
    
    /* Hero Actions Mobile */
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Installation Box Mobile Improvements */
    .installation-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
        border-radius: 1rem;
    }
    
    .installation-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .install-label-group {
        flex: 1;
    }
    
    .installation-header .copy-btn {
        display: none;
    }
    
    .code-block {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .copy-btn-mobile {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        margin-top: 0;
    }
}

@media (min-width: 769px) {
    .copy-btn-mobile {
        display: none !important;
    }
    
    .code-line-numbers {
        font-size: 0.875rem;
        flex-shrink: 0;
    }
    
    .install-command {
        font-size: 0.9375rem;
        word-break: break-all;
        overflow-wrap: break-word;
        min-width: 0;
    }
    
    .copy-feedback {
        top: auto;
        bottom: -3.5rem;
        right: 0;
        left: 0;
        width: 100%;
        text-align: center;
    }
}

