/* ========================================
   SMART ECO FARM — style.css
   Aesthetic: Organic Dark / Botanical Luxury
   ======================================== */

:root {
  --green-deep:  #1a3a2a;
  --green-mid:   #2d6a4f;
  --green-light: #52b788;
  --green-pale:  #95d5b2;
  --cream:       #f4f1e8;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --dark:        #0d1f16;
  --dark2:       #111f17;
  --text-light:  #c8ddc4;
  --text-dim:    #7aab8a;
  --white:       #ffffff;
  --danger:      #e05252;
  --warn:        #e0a052;
  --shadow:      rgba(10,30,18,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text-light);
  overflow-x: hidden;
  cursor: default;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: var(--green-light); color: var(--dark); }

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,31,22,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(82,183,136,0.12);
  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(13,31,22,0.97);
  border-bottom-color: rgba(82,183,136,0.22);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--green-pale);
  text-decoration: none;
}

.logo-icon { font-size: 1.5rem; }
.logo-text b { color: var(--gold); }

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--green-light);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--green-pale); }
.nav-links a:hover::after { width: 100%; }

.nav-chat-btn {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  color: var(--dark);
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-chat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(82,183,136,0.35);
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(82,183,136,0.08);
  border: 1px solid rgba(82,183,136,0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(82,183,136,0.18);
  border-color: rgba(82,183,136,0.45);
}

.ham-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-pale);
  border-radius: 2px;
  transition:
    transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
    opacity   0.25s ease,
    width     0.3s ease;
  transform-origin: center;
}

/* Animated to ✕ */
.hamburger.is-open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .ham-line:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== MOBILE OVERLAY ========== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(5, 15, 9, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ========== MOBILE MENU PANEL ========== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 82vw);
  height: 100dvh;
  z-index: 260;
  background: linear-gradient(170deg, #0d2218 0%, #0f2a1c 60%, #0d1f16 100%);
  border-left: 1px solid rgba(82,183,136,0.18);
  box-shadow: -24px 0 70px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(110%);
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Top decorative bar */
.mobile-menu::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light), var(--gold));
  flex-shrink: 0;
}

/* ===== MOBILE MENU HEADER ===== */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(82,183,136,0.1);
}

.mobile-close {
  width: 34px;
  height: 34px;
  background: rgba(82,183,136,0.08);
  border: 1px solid rgba(82,183,136,0.2);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.mobile-close:hover {
  background: rgba(224,82,82,0.15);
  border-color: rgba(224,82,82,0.35);
  color: #e08282;
}

/* ===== MOBILE NAV LINKS ===== */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  gap: 0.15rem;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;

  /* slide-in animation base */
  opacity: 0;
  transform: translateX(28px);
  transition:
    background 0.2s,
    color      0.2s,
    transform  0.38s cubic-bezier(0.23, 1, 0.32, 1),
    opacity    0.35s ease;
}

/* staggered entrance when menu opens */
.mobile-menu.is-open .mobile-nav-item { opacity: 1; transform: translateX(0); }
.mobile-menu.is-open .mobile-nav-item:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu.is-open .mobile-nav-item:nth-child(5) { transition-delay: 0.26s; }

.mobile-nav-item:hover {
  background: rgba(82,183,136,0.1);
  color: var(--green-pale);
  transform: translateX(5px);
}

.mobile-nav-item:active {
  background: rgba(82,183,136,0.18);
  transform: scale(0.98);
}

.mnav-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* left accent bar on hover */
.mobile-nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--green-light), var(--gold));
  border-radius: 0 2px 2px 0;
  transition: height 0.2s;
}

.mobile-nav-item:hover::before { height: 24px; }

/* ===== DIVIDER ===== */
.mobile-divider {
  height: 1px;
  background: rgba(82,183,136,0.1);
  margin: 0 1.4rem;
}

/* ===== CHAT CTA BUTTON ===== */
.mobile-chat-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0.75rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(45,106,79,0.4), rgba(82,183,136,0.2));
  border: 1px solid rgba(82,183,136,0.35);
  border-radius: 14px;
  color: var(--green-pale);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;

  opacity: 0;
  transform: translateY(12px);
  transition:
    background     0.25s,
    border-color   0.25s,
    transform      0.38s cubic-bezier(0.23, 1, 0.32, 1),
    opacity        0.35s ease,
    box-shadow     0.2s;
}

.mobile-menu.is-open .mobile-chat-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

.mobile-chat-cta:hover {
  background: linear-gradient(135deg, rgba(45,106,79,0.6), rgba(82,183,136,0.3));
  border-color: rgba(82,183,136,0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82,183,136,0.2);
}

