:root {
    /* Color Palette - Deep Tech & Vibrant */
    --primary-color: #3b82f6;
    /* Bright Tech Blue */
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary-color: #94a3b8;
    /* Slate */
    --accent-color: #10b981;
    /* Neon Growth Green */

    --bg-color: #ffffff;
    --bg-color-alt: #f8fafc;

    --dark-header-bg: #020617;
    /* Deep Navy/Black */
    --dark-hero-bg: radial-gradient(circle at top right, #1e3a8a, #020617 60%);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-inverse: #f8fafc;
    /* For dark backgrounds */

    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-hover-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
strong {
    color: #0f172a;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Dark & Premium */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(2, 6, 23, 0.95);
    /* Dark Transparent */
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Stronger shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    /* Fix for white background logo on dark header */
    /* 1. Invert to turn white bg to black */
    /* 2. Hue rotate to restore color (blue becomes orange, rotate back to blue) */
    /* 3. Screen blend mode makes black bg transparent */
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
    mix-blend-mode: screen;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: #cbd5e1;
    /* Light text */
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: var(--primary-light);
}

.btn-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    /* White icon */
}

/* Hero Section - Deep Tech */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--dark-hero-bg);
    overflow: hidden;
    color: white;
    /* Default text white in hero */
}

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

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    /* Glassy Blue */
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: white;
    /* Force white */
}

.hero-text p {
    font-size: 1.25rem;
    color: #94a3b8;
    /* Slate lighter */
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #94a3b8;
}

.hero-trust span i {
    color: var(--accent-color);
    margin-right: 6px;
}

/* Enhanced Device Animation Composition */
.hero-composition {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-effect {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(2, 6, 23, 0) 70%);
    filter: blur(40px);
    z-index: 0;
    animation: pulse-glow 4s infinite alternate;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    top: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #10b981, #34d399);
    bottom: -20px;
    left: 20px;
    animation: float 6s ease-in-out infinite reverse;
}

.main-device-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

.hero-main-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) contrast(1.1);
    animation: float-main 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* Removed lighten blend mode to fix card visibility */
    /* Improved mask to fade edges smoothly without transparency artifacts */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.float-card {
    position: absolute;
    /* Darker glass background for better visibility */
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    z-index: 10;
    /* Ensure cards are ABOVE the image */
}

.card-performance {
    top: 40px;
    right: -40px;
    animation: float-card 5s ease-in-out infinite 0.5s;
}

.card-savings {
    bottom: 60px;
    left: -40px;
    animation: float-card 7s ease-in-out infinite 1s;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.float-card strong {
    display: block;
    color: white;
    font-size: 1rem;
    margin-bottom: 2px;
}

.float-card span {
    font-size: 0.85rem;
    color: #cbd5e1;
}

@keyframes float-main {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

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

@keyframes float-card {

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

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

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Cards Grid */
/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.advantage-card {
    text-align: center;
    padding: 24px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    /* Make sure this contrasts well */
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.advantage-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.advantage-card p {
    color: var(--text-secondary);
}

/* Products */
.products {
    background-color: var(--bg-color-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-light);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.product-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.product-card ul li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-card ul li i {
    color: var(--accent-color);
    margin-right: 8px;
}

.link-arrow {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow:hover {
    gap: 12px;
}

/* Stats */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark), #0f172a);
    color: white;
    padding: 60px 0;
}

.flex-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 3rem;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item span {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Comparison Table */
.comparison-box {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-hover-shadow);
    padding: 40px;
    overflow: hidden;
}

.comparison-box h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-size: 1.1rem;
}

.col-awl {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-dark);
    border-radius: 12px 12px 0 0;
}

td.positive {
    color: var(--accent-color);
    font-weight: 600;
}

td.negative {
    color: #ef4444;
}

/* CTA / Contact */
.cta-section {
    background-color: var(--bg-color-alt);
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-primary);
    margin-top: 30px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.method-card:hover {
    transform: translateY(-4px);
    border-color: #25d366;
}

.method-card i {
    font-size: 2.5rem;
    color: #25d366;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-hover-shadow);
}

.lead-form h3 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-full {
    width: 100%;
    background: #0f172a;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-full:hover {
    background: #1e293b;
}

.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Footer */
footer {
    background: #020617;
    /* Even darker */
    color: white;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    filter: brightness(0) invert(1);
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
}

.footer-bottom p {
    color: #475569;
    font-size: 0.9rem;
}

/* Anim Helper */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

.animate-active {
    opacity: 1;
    transform: translate(0, 0);
}

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

    .hero-container,
    .cta-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-btns {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    /* Adjust composition for tablet */
    .hero-composition {
        height: 400px;
        margin-top: 40px;
    }

    .main-device-container {
        max-width: 400px;
    }

    .float-card {
        padding: 12px 16px;
        min-width: 160px;
    }

    .card-performance {
        right: -20px;
    }

    .card-savings {
        left: -20px;
    }

    .heading-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(2, 6, 23, 0.98);
        /* Update mobile menu to dark */
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        transition: right 0.3s;
    }

    .nav-list.active {
        right: 0;
    }

    .hero-image {
        display: none;
        /* Hide on mobile to save space */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .social-icons {
        justify-content: center;
    }
}