:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #00a0b0;
    --secondary: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-glow: rgba(0, 160, 176, 0.3);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.ambient-light {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseLight 10s infinite alternate;
}

@keyframes pulseLight {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HEADER (Ported from Main) --- */
header {
    padding: 20px 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
}

/* Mobile Toggle (Default Hidden) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

/* -------------------------------- */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 160, 176, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 160, 176, 0.2);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gradient-animated {
    background: linear-gradient(-45deg, #00a0b0, #bd00ff, #00a0b0);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(189, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(189, 0, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: glowButton 3s infinite;
}

@keyframes glowButton {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Visualization (Abstract Dashboard) */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-composition {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    perspective: 1000px;
}

.dashboard-main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-5deg) rotateX(5deg);
    width: 90%;
    height: 80%;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
}

.ui-header {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.ui-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 6px;
}

.ui-body {
    flex: 1;
    display: flex;
}

.ui-sidebar {
    width: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ui-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.ui-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ui-graph {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px;
    position: relative;
}

.graph-bar {
    width: 12%;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px;
    opacity: 0.7;
    transform-origin: bottom;
    animation: growBar 2s ease-out forwards;
}

.graph-line {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.ui-grid {
    height: 30%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-row {
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.stat-card {
    position: absolute;
    padding: 12px 20px;
    background: rgba(25, 25, 40, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.stat-optimize {
    top: 10%;
    right: -20px;
}

.stat-control {
    bottom: 10%;
    left: -20px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 160, 176, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-control .stat-icon {
    background: rgba(189, 0, 255, 0.2);
    color: var(--secondary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 160, 176, 0.1), rgba(189, 0, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Advantages Split */
.advantages-bg {
    background: linear-gradient(180deg, transparent, rgba(0, 160, 176, 0.03), transparent);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-list i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(189, 0, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-list strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Abstract System Visual */
.floating-cards-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-hub {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    box-shadow: 0 0 50px rgba(0, 160, 176, 0.2);
}

.hub-logo {
    font-size: 2.5rem;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.float-card {
    position: absolute;
    padding: 15px 25px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.card-1 i {
    color: #4CAF50;
}

.card-2 {
    bottom: 20%;
    right: 5%;
    animation: float 7s ease-in-out infinite 1s;
}

.card-2 i {
    color: #2196F3;
}

.card-3 {
    top: 15%;
    right: 15%;
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 i {
    color: #FFC107;
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* FAQ Layout fix */
#faq .container {
    padding: 0 20px;
}

/* Contact Panel */
.contact-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* --- FOOTER (Ported) --- */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animation States */
.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.visible-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE / MOBILE --- */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    /* Mobile Header & Menu */
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.4s ease;
        z-index: 99;
        /* Below toggle but above content */
        display: flex;
        /* Override flex default if needed, ensure display is flex */
    }

    .nav-links.menu-open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 40px;
        /* Reduced from 100px */
        min-height: auto;
        padding-bottom: 60px;
        overflow-x: hidden;
        /* Prevent overflow */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        height: 350px;
        order: 0;
    }

    /* Redesigned Mobile Layout: Flat Grid */
    .dashboard-composition {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "main main"
            "stat1 stat2";
        gap: 15px;
        perspective: none;
        /* Remove 3D depth */
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    .dashboard-main-card {
        grid-area: main;
        position: relative;
        transform: none !important;
        /* Force flat */
        top: auto;
        left: auto;
        width: 100%;
        height: 220px;
        margin-bottom: 10px;
    }

    .stat-card {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none !important;
        margin: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .stat-optimize {
        grid-area: stat1;
    }

    .stat-control {
        grid-area: stat2;
    }

    /* Keep subtle float animation but relative */
    .float-animation,
    .float-animation-delayed {
        animation: floatMobile 4s ease-in-out infinite;
    }

    @keyframes floatMobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-5px);
        }
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-panel {
        padding: 30px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}