.mcta-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.mobile-chat-cta:hover .mcta-arrow { transform: translateX(4px); }

/* ===== MOBILE MENU FOOTER ===== */
.mobile-menu-footer {
  padding: 1rem 1.4rem 1.5rem;
  border-top: 1px solid rgba(82,183,136,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  opacity: 0;
  transition: opacity 0.35s ease 0.42s;
}

.mobile-menu.is-open .mobile-menu-footer { opacity: 1; }

.mobile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--green-light);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 6px rgba(82,183,136,0.8);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.mobile-menu-footer p {
  font-size: 0.72rem;
  color: rgba(122,171,138,0.35);
  margin: 0;
}

/* ===== PREVENT BODY SCROLL ===== */
body.nav-open { overflow: hidden; }

/* ========== HERO ========== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(82,183,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,183,136,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45,106,79,0.35), transparent 70%);
  top: -150px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 70%);
  bottom: -100px; right: 100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(30px, 20px); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(82,183,136,0.12);
  border: 1px solid rgba(82,183,136,0.3);
  color: var(--green-pale);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  color: var(--dark);
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(82,183,136,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--green-pale);
  border: 1px solid rgba(82,183,136,0.4);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(82,183,136,0.1);
  border-color: var(--green-light);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadeUp 0.7s ease 0.4s both;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(82,183,136,0.2);
}

/* === DEVICE CARD === */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.3s both;
}

.device-card {
  background: rgba(20,40,28,0.85);
  border: 1px solid rgba(82,183,136,0.25);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(82,183,136,0.1);
  backdrop-filter: blur(10px);
}

.device-header {
  background: rgba(13,31,22,0.9);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(82,183,136,0.12);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.green { background: #52b788; }
.dot.yellow { background: #c9a84c; }
.dot.red { background: #e05252; }

.device-title {
  font-family: 'Fira Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: auto;
}

.device-body { padding: 1.2rem; }

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(82,183,136,0.08);
  font-family: 'Fira Mono', monospace;
  font-size: 0.88rem;
}

.data-row:last-child { border-bottom: none; }
.data-row .label { color: var(--text-dim); }
.data-row .value { color: var(--cream); }
.data-row .green-val { color: var(--green-light); }
.data-row .yellow-val { color: var(--gold-light); }
.data-row .small-val { font-size: 0.78rem; color: var(--text-dim); }

.blink { animation: blink 2s step-end infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== SECTIONS COMMON ========== */
section {
  padding: 6rem 3rem;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--cream);
  margin-bottom: 3rem;
  font-weight: 700;
}

/* ========== FEATURES ========== */
#fitur { background: var(--dark2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(20,40,28,0.6);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease both;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(82,183,136,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ========== HAMA ========== */
#hama { background: var(--dark); }

.hama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hama-card {
  background: rgba(20,40,28,0.7);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform 0.3s, border-color 0.3s;
}

.hama-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82,183,136,0.35);
}

.hama-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

.hama-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.hama-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hama-card ul li {
  font-size: 0.87rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.hama-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green-light);
}

