/* Icons Fix for Mobile */
i[data-lucide],
.lucide {
    width: 24px !important;
    height: 24px !important;
    display: inline-block;
    stroke-width: 2;
}

.logo-icon i[data-lucide],
.logo-icon .lucide {
    width: 28px !important;
    height: 28px !important;
}

.feature-icon i[data-lucide],
.feature-icon .lucide {
    width: 32px !important;
    height: 32px !important;
    color: var(--primary-light);
}

.badge-item i[data-lucide],
.badge-item .lucide {
    width: 40px !important;
    height: 40px !important;
    color: var(--primary-light);
    margin-bottom: 5px;
}

:root {
    /* Color Palette - Premium Medical/AI Theme */
    --primary-h: 212;
    --primary-s: 100%;
    --primary-l: 50%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 40%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);

    --secondary: #818CF8;
    --accent: #38BDF8;

    --background: #0F172A;
    /* Deep Slate */
    --surface: #1E293B;
    --text: #F8FAFC;
    --text-muted: #94A3B8;

    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    --container-width: 1200px;
    --section-padding: 100px 0;

    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

span.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(var(--primary-h), 100%, 50%, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(var(--primary-h), 100%, 50%, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: var(--glass-border);
}

.btn-lg {
    padding: 16px 24px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-cta {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.header.scrolled .nav-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: white;
}

.nav-app-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent) !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: var(--transition-base);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-app-link:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

.nav-app-link i {
    width: 16px !important;
    height: 16px !important;
}

.mobile-app-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent) !important;
    font-weight: 700 !important;
    background: rgba(56, 189, 248, 0.1);
    padding: 16px;
    border-radius: 16px;
    width: 100%;
    text-decoration: none;
    margin-top: 10px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.blob-1 {
    top: -200px;
    right: -100px;
    animation: float 20s infinite alternate;
}

.blob-2 {
    bottom: -100px;
    left: -200px;
    animation: float 25s infinite alternate-reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-area h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    text-wrap: balance;
}

.hero-text-area h1 span {
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-area p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mockups */
.tablet-mockup {
    width: 100%;
    max-width: 100%;
    /* Horizontal orientation */
    margin: 0 auto;
    background: #334155;
    /* Lighter slate for contrast */
    border: 12px solid #1e293b;
    border-radius: 36px;
    position: relative;
    padding: 2px;
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    line-height: 0;
}

.tablet-mockup::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #0f172a;
    border-radius: 10px;
    z-index: 10;
}

.product-screenshot {
    width: 100%;
    height: auto;
    border-radius: 24px;
    /* Matches tablet corners */
    display: block;
    transition: var(--transition-base);
    object-fit: cover;
}

.tablet-mockup:hover .product-screenshot {
    transform: scale(1.03);
}

.browser-mockup:hover .product-screenshot {
    transform: scale(1.02);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-wrap: balance;
}

.section-header h2 span {
    color: var(--accent);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-header.align-left {
    text-align: left;
    margin-left: 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Demo Section Styles */
.demo-video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
}

.demo-img {
    width: 100%;
    height: auto;
    transition: var(--transition-base);
}

.demo-video-container:hover .demo-img {
    transform: scale(1.02);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.2);
    transition: var(--transition-base);
}

.demo-video-container:hover .play-overlay {
    background: rgba(15, 23, 42, 0.4);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    animation: pulse-blue 2s infinite;
    transition: var(--transition-base);
}

.play-button i {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.demo-video-container:hover .play-button {
    transform: scale(1.1);
    background: var(--secondary);
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}



/* Economics Section Detailed */
.economics-grid {
    display: flex;
    padding: 30px;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 50px;
    position: relative;
}

.econ-column {
    flex: 1;
    padding: 40px;
}

.econ-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.tag-red {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.tag-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.econ-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.econ-list li {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.econ-list li span {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.econ-list.highlight li span {
    color: var(--accent);
}

.econ-divider {
    display: flex;
    align-items: center;
    position: relative;
    width: 2px;
    background: var(--glass-border);
}

.vs-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-muted);
    z-index: 2;
}

.roi-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.roi-summary-card {
    padding: 40px;
    text-align: center;
    transition: var(--transition-base);
}

.roi-summary-card h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.roi-summary-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.roi-summary-card.highlight-border {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

.roi-cta {
    text-align: center;
    margin-top: 60px;
}

/* Security Section Styles */
.security-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 60px;
    align-items: center;
}

.security-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.security-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 500;
}

.security-list i {
    color: var(--accent);
    width: 20px;
}

.security-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-item i {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    padding: 32px;
}

.faq-item h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 16px;
    line-height: 1.4;
    text-wrap: balance;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-form {
    padding: 40px;
    width: 100%;
    max-width: 600px;
}

.contact-form input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    outline: none;
    transition: var(--transition-fast);
}

