/**
 * Biovara Website Styles
 * A clean, modern design for water purification innovation
 */

/* ===================================
   CSS Variables
=================================== */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;
    --secondary: #059669;
    --accent: #06b6d4;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===================================
   Base Styles
=================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

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

.section {
    padding: 5rem 0;
}

/* ===================================
   Navigation
=================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.logo-svg {
    width: 26px;
    height: 26px;
    color: var(--primary-light);
}

.logo-icon {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--white);
}

.nav-link.highlight {
    background: var(--gradient-primary);
    color: var(--white);
}

.nav-link.highlight:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero Section
=================================== */
.hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230284c7' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(52, 211, 153, 0.2);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 10;
    padding-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.35);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(2, 132, 199, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.floating-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.label {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.label-1 { right: 0; top: 20%; animation-delay: 0s; }
.label-2 { right: 10%; top: 45%; animation-delay: 0.5s; }
.label-3 { right: 0; top: 70%; animation-delay: 1s; }

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: -2px;
    right: -2px;
    pointer-events: none;
    z-index: 1;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: calc(100% + 4px);
    height: 80px;
    vertical-align: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Water drop animation */
.water-drop-animation {
    position: absolute;
    width: 10px;
    height: 15px;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    animation: drop-fall 2s ease-in forwards;
}

@keyframes drop-fall {
    0% { transform: translateY(-50px); opacity: 1; }
    100% { transform: translateY(400px); opacity: 0; }
}

/* ===================================
   Section Styles
=================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* Problem Section */
.problem-section {
    background: var(--gray-100);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.problem-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.problem-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon svg {
    width: 40px;
    height: 40px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Solution Section */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-text .section-tag {
    margin-bottom: 0.5rem;
}

.solution-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.solution-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.solution-features {
    margin-bottom: 2rem;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray-700);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.comparison-card {
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: var(--white);
}

.comparison-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
}

.comparison-row.header {
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-row span {
    font-size: 0.9rem;
}

.comparison-row .good {
    color: #34d399;
    font-weight: 600;
}

.comparison-row .bad {
    color: var(--gray-500);
}

/* AI Highlight */
.ai-highlight {
    background: var(--gradient-hero);
    padding: 4rem 0;
}

.ai-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ai-icon {
    margin-bottom: 1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon svg {
    width: 48px;
    height: 48px;
}

.ai-card h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.ai-card p {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

/* Impact Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.impact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.impact-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.impact-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-icon svg {
    width: 40px;
    height: 40px;
}

.impact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.impact-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===================================
   Video Section
=================================== */
.video-section {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

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

.video-text .section-tag {
    display: inline-block;
    margin-bottom: 1rem;
}

.video-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.video-text p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.video-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.video-highlight .highlight-icon {
    color: var(--primary);
    font-size: 0.75rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--gray-900);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 900px) {
    .video-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-text {
        text-align: center;
    }
    
    .video-highlights {
        align-items: center;
    }
}

/* ===================================
   Team Video Section
=================================== */
.team-video-section {
    background: var(--gray-100);
}

.team-video-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.team-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--gray-900);
}

.team-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.team-video-info .section-tag {
    display: inline-block;
    margin-bottom: 1rem;
}

.team-video-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.team-video-info p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.speaker-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.speaker-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.speaker-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.speaker-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0.25rem 0 0 0;
}

@media (max-width: 900px) {
    .team-video-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-video-info {
        text-align: center;
    }
    
    .speaker-card {
        justify-content: center;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Page Headers
=================================== */
.page-header {
    background: var(--gradient-hero);
    padding: 140px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--gray-400);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   How It Works Page
=================================== */
.process-diagram {
    margin: 3rem 0;
}

.filter-visual {
    display: flex;
    justify-content: center;
}

.filter-container {
    width: 100%;
    max-width: 400px;
}

.water-input {
    text-align: center;
    margin-bottom: 1rem;
}

.water-drops {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.drop {
    width: 12px;
    height: 18px;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: pulse 1.5s ease-in-out infinite;
}

.drop:nth-child(2) { animation-delay: 0.3s; }
.drop:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

.input-label, .output-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.filter-layers {
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
}

.layer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.layer:last-child {
    border-bottom: none;
}

.layer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.layer-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.layer-info h4 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.layer-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.layer-visual {
    width: 60px;
    height: 40px;
    border-radius: var(--radius);
}

.layer-visual.gravel {
    background: linear-gradient(135deg, #8B7355 0%, #A0826D 100%);
}

.layer-visual.biosand {
    background: linear-gradient(135deg, #E8DCC4 0%, #D4C4A8 100%);
}

.layer-visual.biochar {
    background: linear-gradient(135deg, #2C2C2C 0%, #444444 100%);
}

.water-output {
    text-align: center;
    margin-top: 1rem;
}

.output-stream {
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #0284c7 0%, #38bdf8 100%);
    margin: 0 auto 0.5rem;
    border-radius: 0 0 4px 4px;
    animation: flow 1s ease-in-out infinite;
}

@keyframes flow {
    0%, 100% { height: 30px; }
    50% { height: 40px; }
}

/* Layer Details */
.layer-details {
    background: var(--gray-100);
}

.layer-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.layer-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.layer-card-content h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.layer-card-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.layer-specs {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: var(--radius);
}

.layer-specs li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* AI Optimization */
.optimization-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.optimization-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.optimization-factors h4 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.factor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.factor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.factor-icon {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

/* ===================================
   AI Assistant Page
=================================== */
.ai-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #134e4a 100%);
}

.ai-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.ai-tools-section {
    background: var(--gray-100);
    padding: 4rem 0;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ai-tools-single {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.ai-tools-single .ai-tool-card,
.ai-tools-single .decision-tree-section {
    width: 100%;
    padding: 2.5rem;
}

.ai-tool-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.ai-tool-card.primary-tool {
    border: 2px solid var(--primary);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tool-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg {
    width: 40px;
    height: 40px;
}

.tool-badge {
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.tool-badge.secondary {
    background: var(--gray-600);
}

.ai-tool-card h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.tool-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.how-it-works-mini {
    background: var(--gray-100);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.how-it-works-mini h4 {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.how-it-works-mini ol {
    padding-left: 1.25rem;
    list-style: decimal;
}

.how-it-works-mini li {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 0.25rem 0;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background: var(--gray-100);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(2, 132, 199, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon {
    opacity: 0.6;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.upload-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.upload-content span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.upload-browse-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
}

.upload-browse-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.upload-area {
    cursor: pointer;
}

.image-preview {
    position: relative;
}

.image-preview img {
    max-height: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition-fast);
}

.remove-image:hover {
    transform: scale(1.1);
}

.analyze-btn, .predict-btn {
    width: 100%;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Results Panel */
.results-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-header h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin: 0;
}

.model-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-badge.fallback {
    background: var(--gray-500);
}

.result-main {
    margin-bottom: 1.5rem;
}

.turbidity-indicator {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
}

.indicator-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.indicator-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.turbidity-indicator.level-low .indicator-value { color: var(--success); }
.turbidity-indicator.level-medium .indicator-value { color: var(--warning); }
.turbidity-indicator.level-high .indicator-value { color: var(--danger); }

.indicator-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.level-low .bar-fill { background: var(--success); }
.level-medium .bar-fill { background: var(--warning); }
.level-high .bar-fill { background: var(--danger); }

.recommendations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
}

.rec-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-icon svg {
    width: 24px;
    height: 24px;
}

.rec-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.rec-value {
    font-weight: 600;
    color: var(--gray-900);
}

.warning-item {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.warning-item .rec-value {
    color: var(--danger);
}

/* Input Form */
.input-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-with-unit input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.unit {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    display: block;
}

/* Status Indicator */
.status-indicator {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.status-badge.status-good {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.status-urgent {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.status-message {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.action-items {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
}

.action-items h4 {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.action-items ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.action-items li {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 0.25rem 0;
}

/* Decision Tree Section */
.decision-tree-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 0;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
}

.tree-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.tree-header .tool-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-header h2 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin: 0;
}

.tree-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0.25rem 0 0 0;
}

.tree-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 0;
    position: relative;
}

.tree-level {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    padding-top: 1.5rem;
}

/* First level doesn't need top connector */
.tree-level:first-child {
    padding-top: 0;
}

/* Vertical connector line from parent level */
.tree-level:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 1.25rem;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gray-300) 100%);
    border-radius: 3px;
}

/* Horizontal connector line spanning across branching levels */
.tree-level.tree-branching::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--gray-300);
    z-index: 0;
}

.tree-level.tree-branching {
    gap: 0.75rem;
}

.tree-node {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    min-width: 150px;
    max-width: 180px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Connector dot on top of nodes in branching levels */
.tree-level.tree-branching .tree-node::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

/* Vertical line connecting dot to horizontal line */
.tree-level.tree-branching .tree-node::after {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(1.5rem - 6px);
    background: var(--gray-300);
    z-index: 1;
}

.tree-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.node-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.node-content {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.node-detail {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Node Types */
.node-start {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-dark);
    min-width: 200px;
}

/* Vertical line coming down from start node */
.node-start::after {
    content: '';
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 2.5rem;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--gray-300) 100%);
    border-radius: 3px;
}

.node-start .node-title,
.node-start .node-content,
.node-start .node-detail {
    color: var(--white);
}

.node-start .node-title {
    opacity: 0.9;
}

.node-decision {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.node-monitor {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: #10b981;
    border-width: 2px;
}

.node-schedule {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: #f59e0b;
    border-width: 2px;
}

.node-repair {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: #ef4444;
    border-width: 2px;
}

.node-urgent {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-color: #dc2626;
    border-width: 3px;
}

.parts-list {
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    text-align: left;
}

.parts-list strong {
    color: var(--gray-700);
}

/* Tree Badges */
.tree-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.75rem;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

.badge-urgent {
    background: #dc2626;
    color: white;
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Legend */
.tree-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Tech Notes */
.tech-notes {
    background: var(--white);
}

.notes-card {
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: var(--white);
}

.notes-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.notes-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.note h4 {
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.note p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================================
   Prototype Page
=================================== */
.prototype-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.prototype-gallery {
    background: var(--white);
}

.gallery-main {
    max-width: 900px;
    margin: 0 auto;
}

.main-image-container {
    margin-bottom: 2rem;
}

.prototype-placeholder, .team-photo-placeholder {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--gray-300);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.placeholder-content h3 {
    font-size: 1.25rem;
    color: var(--gray-600);
}

.placeholder-content p {
    color: var(--gray-500);
}

.placeholder-note {
    font-size: 0.8rem;
    color: var(--gray-400);
    background: var(--gray-200);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

/* Real prototype image styles */
.prototype-image-wrapper {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.prototype-image-wrapper img {
    width: 100%;
    display: block;
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
}

.image-caption h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
}

.image-caption p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.thumb-placeholder span {
    font-weight: 600;
}

.thumb-placeholder small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Prototype Specs */
.prototype-specs {
    background: var(--gray-100);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.spec-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.spec-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon svg {
    width: 40px;
    height: 40px;
}

.spec-card h4 {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.spec-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Test Results */
.test-results {
    background: var(--white);
}

.results-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.result-card {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.result-card.highlight-result {
    background: var(--gradient-hero);
    color: var(--white);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon svg {
    width: 32px;
    height: 32px;
}

.result-header h3 {
    font-size: 1.25rem;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.bar-track {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===================================
   Team Page
=================================== */
.team-header {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
}

.team-photo-section {
    background: var(--white);
}

.team-photo-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.team-photo-wrapper {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.team-photo-wrapper img {
    width: 100%;
    display: block;
}

.team-photo-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-caption {
    margin-top: 1.5rem;
}

.team-photo-caption h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.team-photo-caption p {
    color: var(--gray-600);
}

/* Team Members */
.team-members {
    background: var(--gray-100);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.member-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-avatar {
    margin-bottom: 1rem;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.member-info h3 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Story Section */
.story-section {
    background: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.story-text .section-tag {
    margin-bottom: 0.5rem;
}

.story-text h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.story-text p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}

.mission-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon svg {
    width: 40px;
    height: 40px;
}

.mission-card h4 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.mission-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.sdg-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    color: var(--white);
}

.sdg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdg-icon svg {
    width: 40px;
    height: 40px;
}

.sdg-label {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
}

.sdg-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

.sdg-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Values Section */
.values-section {
    background: var(--gray-100);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-3px);
}

.value-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 40px;
    height: 40px;
}

.value-card h4 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===================================
   Footer
=================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo-icon,
.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.footer-logo .logo-svg {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.9rem;
}

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

/* ===================================
   Animations
=================================== */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   3D Fallback Visualization
=================================== */
.fallback-3d {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-3d-visual {
    width: 200px;
    perspective: 1000px;
}

.barrel {
    position: relative;
    width: 200px;
    height: 350px;
    animation: rotate3d 10s linear infinite;
    transform-style: preserve-3d;
}

.barrel-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1e88e5 0%, #2196f3 30%, #64b5f6 50%, #2196f3 70%, #1e88e5 100%);
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

.filter-layer {
    position: absolute;
    left: 10%;
    width: 80%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.filter-layer.gravel-3d {
    top: 10%;
    height: 20%;
    background: linear-gradient(180deg, #8B7355 0%, #6d5a43 100%);
}

.filter-layer.sand-3d {
    top: 32%;
    height: 28%;
    background: linear-gradient(180deg, #E8DCC4 0%, #d4c4a8 100%);
    color: var(--gray-700);
}

.filter-layer.biochar-3d {
    top: 62%;
    height: 25%;
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
}

.output-pipe {
    position: absolute;
    bottom: 5%;
    right: -30px;
    width: 50px;
    height: 15px;
    background: #757575;
    border-radius: 8px;
}

.water-stream {
    position: absolute;
    bottom: 5%;
    right: -50px;
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 0 0 4px 4px;
    animation: drip 1s ease-in-out infinite;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes drip {
    0%, 100% { height: 30px; opacity: 1; }
    50% { height: 45px; opacity: 0.8; }
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .problem-grid,
    .impact-grid,
    .specs-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-content,
    .optimization-content,
    .story-content,
    .notes-content,
    .results-showcase {
        grid-template-columns: 1fr;
    }
    
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--gray-900);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
        border-top: 1px solid var(--gray-800);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .problem-grid,
    .impact-grid,
    .specs-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .layer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

/* ===================================
   Additional Prototype Styles
=================================== */
.prototype-image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--gray-100);
}

.prototype-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.impact-stat {
    text-align: center;
    padding: 1rem;
}

.impact-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--success);
    line-height: 1;
}

.impact-unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.result-card .impact-stat p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.flow-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius);
}

.flow-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.flow-value {
    font-weight: 700;
    color: var(--primary);
}

/* Materials Section */
.materials-section {
    background: var(--gray-100);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.material-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.material-card:hover {
    transform: translateY(-3px);
}

.material-icon {
    margin-bottom: 0.75rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-icon svg {
    width: 32px;
    height: 32px;
}

.material-card h4 {
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.material-card p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.material-cost {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.total-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.total-label {
    font-size: 1.1rem;
}

.total-value {
    font-size: 2rem;
    font-weight: 800;
}

/* Before/After Section */
.before-after {
    background: var(--white);
}

.comparison-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.water-sample {
    width: 150px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

.sample-visual {
    width: 100%;
    height: 100%;
}

.water-sample.turbid .sample-visual {
    background: linear-gradient(180deg, #8B6914 0%, #5c4a12 30%, #3d3010 100%);
    position: relative;
}

.water-sample.turbid .sample-visual::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000' fill-opacity='0.1'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.water-sample.clean .sample-visual {
    background: linear-gradient(180deg, #e0f7fa 0%, #80deea 30%, #4dd0e1 100%);
}

.comparison-arrow {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 700;
}

.comparison-label h4 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.comparison-label p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .comparison-visual {
        gap: 1.5rem;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Section */
.contact-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact-card > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.info-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   Stats Grid - Lab Validated Performance
=================================== */
.stats-section {
    background: var(--gray-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===================================
   Steps Timeline - Simple Setup Process
=================================== */
.setup-section {
    background: var(--white);
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.step-content {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    flex: 1;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.step-content:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ===================================
   System Overview Section
=================================== */
.system-overview {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    padding: 4rem 0;
}

.system-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.system-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.system-render-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.system-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.system-overview-text .section-tag {
    display: inline-block;
    margin-bottom: 1rem;
}

.system-overview-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.system-overview-text p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.system-features li {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.system-features li:last-child {
    border-bottom: none;
}

.system-features li strong {
    color: var(--gray-900);
    min-width: 140px;
    margin-right: 0.5rem;
}

.system-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .system-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .system-overview-text {
        order: 2;
    }
    
    .system-image-wrapper {
        order: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .steps-timeline::before {
        left: 23px;
    }
    
    .step-number {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 1rem;
    }
    
    .tree-node {
        min-width: 120px;
        max-width: 150px;
        padding: 1rem;
    }
    
    .tree-level.tree-branching::after {
        left: 5%;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

