/* ============================================================
   DashX Home page styles (moved out of Views/Home/Index.cshtml)
   ============================================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

/* Smooth in-page scrolling; keep anchor targets clear of the sticky navbar.
   home.css loads only on Index, so the html rule is safely scoped. */
html {
    scroll-behavior: smooth;
}
#demo, #capabilities, #industries, #how-it-works, #faq {
    scroll-margin-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: #0f172a;
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, transparent 60%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 60%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.07);
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4338ca;
    margin-bottom: 32px;
}
.hero-badge i { color: #4f46e5; }

.hero h1 {
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    font-size: 3.8rem;
    margin-bottom: 20px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    max-width: 750px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero-primary {
    background: #10b981;
    color: #fff;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-hero-secondary {
    background: transparent;
    color: #0f172a;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid rgba(15, 23, 42, 0.18);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}
.btn-hero-secondary:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.35);
    color: #0f172a;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}
.hero-trust-item i { color: #10b981; font-size: 1.2rem; }

/* ===== HERO MEDIA / PRODUCT MOCKUP (placeholder — replace inner
   markup with a GIF/video when available) ===== */
.hero-media {
    max-width: 900px;
    margin: 64px auto 0;
    position: relative;
    z-index: 1;
}

.mock-window {
    background: #101a33;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(148,163,184,0.05);
    overflow: hidden;
    text-align: left;
}

.mock-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #16213d;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mock-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    opacity: 0.85;
}
.mock-dot.r { background: #f87171; }
.mock-dot.y { background: #fbbf24; }
.mock-dot.g { background: #34d399; }

.mock-titlebar .mock-app-name {
    margin-left: 10px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.mock-body {
    display: flex;
    min-height: 320px;
}

.mock-sidebar {
    width: 170px;
    background: rgba(148, 163, 184, 0.05);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    padding: 18px 14px;
    display: none;
}

@media (min-width: 768px) {
    .mock-sidebar { display: block; }
}

.mock-side-item {
    height: 12px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.16);
    margin-bottom: 14px;
}
.mock-side-item.w1 { width: 75%; }
.mock-side-item.w2 { width: 55%; }
.mock-side-item.w3 { width: 82%; }
.mock-side-item.w4 { width: 48%; }
.mock-side-item.on { background: rgba(16, 185, 129, 0.45); }

.mock-sheet {
    flex: 1;
    padding: 18px 22px;
    font-family: Consolas, 'Courier New', monospace;
}

.mock-row {
    display: grid;
    grid-template-columns: 42px 1.4fr 1fr 1fr 0.7fr;
    gap: 12px;
    align-items: center;
    padding: 11px 10px;
    border-radius: 8px;
    animation: mockRowCycle 7s infinite;
}
.mock-row.head {
    animation: none;
    color: #64748b;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
}
.mock-row .c {
    height: 10px;
    border-radius: 5px;
    background: rgba(148, 163, 184, 0.22);
}
.mock-row .c.text-ok { background: rgba(52, 211, 153, 0.55); }
.mock-row:nth-child(2) { animation-delay: 0s; }
.mock-row:nth-child(3) { animation-delay: 1.4s; }
.mock-row:nth-child(4) { animation-delay: 2.8s; }
.mock-row:nth-child(5) { animation-delay: 4.2s; }
.mock-row:nth-child(6) { animation-delay: 5.6s; }

@keyframes mockRowCycle {
    0%, 18% { background: rgba(16, 185, 129, 0.14); box-shadow: inset 2px 0 0 #10b981; }
    22%, 100% { background: transparent; box-shadow: none; }
}

.mock-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(148, 163, 184, 0.05);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: Inter, system-ui, sans-serif;
}
.mock-statusbar .ok { color: #34d399; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    .mock-row { animation: none !important; }
}

/* ===== WORKS WITH STRIP ===== */
.workswith {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    padding: 26px 0;
}
.workswith-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #64748b;
    margin-bottom: 14px;
}
.workswith-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.works-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #475569;
    transition: all 0.25s ease;
}
.works-badge i { color: #10b981; }
.works-badge:hover {
    border-color: #10b981;
    color: #0f172a;
    transform: translateY(-2px);
}

/* ===== SECTION STYLES ===== */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.section-dark { background: #eef2f7; }

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text-main);
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.feature-icon i { font-size: 28px; color: #4f46e5; }
.feature-card h5 { font-weight: 800; color: var(--text-main); margin-bottom: 12px; font-size: 1.25rem; }
.feature-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* ===== INDUSTRY CARDS ===== */
.industry-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    height: 100%;
}
.industry-card:hover {
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-5px);
}
.industry-card .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.industry-card .icon-circle i { font-size: 22px; color: #4f46e5; }
.industry-card h6 { font-weight: 700; color: var(--text-main); margin-bottom: 8px; font-size: 1.1rem; }
.industry-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ===== FOMO ===== */
.fomo-stat {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.05);
}
.fomo-stat .fomo-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.fomo-stat .fomo-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}
.fomo-stat .fomo-sub {
    color: #d97706;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ===== EXAMPLE ROWS ===== */
.example-row {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 20px 24px;
    transition: all 0.3s;
}
.example-row:hover { background: #f8fafc; }
.example-row .ex-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    vertical-align: middle;
}
.example-row .ex-icon i { color: #6366f1; font-size: 18px; }

/* ===== DEMO VIDEO ===== */
.demo-video-placeholder {
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(99,102,241,0.06));
    border: 2px dashed rgba(15,23,42,0.14);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: default;
}
button.demo-video-placeholder {
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
}
button.demo-video-placeholder:hover {
    border-color: rgba(16,185,129,0.45);
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(99,102,241,0.1));
}
.demo-video-placeholder .play-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16,185,129,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}
button.demo-video-placeholder:hover .play-icon {
    background: rgba(16,185,129,0.28);
    transform: scale(1.05);
}
.demo-video-placeholder .play-icon i { font-size: 32px; color: #059669; margin-left: 4px; }

/* ===== VIDEO THUMBNAIL (links to YouTube, new tab) ===== */
.video-thumbnail {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 55px -15px rgba(15, 23, 42, 0.3);
}
.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.video-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    line-height: 1;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
    transition: transform 0.25s ease, background 0.25s ease;
}
.video-play-btn i { margin-left: 5px; }
.video-thumbnail:hover .video-play-btn {
    transform: scale(1.08);
    background: #059669;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== HOW IT WORKS STEPS ===== */
.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 36px 30px;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
}
.testimonial-card .quote-ic {
    font-size: 2rem;
    color: #a5b4fc;
    margin-bottom: 16px;
}
.testimonial-card .t-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
}
.testimonial-card .t-person {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-card .t-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.testimonial-card .t-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.3;
}
.testimonial-card .t-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 16px !important;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    background: transparent;
}
.faq-accordion .accordion-button {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
    padding: 20px 24px;
    background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: #eef2ff;
    color: #4338ca;
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.faq-accordion .accordion-body {
    color: var(--text-muted);
    line-height: 1.75;
    padding: 0 24px 22px;
}

/* ===== CTA ===== */
.cta-box {
    background: var(--primary-gradient);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
}

.cta-box h3 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -1px;
}

.cta-box p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-cta-primary {
    background: #fff;
    color: #4f46e5;
    padding: 16px 40px;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    color: #4f46e5;
    background: #f8fafc;
}

.btn-cta-outline {
    background: rgba(0,0,0,0.1);
    color: #fff;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.2);
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2rem; }
    .cta-box { padding: 60px 20px; }
}

@media (max-width: 768px) {
    .hero { padding: 80px 0 60px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .section { padding: 70px 0; }
}