.hama-tag {
  display: inline-block;
  background: rgba(224,82,82,0.15);
  color: #e08282;
  border: 1px solid rgba(224,82,82,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hama-tag.warning {
  background: rgba(224,160,82,0.15);
  color: #e0c082;
  border-color: rgba(224,160,82,0.3);
}

.hama-tag.low {
  background: rgba(82,183,136,0.12);
  color: var(--green-pale);
  border-color: rgba(82,183,136,0.3);
}

.hama-tips {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.tips-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ========== SERAI ========== */
#serai {
  background: var(--dark2);
  overflow: hidden;
}

.serai-bg-deco {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(82,183,136,0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.serai-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(82,183,136,0.2);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
  transition: color 0.3s;
}

.step:hover .step-num { color: var(--gold); }

.step-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.step-content strong { color: var(--gold-light); }

.serai-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: rgba(20,40,28,0.7);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: 16px;
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1rem;
}

.compound-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.compound {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.compound span:first-child { min-width: 85px; }
.compound span:last-child { min-width: 35px; text-align: right; }

.bar {
  flex: 1;
  height: 6px;
  background: rgba(82,183,136,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  border-radius: 3px;
  animation: barGrow 1s ease both;
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.pest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pest-tag {
  background: rgba(82,183,136,0.1);
  border: 1px solid rgba(82,183,136,0.25);
  color: var(--green-pale);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.advantage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.advantage-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
}

.advantage-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

/* ========== SENSOR ========== */
#sensor { background: var(--dark); }

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.sensor-card {
  background: rgba(20,40,28,0.7);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.sensor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82,183,136,0.3);
}

.sensor-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.sensor-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.sensor-value {
  font-family: 'Fira Mono', monospace;
  font-size: 1.4rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.sensor-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
}

.sensor-status.ok     { background: rgba(82,183,136,0.12); color: var(--green-pale); }
.sensor-status.warn   { background: rgba(224,160,82,0.15); color: #e0c082; }
.sensor-status.danger { background: rgba(224,82,82,0.15);  color: #e08282; }

.sensor-card.alert-state {
  border-color: rgba(224,82,82,0.5);
  animation: pulse-alert 1.5s ease-in-out infinite;
}

@keyframes pulse-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,82,82,0); }
  50%       { box-shadow: 0 0 0 8px rgba(224,82,82,0.1); }
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(82,183,136,0.1);
  padding: 3rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--green-pale);
  margin-bottom: 0.75rem;
}

.footer-logo b { color: var(--gold); }
footer p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.78rem; color: rgba(122,171,138,0.4); }

/* ========== CHATBOT ========== */
.chat-bubble {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 8px 30px rgba(82,183,136,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: bounceIn 0.5s 1s both;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(82,183,136,0.6);
}

.chat-bubble.hidden { display: none; }

@keyframes bounceIn {
  from { transform: scale(0); opacity: 0; }
  80%  { transform: scale(1.1); }
  to   { transform: scale(1); opacity: 1; }
}

.chat-window {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 380px;
  max-height: 580px;
  background: rgba(13,31,22,0.97);
  border: 1px solid rgba(82,183,136,0.25);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 300;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  overflow: hidden;
}

.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(20,50,32,0.9);
  border-bottom: 1px solid rgba(82,183,136,0.15);
}

.chat-header-info { display: flex; align-items: center; gap: 0.75rem; }

.chat-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-name { font-weight: 600; font-size: 0.95rem; color: var(--cream); }
.chat-status-dot { font-size: 0.72rem; color: var(--green-light); }

.chat-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.chat-close:hover { color: var(--cream); background: rgba(255,255,255,0.05); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 200px;
  max-height: 300px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(82,183,136,0.3); border-radius: 2px; }

.msg { display: flex; flex-direction: column; }
.msg.bot  { align-items: flex-start; }
.msg.user { align-items: flex-end; }

.msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.55;
  max-width: 90%;
  animation: msgSlide 0.3s ease;
}

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

.msg.bot  .msg-bubble {
  background: rgba(30,60,40,0.9);
  color: var(--text-light);
  border: 1px solid rgba(82,183,136,0.15);
  border-bottom-left-radius: 4px;
}

.msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  color: var(--dark);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.msg-bubble ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.msg-bubble li { font-size: 0.85rem; }

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: rgba(30,60,40,0.9);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-indicator span {
  width: 7px; height: 7px;
  background: var(--green-light);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-top: 1px solid rgba(82,183,136,0.08);
  scrollbar-width: none;
}

.chat-suggestions::-webkit-scrollbar { display: none; }

.suggest-btn {
  flex-shrink: 0;
  background: rgba(30,60,40,0.7);
  border: 1px solid rgba(82,183,136,0.2);
  color: var(--green-pale);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.suggest-btn:hover {
  background: rgba(82,183,136,0.15);
  border-color: rgba(82,183,136,0.4);
}

.chat-input-area {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(82,183,136,0.12);
}

.chat-input-area input {
  flex: 1;
  background: rgba(30,60,40,0.6);
  border: 1px solid rgba(82,183,136,0.2);
  border-radius: 50px;
  padding: 0.65rem 1.1rem;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-area input:focus { border-color: rgba(82,183,136,0.5); }
.chat-input-area input::placeholder { color: var(--text-dim); }

.chat-input-area button {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  border: none;
  border-radius: 50%;
  color: var(--dark);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.chat-input-area button:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(82,183,136,0.4);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.visible { animation: fadeUp 0.6s ease both; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  nav {
    padding: 0.9rem 1.2rem;
  }

  /* Hide desktop items, show hamburger */
  .nav-links    { display: none; }
  .nav-chat-btn { display: none; }
  .hamburger    { display: flex; }

  #hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
  }

  .hero-visual { display: none; }

  .serai-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section { padding: 4rem 1.5rem; }

  .chat-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 1rem;
  }
}