@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --primary: #059669;
    --primary-glow: rgba(5, 150, 105, 0.35);
    --secondary: #0d9488;
    --secondary-glow: rgba(13, 148, 136, 0.35);

    /* === LIGHT THEME === */
    --bg-base: #f4fbf7;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-surface-hover: rgba(255, 255, 255, 0.98);
    --text-primary: #0a2318;
    --text-secondary: #3d6352;
    --border-glass: rgba(5, 150, 105, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(5, 150, 105, 0.22);
    --glass-shadow: 0 4px 24px rgba(5, 150, 105, 0.07), 0 1px 4px rgba(0,0,0,0.04);
    --footer-bg: #071a10;
    --hero-bg: linear-gradient(160deg, #e8faf2 0%, #f4fbf7 50%, #e0f5ea 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Prevent navbar from covering content on anchor link click */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

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

/* Layout Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, #059669, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.5;
}

/* =============================================
   SITE HEADER & NAVBAR
   - Floating pill design, logo left, links center, CTA right
   ============================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 5%;
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    padding: 10px 5%;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 60px;
    padding: 10px 10px 10px 24px;
    box-shadow: 0 4px 30px rgba(16, 185, 129, 0.1), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .navbar {
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.15), 0 2px 8px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.96);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Centre links */
.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #4b6b5d;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: #0d2b1e;
    background: rgba(16, 185, 129, 0.08);
}

.nav-link.active {
    color: #0d2b1e;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

/* Right CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    letter-spacing: 0.3px;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #0ea472, #0d9e94);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #022c22;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: #022c22;
}

.btn-outline {
    background: rgba(20, 184, 166, 0.05);
    color: var(--secondary) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    border: 1px solid var(--secondary) !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2), inset 0 0 10px rgba(20, 184, 166, 0.1) !important;
    text-transform: uppercase;
}

.btn-outline:hover {
    background: rgba(20, 184, 166, 0.2);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.5), inset 0 0 15px rgba(20, 184, 166, 0.3) !important;
    transform: translateY(-2px);
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 60px;
    background: var(--hero-bg);
    transition: background 0.4s ease;
    overflow: hidden;
}

/* =============================================
   FOREST SCENE — Trees & Falling Leaves
   ============================================= */
.forest-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* --- Tree base --- */
.tree {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: bottom center;
    animation: tree-sway 6s ease-in-out infinite;
}

@keyframes tree-sway {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(1.2deg); }
    75%       { transform: rotate(-1deg); }
}

/* Crown layers — stacked triangles */
.tree-crown {
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-bottom: 90px solid #22c55e;
    margin-bottom: -28px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}
.tree-crown-2 {
    border-left-width: 68px;
    border-right-width: 68px;
    border-bottom-width: 100px;
    border-bottom-color: #16a34a;
    margin-bottom: -32px;
}
.tree-crown-3 {
    border-left-width: 82px;
    border-right-width: 82px;
    border-bottom-width: 110px;
    border-bottom-color: #15803d;
    margin-bottom: 0;
}
.tree-trunk {
    width: 18px;
    height: 55px;
    background: linear-gradient(180deg, #92400e, #78350f);
    border-radius: 4px 4px 0 0;
}

/* --- Individual tree positions & sizes --- */

/* Left side */
.tree-l1 { left: -1%;  bottom: 0; transform-origin: bottom center; animation-delay: 0s;    scale: 1;   }
.tree-l2 { left: 4%;   bottom: 0; animation-delay: -2s;  scale: 0.78; }
.tree-l3 { left: 9%;  bottom: 0; animation-delay: -4s;  scale: 0.6;  }

/* Right side */
.tree-r1 { right: -1%;  bottom: 0; animation-delay: -1s;  scale: 1;   transform-origin: bottom center; }
.tree-r2 { right: 4%;   bottom: 0; animation-delay: -3s;  scale: 0.78; }
.tree-r3 { right: 9%;  bottom: 0; animation-delay: -5s;  scale: 0.6;  }

/* Slight colour variation for depth */
.tree-l1 .tree-crown   { border-bottom-color: #4ade80; }
.tree-l1 .tree-crown-2 { border-bottom-color: #22c55e; }
.tree-l1 .tree-crown-3 { border-bottom-color: #16a34a; }
.tree-r1 .tree-crown   { border-bottom-color: #4ade80; }
.tree-r1 .tree-crown-2 { border-bottom-color: #22c55e; }
.tree-r1 .tree-crown-3 { border-bottom-color: #16a34a; }

.tree-l3 .tree-crown   { border-bottom-color: #86efac; }
.tree-l3 .tree-crown-2 { border-bottom-color: #4ade80; }
.tree-r3 .tree-crown   { border-bottom-color: #86efac; }
.tree-r3 .tree-crown-2 { border-bottom-color: #4ade80; }

/* =============================================
   FALLING LEAVES
   ============================================= */
.leaf {
    position: absolute;
    top: -40px;
    width: 14px;
    height: 14px;
    border-radius: 0 70% 0 70%;
    opacity: 0;
    animation: leaf-fall linear infinite;
    will-change: transform, opacity;
}

@keyframes leaf-fall {
    0%   { transform: translateY(0)    rotate(0deg)   translateX(0);   opacity: 0; }
    5%   { opacity: 0.85; }
    85%  { opacity: 0.7; }
    100% { transform: translateY(110vh) rotate(720deg) translateX(var(--drift)); opacity: 0; }
}

/* Each leaf: unique colour, position, size, speed, delay, drift */
.leaf-1  { left: 5%;  width: 14px; height: 14px; background: #4ade80; animation-duration: 8s;  animation-delay: 0s;    --drift: 60px; }
.leaf-2  { left: 12%; width: 10px; height: 10px; background: #22c55e; animation-duration: 10s; animation-delay: -2s;   --drift: -50px; }
.leaf-3  { left: 20%; width: 16px; height: 16px; background: #86efac; animation-duration: 7s;  animation-delay: -4s;   --drift: 40px; }
.leaf-4  { left: 30%; width: 11px; height: 11px; background: #16a34a; animation-duration: 9s;  animation-delay: -1s;   --drift: -70px; }
.leaf-5  { left: 42%; width: 13px; height: 13px; background: #4ade80; animation-duration: 11s; animation-delay: -3s;   --drift: 55px; }
.leaf-6  { left: 55%; width: 9px;  height: 9px;  background: #34d399; animation-duration: 8s;  animation-delay: -6s;   --drift: -40px; }
.leaf-7  { left: 65%; width: 15px; height: 15px; background: #22c55e; animation-duration: 12s; animation-delay: -0.5s; --drift: 80px; }
.leaf-8  { left: 75%; width: 12px; height: 12px; background: #86efac; animation-duration: 9s;  animation-delay: -5s;   --drift: -60px; }
.leaf-9  { left: 83%; width: 10px; height: 10px; background: #4ade80; animation-duration: 7s;  animation-delay: -2.5s; --drift: 45px; }
.leaf-10 { left: 90%; width: 14px; height: 14px; background: #16a34a; animation-duration: 10s; animation-delay: -7s;   --drift: -35px; }
.leaf-11 { left: 8%;  width: 9px;  height: 9px;  background: #34d399; animation-duration: 13s; animation-delay: -1.5s; --drift: 65px; }
.leaf-12 { left: 35%; width: 16px; height: 16px; background: #4ade80; animation-duration: 8s;  animation-delay: -8s;   --drift: -80px; }
.leaf-13 { left: 50%; width: 11px; height: 11px; background: #86efac; animation-duration: 11s; animation-delay: -4.5s; --drift: 50px; }
.leaf-14 { left: 70%; width: 13px; height: 13px; background: #22c55e; animation-duration: 9s;  animation-delay: -3.5s; --drift: -55px; }
.leaf-15 { left: 95%; width: 10px; height: 10px; background: #4ade80; animation-duration: 10s; animation-delay: -6.5s; --drift: 30px; }

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-quote {
    font-style: italic;
    color: var(--primary);
    font-size: 16px;
    margin-top: -20px;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* Mockup Dashboard UI */
.dashboard-mockup {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mockup-row {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.mockup-card {
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.wide-card {
    flex: 2;
}

.square-card {
    flex: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sensor Grid */
.sensor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sensor-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.sensor-item:hover {
    background: rgba(16, 185, 129, 0.07);
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4);
}

.sensor-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sensor-info {
    display: flex;
    flex-direction: column;
}

.sensor-info .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.sensor-info .value {
    font-size: 16px;
    font-weight: 600;
}

.sensor-info .value.active {
    color: var(--primary);
}

/* Chart Bars */
.chart-container {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 12px;
    margin-bottom: 10px;
}

.bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: height 1s ease;
}

.bar.active-bar {
    background: linear-gradient(to top, var(--primary), var(--secondary));
    box-shadow: 0 0 15px var(--primary-glow);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Glowing Plant Node */
.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glowing-plant-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.main-icon {
    font-size: 48px;
    z-index: 2;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

/* Stats Grid */
.stats-grid {
    display: flex;
    gap: 20px;
}

.stat-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(20, 184, 166, 0.07);
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.4);
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Core Philosophy & Vision Cards */
.vision-card {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(20, 184, 166, 0.1);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(20,184,166,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin: 0 auto 24px;
    border: 1px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    transition: all 0.5s ease;
}

.vision-card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.vision-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Future Vision Highlight */
.future-vision-panel {
    padding: 60px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.future-vision-panel::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: var(--primary-glow);
    filter: blur(50px);
    z-index: -1;
}

.content-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 20px auto 30px;
    border-radius: 2px;
}

.future-vision-panel p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Tech Pillars Grid (4 cols) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-col {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-col:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.feature-col i {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-col h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-col p {
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-number {
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

/* Smart Farming Interactive Tabs */
.smart-farming-tabs {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    min-width: 90px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tab-btn span {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.tab-content {
    width: 100%;
    padding: 40px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-text {
    font-size: 20px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.tab-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px !important;
}

.accordion-item {
    border-bottom: 1px solid var(--border-glass);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.accordion-header:hover {
    background: rgba(16, 185, 129, 0.05);
}

.accordion-header h3 {
    font-size: 20px;
    margin: 0;
    color: var(--text-primary);
}

.accordion-header i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 16px;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 20px;
}

.accordion-body p {
    padding-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 18, 14, 0.8), rgba(15, 38, 28, 0.9));
    font-size: 60px;
    height: 200px; /* Match real product-image height exactly */
    border-bottom: 1px solid var(--border-glass);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Product Hub */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(16, 185, 129, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-glass);
    transition: transform 0.6s ease;
}

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

.product-card:hover .placeholder-img i {
    filter: drop-shadow(0 0 20px var(--primary-glow));
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.product-info {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-glass);
    transition: background 0.4s ease;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: var(--secondary);
}

/* =============================================
   FOOTER — Full redesign
   ============================================= */
.footer {
    background: var(--footer-bg);
    position: relative;
    margin-top: 0;
}

.footer-wave {
    line-height: 0;
    background: var(--bg-base); /* matches page bg above */
}

.footer-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

.footer-inner {
    padding: 70px 0 0;
    background: var(--footer-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1.4fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand col */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.8;
    color: #7fb89a;
    max-width: 260px;
}

/* Social buttons */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7fb89a;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Headings */
.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

/* Nav list */
.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7fb89a;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-nav li a i {
    font-size: 10px;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.footer-nav li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-nav li a:hover i {
    opacity: 1;
    color: var(--primary);
}

/* Contact list */
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #7fb89a;
    line-height: 1.5;
}

.footer-contact li i {
    color: var(--primary);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact li a {
    color: #7fb89a;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact li a:hover {
    color: #fff;
}

/* Newsletter */
.footer-newsletter-text {
    font-size: 13px;
    color: #7fb89a;
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0 14px;
    transition: border-color 0.3s ease;
}

.newsletter-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.newsletter-field i {
    color: #7fb89a;
    font-size: 13px;
    flex-shrink: 0;
}

.newsletter-field input {
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 0;
    color: #fff;
    font-size: 14px;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.newsletter-field input::placeholder {
    color: #7fb89a;
}

.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.5);
}

/* Footer bottom bar */
.footer-bottom {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #4a7a5f;
}

.footer-brand-name {
    color: var(--primary);
    font-weight: 600;
}

.footer-made {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-made i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .mockup-row {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 48px;
    }
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .nav-center, .nav-right {
        display: none;
    }
    .navbar {
        padding: 10px 20px;
    }
    .hero h1 {
        font-size: 32px;
        margin-top: 20px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero {
        padding-top: 100px;
    }
    .sensor-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: column;
    }
    .auth-page {
        padding-top: 80px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-overlay a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-overlay .btn-primary {
    font-size: 18px;
    margin-top: 10px;
}

/* =============================================
   LIGHT THEME BASE OVERRIDES
   (These ensure correct colours since light is the only theme)
   ============================================= */
.hero h1 { color: var(--text-primary); }
.hero p { color: var(--text-secondary); }

.sensor-item {
    background: rgba(255, 255, 255, 0.55);
}
.sensor-item:hover {
    background: rgba(255, 255, 255, 0.9);
}

.stat-box {
    background: rgba(255, 255, 255, 0.55);
}
.stat-box:hover {
    background: rgba(255, 255, 255, 0.9);
}

.bar {
    background: rgba(16, 185, 129, 0.12);
}

.chart-labels {
    color: var(--text-secondary);
}

/* Vision Cards */
.vision-card h3 { color: var(--text-primary); }
.vision-card p { color: var(--text-secondary); }

/* Feature cols */
.feature-col h3 { color: var(--text-primary); }
.feature-col p { color: var(--text-secondary); }
.feature-number { color: rgba(13, 43, 30, 0.04); }

/* Tabs */
.tab-btn {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
}
.tab-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
}
.tab-text { color: var(--text-primary); }

/* Product cards */
.product-info h3 { color: var(--text-primary); }
.product-info p { color: var(--text-secondary); }

/* Accordion */
.accordion-header h3 { color: var(--text-primary); }
.accordion-body p { color: var(--text-secondary); }
.accordion-item { border-bottom-color: var(--border-glass); }

/* Section headers */
.section-header h2 { color: var(--text-primary); }
.section-header p { color: var(--text-secondary); }

/* Sensor info */
.sensor-info .label { color: var(--text-secondary); }
.sensor-info .value { color: var(--text-primary); }

/* Footer (intentionally stays dark for contrast) */
.footer {
    color: #e2f5ec;
}
.footer-brand p,
.footer-links ul li a,
.footer-links h4,
.footer-bottom p {
    color: #a7d5be;
}
.footer-brand img {
    filter: brightness(0) invert(1);
}
.social-links a {
    background: rgba(255,255,255,0.08);
    color: #a7d5be;
}
.newsletter-input {
    color: #e2f5ec;
}

/* Global smooth transitions */
body, .glass-panel, .product-info, .hero {
    transition-property: background, background-color, color, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Sensor & stat items */
[data-theme="light"] .sensor-item,
[data-theme="light"] .stat-box {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .sensor-item:hover,
[data-theme="light"] .stat-box:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
}

[data-theme="light"] .sensor-info .label {
    color: #4b6b5d;
}

[data-theme="light"] .sensor-info .value {
    color: #0d2b1e;
}

[data-theme="light"] .bar {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chart-labels {
    color: #4b6b5d;
}

/* Vision Cards */
[data-theme="light"] .vision-card h3 {
    color: #0d2b1e;
}

[data-theme="light"] .vision-card p {
    color: #4b6b5d;
}

/* Feature cols */
[data-theme="light"] .feature-col h3 {
    color: #0d2b1e;
}

[data-theme="light"] .feature-col p {
    color: #4b6b5d;
}

[data-theme="light"] .feature-number {
    color: rgba(0, 0, 0, 0.04);
}

/* Tab */
[data-theme="light"] .tab-btn {
    background: rgba(255, 255, 255, 0.7);
    color: #4b6b5d;
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .tab-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #0d2b1e;
}

[data-theme="light"] .tab-text {
    color: #0d2b1e;
}

/* Product Cards */
[data-theme="light"] .product-info h3 {
    color: #0d2b1e;
}

[data-theme="light"] .product-info p {
    color: #4b6b5d;
}

/* Accordion */
[data-theme="light"] .accordion-header h3 {
    color: #0d2b1e;
}

[data-theme="light"] .accordion-body p {
    color: #4b6b5d;
}

[data-theme="light"] .accordion-item {
    border-bottom-color: rgba(16, 185, 129, 0.15);
}

/* Footer in light mode stays dark (good contrast) */
[data-theme="light"] .footer {
    color: #e2f5ec;
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-links ul li a,
[data-theme="light"] .footer-links h4,
[data-theme="light"] .footer-bottom p {
    color: #a7d5be;
}

[data-theme="light"] .footer-brand img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .social-links a {
    background: rgba(255,255,255,0.08);
    color: #a7d5be;
}

[data-theme="light"] .newsletter-input {
    background: rgba(255,255,255,0.08);
    color: #e2f5ec;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Section header */
[data-theme="light"] .section-header h2 {
    color: #0d2b1e;
}

[data-theme="light"] .section-header p {
    color: #4b6b5d;
}

/* Global body transition */
body, .navbar, .glass-panel, .product-info, .footer, .hero {
    transition-property: background, background-color, color, border-color, box-shadow;
    transition-duration: 0.4s;
    transition-timing-function: ease;
}
