/* ==========================================
   HOME PAGE - Specific Styles
   ========================================== */

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(0,212,255,0.07) 0%, transparent 65%),
              radial-gradient(ellipse 50% 40% at 20% 70%, rgba(124,58,237,0.06) 0%, transparent 60%),
              var(--dark-bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.08), transparent);
  top: -100px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.07), transparent);
  bottom: -80px; left: -80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #06ffa5 100%);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.hero-device {
  width: 340px;
  background: var(--dark-card);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.1);
}

.device-screen { padding: 0; }

.device-header {
  background: var(--dark-surface);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--dark-border);
}

.device-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.device-dot.red { background: #ff5f56; }
.device-dot.yellow { background: #ffbd2e; }
.device-dot.green { background: #27c93f; }

.device-label {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.device-body { padding: 1.25rem; }

.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.room-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 0.75rem;
  transition: var(--transition);
}

.room-card.active { border-color: rgba(0,212,255,0.3); }

.room-icon { font-size: 1.1rem; margin-bottom: 0.25rem; }
.room-name { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.3rem; }

.room-status {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.room-status.on { color: var(--accent); }
.room-status.off { color: var(--text-muted); }

.room-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.room-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 1s ease;
}

.device-energy {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 0.75rem;
}

.energy-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.energy-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.e-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  animation: pulse-glow 2s ease-in-out infinite;
}

.e-bar:nth-child(2) { animation-delay: 0.2s; }
.e-bar:nth-child(3) { animation-delay: 0.4s; }
.e-bar:nth-child(4) { animation-delay: 0.6s; }
.e-bar:nth-child(5) { animation-delay: 0.8s; }

.energy-value {
  font-size: 0.7rem;
  color: var(--text-primary);
  font-weight: 600;
}

.energy-save {
  color: var(--accent);
  font-size: 0.65rem;
  margin-left: 0.5rem;
}

/* Floating Pills */
.floating-pill {
  position: absolute;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.pill-1 { top: 20px; right: -30px; }
.pill-2 { bottom: 80px; right: -40px; }
.pill-3 { bottom: 20px; left: -20px; }

/* ---- Stats ---- */
.stats-section {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

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

.stat-item { padding: 1.5rem; }

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ---- Segments ---- */
.segments-section {
  background: var(--dark-surface);
}

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

.segment-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.segment-card:hover {
  border-color: var(--accent-col);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 20px rgba(0,0,0,0.1);
}

.segment-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.segment-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.segment-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.segment-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-col, var(--primary));
  transition: var(--transition);
}

.segment-link:hover { letter-spacing: 0.05em; }

/* ---- Testimonials Preview ---- */
.testi-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.testi-card { text-align: left; }

.testi-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.testi-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-bg);
  flex-shrink: 0;
}

.testi-name { font-size: 0.875rem; font-weight: 600; }
.testi-role { font-size: 0.75rem; color: var(--text-muted); }

.section-cta { text-align: center; margin-top: 1rem; }

/* ---- CTA Banner ---- */
.cta-banner { background: var(--dark-surface); }

.cta-inner {
  background: var(--dark-card);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,212,255,0.06), transparent);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

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

/* ==========================================
   RESPONSIVE - HOME
   ========================================== */
@media (max-width: 1100px) {
  .segments-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 3rem 1.25rem;
  }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-device { width: 300px; }
  .pill-1 { top: 5px; right: -10px; }
  .pill-2 { bottom: 60px; right: -20px; }
  .pill-3 { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { padding: 2.5rem 1.5rem; }
  .hero-device { width: 280px; }
}

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