/* =========================================
   NeuraHub - Smart Farm IoT Landing Page
   Color Palette (from Flutter AppTheme):
   primary:      #15803D
   secondary:    #22C55E
   tertiary:     #86EFAC
   surface:      #F7FCF8
   dark:         #052E1B
   muted:        #4B6354
   accent-light: #DCFCE7
   ========================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #15803D;
  --primary-dark:  #0F5C2D;
  --secondary:     #22C55E;
  --tertiary:      #86EFAC;
  --accent-light:  #DCFCE7;
  --surface:       #F7FCF8;
  --dark:          #052E1B;
  --muted:         #4B6354;
  --white:         #FFFFFF;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-400:      #9CA3AF;
  --gray-600:      #4B5563;
  --shadow-sm:     0 1px 3px rgba(5,46,27,.08), 0 1px 2px rgba(5,46,27,.06);
  --shadow-md:     0 4px 16px rgba(5,46,27,.10), 0 2px 6px rgba(5,46,27,.08);
  --shadow-lg:     0 12px 40px rgba(5,46,27,.14);
  --shadow-xl:     0 24px 64px rgba(5,46,27,.18);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;
  --transition:    all .25s cubic-bezier(.4,0,.2,1);
  --font:          'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section--alt { background: var(--white); }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); color: var(--primary);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-full);
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.section-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; color: var(--dark); margin-bottom: 16px; }
.section-sub   { font-size: 1.05rem; color: var(--muted); max-width: 560px; }
.section-sub--center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-size: .95rem;
  font-weight: 600; transition: var(--transition); white-space: nowrap;
}
.btn--primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 2px 8px rgba(21,128,61,.35);
}
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(21,128,61,.4); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover { background: var(--accent-light); }
.btn--whatsapp {
  background: #25D366; color: var(--white);
  box-shadow: 0 2px 8px rgba(37,211,102,.35);
}
.btn--whatsapp:hover { background: #1ebe5d; box-shadow: 0 4px 16px rgba(37,211,102,.4); transform: translateY(-1px); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(247,252,248,.92); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(134,239,172,.3);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-md);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--dark);
}
.navbar__logo img { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; }
.navbar__logo span { color: var(--primary); }
.navbar__links {
  display: flex; align-items: center; gap: 32px;
}
.navbar__links a {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: var(--transition); position: relative; padding-bottom: 2px;
}
.navbar__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width .25s ease;
}
.navbar__links a:hover { color: var(--primary); }
.navbar__links a:hover::after { width: 100%; }
.navbar__cta { display: flex; gap: 10px; }
.navbar__hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* Mobile menu */
.navbar__mobile {
  display: none; flex-direction: column; gap: 0;
  background: var(--white); border-top: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a { padding: 12px 0; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--gray-100); }
.navbar__mobile a:last-child { border-bottom: none; }
.navbar__mobile a:hover { color: var(--primary); }
.navbar__mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--dark) 0%, #0a4a28 45%, #16A34A 100%);
  display: flex; align-items: center;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.hero__bg-circles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero__bg-circles span {
  position: absolute; border-radius: 50%;
  background: rgba(134,239,172,.08);
}
.hero__bg-circles span:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero__bg-circles span:nth-child(2) { width: 400px; height: 400px; bottom: -100px; left: -80px; background: rgba(34,197,94,.07); }
.hero__bg-circles span:nth-child(3) { width: 200px; height: 200px; top: 40%; left: 40%; background: rgba(134,239,172,.05); }

.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(134,239,172,.15); border: 1px solid rgba(134,239,172,.3);
  color: var(--tertiary); border-radius: var(--radius-full);
  padding: 6px 16px; font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero__tag svg { width: 14px; height: 14px; }

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 900;
  line-height: 1.1; color: var(--white); margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--secondary); }

.hero__desc {
  font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 40px;
  max-width: 500px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap;
}
.hero__stat strong {
  display: block; font-size: 1.8rem; font-weight: 800; color: var(--secondary);
}
.hero__stat span { font-size: .82rem; color: rgba(255,255,255,.6); font-weight: 500; }

/* Hero visual */
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__phone-wrap {
  position: relative; z-index: 2;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,.5));
}
.hero__phone {
  width: 260px; background: var(--dark); border-radius: 32px;
  border: 4px solid rgba(255,255,255,.12); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(134,239,172,.2);
}
.hero__phone-screen {
  background: var(--surface); padding: 16px; min-height: 480px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px 12px;
}
.phone-topbar .logo-mini {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; color: var(--dark);
}
.phone-topbar .logo-mini img { width: 22px; height: 22px; border-radius: 5px; }
.phone-topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }

