:root {
    --bg: #030712;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-card-hover: rgba(31, 41, 55, 0.8);
    --bg-darker: #000000;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.4);
    --accent-light: #34d399;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Prompt', sans-serif;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style-type: none; }

.text-gradient {
    background: linear-gradient(270deg, var(--accent-light), #0ea5e9, var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

.section { padding: 6rem 0; }
.bg-darker { background-color: var(--bg-darker); }
.text-center { text-align: center; }

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

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #059669);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--accent-glow), 0 0 15px rgba(52, 211, 153, 0.4) inset;
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon { color: var(--accent); font-size: 1.8rem; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--accent-light); text-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #030712;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
}

.mobile-menu.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.hero {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#iot-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-light);
    border: 1px solid var(--accent-glow);
    border-radius: 2rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-title { font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.8;}
.hero-buttons { display: flex; gap: 1rem; }

.hero-image-wrapper { position: relative; }
.main-hero-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    object-fit: cover;
}

.panel-float {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.icon-success { font-size: 2.5rem; color: var(--accent); }

.section-header { margin-bottom: 4rem; }
.section-subtitle { display: block; color: var(--accent); margin-bottom: 1rem; font-weight: 600; letter-spacing: 1px;}
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.product-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img { transform: scale(1.05); }

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, background 0.4s, color 0.4s;
}

.product-card:hover .card-icon {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-main);
}

.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Flow Diagram Styles */
.flow-diagram-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.flow-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
}

.highlight-step {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent);
}

.flow-icon {
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.flow-step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-main); }
.flow-step p { font-size: 0.85rem; color: var(--text-muted); }

.flow-arrow {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.8;
}

.flow-arrow i {
    display: inline-block;
    animation: dataFlowLeftToRight 1.5s infinite linear;
    text-shadow: 0 0 10px var(--accent-glow);
}

@keyframes dataFlowLeftToRight {
    0% { transform: translateX(-15px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(15px); opacity: 0; }
}

.cta-section { background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.05)); }

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-pill:hover { border-color: var(--accent); color: var(--accent); }

.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: var(--bg-darker);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info li {
    display: flex;
    gap: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-info i { color: var(--accent); font-size: 1.2rem;}

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

.fade-in, .fade-up { opacity: 0; transition: all 0.8s ease; }
.fade-up { transform: translateY(30px); }
.appear { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 200ms; }
.delay-2 { transition-delay: 400ms; }
.delay-3 { transition-delay: 600ms; }

/* --- Advanced Effects --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-light);
    box-shadow: 0 0 10px var(--accent-light), 0 0 20px var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(16, 185, 129, 0.5);
    background-color: rgba(16, 185, 129, 0.05);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-light);
}

.glare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%) translate(0, 0);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.glass-card:hover .glare {
    opacity: 1;
}

.product-card.glass-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}
/* --- End Advanced Effects --- */

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .panel-float { left: 0; }
    .flow-diagram-container { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem;}
}