.contact-form input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

.form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    transition: opacity 0.5s ease;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Integrations */
.integrations {
    padding: 40px 0;
}

.integrations-inner {
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.integrations-inner p {
    color: var(--text-muted);
    font-weight: 500;
}

.logos-row {
    display: flex;
    gap: 40px;
    opacity: 0.6;
}

.logo-item {
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: white;
}

/* Footer Enhanced */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h6 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

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

.footer-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-list a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-content {
    width: 90%;
    max-width: 400px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    border-radius: 24px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    margin-bottom: 24px;
}

.mobile-nav-links a {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {

    .hero-content,
    .process-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-text-area {
        text-align: center;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-image-area {
        order: -1;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .integrations-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .logos-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .feature-grid,
    .footer-grid,
    .faq-grid,
    .contact-grid,
    .process-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header,
    .section-header.align-left {
        text-align: center;
        margin-bottom: 40px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-text-area h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-text-area p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-info {
        display: none;
    }



    .icon-box {
        margin-left: auto;
        margin-right: auto;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .economics-grid {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .econ-column {
        padding: 20px 10px;
    }

    .econ-divider {
        width: 100%;
        height: 1px;
        margin: 30px 0;
    }

    .vs-circle {
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .roi-summary-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .security-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        text-align: center;
        gap: 40px;
    }

    .security-content h2 {
        font-size: 1.8rem;
    }

    .security-list {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-grid {
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col .logo {
        justify-content: center;
    }

    .footer-list {
        text-align: center;
        padding: 0;
    }

    .footer-desc {
        margin: 20px auto 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
/* AI Dashboard Mockup Styling */
.ai-dashboard {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px;
}

/* Hero Visual Styling */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-main-img {
    width: 90%; 
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 20px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(56, 189, 248, 0.05);
    transition: var(--transition-base);
    z-index: 2;
}

.hero-main-img:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-main-img {
        width: 100%;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        margin-top: 20px;
    }
}

/* --- Project Sections Styling --- */

.hero-graphic {
    width: 100%;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

/* Demo Section Styling */
.demo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1024px) {
    .demo-grid {
        display: flex; /* Переключаемся на flex для управления порядком */
        flex-direction: column-reverse; /* Текст (content-area) теперь сверху, видео внизу */
        gap: 40px;
    }
}


.algo-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.algo-card {
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition-base);
    border-radius: 20px !important;
}

.algo-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.algo-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.4;
    min-width: 50px;
}

.algo-info h4 {
    margin-bottom: 6px;
    font-size: 1.2rem;
    color: white;
}

.algo-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.demo-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* Integrations Section Styling */
.integrations-section {
    padding: 40px 0 80px;
}

.integrations-glass {
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.integrations-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.mis-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mis-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.2);
    color: var(--accent);
}

.mis-logo.others {
    opacity: 0.5;
    background: transparent;
    border-style: dashed;
}

@media (max-width: 1200px) {
    .integrations-glass {
        padding: 30px 20px;
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .integrations-glass {
        padding: 25px 15px;
        gap: 12px;
    }

    .integrations-label {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        margin-right: 0;
        font-size: 0.8rem;
    }

    .mis-logo {
        padding: 6px 14px;
        font-size: 0.85rem;
        flex-grow: 1;
        text-align: center;
        min-width: calc(50% - 12px); /* Заставляем вставать по 2 в ряд на узких экранах */
    }
}

@media (max-width: 380px) {
    .mis-logo {
        min-width: 100%; /* На совсем маленьких экранах — по одному в ряд, чтобы не было тесно */
    }
}

@media (max-width: 768px) {
    .hero-graphic {
        height: 350px;
    }
    
    .algo-card {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .algo-num {
        font-size: 1.5rem;
    }

    .mis-logo {
        font-size: 1rem;
    }
}
