/* ============================================
   EVERGREEN — Home Page Styles
   ============================================ */

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero .bg-glow {
  top: -200px;
  right: -200px;
}

.hero .bg-glow:nth-child(2) {
  bottom: -200px;
  left: -200px;
  top: auto;
  right: auto;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fade-in-up 0.8s ease-out;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 40px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  animation: fade-in-up 0.8s ease-out 0.5s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Animated grid background for hero */
.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

/* --- Animated Glowing Orb Divider --- */
.orb-container {
  width: 100vw;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
  margin-bottom: 20px;
  z-index: 10;
}

.orb-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.5), transparent);
  box-shadow: 0 0 20px rgba(0,255,136,0.3);
}

.glowing-orb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent-secondary);
  animation: float-pulse 4s ease-in-out infinite alternate;
}

.glowing-orb.delay {
  width: 12px; height: 12px;
  background: var(--accent-secondary);
  animation-duration: 5s;
  animation-delay: 1s;
}

@keyframes float-pulse {
  0% { transform: translateY(-15px) scale(0.8); opacity: 0.6; }
  100% { transform: translateY(15px) scale(1.4); opacity: 1; filter: hue-rotate(45deg); }
}

/* --- Services Section --- */
.services {
  background: var(--bg-secondary);
  position: relative;
  padding-top: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  padding: 40px 32px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: transform var(--transition-spring);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
}

/* --- Why Us Section --- */
.why-us {
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-content h2 {
  margin-bottom: 20px;
}

.why-content > p {
  margin-bottom: 40px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-top: 2px;
}

.why-item h4 {
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.92rem;
}

.why-visual {
  position: relative;
}

.why-visual .floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.why-visual .floating-card:nth-child(2) {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 260px;
  animation: float 4s ease-in-out infinite;
}

.metrics-row {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.metric {
  text-align: center;
}

.metric .value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.metric .desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- AI Section --- */
.ai-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-content h2 {
  margin-bottom: 20px;
}

.ai-content > p {
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.ai-feature .check {
  color: var(--accent);
  font-weight: 700;
}

.ai-demo {
  position: relative;
}

.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.chat-header .status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.chat-messages {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: fade-in-up 0.5s ease-out both;
}

.chat-msg.user {
  background: var(--accent-dim);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg:nth-child(2) { animation-delay: 0.3s; }
.chat-msg:nth-child(3) { animation-delay: 0.6s; }
.chat-msg:nth-child(4) { animation-delay: 0.9s; }

.chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  outline: none;
}

.chat-input button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  color: #0a0a0a;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.chat-input button:hover {
  transform: scale(1.1);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .bg-glow {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
}

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

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  margin: 0 auto 40px;
  font-size: 1.15rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Responsive Overrides --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .why-grid,
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .hero-stat .number {
    font-size: 2rem;
  }
}
