/* ==========================================================================
   KodX Studio - 2026 Modern Homepage Stylesheet
   ========================================================================== */

/* 1. Suppression of legacy toy emojis from global style */
.home-hero .hero-image::before,
.home-hero .hero-image::after {
    display: none !important;
    content: none !important;
}

/* 2. Hero Section */
.home-hero {
    position: relative;
    padding: 130px 0 80px;
    background: radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
                linear-gradient(180deg, #07090e 0%, #0d121f 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-hero .hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.35);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fb923c;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.home-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 10px #f97316;
    animation: homePulseDot 2s infinite ease-in-out;
}

@keyframes homePulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.home-hero h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.4rem;
    letter-spacing: -0.02em;
}

.home-hero-lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Hero KPI Grid */
.home-hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.home-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.home-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.4);
}

.home-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.home-kpi-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.home-kpi-lbl {
    font-size: 0.74rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

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

/* Hero Studio Showcase Mockup */
.home-mockup-frame {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.12);
    backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
}

.home-mockup-header {
    background: rgba(10, 15, 29, 0.95);
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-traffic-dots {
    display: flex;
    gap: 6px;
}

.home-traffic-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.home-dot-red { background: #ef4444; }
.home-dot-yellow { background: #f59e0b; }
.home-dot-green { background: #10b981; }

.home-mockup-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-telemetry-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.home-mockup-body {
    padding: 1.5rem;
}

.home-metrics-highlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-metric-highlight {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.home-metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.home-metric-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fb923c;
    line-height: 1;
}

.home-metric-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.home-metric-desc {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Studio Architecture Checklist */
.home-pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.home-pipeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 0.84rem;
    transition: background 0.2s ease;
}

.home-pipeline-item:hover {
    background: rgba(30, 41, 59, 0.65);
}

.home-pipeline-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #e2e8f0;
    font-weight: 500;
}

.home-pipeline-name i {
    color: #10b981;
}

.home-pipeline-badge {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.home-tech-chips-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.home-tech-chip {
    font-size: 0.74rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #cbd5e1;
    font-weight: 500;
}

/* 3. Modern Horizontal 4-Step Workflow */
.home-workflow-section {
    padding: 90px 0;
    background: #080c14;
    position: relative;
}

.home-workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
}

.home-workflow-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 2rem 1.6rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-workflow-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.home-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.home-step-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(249, 115, 22, 0.85);
    font-family: monospace;
    letter-spacing: -0.04em;
}

.home-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.home-workflow-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.home-workflow-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.home-step-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.home-step-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 4. Balanced 3-Column Case Studies Grid */
.home-cases-section {
    padding: 100px 0;
    background: #07090e;
}

.home-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 3.5rem;
}

.home-case-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
}

.home-case-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
}

.home-case-banner-icon {
    font-size: 3rem;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.home-case-cat-pill {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-case-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-case-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.home-case-body p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.home-case-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.home-case-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.home-case-metrics-box {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.4rem;
}

.home-case-metric-val {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.home-case-metric-lbl {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* 5. About Section Highlight Badges (Dark Glassmorphism) */
.about-visual .studio-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: transparent;
    padding: 0;
}

.about-visual .studio-highlights .highlight-item {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 1.5rem 1.2rem !important;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-visual .studio-highlights .highlight-item:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.4) !important;
}

.about-visual .studio-highlights .highlight-item i {
    font-size: 1.8rem;
    color: #fb923c !important;
}

.about-visual .studio-highlights .highlight-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0 !important;
}

/* 6. Studio Contact Section */
.home-contact-box {
    background: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.8);
    max-width: 900px;
    margin: 0 auto;
}

.home-contact-email-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-contact-email-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(249, 115, 22, 0.4);
    color: #fb923c;
}

.home-contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* 7. Responsive Rules */
@media (max-width: 1024px) {
    .home-hero .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .home-workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-cases-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .home-hero-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .home-workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .home-mockup-body {
        padding: 1.1rem;
    }
    
    .home-metrics-highlight-row {
        grid-template-columns: 1fr;
    }
    
    .home-contact-box {
        padding: 2.5rem 1.5rem;
    }
}
