/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/NEVIS.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content {
  margin: 0 auto;
  max-width: 800px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

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

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  color: white;
  text-align: left;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #5D4037; /* Dark brown color */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: none;
  -webkit-text-fill-color: #5D4037; /* Dark brown color */
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  font-size: 0.95rem;
  color: white;
}

.feature i {
  color: #4CAF50;
}

.location-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  margin-top: 2rem;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

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

.map-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  flex: 1;
  max-width: 700px;
  margin-left: auto;
}

.device-showcase {
  position: relative;
  height: 500px;
  perspective: 1500px;
}

.device {
  position: absolute;
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.device.mac {
  width: 600px;
  height: 350px;
  left: 50px;
  top: 50px;
  z-index: 3;
}

.device.iphone {
  width: 150px;
  height: 300px;
  right: 50px;
  top: 150px;
  z-index: 2;
}

.device.ipad {
  width: 250px;
  height: 350px;
  left: 0;
  bottom: 50px;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .hero-visual {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .location-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .device-showcase {
    height: 400px;
    transform: scale(0.8);
    transform-origin: center top;
  }
}

.lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature i {
  color: var(--primary);
  font-size: 1.1em;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Device Showcase */
.hero-visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.device-showcase {
  position: relative;
  height: 400px;
  perspective: 2000px;
  transform-style: preserve-3d;
}

.device {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

/* MacBook Pro */
.device.mac {
  width: 70%;
  height: 380px;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateZ(0);
  z-index: 3;
  border-radius: 16px 16px 0 0;
}

.device.mac .device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f5f5f7;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-bottom: 0;
}

.device.mac .device-screen {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: white;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.device.mac .device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device.mac .device-strip.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/NEVIS.jpg') no-repeat center center;
  background-size: cover;
  z-index: 1;
  opacity: 0.7;
}

.device.mac .device-stripe {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: #f5f5f7;
  border: 1px solid #e0e0e0;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.device.mac .device-header {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 6px;
  background: #d1d1d6;
  border-radius: 0 0 4px 4px;
}

/* iPhone */
.device.iphone {
  width: 120px;
  height: 240px;
  right: 5%;
  top: 100px;
  z-index: 2;
  border-radius: 24px;
  transform: translateZ(30px) rotateY(15deg);
}

.device.iphone .device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}

.device.iphone .device-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

/* iPad */
.device.ipad {
  width: 180px;
  height: 250px;
  left: 5%;
  top: 120px;
  z-index: 1;
  border-radius: 12px;
  transform: translateZ(15px) rotateY(-15deg);
}

.device.ipad .device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f5f5f7;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  padding: 10px;
  box-sizing: border-box;
}

.device.ipad .device-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

/* App Screen Styles */
.app-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f8f8fa;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 0.875rem;
}

.app-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.75rem;
  color: #8e8e93;
  margin-bottom: 8px;
}

.metric-change {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.metric-change.positive {
  background: rgba(52, 199, 89, 0.1);
  color: #34c759;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  background: white;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.6875rem;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Chart Placeholder */
.chart-placeholder {
  height: 100px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 4px;
}

.bar {
  flex: 1;
  background: #007aff;
  border-radius: 4px 4px 0 0;
  min-width: 6px;
  transition: height 0.3s ease;
}

.app-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
}

.summary {
  display: flex;
  justify-content: space-between;
}

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

.summary-label {
  font-size: 0.6875rem;
  color: #8e8e93;
  margin-bottom: 2px;
}

.summary-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* Floating Badge */
.floating-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background: white;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.badge-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.badge-text {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
}

.hero-scroll-indicator i {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .hero {
    padding: 10rem 0 8rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
  
  .hero-content {
    text-align: left;
    margin: 0;
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
  
  .hero-features {
    justify-content: flex-start;
  }
  
  .device-showcase {
    height: 500px;
  }
  
  .device.mac {
    width: 90%;
    height: 450px;
  }
  
  .device.iphone {
    width: 140px;
    height: 280px;
    right: 0;
    top: 80px;
  }
  
  .device.ipad {
    width: 220px;
    height: 300px;
    left: 0;
    top: 150px;
  }
}

@media (max-width: 767px) {
  .device-showcase {
    height: 350px;
    margin-top: 2rem;
  }
  
  .device {
    transform: none !important;
    position: relative !important;
    margin: 0 auto 2rem !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }
  
  .device.mac {
    width: 100%;
    height: 300px;
  }
  
  .device.iphone, .device.ipad {
    display: none;
  }
  
  .floating-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 2rem auto 0;
    max-width: 280px;
  }
}
