:root {
    --bg-dark: #080b12;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-neon: #00f2fe;
    --secondary-neon: #4facfe;
    --text-main: #f0f0f0;
    --text-muted: #9aa0ac;

    --glow-spread: 0 0 20px rgba(0, 242, 254, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background gradient blobs for futuristic feel */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-neon) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-neon) 0%, transparent 70%);
    bottom: 20%;
    right: -200px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(30px) scale(1.05);
    }
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    /* Changed to text-muted for consistency */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active-page {
    color: var(--primary-neon);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    box-shadow: var(--glow-spread);
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 5px;
}

.lang-switch button:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.lang-switch button.active {
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    color: #000;
    border: none;
    box-shadow: var(--glow-spread);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    align-items: center;
    gap: 4rem;
}

/* Hero Section */
.hero,
.scale-section,
.node-section {
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transition: var(--transition);
    margin-top: 1rem;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

/* Image Wrappers */
.image-wrapper {
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    width: 100%;
    border-radius: 12px;
    z-index: 2;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

.hero-visual,
.scale-visual,
.node-visual {
    position: relative;
}

.badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Scale Section */
.scale-section h2,
.node-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-box span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Features Section */
.features {
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--glow-spread);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Lists */
.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.check-list li::before {
    content: '✓';
    color: var(--primary-neon);
    font-weight: 900;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content p {
    margin: 0;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Metrics Section */
.metrics-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.metrics-section .section-title {
    margin-bottom: 1rem;
}

.metrics-section>p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.banks-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.metric-bank {
    margin-bottom: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.metric-bank h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-neon);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.metrics-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.metric-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.metric-item:hover {
    border-color: var(--primary-neon);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.metric-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-neon);
    margin-right: 12px;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-container h2 {
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.contact-container p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    transition: 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: #0f121a;
    padding: 0 0.3rem;
    color: var(--primary-neon);
}

.submit-btn {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Footer Additions */
.footer-texts {
    text-align: right;
}

.dev-credits {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {

    .hero,
    .scale-section,
    .node-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .scale-visual {
        order: -1;
    }

    .node-visual {
        order: -1;
    }

    .badge {
        right: 50%;
        transform: translateX(50%);
    }

    .check-list li {
        justify-content: center;
    }

    .banks-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mesh Network Animation */
.network-visualizer {
    width: 100%;
    max-width: 900px;
    margin: 4rem auto;
    background: #0b0e14;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.network-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
}

.svg-network {
    width: 100%;
    height: auto;
    display: block;
}

.svg-core {
    fill: var(--primary-neon);
    filter: drop-shadow(0 0 10px var(--primary-neon));
}

.svg-gw {
    fill: var(--secondary-neon);
    filter: drop-shadow(0 0 8px var(--secondary-neon));
}

.svg-node {
    fill: #00f86b;
    filter: drop-shadow(0 0 5px #00f86b);
}

.svg-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    fill: none;
}

.flow-line {
    stroke: var(--primary-neon);
    stroke-width: 2;
    stroke-dasharray: 10 15;
    animation: flow 2s linear infinite;
    fill: none;
    opacity: 0.6;
}

.flow-line.gw-node {
    stroke: #00f86b;
    animation: flow 3s linear infinite reverse;
}

@keyframes flow {
    to {
        stroke-dashoffset: -50;
    }
}

/* Tablet Mockup UI */
.tablet-mockup {
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto;
    background: #1a1e29;
    border: 14px solid #0f121a;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #333;
    overflow: hidden;
    position: relative;
    padding-top: 1.5rem;
}

.tablet-mockup::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #050608;
    border-radius: 4px;
}

.tablet-screen {
    background: #080b12;
    padding: 2rem;
    height: 100%;
    border-top: 1px solid #2a2e39;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.dashboard-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-logo img {
    height: 30px;
    border-radius: 4px;
}

.dashboard-status {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-neon);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.status-badge.warning {
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.1);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dash-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-neon);
}

.dash-card.card-temp::before {
    background: #ff4e50;
}

.dash-card.card-hum::before {
    background: #4facfe;
}

.dash-card.card-vpd::before {
    background: #9d00ff;
}

.dash-card.card-co2::before {
    background: #00f86b;
}

.dash-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.dash-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dash-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trend-up {
    color: #ff4e50;
}

.trend-down {
    color: #00f86b;
}

.trend-optimal {
    color: #4facfe;
}

.dash-graph {
    height: 40px;
    margin-top: 1rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.graph-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}

.dash-card.card-temp .graph-bar:last-child {
    background: #ff4e50;
}

.dash-card.card-hum .graph-bar:last-child {
    background: #4facfe;
}

.dash-card.card-vpd .graph-bar:last-child {
    background: #9d00ff;
}

.dash-card.card-co2 .graph-bar:last-child {
    background: #00f86b;
}
/* FAQ Accordion */
.faq-section { padding: 6rem 2rem; max-width: 800px; margin: 0 auto; }
.faq-title { text-align: center; margin-bottom: 3rem; }
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(255,255,255,0.2); }
.faq-question {
    width: 100%; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; color: var(--text-color); font-size: 1.1rem; font-weight: 600; cursor: pointer; text-align: left;
}
.faq-icon { font-size: 1.5rem; transition: transform 0.3s ease; color: var(--primary-neon); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 2rem; max-height: 0; overflow: hidden; transition: all 0.4s ease; color: #a0a0b0; line-height: 1.6; }
.faq-item.active .faq-answer { padding: 0 2rem 1.5rem 2rem; max-height: 300px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(11, 14, 20, 0.95); border-top: 1px solid var(--border-color); padding: 1rem 2rem; z-index: 9999; backdrop-filter: blur(10px); transition: opacity 0.5s ease; }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cookie-content p { margin: 0; font-size: 0.9rem; color: #a0a0b0; }
.cookie-btn { padding: 0.5rem 1.5rem; font-size: 0.9rem; border-radius: 6px; white-space: nowrap; cursor: pointer;}
@media (max-width: 768px) { .cookie-content { flex-direction: column; text-align: center; gap: 1rem; } }


/* ===================== VPD TABLE + NEW SECTIONS ===================== */
.vpd-table {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
}
.vpd-table th {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.vpd-table td, .vpd-table th { border-bottom: 1px solid rgba(255,255,255,0.05); }
.vpd-table tr:last-child td { border-bottom: none; }
.vpd-table tr:hover { background: rgba(255,255,255,0.04) !important; transition: background 0.2s; }

.section-title { display: block; width: 100%; text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 1.5rem; }
