:root {
    /* --- Brand Colors (Extracted from Logo) --- */
    --primary: #0056D2;
    /* Vibrant Blue */
    --primary-glow: rgba(0, 86, 210, 0.5);
    --secondary: #2E006A;
    /* Deep Indigo */
    --accent: #00C4FF;
    /* Electric Cyan */

    /* --- Backgrounds (Midnight Glass Theme) --- */
    --bg-dark: #0a0a16;
    /* Midnight Navy */
    --bg-darker: #020205;
    /* Almost Black */

    /* --- Glassmorphism Surface Settings --- */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    /* --- Text --- */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Spacing */
    --container-width: 1200px;
    --nav-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.relative {
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Added for better visibility on dark backgrounds */
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--glass-border);
}

.nav-link-login {
    font-weight: 600;
    color: var(--text-main);
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-glow:hover::after {
    opacity: 1;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: #fff;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 4rem);
    /* Added top padding as requested */
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Exact match for split-screen 50/50 layout */
    align-items: center;
    gap: 2rem;
    /* User preferred 2rem */
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    text-align: left;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    /* Reduced gap */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    /* Reduced gap */
    /* Removed margin auto for left alignment */
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Align start */
    margin-bottom: 1rem;
    /* Reduced bottom margin */
}

/* Hero Visual Mockup */
.hero-visual {
    flex: 1;
    width: 100%;
    max-width: 600px;
    /* Adjusted width */
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    /* Tilted slightly */
    transition: transform 0.5s ease;
}

.hero-visual:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.dashboard-preview {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.mockup-header {
    height: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.mockup-body {
    display: flex;
    height: calc(100% - 40px);
}

.mockup-sidebar {
    width: 20%;
    border-right: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.mockup-main {
    flex: 1;
    padding: 20px;
}

.mockup-row {
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 15px;
    width: 80%;
}

.mockup-chart {
    height: 150px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.2) 0%, transparent 100%);
    border-radius: 8px;
    margin-top: 30px;
    border: 1px dashed var(--glass-border);
}

/* Features Section */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer (Basic) */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: #0b1120;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-group h4 {
    margin-bottom: 0.5rem;
}

.link-group a {
    color: var(--text-muted);
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: #475569;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        display: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- Carousel Styles --- */
.hero-slide {
    display: none;
    width: 100%;
    animation: fadeEffect 1s ease;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}


/* --- New Sections Styles --- */

/* Trusted By */
.trusted-by {
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.logos-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    opacity: 0.6;
}

.logo-item {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Hardware Strip */
.hardware-strip {
    padding: 4rem 0;
}

.hardware-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 86, 210, 0.1));
}

/* Contact Section & FAQ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.faq-container {
    padding: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.faq-question h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Active State for FAQ */
.faq-item.active .faq-answer {
    max-height: 150px;
    /* Adjust if content is very long */
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    /* Turns + into x */
    color: var(--accent);
}

/* Fix Dropdown Visibility */
select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.highlight-text {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forced 3 columns */
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

/* Hover Glow Effect for Glass Cards */
.glass:hover,
.pricing-card:hover,
.feature-card:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* Icon Animation Loop */
@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
}

.pricing-card.popular {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 86, 210, 0.15));
    border: 1px solid var(--accent);
    transform: scale(1.05);
    /* Default scale for popular */
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 0 35px var(--primary-glow);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.price {
    font-size: 2.2rem;
    /* Reduced from 3rem to fit single line */
    font-weight: 700;
    margin: 1rem 0;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    /* Force single line */
}

.period {
    font-size: 1rem;
    /* Smaller font for unit */
    font-weight: 500;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Connected Enterprise */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-item {
    font-size: 1.1rem;
}

.connected-img {
    width: 100%;
    color: #000;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* --- Hero Alternating Layout --- */
/* --- Hero Alternating Layout --- */
/* (Handled by Grid Order in Media Query) */

/* Footer 3-Column Layout */
.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 150px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* Brand takes more space, then 2 link cols */
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-slide.reversed .hero-content {
        /* No specific overrides needed for Grid if we want standard stacking,
           but let's check DOM order.
           DOM is Text (Left) -> Image (Right).
           Mobile Grid: Text -> Image.

           For Slide 2 (Reversed class):
           The DOM structure I previously edited was:
           <div class="hero-text">...</div>
           <div class="hero-visual">...</div>

           So 'reversed' class needs to swap columns in Desktop Grid.
        */
        direction: ltr;
        /* Reset direction if used */
    }

    .hero-content {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
        gap: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        transform: none;
        max-width: 100%;
    }

    /* Hardware Section Mobile */
    .hardware-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    /* Connected Enterprise Mobile */
    .split-screen {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .check-list {
        align-items: center;
        /* Center checks on mobile */
    }

    /* Contact Section Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Specific Desktop Grid override for Reversed Slide */
@media (min-width: 769px) {
    .hero-slide.reversed .hero-content .hero-text {
        order: 2;
        /* Move text to right */
    }

    .hero-slide.reversed .hero-content .hero-visual {
        order: 1;
        /* Move image to left */
    }
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* Contact Form */
.contact-container {
    padding: 4rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    outline: none;
}

@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 2rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
}