:root {
    /* App Theme - Dark Mode */
    --bg-dark: #18191a;
    --bg-card: #242526;
    --primary: #2d88ff;
    /* App Blue */
    --secondary: #4caf50;
    /* App Green */
    --accent: #FEAE4E;
    /* App Orange */
    --text-main: #e4e6eb;
    --text-muted: #b0b3b8;
    --glass: rgba(36, 37, 38, 0.95);
    --glass-border: #3a3b3c;
    --glow: 0 0 15px rgba(45, 136, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 800;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
    /* Removed gradient for flatter app look, or keep subtle */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(45, 136, 255, 0.15);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45, 136, 255, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(24, 25, 26, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.logo .dot {
    color: var(--accent);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    /* Flatter radius */
    box-shadow: 0 4px 15px rgba(45, 136, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-buttons {
    margin: 2rem 0 3rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    /* Flatter radius */
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(45, 136, 255, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Hero Stats */
.stats-bar {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    text-align: left;
}

.stat .num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visuals */
.circle-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 136, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s infinite ease-in-out;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-5deg);
    animation: float-hero 6s ease-in-out infinite;
}

@keyframes float-hero {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-5deg) translateY(-20px);
    }
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: float 6s infinite ease-in-out;
}

.c1 {
    top: 20px;
    right: 0;
    animation-delay: 0s;
}

.c2 {
    bottom: 40px;
    left: 0;
    animation-delay: 3s;
}

.floating-card .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
}

.floating-card strong {
    display: block;
    font-size: 0.9rem;
}

.floating-card span {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* Features Grid */
.features {
    padding: 6rem 5%;
    background: #131518;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

/* Modules Section */
.modules {
    padding: 6rem 5%;
}

.module-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.module-text {
    flex: 1;
}

.module-visual {
    flex: 1;
}

.module-list {
    list-style: none;
    margin-top: 2rem;
}

.module-list li {
    padding: 1.5rem;
    border-left: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
}

.module-list li:hover,
.module-list li.active {
    border-color: var(--primary);
    background: linear-gradient(90deg, rgba(45, 136, 255, 0.1), transparent);
    opacity: 1;
}

.module-list h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.visual-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    height: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.visual-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}

.red {
    background: #FF7474;
}

.yellow {
    background: #FEAE4E;
}

.green {
    background: #4caf50;
}

.chart-mockup {
    height: 80%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.chart-mockup .bar {
    width: 12%;
    background: var(--primary);
    /* Solid app blue */
    border-radius: 2px 2px 0 0;
    transition: height 0.5s ease;
}

/* Hardware Section */
.hardware {
    padding: 6rem 5%;
    background: #0e0f10;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    border-radius: 4px;
    mix-blend-mode: normal;
}

/* Simulated Thermal Printer using CSS */
.css-device.printer {
    width: 120px;
    height: 100px;
    background: #334155;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.css-device.printer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 20px;
    right: 20px;
    height: 15px;
    background: #f8fafc;
    border-radius: 2px 2px 0 0;
    opacity: 0.8;
}

.css-device.printer::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: #0f172a;
    border-radius: 4px;
}

.specs {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.btn-buy {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover .btn-buy {
    background: var(--primary);
    color: #fff;
}

/* Integrations */
.integrations {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.integ-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.7;
}

.logo-item {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 6rem 5% 2rem;
    background: #111213;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.contact-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.contact-form input {
    flex: 1;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: #fff;
    outline: none;
}

.contact-form input:focus {
    border-color: var(--primary);
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bottom-bar {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations Keyframes */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-main);
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(24, 25, 26, 0.98);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        clip-path: circle(0% at 100% 0%);
        transition: clip-path 0.5s ease-in-out;
    }

    .nav-links.active {
        clip-path: circle(140% at 100% 0%);
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        margin-top: 3rem;
    }

    .module-wrapper {
        flex-direction: column-reverse;
    }

    .stats-bar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .grid-container,
    .hardware-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Hero Slideshow Styles */

/* Shared Slideshow Styles */
.slideshow-container {
    position: relative;
    overflow: hidden;
}

.slideshow-container .slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-container .slide.active {
    opacity: 1;
}

/* Hero Specific Slideshow Overrides */
.hero-slideshow {
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-5deg);
    /* animation: float-hero 6s ease-in-out infinite; */
    background: var(--bg-card);
}