:root {
    /* Color Palette */
    --color-bg-dark: #0a0c10;
    --color-bg-panel: rgba(16, 20, 24, 0.6);
    --color-primary: #00ff88; /* Emerald Neon */
    --color-primary-glow: rgba(0, 255, 136, 0.4);
    --color-secondary: #eab308; /* Subtle Gold */
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --glass-blur: blur(16px);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Base Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-center { text-align: center; }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Glassmorphism Utilities */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
}

.glass-card {
    background: var(--color-bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 40px -10px var(--color-primary-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px var(--color-primary-glow);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-text-main);
}

.logo i {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 12, 16, 0.3) 0%, var(--color-bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(234, 179, 8, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--color-primary);
    text-shadow: 0 0 30px var(--color-primary-glow);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-mockup {
    position: absolute;
    right: -5%;
    top: 55%;
    transform: translateY(-50%);
    width: 55%;
    z-index: 5;
    perspective: 1000px;
}

.hero-mockup img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: rotateY(-15deg) rotateX(5deg);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: rotateY(-15deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateY(-20px); }
    100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0px); }
}

/* Team Section */
.team-section {
    padding: 8rem 0;
    background: radial-gradient(circle at right, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8) contrast(1.1);
}

.overlay-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(10, 12, 16, 0.8);
    border-color: rgba(234, 179, 8, 0.3);
}

.overlay-card i {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Features Section */
.features-section {
    padding: 8rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card i {
    font-size: 2rem;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

.cta-card {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(16, 20, 24, 0.8) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

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

.cta-card p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    background: #050608;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

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

/* Animations (Intersection Observer) */
.fade-in-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.fade-in-up.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Dashboard Mockup HTML */
.glass-dashboard {
    background: rgba(10, 12, 16, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 255, 136, 0.05);
    width: 100%;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-logo i { color: var(--color-primary); font-size: 1.3rem; }

.dash-icons {
    display: flex;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

/* Expanded Complex Dashboard with Sidebar */
.dash-grid-complex-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1rem;
    align-items: start;
}

/* Sidebar Metrics */
.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-section h5 {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
}

.side-metric {
    display: flex;
    flex-direction: column;
}

.side-metric .val {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.side-metric .lbl {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.dash-main-content {
    display: flex;
    flex-direction: column;
}

/* Top Metrics Row (deprecated) */
.metrics-row-top {
    display: none;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
}

.m-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.m-val {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.text-white {
    color: #fff;
}

.font-bold {
    font-weight: bold;
}

/* Dash Card */
.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
}

.full-width-card {
    width: 100%;
}

.card-title {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-title i { color: var(--color-secondary); }

/* Water Area Chart */
.water-chart-container {
    width: 100%;
    height: 70px;
}

.water-chart {
    width: 100%;
    height: 100%;
}

/* Bottom Split: Combo Chart & Table */
.dash-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

/* Histogram Chart */
.histogram-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 120px;
    padding-top: 10px;
}

.h-bar {
    width: 14px;
    background: rgba(0, 255, 136, 0.4);
    border-radius: 4px 4px 0 0;
    transition: var(--transition-smooth);
}

.h-bar:hover {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Combo Chart */
.combo-chart {
    position: relative;
    height: 120px;
    padding-top: 10px;
}

.c-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    padding: 0 10px;
}

.c-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 16px;
}

.c-bar {
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 136, 0.5);
    border-radius: 4px 4px 0 0;
    transition: var(--transition-smooth);
}

.c-lbl {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.overlay-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%; /* Match bar container height approx */
    pointer-events: none;
}

/* Mini Table */
.mini-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.mt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mt-head {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-mockup { width: 70%; right: -15%; }
    .team-grid { grid-template-columns: 1fr; gap: 3rem; }
    .overlay-card { bottom: 20px; right: 20px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { text-align: center; padding-top: 120px; }
    .hero-content { margin: 0 auto; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-mockup { position: relative; width: 100%; right: 0; transform: none; top: 0; margin-top: 3rem; }
    .hero-mockup img { transform: none; }
    .floating { animation: none; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 2rem; }
}
