/* Markov Innovations - Dark Industrial IoT Hardware Theme */
/* Ultra Low Power • Local-First • Built to Last */

:root {
    /* Dark Industrial Base */
    --color-bg: #1E2125;
    --color-surface: #2B2E33;
    --color-border: #3D4248;
    
    /* Text Colors */
    --color-text-primary: #E6E8EB;
    --color-text-secondary: #A3A8AF;
    --color-text-disabled: #6F747A;
    
    /* Cyan Accent System */
    --color-accent: #00B3FF;
    --color-accent-alt: #0094E0;
    --color-glow: rgba(0, 179, 255, 0.45);
    
    /* Metallic UI Elements */
    --color-metal: #7C838C;
    
    /* Gradients */
    --gradient-header: linear-gradient(160deg, #1E2125 0%, #2B2E33 100%);
    --gradient-button: linear-gradient(90deg, #00B3FF 0%, #0094E0 100%);
    --gradient-highlight: linear-gradient(145deg, #00B3FF 0%, #1AE3E0 100%);
    
    /* Legacy variable mapping for compatibility */
    --primary-gradient: var(--gradient-button);
    --primary-color: var(--color-accent);
    --primary-dark: var(--color-accent-alt);
    --text-dark: var(--color-text-primary);
    --text-light: var(--color-text-secondary);
    --bg-light: var(--color-surface);
    --white: var(--color-text-primary);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(0, 179, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text-primary);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px var(--color-glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-button);
    box-shadow: 0 0 8px var(--color-glow);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-button);
    color: #ffffff !important;
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    transition: all 0.3s ease;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--color-glow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-header);
    color: var(--color-text-primary);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--color-border);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(0,179,255,0.1)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.device-card {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    padding: 2rem 3rem;
    text-align: center;
    box-shadow: 0 0 30px var(--color-glow);
}

.device-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.device-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-badge {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-button);
    color: #ffffff;
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--color-glow);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: rgba(0, 179, 255, 0.1);
    box-shadow: 0 0 20px var(--color-glow);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
    text-shadow: 0 0 20px var(--color-glow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--color-glow);
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Products Section */
.products {
    padding: 6rem 2rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px var(--color-glow);
}

.product-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.product-tagline {
    color: var(--color-accent);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.product-description p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    color: var(--color-text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    text-shadow: 0 0 8px var(--color-glow);
}

.product-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.product-status {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 179, 255, 0.15);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* How It Works */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--color-glow);
    border-color: var(--color-accent);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-button);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 20px var(--color-glow);
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.step p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: bold;
    text-shadow: 0 0 10px var(--color-glow);
}

/* Cloud Section */
.cloud-section {
    padding: 6rem 2rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.cloud-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cloud-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.cloud-features {
    list-style: none;
    margin-bottom: 2rem;
}

.cloud-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.cloud-features li::before {
    content: '☁️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.cloud-features strong {
    color: var(--color-text-primary);
}

.cloud-card {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.cloud-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--color-glow);
    border-color: var(--color-accent);
}

.cloud-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.cloud-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

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

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: var(--gradient-header);
    color: var(--color-text-primary);
    text-align: center;
    border-top: 2px solid var(--color-accent);
    box-shadow: inset 0 0 50px var(--color-glow);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--color-bg);
    color: var(--color-text-primary);
    padding: 3rem 2rem 1rem;
    border-top: 2px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px var(--color-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-disabled);
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 100px auto 40px;
    padding: 3rem 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    text-shadow: 0 0 20px var(--color-glow);
}

.legal-page .last-updated {
    color: var(--color-text-disabled);
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-page h2 {
    font-size: 1.8rem;
    color: var(--color-text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.legal-page h3 {
    font-size: 1.4rem;
    color: var(--color-text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-page ul {
    color: var(--color-text-secondary);
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.legal-page ul li {
    margin-bottom: 0.75rem;
}

.legal-page a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px var(--color-glow);
}

.legal-page strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.contact-info {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    margin: 1.5rem 0;
    box-shadow: inset 0 0 20px rgba(0, 179, 255, 0.1);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .cloud-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .legal-page {
        margin: 100px 20px 20px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}
