/* ─────────────────────────────────────────────
   HERO — FastMobile
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

/* Glows de fundo */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.18;
}
.hero__glow--left  { bottom: 5%;  left: -10%; width: 35%; height: 70%; background: var(--primary); }
.hero__glow--right { bottom: 5%;  right: -10%;width: 35%; height: 70%; background: var(--secondary); }
.hero__glow--left2 { top: 10%;    left: -5%;  width: 20%; height: 40%; background: var(--primary); opacity: 0.07; }
.hero__glow--right2{ top: 10%;    right: -5%; width: 20%; height: 40%; background: var(--accent);  opacity: 0.07; }

/* Divisor inferior */
.hero__divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,200,150,0.15), transparent);
}

/* ── Content (texto) ── */
.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  max-width: 560px;
  animation: fade-in-up 0.9s ease both;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.75;
  animation: fade-in-up 0.9s 0.15s ease both;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-in-up 0.9s 0.3s ease both;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  animation: fade-in-up 0.9s 0.45s ease both;
}
.hero__stat { text-align: center; }
.hero__stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero__stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__stat-divider {
  width: 1px; height: 40px;
  background: var(--border-subtle);
}

/* ── Phone Mockup ── */
.hero__phone-wrapper {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  animation: fade-in-up 1s 0.55s ease both;
}

.hero__phone {
  width: 255px;
  background: #0d1f35;
  border-radius: 36px;
  border: 2px solid rgba(0, 200, 150, 0.2);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,200,150,0.08),
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  transition: transform 0.4s ease;
}
.hero__phone:hover { transform: translateY(-6px) rotate(-0.5deg); }

/* Status bar */
.hero__phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 4px;
  background: #080f1e;
}
.hero__phone-time {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  font-family: var(--font);
}
.hero__phone-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero__phone-signal,
.hero__phone-wifi,
.hero__phone-battery {
  display: block;
  border-radius: 1px;
  background: rgba(255,255,255,0.6);
}
.hero__phone-signal  { width: 12px; height: 8px; clip-path: polygon(0 100%, 33% 60%, 67% 30%, 100% 0, 100% 100%); }
.hero__phone-wifi    { width: 10px; height: 7px; clip-path: polygon(50% 100%, 0 20%, 100% 20%); margin-top: 1px; }
.hero__phone-battery { width: 16px; height: 8px; border-radius: 2px; position: relative; }
.hero__phone-battery::after { content: ''; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: rgba(255,255,255,0.5); border-radius: 0 1px 1px 0; }

/* App topbar */
.hero__phone-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #0a1628;
  border-bottom: 1px solid rgba(0,200,150,0.1);
}
.hero__phone-app-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero__phone-app-name {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex: 1;
}
.hero__phone-topbar-actions { display: flex; gap: 4px; }
.hero__phone-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0.7;
}

/* Tabs */
.hero__phone-tabs {
  display: flex;
  background: #060e1c;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.hero__phone-tab {
  flex: 1;
  padding: 5px 4px;
  font-size: 8.5px;
  font-family: var(--font-mono);
  color: var(--text-muted-2);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.hero__phone-tab.active {
  color: var(--primary);
  background: rgba(0,200,150,0.06);
  border-bottom: 1px solid var(--primary);
}

/* Editor area */
.hero__phone-editor {
  display: flex;
  background: #060e1c;
  padding: 8px 0;
  min-height: 145px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.65;
}
.hero__phone-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 8px;
  min-width: 28px;
  color: rgba(255,255,255,0.2);
  user-select: none;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.hero__phone-code {
  flex: 1;
  padding: 0 10px;
  overflow: hidden;
}
.hero__phone-code pre {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

/* Toolbar / Run button */
.hero__phone-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #0a1628;
  border-top: 1px solid rgba(0,200,150,0.08);
}
.hero__phone-run {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #050c18;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero__phone-run:hover { transform: scale(1.05); box-shadow: 0 4px 16px var(--primary-glow); }
.hero__phone-run.running {
  animation: pulse-glow 0.6s ease infinite;
  background: #00a87d;
}
.hero__phone-toolbar-sep {
  flex: 1;
}
.hero__phone-toolbar-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px;
  display: flex; align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.hero__phone-toolbar-btn:hover { opacity: 1; }

/* Toast */
.hero__phone-toast {
  position: absolute;
  bottom: 52px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 20;
}
.hero__phone-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Home bar */
.hero__phone-home-bar {
  height: 28px;
  background: #080f1e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__phone-home-bar::after {
  content: '';
  width: 80px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}

/* Phone glow */
.hero__phone-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 80px;
  background: var(--primary);
  filter: blur(50px);
  opacity: 0.2;
  pointer-events: none;
  border-radius: 50%;
}

/* ── Floating icons (reaproveitados do template) ── */
.hero__floating-icon {
  position: absolute;
  z-index: 5;
  will-change: transform, opacity;
}
.hero__icon-bubble {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero__icon-bubble:hover {
  transform: scale(1.15);
  box-shadow: 0 16px 48px rgba(0,200,150,0.25);
}
.hero__icon-bubble svg { display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 6.5rem 1.5rem 3rem;
    gap: 2.5rem;
    text-align: center;
    /* Evita scroll-x causado pelos floating icons posicionados fora */
    overflow-x: hidden;
  }
  .hero__content { max-width: 100%; }
  .hero__subtitle { margin: 0 auto 1.75rem; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  /* Esconde floating icons que estão além das bordas no mobile */
  .hero__floating-icon { display: none; }
}

@media (max-width: 500px) {
  .hero {
    padding: 5.5rem 1rem 2.5rem;
    gap: 2rem;
  }
  .hero__phone { width: 210px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero__stats { gap: 0.75rem; }
  .hero__stat-value { font-size: 1.4rem; }
}