.phone-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 12px; box-shadow: var(--shadow-sm);
}
.phone-card__label { font-size: .65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.phone-card__value { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.phone-card__sub { font-size: .65rem; color: var(--muted); }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-bar { height: 6px; border-radius: 3px; background: var(--gray-200); overflow: hidden; margin-top: 6px; }
.phone-bar-fill { height: 100%; background: linear-gradient(90deg,var(--primary),var(--secondary)); border-radius: 3px; }
.phone-plant-img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; }
.phone-status {
  display: flex; align-items: center; gap: 6px;
  font-size: .65rem; font-weight: 600;
  color: var(--primary); background: var(--accent-light);
  padding: 4px 8px; border-radius: var(--radius-full);
}
.phone-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }

.hero__float-card {
  position: absolute; background: var(--white); border-radius: var(--radius-md);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: .82rem;
  animation: floatCard 3.5s ease-in-out infinite;
}
.hero__float-card--1 { top: 60px; right: -40px; animation-delay: 0s; }
.hero__float-card--2 { bottom: 80px; left: -50px; animation-delay: 1.5s; }
.hero__float-card .icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero__float-card .icon--green { background: var(--accent-light); }
.hero__float-card .icon--blue  { background: #E0F2FE; }
.hero__float-card strong { display: block; font-size: .9rem; font-weight: 700; color: var(--dark); }
.hero__float-card span { color: var(--muted); font-size: .75rem; }

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

/* ---------- Features / Fitur ---------- */
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 56px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,var(--primary),var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.feature-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-light); transform: translateY(-4px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 26px; height: 26px; color: var(--primary); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p  { font-size: .92rem; color: var(--muted); line-height: 1.65; }
.feature-card__list { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.feature-card__list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .85rem; color: var(--muted);
}
.feature-card__list li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px;
  border-radius: 50%; background: var(--accent-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2315803D' d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ---------- How It Works ---------- */
.how__steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-top: 56px; position: relative;
}
.how__steps::before {
  content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg,transparent,var(--tertiary),transparent);
  pointer-events: none;
}
.step-card { text-align: center; position: relative; }
.step-card__num {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: var(--white); font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 20px rgba(21,128,61,.35);
  position: relative; z-index: 1;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step-card p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ---------- Plants Section ---------- */
.plants__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px; margin-top: 56px;
}
.plant-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.plant-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plant-card__header {
  background: linear-gradient(135deg,var(--primary),#0a4a28);
  padding: 24px; display: flex; align-items: center; justify-content: space-between;
}
.plant-card__title { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.plant-card__days  { font-size: .8rem; color: var(--tertiary); font-weight: 600; }
.plant-growth { padding: 20px; }
.plant-growth__label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.plant-growth__timeline {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: var(--accent-light) transparent;
}
.plant-growth__timeline::-webkit-scrollbar { height: 4px; }
.plant-growth__timeline::-webkit-scrollbar-thumb { background: var(--tertiary); border-radius: 2px; }
.growth-img-wrap {
  flex-shrink: 0; text-align: center;
}
.growth-img-wrap img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--accent-light); transition: var(--transition);
}
.growth-img-wrap img:hover { border-color: var(--secondary); transform: scale(1.08); }
.growth-img-wrap span { display: block; font-size: .6rem; color: var(--muted); margin-top: 4px; }
.plant-params { padding: 0 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.param-chip {
  background: var(--surface); border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 10px 12px;
}
.param-chip__label { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.param-chip__value { font-size: .95rem; font-weight: 700; color: var(--primary); }

/* ---------- IoT Section ---------- */
.iot__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.iot__content .section-sub { max-width: 480px; }
.iot__benefits { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.iot-benefit {
  display: flex; gap: 16px; align-items: flex-start;
}
.iot-benefit__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); flex-shrink: 0;
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
}
.iot-benefit__icon svg { width: 22px; height: 22px; color: var(--primary); }
.iot-benefit h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.iot-benefit p  { font-size: .85rem; color: var(--muted); line-height: 1.55; }

.iot__dashboard {
  background: var(--dark); border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-xl);
}
.iot__dash-title { color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.iot__sensors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.sensor-tile {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
}
.sensor-tile__label { font-size: .65rem; font-weight: 600; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.sensor-tile__value { font-size: 1.4rem; font-weight: 800; }
.sensor-tile--ph    .sensor-tile__value { color: #60A5FA; }
.sensor-tile--tds   .sensor-tile__value { color: var(--secondary); }
.sensor-tile--temp  .sensor-tile__value { color: #FBBF24; }
.sensor-tile__unit  { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.sensor-tile__status { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: .65rem; color: var(--secondary); margin-top: 6px; }
.sensor-tile__status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--secondary); animation: blink 1.2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.iot__relays { display: flex; flex-direction: column; gap: 10px; }
.relay-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.05); border-radius: 8px; padding: 12px 16px;
}
.relay-row__name { font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 500; }
.relay-toggle {
  width: 44px; height: 24px; background: rgba(255,255,255,.15); border-radius: 12px;
  position: relative; cursor: pointer; transition: background .25s;
}
.relay-toggle.on { background: var(--secondary); }
.relay-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  transition: left .25s;
}
.relay-toggle.on::after { left: 23px; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 56px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px; transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card__quote { font-size: 2rem; color: var(--tertiary); line-height: 1; margin-bottom: 12px; }
.testimonial-card p { font-size: .93rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.testimonial-card__role { font-size: .8rem; color: var(--muted); }
.stars { color: #F59E0B; font-size: .9rem; margin-bottom: 14px; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 760px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--tertiary); box-shadow: var(--shadow-sm); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; gap: 16px;
  font-weight: 600; font-size: .97rem; color: var(--dark);
  transition: color .2s;
}
.faq-item__q:hover { color: var(--primary); }
.faq-item.open .faq-item__q { color: var(--primary); }
.faq-item__chevron {
  width: 22px; height: 22px; flex-shrink: 0; transition: transform .3s ease;
  color: var(--primary);
}
.faq-item.open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-item__a { max-height: 400px; padding: 0 24px 20px; }
.faq-item__a p { font-size: .92rem; color: var(--muted); line-height: 1.7; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg,var(--primary) 0%,#0a4a28 60%,var(--dark) 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 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='%2386efac' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner__inner { position: relative; z-index: 1; text-align: center; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.cta-banner p  { font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto 40px; line-height: 1.7; }
.cta-banner__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn--white { background: var(--white); color: var(--primary); font-weight: 700; }
.btn--white:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn--outline-white { background: transparent; border: 2px solid rgba(255,255,255,.5); color: var(--white); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark); color: rgba(255,255,255,.65);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer__brand { }
.footer__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 16px;
}
.footer__logo img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.footer__logo span { color: var(--secondary); }
.footer__brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer__social a:hover { background: var(--primary); color: var(--white); }
.footer__social svg { width: 16px; height: 16px; }

.footer__col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer__col a:hover { color: var(--secondary); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: .82rem; }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { font-size: .82rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer__bottom-links a:hover { color: var(--secondary); }

/* ---------- Scroll-reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--left  { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--left.visible, .reveal--right.visible { transform: translateX(0); }

/* ---------- Back to Top ---------- */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: var(--transition);
}
#back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
#back-to-top svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner      { grid-template-columns: 1fr; text-align: center; }
  .hero__desc       { margin: 0 auto 40px; }
  .hero__actions    { justify-content: center; }
  .hero__stats      { justify-content: center; }
  .hero__visual     { display: none; }
  .iot__inner       { grid-template-columns: 1fr; }
  .footer__grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section          { padding: 72px 0; }
  .navbar__links    { display: none; }
  .navbar__cta      { display: none; }
  .navbar__hamburger{ display: flex; }
  .how__steps::before { display: none; }
  .footer__grid     { grid-template-columns: 1fr; }
  .footer__bottom   { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero__title      { font-size: 2rem; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .plants__grid     { grid-template-columns: 1fr; }
}

/* ---------- Hero Screenshot (real app photo) ---------- */
.hero__phone--screenshot {
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.15);
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(134,239,172,.25);
  background: var(--dark);
}
.hero__screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  object-fit: cover;
}

/* ---------- Screenshots Section ---------- */
.screenshots__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 28px;
  margin-top: 56px;
  align-items: end;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.screenshot-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: var(--dark);
}
.screenshot-frame:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--tertiary);
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Featured (center) screenshot is taller / more prominent */
.screenshot-frame--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-light);
  transform: translateY(-12px);
}
.screenshot-frame--featured:hover {
  transform: translateY(-18px);
  box-shadow: var(--shadow-xl), 0 0 0 3px var(--tertiary);
}

.screenshot-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 0 4px;
}
.screenshot-label__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.screenshot-label strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.screenshot-label span {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Lightbox overlay for screenshots */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,46,27,.9);
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 480px; width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: lightboxIn .25s ease;
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer; transition: var(--transition);
  border: none;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .screenshots__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
  }
  .screenshot-frame--featured { transform: none; }
  .screenshot-frame--featured:hover { transform: translateY(-4px); }
  .screenshot-item--featured { order: -1; }
  .hero__phone--screenshot { width: 240px; }
}
